MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / preload

Method preload

Engine/source/sfx/sfxState.cpp:191–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189//-----------------------------------------------------------------------------
190
191bool SFXState::preload( bool server, String& errorStr )
192{
193 if( !Parent::preload( server, errorStr ) )
194 return false;
195
196 if( !server )
197 {
198 for( U32 i = 0; i < MaxIncludedStates; ++ i )
199 if( !sfxResolve( &mIncludedStates[ i ], errorStr ) )
200 return false;
201
202 for( U32 i = 0; i < MaxExcludedStates; ++ i )
203 if( !sfxResolve( &mExcludedStates[ i ], errorStr ) )
204 return false;
205 }
206
207 return true;
208}
209
210//-----------------------------------------------------------------------------
211

Callers

nothing calls this directly

Calls 1

sfxResolveFunction · 0.85

Tested by

no test coverage detected