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

Method Initialize

trinity/Particle/Tr2StaticEmitter.cpp:35–48  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: Implements IInitialize interface. Starts loading particle geometry file. Return Value: true always --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

33// true always
34// --------------------------------------------------------------------------------------
35bool Tr2StaticEmitter::Initialize()
36{
37 if( !m_geometryResourcePath.empty() )
38 {
39 BeResMan->GetResource( m_geometryResourcePath,
40 "raw",
41 m_geometryResource );
42 }
43 if( m_particleSystem && m_isThreadSafe )
44 {
45 m_particleSystem->SetThreadSafeFlag();
46 }
47 return true;
48}
49
50// --------------------------------------------------------------------------------------
51// Description:

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.80
GetResourceMethod · 0.45
SetThreadSafeFlagMethod · 0.45

Tested by

no test coverage detected