Example #1
0
 public void Merge(SkillDamageData other)
 {
     if (null != other)
     {
         Merge(Multiples, other.Multiples);
         Merge(Damages, other.Damages);
         Merge(Vampires, other.Vampires);
         if (other.AddSc > 0)
         {
             AddSc = other.AddSc;
         }
         if (other.AddUc > 0)
         {
             AddUc = other.AddUc;
         }
         if (other.IsCritical)
         {
             IsCritical = other.IsCritical;
         }
         if (other.IsBlock)
         {
             IsBlock = other.IsBlock;
         }
         if (other.IsFinal)
         {
             IsFinal = other.IsFinal;
         }
         if (other.ComboSource > 0)
         {
             ComboSource = other.ComboSource;
         }
     }
 }
 static public int Init(IntPtr l)
 {
     try {
         TableConfig.SkillDamageData self = (TableConfig.SkillDamageData)checkSelf(l);
         self.Init();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int get_ComboSource(IntPtr l)
 {
     try {
         TableConfig.SkillDamageData self = (TableConfig.SkillDamageData)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.ComboSource);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int constructor(IntPtr l)
 {
     try {
         TableConfig.SkillDamageData o;
         o = new TableConfig.SkillDamageData();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int CopyFrom(IntPtr l)
 {
     try {
         TableConfig.SkillDamageData self = (TableConfig.SkillDamageData)checkSelf(l);
         TableConfig.SkillDamageData a1;
         checkType(l, 2, out a1);
         self.CopyFrom(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_ComboSource(IntPtr l)
 {
     try {
         TableConfig.SkillDamageData self = (TableConfig.SkillDamageData)checkSelf(l);
         System.Int32 v;
         checkType(l, 2, out v);
         self.ComboSource = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_IsFinal(IntPtr l)
 {
     try {
         TableConfig.SkillDamageData self = (TableConfig.SkillDamageData)checkSelf(l);
         System.Boolean v;
         checkType(l, 2, out v);
         self.IsFinal = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_Vampires(IntPtr l)
 {
     try {
         TableConfig.SkillDamageData self = (TableConfig.SkillDamageData)checkSelf(l);
         System.Collections.Generic.List <System.Int32> v;
         checkType(l, 2, out v);
         self.Vampires = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int GetVampire(IntPtr l)
 {
     try {
         TableConfig.SkillDamageData self = (TableConfig.SkillDamageData)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         var ret = self.GetVampire(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #10
0
 public void CopyFrom(SkillDamageData other)
 {
     Multiples.Clear();
     Multiples.AddRange(other.Multiples);
     Damages.Clear();
     Damages.AddRange(other.Damages);
     Vampires.Clear();
     Vampires.AddRange(other.Vampires);
     AddSc       = other.AddSc;
     AddUc       = other.AddUc;
     IsCritical  = other.IsCritical;
     IsBlock     = other.IsBlock;
     IsFinal     = other.IsFinal;
     ComboSource = other.ComboSource;
 }
Example #11
0
 public void CopyFrom(SkillDamageData other)
 {
     if (null != other) {
         Damage = other.Damage;
         MpRecover = other.MpRecover;
         HpRecover = other.HpRecover;
         AddAttack = other.AddAttack;
         AddDefence = other.AddDefence;
         AddRps = other.AddRps;
         AddCritical = other.AddCritical;
         AddCriticalPow = other.AddCriticalPow;
         AddSpeed = other.AddSpeed;
         AddShield = other.AddShield;
         IsFinal = other.IsFinal;
     }
 }
Example #12
0
 public void CopyFrom(SkillDamageData other)
 {
     if (null != other)
     {
         Damage         = other.Damage;
         MpRecover      = other.MpRecover;
         HpRecover      = other.HpRecover;
         AddAttack      = other.AddAttack;
         AddDefence     = other.AddDefence;
         AddRps         = other.AddRps;
         AddCritical    = other.AddCritical;
         AddCriticalPow = other.AddCriticalPow;
         AddSpeed       = other.AddSpeed;
         AddShield      = other.AddShield;
         IsFinal        = other.IsFinal;
     }
 }
Example #13
0
 public void Merge(SkillDamageData other)
 {
     if (null != other) {
         Damage += other.Damage;
         MpRecover += other.MpRecover;
         HpRecover += other.HpRecover;
         AddAttack += other.AddAttack;
         AddDefence += other.AddDefence;
         AddRps += other.AddRps;
         AddCritical += other.AddCritical;
         AddCriticalPow += other.AddCriticalPow;
         AddSpeed += other.AddSpeed;
         AddShield += other.AddShield;
         if (other.IsFinal)
             IsFinal = other.IsFinal;
     }
 }
Example #14
0
 public void Merge(SkillDamageData other)
 {
     if (null != other)
     {
         Damage         += other.Damage;
         MpRecover      += other.MpRecover;
         HpRecover      += other.HpRecover;
         AddAttack      += other.AddAttack;
         AddDefence     += other.AddDefence;
         AddRps         += other.AddRps;
         AddCritical    += other.AddCritical;
         AddCriticalPow += other.AddCriticalPow;
         AddSpeed       += other.AddSpeed;
         AddShield      += other.AddShield;
         if (other.IsFinal)
         {
             IsFinal = other.IsFinal;
         }
     }
 }