Entity::ID Class Reference

#include <Entity.h>

Description

Uniquely identifies an Entity.

Functions

uint64_t Value () const
 
EntityIdentify () const
 
const std::string & String () const
 
template<typename T >
T * Query ()
 
template<typename T >
T * IdentifyAs () const
 

Member Function Documentation

uint64_t Value ( ) const
inline

Returns a value that unique ientifies the Entity.

Entity* Identify ( ) const

Returns the entity referred to by this ID.

const std::string& String ( ) const

Returns the ID in string form.

T* Query ( )
inline

Convenience function for .Identify()->QueryComponent<T>()

Returns nullptr if there is no component or if this ID does not point to a valid

T* IdentifyAs ( ) const
inline

Same as Find, but casts it to the type you care about.

If the given type doesnt actually inherit from Entity, nullptr is returned.


The documentation for this class was generated from the following file:
  • /home/jc/git/Dynacoe/DynacoeSrc/includes/Dynacoe/Entity.h