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