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

NewTerrariumGame() public static method

Creates a new game engine that can be used for a Terrarium game. Terrarium games aren't networked and can load any creatures.
public static NewTerrariumGame ( 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 NewTerrariumGame(string dataPath, string fileName, TerrariumLed[] leds)
        {
            if (_engine != null)
            {
                _engine.StopGame(false);
            }

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