Class component_handle_base

Class Documentation

class legion::core::ecs::component_handle_base

Base class of legion::core::ecs::component_handle. legion::core::ecs::component_handle.

Public Functions

inline component_handle_base()
inline component_handle_base(const component_handle_base &other)
inline component_handle_base(component_handle_base &&other)
inline component_handle_base(id_type entityId, id_type typeId)
inline component_handle_base &operator=(const component_handle_base &other)
inline component_handle_base &operator=(component_handle_base &&other)
template<typename component_type>
inline component_handle<component_type> cast()
template<typename component_type>
inline const component_handle<component_type> cast() const
void serialize(cereal::JSONOutputArchive &oarchive)
void serialize(cereal::BinaryOutputArchive &oarchive)
void serialize(cereal::JSONInputArchive &oarchive)
void serialize(cereal::BinaryInputArchive &oarchive)
virtual bool valid () const LEGION_IMPURE_RETURN(entity.valid())

Checks if handle still points to a valid component.

inline operator bool() const

Checks if handle still points to a valid component.

Public Members

entity_handle entity

Protected Attributes

id_type m_typeId

Protected Static Attributes

static EcsRegistry *m_registry = nullptr
static events::EventBus *m_eventBus = nullptr

Friends

friend class legion::core::Engine