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

Method SetSourceObject

trinity/Eve/Renderable/Stretch/EveStretch3.cpp:219–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void EveStretch3::SetSourceObject( IEveSpaceObjectChild* sourceObject )
220{
221 auto registry = GetComponentRegistry();
222 if( EveEntityPtr entity = BlueCastPtr( m_sourceObject ) )
223 {
224 entity->UnRegister( registry );
225 }
226 m_sourceObject = sourceObject;
227 if( EveEntityPtr entity = BlueCastPtr( m_sourceObject ) )
228 {
229 entity->Register( registry );
230 }
231}
232
233IEveSpaceObjectChild* EveStretch3::GetDestObject()
234{

Callers

nothing calls this directly

Calls 2

UnRegisterMethod · 0.45
RegisterMethod · 0.45

Tested by

no test coverage detected