private void CleanInternal() { if (GameCtrl != null) { GameCtrl.Dispose(); // Should dispose RRs and controllers too } }
private void TryToyWorld() { if (GameCtrl != null) { GameCtrl.Dispose(); // Should dispose RRs and controllers too } GameSetup setup = new GameSetup( new FileStream(SaveFile, FileMode.Open, FileAccess.Read, FileShare.Read), new StreamReader(TilesetTable)); GameCtrl = GameFactory.GetThreadSafeGameController(setup); GameCtrl.Init(); }