aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Component.h
blob: 8db9b2ac04011226b89703dfc47b9da7e915026b (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;
};

} // namespace crepe