public static NewEcosystemGame ( 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 NewEcosystemGame(string dataPath, string fileName, TerrariumLed[] leds)
{
if (_engine != null)
{
_engine.StopGame(false);
}
_engine = new GameEngine(dataPath, true, false, dataPath + fileName, true, leds, true);
// Start the network after Current is set on GameEngine because the network
// needs a current gameengine to receive teleportations
if (_engine._usingNetwork)
{
_engine._networkEngine.InitializeNetwork("EcoSystem", leds);
}
_engine._ecosystemMode = true;
}