| 130 | //----------------------------------------------------------------------------- |
| 131 | |
| 132 | SimPersistID* 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 | |
| 150 | DefineNewEngineMethod(SimPersistID, getUUID, Torque::UUID, (), , "") |
| 151 | { |