public static RuleDto NewRule(bool isEnabled, TargetRule rule) { if (rule is TargetPercentage) { return(New(isEnabled, rule as TargetPercentage)); } if (rule is TargetSpecificUsers) { return(New(isEnabled, rule as TargetSpecificUsers)); } return(null); }
public override int GetHashCode() { int hash = Level.GetHashCode(); if (Description != null) { hash ^= Description.GetHashCode(); } if (Name != null) { hash ^= Name.GetHashCode(); } if (Icon != null) { hash ^= Icon.GetHashCode(); } hash ^= IsHidden.GetHashCode(); hash ^= IsPassive.GetHashCode(); hash ^= Cooldown.GetHashCode(); hash ^= CastingTime.GetHashCode(); hash ^= ChannelingTime.GetHashCode(); hash ^= ForceCost.GetHashCode(); hash ^= EnergyCost.GetHashCode(); hash ^= ApCost.GetHashCode(); hash ^= ApType.GetHashCode(); hash ^= MinRange.GetHashCode(); hash ^= MaxRange.GetHashCode(); hash ^= GCD.GetHashCode(); hash ^= GcdOverride.GetHashCode(); if (AbilityTokens != null) { hash ^= AbilityTokens.GetHashCode(); } hash ^= TargetArc.GetHashCode(); hash ^= TargetArcOffset.GetHashCode(); hash ^= TargetRule.GetHashCode(); hash ^= LineOfSightCheck.GetHashCode(); hash ^= Pushback.GetHashCode(); hash ^= IgnoreAlacrity.GetHashCode(); return(hash); }
public Rule(TargetRule r, bool i, float v) { type = r; inverse = i; value = v; }
public SummonTokens(TargetRule t, params CardId[] cards) : base(t) { this.cards = cards; }
protected SubEffect(TargetRule t) { targetRule = t; }
public Draw(TargetRule t, int cards) : base(t) { cardCount = cards; }
public Shuffle(TargetRule t, bool optional) : base(t) { this.optional = optional; }
public Ping(TargetRule t, int damage) : base(t) { this.damage = damage; }
public MoveTo(TargetRule t, LocationPile pile) : base(t) { this.pile = pile; }
public ModifyUntil(TargetRule t, Modifiable attribute, Clojurex filter, int value) : base(t) { this.attribute = attribute; this.filter = filter; this.value = value; }
public Mill(TargetRule t, int cards) : base(t) { this.cards = cards; }
public GainLife(TargetRule t, int n) : base(t) { life = n; }
public GainBonusMana(TargetRule t, params Colour[] colours) : base(t) { this.colours = colours; }
public Exhaust(TargetRule t) : base(t) { }
public CounterSpell(TargetRule t) : base(t) { }