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

Public Member Functions

 Entity (const Entity &other)=default
 
 Entity (entt::entity entityId, SceneManagement::Scene *scene)
 
virtual void * AddComponent (const char *componentType)
 
virtual void * AddComponentWithoutSetup (const char *componentType)
 
virtual bool HasComponent (const char *componentType) const
 
virtual void * GetComponent (const char *componentType) const
 
virtual bool TryGetComponent (const char *componentType, void *&outComponent) const
 
virtual void RemoveComponent (const char *componentType)
 
virtual bool IsChildOf (const Entity &other) const
 
virtual Entity GetParent () const
 
virtual bool SetParent (Entity)
 
virtual Math::Matrix4 GetLocalMatrix () const
 
virtual Math::Matrix4 GetWorldMatrix () const
 
virtual Math::Float3 GetLocalPosition () const
 
virtual Math::Float3 GetWorldPosition () const
 
virtual Math::Quaternion GetLocalRotation () const
 
virtual Math::Quaternion GetWorldRotation () const
 
virtual Math::Float3 GetLocalScale () const
 
virtual Math::Float3 GetLocalForward () const
 
virtual Math::Float3 GetWorldForward () const
 
virtual Math::Float3 GetLocalRight () const
 
virtual Math::Float3 GetWorldRight () const
 
virtual Math::Float3 GetLocalUp () const
 
virtual Math::Float3 GetWorldUp () const
 
virtual void Destroy ()
 
virtual entt::registry & GetSceneEntityRegistry () const
 
template<typename ComponentType , typename... Args>
ComponentType & AddComponent (Args &&... args)
 
template<typename ComponentType >
bool HasComponent () const
 
template<typename ComponentType >
ComponentType & GetComponent () const
 
template<typename ComponentType >
bool TryGetComponent (ComponentType *&outComponent) const
 
template<typename ComponentType >
void RemoveComponent (const char *componentType)
 
virtual EntityHandle GetHandle () const
 
virtual SceneManagement::SceneGetScene () const
 
 operator bool () const
 
bool operator== (const Entity &other) const
 
bool operator!= (const Entity &other) const
 

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