示例#1
0
 public MobAttack(Mob mob, int targetId, AttackResult attackResult)
 {
     IsSuccess = attackResult.Success;
     MobId     = mob.Id;
     TargetId  = targetId;
     Damage    = new ushort[] { attackResult.Damage.HP, attackResult.Damage.SP, attackResult.Damage.MP };
 }
示例#2
0
 public MobSkillAttack(int mobId, int targetId, Skill skill, AttackResult attackResult)
 {
     IsSuccess  = attackResult.Success;
     MobId      = mobId;
     TargetId   = targetId;
     SkillId    = skill.SkillId;
     SkillLevel = skill.SkillLevel;
     Damage     = new ushort[] { attackResult.Damage.HP, attackResult.Damage.SP, attackResult.Damage.MP };
 }
示例#3
0
 public AttackResult(AttackSuccess success, Damage damage)
 {
     Success = success;
     Damage  = damage;
 }
示例#4
0
 public AttackResult(AttackSuccess success, Damage damage, ushort absorb = 0)
 {
     Success = success;
     Damage  = damage;
     Absorb  = absorb;
 }