using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GamecraftModdingAPI.Utility
{
///
/// Utility to get the state of the current Gamecraft game
///
public static class GameState
{
private static GameStateEngine gameEngine = new GameStateEngine();
///
/// Is the game in edit mode?
///
/// Whether the game is in build mode
public static bool IsBuildMode()
{
return gameEngine.IsBuildMode();
}
///
/// Is the game in simulation mode?
///
/// Whether the game is in simulation mode
public static bool IsSimulationMode()
{
return gameEngine.IsSimulationMode();
}
///
/// Is a game loaded?
///
/// Whether Gamecraft has a game open (false = Main Menu)
public static bool IsInGame()
{
return gameEngine.IsInGame;
}
public static void Init()
{
GameEngineManager.AddGameEngine(gameEngine);
}
}
}