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);
        }
Пример #2
0
    public static void CreateItemDeck()
    {
        DeckDataItem asset = (DeckDataItem)CreateAsset(countryFlag + "weapon/configs", typeof(DeckDataItem));

        if (asset != null)
        {
            asset.DeckName = "custom deck name";
        }
    }
Пример #3
0
 public void AddUnitToDeck(DoV_Vehicle vehicle, DeckDataItem deck)
 {
     deck.VehiclesInDeck.Add(vehicle);
 }
Пример #4
0
 public void DestroyDeck(List <DeckDataItem> DeckList, DeckDataItem deckDestroy)
 {
     DeckList.RemoveAll(e => e.DeckName == deckDestroy.DeckName);
 }
Пример #5
0
 public void AddDeckPlayerDeck(DeckDataItem deck)
 {
     PlayerDecks.Add(deck);
     //Trigger add effect animations
 }
Пример #6
0
 public Contact GetDeckCommander(DeckDataItem deck)
 {
     return(deck.DeckCommander);
 }