예제 #1
0
 public void AddDecks(params string[] decks)
 {
     foreach (Deck deck in Decks.GetDecks(decks))
     {
         UsedDecks.Add(deck);
     }
 }
예제 #2
0
 public void RemoveDecks(params string[] decks)
 {
     foreach (Deck deck in Decks.GetDecks(decks))
     {
         UsedDecks.Remove(deck);
     }
 }
예제 #3
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();
 }