public static List <Card> GetOfRaceM(List <Card> list, TAG_RACE race) { var r = new List <Card>(); foreach (var card in list) { if (card.GetEntity().GetRace() == race) { r.Add(card); } } return(r); }
public static bool HasRaceName(TAG_RACE tag) { return(s_raceNames.ContainsKey(tag)); }
public static string GetRaceNameKey(TAG_RACE tag) { string str = null; return(!s_raceNames.TryGetValue(tag, out str) ? null : str); }
public static string GetRaceName(TAG_RACE tag) { string str = null; return(!s_raceNames.TryGetValue(tag, out str) ? "UNKNOWN" : Get(str)); }
public Card(Card c) { //this.entityID = c.entityID; this.rarity = c.rarity; this.AdjacentBuff = c.AdjacentBuff; this.Attack = c.Attack; this.Aura = c.Aura; this.battlecry = c.battlecry; //this.CardID = c.CardID; this.Charge = c.Charge; this.choice = c.choice; this.Combo = c.Combo; this.cost = c.cost; this.deathrattle = c.deathrattle; //this.description = c.description; this.Durability = c.Durability; this.Elite = c.Elite; this.Enrage = c.Enrage; this.Freeze = c.Freeze; this.GrantCharge = c.GrantCharge; this.HealTarget = c.HealTarget; this.Health = c.Health; this.immuneToSpellpowerg = c.immuneToSpellpowerg; this.immuneWhileAttacking = c.immuneWhileAttacking; this.Morph = c.Morph; this.name = c.name; this.needEmptyPlacesForPlaying = c.needEmptyPlacesForPlaying; this.needMinionsCapIfAvailable = c.needMinionsCapIfAvailable; this.needMinNumberOfEnemy = c.needMinNumberOfEnemy; this.needMinTotalMinions = c.needMinTotalMinions; this.needRaceForPlaying = c.needRaceForPlaying; this.needWithMaxAttackValueOf = c.needWithMaxAttackValueOf; this.needWithMinAttackValueOf = c.needWithMinAttackValueOf; this.oneTurnEffect = c.oneTurnEffect; this.playrequires = new List<ErrorType2>(c.playrequires); this.poisionous = c.poisionous; this.race = c.race; this.Recall = c.Recall; this.recallValue = c.recallValue; this.Secret = c.Secret; this.Shield = c.Shield; this.Silence = c.Silence; this.Spellpower = c.Spellpower; this.spellpowervalue = c.spellpowervalue; this.Stealth = c.Stealth; this.tank = c.tank; this.target = c.target; //this.targettext = c.targettext; this.type = c.type; this.windfury = c.windfury; this.cardIDenum = c.cardIDenum; this.sim_card = c.sim_card; this.isToken = c.isToken; }
public static bool HasRaceName(TAG_RACE tag) { object[] objArray1 = new object[] { tag }; return(MonoClass.smethod_14 <bool>(TritonHs.MainAssemblyPath, "", "GameStrings", "HasRaceName", objArray1)); }
public static string GetRaceNameKey(TAG_RACE tag) { object[] objArray1 = new object[] { tag }; return(MonoClass.smethod_12(TritonHs.MainAssemblyPath, "", "GameStrings", "GetRaceNameKey", objArray1)); }