DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
Deki::ObjectRefBase Struct Reference

#include <deki/reflection/ObjectRef.h>

Inherited by Deki::ObjectRef< T >.

Public Member Functions

bool IsValid () const
bool IsResolved () const
void Set (Object *obj)
 Points the reference at obj at runtime. nullptr clears it.
void Set (Object *obj, uint32_t typeId)
 Points the reference at the component of type typeId on obj.

Public Attributes

uint32_t id = 0
uint32_t componentTypeId = 0
Object * resolved = nullptr

Member Function Documentation

◆ IsValid()

bool Deki::ObjectRefBase::IsValid ( ) const
inline

◆ IsResolved()

bool Deki::ObjectRefBase::IsResolved ( ) const
inline

◆ Set() [1/2]

void Deki::ObjectRefBase::Set ( Object * obj)
inline

Points the reference at obj at runtime. nullptr clears it.

◆ Set() [2/2]

void Deki::ObjectRefBase::Set ( Object * obj,
uint32_t typeId )
inline

Points the reference at the component of type typeId on obj.

nullptr clears it.

Member Data Documentation

◆ id

uint32_t Deki::ObjectRefBase::id = 0

◆ componentTypeId

uint32_t Deki::ObjectRefBase::componentTypeId = 0

◆ resolved

Object* Deki::ObjectRefBase::resolved = nullptr

The documentation for this struct was generated from the following file: