MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / findOrCreate

Method findOrCreate

Engine/source/console/simPersistID.cpp:132–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130//-----------------------------------------------------------------------------
131
132SimPersistID* SimPersistID::findOrCreate( const Torque::UUID& uuid )
133{
134 AssertFatal( smLookupTable, "SimPersistID::findOrCreate - system has not been initialized" );
135
136 SimPersistID* pid = find( uuid );
137 if( !pid )
138 {
139 pid = new SimPersistID( uuid );
140
141 #ifdef DEBUG_SPEW
142 Platform::outputDebugString( "[SimPersistID] Created unresolved pid for UUID '%s'",
143 uuid.toString().c_str() );
144 #endif
145 }
146
147 return pid;
148}
149
150DefineNewEngineMethod(SimPersistID, getUUID, Torque::UUID, (), , "")
151{

Callers

nothing calls this directly

Calls 3

findFunction · 0.50
c_strMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected