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

Method LoadGrannyRes

trinity/Tr2GStateAnimation.cpp:89–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88
89void Tr2GStateAnimation::LoadGrannyRes()
90{
91
92 if( m_grannyRes )
93 {
94 m_grannyRes->RemoveNotifyTarget( this );
95 m_grannyRes.Unlock();
96 }
97
98 if( !m_geometryRes && !m_resPath.empty() )
99 {
100 BeResMan->GetResource( m_resPath.c_str(), "raw", BlueInterfaceIID<TriGrannyRes>(), (void**)&m_grannyRes );
101 }
102
103 if( m_grannyRes )
104 {
105 m_grannyRes->AddNotifyTarget( this );
106 }
107
108 m_boneBounds.clear();
109}
110
111
112bool Tr2GStateAnimation::IsFullyLoaded()

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