triGameMode — returns the current game mode as a number.
| 222 | } |
| 223 | |
| 224 | /// triGameMode — returns the current game mode as a number. |
| 225 | GameValue TriGameMode(const GameState* state) |
| 226 | { |
| 227 | if (!GWorld) |
| 228 | return GameValue(float(-1)); |
| 229 | return GameValue(float(static_cast<int>(GWorld->GetMode()))); |
| 230 | } |
| 231 | |
| 232 | /// triStartRandomCutscene — from a running mission, trigger the mission->menu |