Example #1
0
 public Game(IGameDataProvider gameDataProvider)
 {
     GameDataProvider            = gameDataProvider;
     Collection                  = new Collection();
     Account                     = new Account();
     Arena                       = new Arena();
     TavernBrawl                 = new TavernBrawl();
     GameStateEvents             = new GameStateEvents();
     GameStateEvents.BlockStart += OnBlockStart;
 }
Example #2
0
 internal void Reset()
 {
     Log.Debug("Unloading and resettings everything");
     Collection.Unload();
     Account.Unload();
     Arena.Unload();
     TavernBrawl.Unload();
     IsRunning   = false;
     CurrentMode = Mode.INVALID;
     CurrentGame = null;
     Build       = null;
 }