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

Method Initialize

trinity/Tr2GrannyAnimation.cpp:319–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319bool Tr2GrannyAnimation::Initialize()
320{
321 Cleanup();
322
323 if( m_grannyRes )
324 {
325 m_grannyRes->RemoveNotifyTarget( this );
326 m_grannyRes.Unlock();
327 }
328
329 if( !m_geometryRes && !m_resPath.empty() )
330 {
331 BeResMan->GetResource( m_resPath.c_str(), "raw", BlueInterfaceIID<TriGrannyRes>(), (void**)&m_grannyRes );
332 }
333
334 if( m_grannyRes )
335 {
336 m_grannyRes->AddNotifyTarget( this );
337 }
338
339 m_boneBounds.clear();
340
341 return true;
342}
343
344void Tr2GrannyAnimation::LoadSecondaryResPath( const std::string& val )
345{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected