Chicane

Object

Header
Includes/Chicane/Runtime/Scene/Object.hpp
Namespace
Chicane::Object

Construtores

NomeDescrição
Object()

Destruidores

NomeDescrição
~Object()

Funções Substitutivas

AccessoReturnoModificadorNomeDescrição
protected
bool
beginRefresh()
protected
void
endRefresh()
protected
void
onRefresh()
protected
void
onAttributeChange(
const  String& inName, 
const  String& inValue
)

Funções Virtuais

AccessoReturnoModificadorNomeDescrição
protected
void
inline
onLoad()
protected
void
inline
onUnload()
protected
void
inline
onTick(
float inDeltaTime
)
protected
void
inline
onPropertyEdited(
const  String& inName
)
protected
void
inline
onAttachment(
Object* inParent
)
protected
void
inline
createDefaultComponents()

Funções

AccessoReturnoModificadorNomeDescrição
public
bool
const
canTick()
public
const  String&
const
getId()
public
void
setId(
const  String& inId
)
public
const
getTypeName()
public
bool
const
isTransient()
public
bool
const
isNative()
public
const
getOrigin()
public
void
setOrigin(
ObjectOrigin inOrigin
)
public
bool
const
isAttached()
public
bool
const
isDescendantOf(
const  Object* inAncestor
)
public
const
getParent()
public
const  std::vector<Object*>&
const
getAttachments()
public
void
attachTo(
Object* inParent
)
public
void
detach()
public
const  Vec3&
const
getTranslation()
public
void
setTranslation(
const  Vec3& inValue
)
public
void
setRelativeTranslation(
const  Vec3& inValue
)
public
void
lookAt(
const  Vec3& inTarget
)
public
const  Vec3&
const
getCenter()
public
const  Vec3&
const
getTop()
public
const  Vec3&
const
getBottom()
public
const  Vec3&
const
getSize()
public
void
setCanTick(
bool inCanTick
)
public
void
tick(
float inDeltaTime
)
public
void
setIsTransient(
bool inValue
)
public
void
notifyPropertyEdited(
const  String& inName
)
public
bool
applySerializedField(
const  String& inName, 
const  String& inValue
)
public
void
inline
setRelativeTranslation(
Args... inArgs
)
protected
void
ensureDefaultComponents()
protected
T*
createDefaultComponent(
const  String& inId
)
protected
void
bindAttributes()
protected
void
applyDefaultBounds()
protected
T*
inline, const
getScene()
private
void
setScene(
Scene* inScene
)
private
void
markSpatialDirty()
private
bool
consumeSpatialDirty()
private
void
addAttachment(
Object* inObject
)
private
void
removeAttachment(
Object* inObject
)
private
bool
const
isAncestorOf(
const  Object* inObject
)

Membros

AccessoTipoModificadorNomeDescrição
private
friend
Scene
private
m_scene
private
std::atomic<bool>
m_bIsSpatialDirty
public
const  char*
static, constexpr
ID_ATTRIBUTE_NAME
public
const  char*
static, constexpr
RELATIVE_TRANSLATION_ATTRIBUTE_NAME
public
const  char*
static, constexpr
RELATIVE_ROTATION_ATTRIBUTE_NAME
public
const  char*
static, constexpr
RELATIVE_SCALE_ATTRIBUTE_NAME
public
const  char*
static, constexpr
ABSOLUTE_TRANSLATION_ATTRIBUTE_NAME
public
const  char*
static, constexpr
ABSOLUTE_ROTATION_ATTRIBUTE_NAME
public
const  char*
static, constexpr
ABSOLUTE_SCALE_ATTRIBUTE_NAME
public
const  float
static, constexpr
DEFAULT_BOUNDS_SIZE
protected
bool
m_bCanTick
protected
bool
m_bCanCollide
protected
bool
m_bHasDefaultComponents
protected
m_origin
protected
m_id
protected
m_parent
protected
m_parentSubscription
protected
std::vector<Object*>
m_attachments