Exemplo n.º 1
0
 public ModuleData(string Name, string Type)
 {
     //TODO - Keep ModuleData constructor up to date
     this.Name = Name;
     this.Type = CardLoading.GetModuleTypeFromString(Type);
     mLifetime = -1;
 }
Exemplo n.º 2
0
        public static CardList ProduceDeck(CardPool CP, DeckSpec DS)
        {
            CardList resultList = new CardList();

            foreach (KeyValuePair <string, int> cardEntry in DS.Cards)
            {
                for (int i = 0; i < cardEntry.Value; i++)
                {
                    resultList.AddCard(CardLoading.ProduceCard(cardEntry.Key, CP));
                }
            }
            return(resultList);
        }
Exemplo n.º 3
0
 public UnitCardData(string Name, string Type, string Attack, string Health, string Victory, string CanBeShort, string CanBeLong)
 {
     this.mName = Name;
     this.mType = CardLoading.GetCardTypeFromTypeString(Type);
     int.TryParse(Attack, out this.Attack);
     int.TryParse(Health, out this.Health);
     int.TryParse(Victory, out this.Victory);
     if (CanBeShort == "true")
     {
         this.CanBeShort = true;
     }
     if (CanBeLong == "true")
     {
         this.CanBeLong = true;
     }
 }
Exemplo n.º 4
0
 public EffectCardData(string Name, string Type, EffectData ED)
 {
     this.mName = Name;
     this.mType = CardLoading.GetCardTypeFromTypeString(Type);
     EData      = ED;
 }