Ejemplo n.º 1
0
 public bool Equals(EffectBase other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(other.Id == Id);
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 4
0
 public EffectMinMax(short id, short valuemin, short valuemax, EffectBase effect)
     : base(id, effect)
 {
     m_minvalue = valuemin;
     m_maxvalue = valuemax;
 }
Ejemplo n.º 5
0
 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;
 }
Ejemplo n.º 6
0
 public EffectDice(short id, short value, short dicenum, short diceface, EffectBase effect)
     : base(id, value, effect)
 {
     m_dicenum  = dicenum;
     m_diceface = diceface;
 }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 8
0
 public EffectCreature(short id, short monsterfamily, EffectBase effectBase)
     : base(id, effectBase)
 {
     m_monsterfamily = monsterfamily;
 }
Ejemplo n.º 9
0
 public EffectString(short id, string value, EffectBase effect)
     : base(id, effect)
 {
     m_value = value;
 }
Ejemplo n.º 10
0
 public EffectLadder(short id, short monsterfamily, short monstercount, EffectBase effect)
     : base(id, monsterfamily, effect)
 {
     m_monsterCount = monstercount;
 }
Ejemplo n.º 11
0
 public bool Equals(EffectBase other)
 {
     return(!object.ReferenceEquals(null, other) && (object.ReferenceEquals(this, other) || other.Id == this.Id));
 }
Ejemplo n.º 12
0
 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;
 }
Ejemplo n.º 13
0
 public EffectInteger(short id, short value, EffectBase effect) : base(id, effect)
 {
     this.m_value = value;
 }
Ejemplo n.º 14
0
 public EffectBase(short id, EffectBase effect)
     : this(effect)
 {
     Id = id;
 }