示例#1
0
 public bool HasCrowdControl(CrowdControlType ccType)
 {
     return(_crowdControlList.FirstOrDefault(cc => cc.IsTypeOf(ccType)) != null);
 }
示例#2
0
 public CrowdControl(CrowdControlType ccType, DamageType damageType, DamageElement element)
 {
     this.ccType     = ccType;
     this.damageType = damageType;
     this.element    = element;
 }
示例#3
0
 public UnitCrowdControl(CrowdControlType type, float duration = -1)
 {
     Type     = type;
     Duration = duration;
 }
示例#4
0
 public bool IsTypeOf(CrowdControlType type)
 {
     return(type == Type);
 }
示例#5
0
 public void CrowdControl(CrowdControlType type, bool enable)
 {
     if (enable == true)
     {
         m_crowdControl |= (int)type;
     }
     else
     {
         m_crowdControl &= ~(int)type;
     }
 }