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