1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#pragma once #include <cstdint> namespace crepe { class ComponentManager; class Component { protected: friend class crepe::ComponentManager; Component(uint32_t id); public: virtual ~Component() = default; public: uint32_t gameObjectId; bool active; }; } // namespace crepe