Пример #1
0
    public void UpdateCircle(CircleUpdate update)
    {
        if (update.NewCard != null)
        {
            Card newCard = CardCache.GetCardById(update.NewCard.CardId);
            SetCard(newCard);
        }

        if (update.RightColor != null)
        {
            Circle.RightColor = update.RightColor.Value;
        }
        if (update.LeftColor != null)
        {
            Circle.LeftColor = update.LeftColor.Value;
        }
        if (update.CardPowerChange != null)
        {
            CardState.Power = (byte)((int)CardState.Power + (int)update.CardPowerChange);
        }

        RefreshTextComponents();
        RefreshColors();
        RefreshBackgroundSprite();
    }
Пример #2
0
 static DataCache()
 {
     playerCache = new PlayerCache();
         cardCache = new CardCache();
         clothCache = new ClothCache();
         deploymentCache = new DeploymentCache();
 }
Пример #3
0
 public void DrawCards(string[] cardIds)
 {
     for (int i = 0; i < cardIds.Length; i++)
     {
         SpawnCard(CardCache.GetCardById(cardIds[i]));
     }
 }