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

Method SetGrannyResource

trinity/Tr2GrannyPrimitiveSet.cpp:214–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void Tr2GrannyPrimitiveSet::SetGrannyResource()
215{
216 if( m_grannyRes )
217 {
218 m_grannyRes->RemoveNotifyTarget( this );
219 m_grannyRes.Unlock();
220 }
221
222 if( !m_grannyResPath.empty() )
223 {
224 BeResMan->GetResource( m_grannyResPath.c_str(), "raw", m_grannyRes );
225 }
226 else
227 {
228 ReleaseCachedData( m_grannyRes );
229 }
230
231 if( m_grannyRes )
232 {
233 m_grannyRes->AddNotifyTarget( this );
234 }
235}
236
237void Tr2GrannyPrimitiveSet::CreatePrimitive()
238{

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