Barebones entity component commit events
This commit is contained in:
@@ -28,6 +28,8 @@ public:
|
||||
virtual void OnComponentCreated(std::string type, std::shared_ptr<Component> component) { }
|
||||
// Called when a component is removed
|
||||
virtual void OnComponentRemoved(std::string type, Component* component) { }
|
||||
// Called when components are committed to an entity
|
||||
virtual void OnEntityCommit(EntityID entity) { }
|
||||
|
||||
protected:
|
||||
World* m_World;
|
||||
|
||||
Reference in New Issue
Block a user