Added World::ValidEntity for checking if an entity exists or not

This commit is contained in:
2016-01-11 13:57:25 +01:00
parent 297a3fb493
commit 21aea6f31d
3 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ public:
EntityID CreateEntity(EntityID parent = 0);
// Delete entity and all components within
void DeleteEntity(EntityID entity);
// Check if an entity exists
bool ValidEntity(EntityID entity) const;
// Register a component type and allocate space for it
void RegisterComponent(ComponentInfo& ci);
// Attach a component to an entity and fill it with default values