Terrarium.Game.GameEngine.LoadTerrariumGame C# (CSharp) Method

LoadTerrariumGame() public static method

Creates a game engine that loads an existing Terrarium game save state.
public static LoadTerrariumGame ( string dataPath, string fileName, TerrariumLed leds ) : void
dataPath string The path where the Terrarium game will be stored.
fileName string The path to the serialized Terrarium.
leds TerrariumLed A series of leds to be used for state reporting.
return void
        public static void LoadTerrariumGame(string dataPath, string fileName, TerrariumLed[] leds)
        {
            if (_engine != null)
            {
                _engine.StopGame(false);
            }

            _engine = new GameEngine(dataPath, false, true, fileName, false, leds, true);
        }