public Attack(ATTACK_TYPES atkType, float speed, float reloadTime, int power, float slowDuration = 0, float slowIntesity = 0, int splashReduction = 0, int aoe = 0) { m_AtkType = atkType; m_Speed = speed; m_ReloadTime = reloadTime; m_Power = power; m_SlowDuration = slowDuration; m_SlowIntensity = slowIntesity; m_SplashReduction = splashReduction; m_AreaOfEffect = aoe; }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { ATTACK_TYPES atValue = (ATTACK_TYPES)value; if (atValue == ATTACK_TYPES.AT_MELEE) { return("Melee"); } else if (atValue == ATTACK_TYPES.AT_RANGED) { return("Ranged"); } else if (atValue == ATTACK_TYPES.AT_AOE) { return("AoE"); } return(ATTACK_TYPES.AT_MELEE); }