public bool Equals(EffectBase other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(other.Id == Id); }
public EffectBase(short id, EffectBase effect) { this.m_id = id; this.m_template = Singleton <EffectManager> .Instance.GetTemplate(id); this.m_targets = effect.Targets; this.m_targetMask = effect.TargetMask; this.m_delay = effect.Delay; this.m_duration = effect.Duration; this.m_group = effect.Group; this.m_random = effect.Random; this.m_modificator = effect.Modificator; this.m_trigger = effect.Trigger; this.m_hidden = effect.Hidden; this.m_zoneSize = effect.m_zoneSize; this.m_zoneMinSize = effect.m_zoneMinSize; this.m_zoneShape = effect.ZoneShape; }
public EffectBase(EffectBase effect) { m_id = effect.Id; m_template = EffectManager.Instance.GetTemplate(effect.Id); m_targets = effect.Targets; m_targetMask = effect.TargetMask; m_delay = effect.Delay; m_duration = effect.Duration; m_group = effect.Group; m_random = effect.Random; m_modificator = effect.Modificator; m_trigger = effect.Trigger; m_triggers = effect.Triggers; m_hidden = effect.Hidden; m_zoneSize = effect.m_zoneSize; m_zoneMinSize = effect.m_zoneMinSize; m_zoneShape = effect.ZoneShape; m_zoneMaxEfficiency = effect.ZoneMaxEfficiency; m_zoneEfficiencyPercent = effect.ZoneEfficiencyPercent; ParseTargets(); }
public EffectMinMax(short id, short valuemin, short valuemax, EffectBase effect) : base(id, effect) { m_minvalue = valuemin; m_maxvalue = valuemax; }
public EffectDate(short id, short year, short month, short day, short hour, short minute, EffectBase effect) : base(id, effect) { this.m_year = year; this.m_month = month; this.m_day = day; this.m_hour = hour; this.m_minute = minute; }
public EffectDice(short id, short value, short dicenum, short diceface, EffectBase effect) : base(id, value, effect) { m_dicenum = dicenum; m_diceface = diceface; }
public EffectMount(short id, int mountid, double date, int modelid, EffectBase effect) : base(id, effect) { this.m_mountId = mountid; this.m_date = date; this.m_modelId = (short)modelid; }
public EffectCreature(short id, short monsterfamily, EffectBase effectBase) : base(id, effectBase) { m_monsterfamily = monsterfamily; }
public EffectString(short id, string value, EffectBase effect) : base(id, effect) { m_value = value; }
public EffectLadder(short id, short monsterfamily, short monstercount, EffectBase effect) : base(id, monsterfamily, effect) { m_monsterCount = monstercount; }
public bool Equals(EffectBase other) { return(!object.ReferenceEquals(null, other) && (object.ReferenceEquals(this, other) || other.Id == this.Id)); }
public EffectDuration(short id, short days, short hours, short minutes, EffectBase effect) : base(id, effect) { this.m_days = days; this.m_hours = hours; this.m_minutes = minutes; }
public EffectInteger(short id, short value, EffectBase effect) : base(id, effect) { this.m_value = value; }
public EffectBase(short id, EffectBase effect) : this(effect) { Id = id; }