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

Method SetParentVariableStore

trinity/Tr2VariableStore.cpp:49–66  ·  view source on GitHub ↗

------------------------------------------------------------- Description: Assigns a parent to the variable store. Arguments: variableStore - New parent of the variable store -------------------------------------------------------------

Source from the content-addressed store, hash-verified

47// variableStore - New parent of the variable store
48// -------------------------------------------------------------
49void Tr2VariableStore::SetParentVariableStore( Tr2VariableStore* variableStore )
50{
51 if( this == &GlobalStore() )
52 {
53 return;
54 }
55
56#if TRINITYDEV
57 // Check if we don't assign a child as a parent
58 Tr2VariableStore* store = variableStore;
59 while( store )
60 {
61 CCP_ASSERT( store != this );
62 store = store->GetParentVariableStore();
63 }
64#endif
65 m_parentVariableStore = variableStore;
66}
67
68// -------------------------------------------------------------
69// Description:

Callers 1

Tr2IntSkinnedObjectMethod · 0.80

Calls 1

Tested by

no test coverage detected