blob: 40e6f49719ede9a166616a6c86995019d7ec1e40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include <cstdint>
namespace crepe {
class ComponentManager;
class Component {
protected:
friend class crepe::ComponentManager;
Component(uint32_t id);
public:
virtual ~Component() = default;
virtual int get_instances_max() const { return -1; }
public:
uint32_t game_object_id;
bool active = true;
};
} // namespace crepe
|