Exemplo n.º 1
0
 public GameContext(ulong id)
 {
     Id        = id;
     jsonPath  = "guilds/" + Id + ".json";
     UsedDecks = new HashSet <Deck>();
     UsedDecks.Add(Decks.GetDeck("main"));
     Deck[] decks = UsedDecks.ToArray();
     Deck    = new GameDeck(decks);
     Players = new HashSet <IUser>();
     ReadFromJson();
 }
Exemplo n.º 2
0
 public void ResetDeck()
 {
     Deck[] decks = UsedDecks.ToArray();
     Deck = new GameDeck(decks);
 }