public ModuleData(string Name, string Type) { //TODO - Keep ModuleData constructor up to date this.Name = Name; this.Type = CardLoading.GetModuleTypeFromString(Type); mLifetime = -1; }
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); }
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; } }
public EffectCardData(string Name, string Type, EffectData ED) { this.mName = Name; this.mType = CardLoading.GetCardTypeFromTypeString(Type); EData = ED; }