| 262 | //----------------------------------------------------------------------------- |
| 263 | |
| 264 | void SFXState::_onDeactivate() |
| 265 | { |
| 266 | #ifdef DEBUG_SPEW |
| 267 | Platform::outputDebugString( "[SFXState] Deactivating '%s'", getName() ); |
| 268 | #endif |
| 269 | |
| 270 | onDeactivate_callback(); |
| 271 | |
| 272 | // Remove the state from the list. |
| 273 | |
| 274 | for( U32 i = 0; i < sgActiveStates.size(); ++ i ) |
| 275 | if( sgActiveStates[ i ] == this ) |
| 276 | { |
| 277 | sgActiveStates.erase_fast( i ); |
| 278 | break; |
| 279 | } |
| 280 | |
| 281 | // Deactivate included states. |
| 282 | |
| 283 | for( U32 i = 0; i < MaxIncludedStates; ++ i ) |
| 284 | if( mIncludedStates[ i ] ) |
| 285 | mIncludedStates[ i ]->deactivate(); |
| 286 | |
| 287 | // Enable excluded states. |
| 288 | |
| 289 | for( U32 i = 0; i < MaxExcludedStates; ++ i ) |
| 290 | if( mExcludedStates[ i ] ) |
| 291 | mExcludedStates[ i ]->enable(); |
| 292 | } |
| 293 | |
| 294 | //============================================================================= |
| 295 | // Console Methods. |
nothing calls this directly
no test coverage detected