123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- using Newtonsoft.Json;
- using Newtonsoft.Json.Linq;
- /// <summary>
- /// 描述:
- /// 作者:
- /// </summary>
- public enum E_SkillType
- {
- /// <summary>
- /// 单位技能
- /// </summary>
- Unit = 1,
- /// <summary>
- /// 场景技能
- /// </summary>
- Scene = 2
- }
- public enum E_SkillAttrType
- {
- /// <summary>
- /// 物理
- /// </summary>
- PhysAtk = 1,
- /// <summary>
- /// 魔法
- /// </summary>
- MagicAtk = 2
- }
- public enum E_SkillDamageType
- {
- /// <summary>
- /// 伤害
- /// </summary>
- Damage = 1,
- /// <summary>
- /// 治疗
- /// </summary>
- Cure = 2
- }
- public enum E_SkillActType
- {
- /// <summary>
- /// 普攻
- /// </summary>
- Common = 0,
- /// <summary>
- /// 重攻
- /// </summary>
- Thump = 1,
- /// <summary>
- /// 必杀技
- /// </summary>
- Unique = 2,
- /// <summary>
- /// 冲刺
- /// </summary>
- Sprint = 3,
- }
- public enum E_SkillEffType
- {
- /// <summary>
- /// 无
- /// </summary>
- None = 0,
- /// <summary>
- /// 删除怒气点
- /// </summary>
- ReAnger = 1,
- /// <summary>
- /// 一击毙命
- /// </summary>
- BlowKill = 2,
- }
- public class SkillData
- {
- private SkillConfigMo _config;
- private BattleUnitBase _fUnit;
- private BattleUnitBase _tUnit;
- private bool _isCrit = false;
- private int _buffID = 0;
- public SkillData(int skillID)
- {
- _config = SkillConfigMo.GetBattleSkillConfigMo(skillID);
- }
- public SkillConfigMo config
- {
- get
- {
- return _config;
- }
- }
- public BattleUnitBase fUnit
- {
- set
- {
- _fUnit = value;
- }
- get
- {
- return _fUnit;
- }
- }
- public BattleUnitBase tUnit
- {
- set
- {
- _tUnit = value;
- }
- get
- {
- return _tUnit;
- }
- }
- public bool isCrit
- {
- set
- {
- _isCrit = value;
- }
- get
- {
- return _isCrit;
- }
- }
- public int BuffID
- {
- set
- {
- _buffID = value;
- }
- get
- {
- return _buffID;
- }
- }
- }
|