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

Method Initialize

trinity/Tr2GStateAnimation.cpp:196–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194
195
196bool Tr2GStateAnimation::Initialize()
197{
198 Cleanup();
199
200 if( m_gStateRes )
201 {
202 m_gStateRes->RemoveNotifyTarget( this );
203 m_gStateRes.Unlock();
204 }
205
206 BeResMan->GetResource( m_gStateResPath.c_str(), "raw", BlueInterfaceIID<Tr2GrannyStateRes>(), (void**)&m_gStateRes );
207
208 if( m_gStateRes )
209 {
210 m_gStateRes->AddNotifyTarget( this );
211 }
212
213 return true;
214}
215
216void Tr2GStateAnimation::ReleaseCachedData( BlueAsyncRes* p )
217{

Callers

nothing calls this directly

Calls 4

RemoveNotifyTargetMethod · 0.80
AddNotifyTargetMethod · 0.80
UnlockMethod · 0.45
GetResourceMethod · 0.45

Tested by

no test coverage detected