/// <summary> /// Called by framework. Do not call directly. /// </summary> public static void Destroy() { if (_instance != null) { if (Global.gEnv != null && Env.Game != null && Env.Game.GetIGameFramework() != null) { Env.Game.GetIGameFramework().GetILevelSystem().RemoveListener(_instance); } _instance.Dispose(); _instance = null; } }
} ///< Indicates whether CryEngine is run in Editor mode. /// <summary> /// Called by framework. Do not call directly. /// </summary> public static void Initialize() { if (_isInitialized) { return; } _isInitialized = true; SystemHandler.Instantiate(); CryEngine.Input.Instanciate(); Screen.Instanciate(); CryEngine.Mouse.Instantiate(); SceneManager.Instantiate(); GameFramework.Instantiate(); LevelSystem.Instantiate(); }
/// <summary> /// Called by framework. Do not call directly. /// </summary> public static void Shutdown() { if (!_isInitialized) { return; } _isInitialized = false; //EntityFramework.Destroy (); GameFramework.Destroy(); SceneManager.Destroy(); LevelSystem.Destroy(); CryEngine.Mouse.Destroy(); Screen.Destroy(); CryEngine.Input.Destroy(); SystemHandler.Destroy(); }
/// <summary> /// Called by framework. Do not call directly. /// </summary> public static void Instantiate() { _instance = new LevelSystem(); Env.Game.GetIGameFramework().GetILevelSystem().AddListener(_instance); }