Example #1
0
 private void CleanInternal()
 {
     if (GameCtrl != null)
     {
         GameCtrl.Dispose(); // Should dispose RRs and controllers too
     }
 }
Example #2
0
        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();
        }