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

Method UnRegisterComponents

trinity/Eve/Turret/EveTurretSet.cpp:258–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void EveTurretSet::UnRegisterComponents()
259{
260 auto registry = this->GetComponentRegistry();
261 if( registry )
262 {
263 if( EveEntityPtr entity = BlueCastPtr( m_firingEffect ) )
264 {
265 entity->UnRegister( registry );
266 }
267
268 auto ambientEffect = GetAmbientEffectOrGeneratedEffect();
269 if( EveEntityPtr entity = BlueCastPtr( ambientEffect ) )
270 {
271 entity->UnRegister( registry );
272 }
273 }
274}
275
276// --------------------------------------------------------------------------------
277// Description:

Callers

nothing calls this directly

Calls 2

GetComponentRegistryMethod · 0.80
UnRegisterMethod · 0.45

Tested by

no test coverage detected