DEKI/ENGINE docs
manual api reference
Deki 0.40.1
Modular C++ engine with a visual editor, for 2D and 3D
Loading...
Searching...
No Matches
Deki::ObjectRefBase Struct Reference

The type-erased part of ObjectRef, which the engine uses. More...

#include <deki/reflection/ObjectRef.h>

Inherited by Deki::ObjectRef< T >.

Public Member Functions

bool IsResolved () const
bool IsValid () 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 componentTypeId = 0
uint32_t id = 0
Object * resolved = nullptr

Detailed Description

The type-erased part of ObjectRef, which the engine uses.

Member Function Documentation

◆ IsResolved()

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

◆ IsValid()

bool Deki::ObjectRefBase::IsValid ( ) 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

◆ componentTypeId

uint32_t Deki::ObjectRefBase::componentTypeId = 0

◆ id

uint32_t Deki::ObjectRefBase::id = 0

◆ resolved

Object* Deki::ObjectRefBase::resolved = nullptr

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