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

Method Initialize

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:244–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244bool EveSpaceObject2::Initialize()
245{
246 m_allowLodSelection = true;
247 if( m_mesh )
248 {
249 PrepareForAnimation();
250 }
251
252 for( auto& controller : m_controllers )
253 {
254 if( !controller->IsLinked() )
255 {
256 controller->Link( *GetRawRoot() );
257 }
258 }
259
260 for( uint32_t i = 0; i < m_decals.size(); i++ )
261 {
262 m_decals[i]->SetPriority( i );
263 }
264
265 if( !m_audioGeometry )
266 {
267 BeClasses->CreateInstanceFromName( "AudGeometry", BlueInterfaceIID<ITr2AudGeometry>(), reinterpret_cast<void**>( &m_audioGeometry.p ) );
268 }
269
270 return true;
271}
272
273void EveSpaceObject2::OnListModified( long event, ssize_t key, ssize_t key2, IRoot* value, const IList* list )
274{

Callers 1

Calls 4

sizeMethod · 0.80
IsLinkedMethod · 0.45
LinkMethod · 0.45
SetPriorityMethod · 0.45

Tested by

no test coverage detected