public void DeckTests() { tryLogin(); var decks = new DeckDataItem[] { new DeckDataItem() { ID = 0, Name = "测试卡组0", Content = "AAAA", }, new DeckDataItem() { ID = 1, Name = "测试卡组1", Content = "BBBB", }, }; serverClient.SetUserDecks(decks); var getDecks = serverClient.GetUserDecks(); Assert.AreEqual(decks[0].Name, getDecks[0].Name); Assert.AreEqual(decks[0].ID, getDecks[0].ID); Assert.AreEqual(decks[1].Name, getDecks[1].Name); Assert.AreEqual(decks[1].ID, getDecks[1].ID); }
public static void CreateItemDeck() { DeckDataItem asset = (DeckDataItem)CreateAsset(countryFlag + "weapon/configs", typeof(DeckDataItem)); if (asset != null) { asset.DeckName = "custom deck name"; } }
public void AddUnitToDeck(DoV_Vehicle vehicle, DeckDataItem deck) { deck.VehiclesInDeck.Add(vehicle); }
public void DestroyDeck(List <DeckDataItem> DeckList, DeckDataItem deckDestroy) { DeckList.RemoveAll(e => e.DeckName == deckDestroy.DeckName); }
public void AddDeckPlayerDeck(DeckDataItem deck) { PlayerDecks.Add(deck); //Trigger add effect animations }
public Contact GetDeckCommander(DeckDataItem deck) { return(deck.DeckCommander); }