MCPcopy Create free account
hub / github.com/carbonengine/trinity / UnRegister

Method UnRegister

trinity/Eve/EveEntity.cpp:82–95  ·  view source on GitHub ↗

Unregisters the entity, but only if it is registered with the registry, else we just ignore this call

Source from the content-addressed store, hash-verified

80
81/// Unregisters the entity, but only if it is registered with the registry, else we just ignore this call
82void EveEntity::UnRegister( EveComponentRegistry* registry )
83{
84 if( m_registry != registry || registry == nullptr )
85 {
86 // can't unregister from a registry that is not the registry that we are registered to...
87 return;
88 }
89 // unregister the components tied to this entity
90 m_registry->UnRegisterAllComponents( this );
91
92 // unregister children
93 this->UnRegisterComponents();
94 m_registry->UnRegister( this );
95}
96
97void EveEntity::ReRegister()
98{

Callers 15

RegisterMethod · 0.95
OnListModifiedMethod · 0.45
UnRegisterComponentsMethod · 0.45
OnListModifiedMethod · 0.45
SetElementMethod · 0.45
UnRegisterComponentsMethod · 0.45
SetSourceObjectMethod · 0.45
SetDestObjectMethod · 0.45
SetStretchObjectMethod · 0.45
SetMoveObjectMethod · 0.45
UnRegisterComponentsMethod · 0.45

Calls 2

UnRegisterComponentsMethod · 0.45

Tested by

no test coverage detected