Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Grindstone::ECS::ComponentRegistrar Class Reference

Public Types

using ComponentMap = std::unordered_map<std::string, ComponentFunctions>
 

Public Member Functions

template<typename ComponentType >
void RegisterComponent (SetupComponentFn setupComponentFn=nullptr, DestroyComponentFn destroyComponentFn=nullptr)
 
template<typename ComponentType >
void UnregisterComponent ()
 
virtual entt::registry & GetEntityRegistry ()
 
virtual void CopyRegistry (entt::registry &to, entt::registry &from)
 
virtual void CallCreateOnRegistry (entt::registry &registry)
 
virtual void CallDestroyOnRegistry (entt::registry &registry)
 
virtual void DestroyEntity (ECS::Entity entity)
 
virtual void RegisterComponent (const char *name, ComponentFunctions componentFunctions)
 
virtual void UnregisterComponent (const char *name)
 
virtual void * CreateComponentWithSetup (const char *name, ECS::Entity entity)
 
virtual void * CreateComponent (const char *name, ECS::Entity entity)
 
virtual void RemoveComponent (const char *name, ECS::Entity entity)
 
virtual bool HasComponent (const char *name, ECS::Entity entity)
 
virtual bool TryGetComponent (const char *name, ECS::Entity entity, void *&outComponent)
 
virtual bool TryGetComponentReflectionData (const char *name, Grindstone::Reflection::TypeDescriptor_Struct &outReflectionData)
 
virtual void SetupComponent (const char *componentType, ECS::Entity entity, void *componentPtr)
 
virtual ComponentMap::iterator begin ()
 
virtual ComponentMap::const_iterator begin () const
 
virtual ComponentMap::iterator end ()
 
virtual ComponentMap::const_iterator end () const
 

The documentation for this class was generated from the following files: