public void LoadGame(String json) { game = null; gameData = null; gameData = JsonConvert.DeserializeObject <GLData>(json, _jsonSettings); gameData.time.minuteChange += ExternalMinuteChange; gameData.time.hourChange += ExternalHourChange; gameData.time.dayChange += ExternalDayChange; gameData.LoadEvents(); Actor.CurrentTime = gameData.time; game = new GLScene(gameData); game.sc = new SceneDTO(); game.sc.Description = ""; }
public void NewGame() { gameData = null; gameData = new GLData(); gameData.LoadDynamicData(); gameData.time.minuteChange += ExternalMinuteChange; gameData.time.hourChange += ExternalHourChange; gameData.time.dayChange += ExternalDayChange; gameData.LoadEvents(); game = new GLScene(gameData); game.sc = new SceneDTO(); game.sc.Description = ""; /*if (Debug == 0) * { * PreLoadAssembliesFromPath("C:/http/assembles/"); * } */ }