PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
Resource.hpp
1#pragma once
2
3#include <typeindex>
4
5namespace PixelBullet
6{
11 {
12 public:
13 Resource() = default;
14 virtual ~Resource() = default;
15
19 virtual std::type_index GetTypeIndex() const = 0;
20 };
21} // namespace PixelBullet
Base class for managed resources.
Definition Resource.hpp:11
virtual std::type_index GetTypeIndex() const =0
Returns the type index of the resource.