public IValue Serialize() => Bencodex.Types.Dictionary.Empty .Add("id", Id) .Add("elemental_type", ElementalType.ToString()) .Add("skill_type", SkillType.ToString()) .Add("skill_category", SkillCategory.ToString()) .Add("skill_target_type", SkillTargetType.ToString()) .Add("hit_count", HitCount) .Add("cooldown", Cooldown);
public static string GetLocalizedString(this ElementalType value) { return(L10nManager.Localize($"ELEMENTAL_TYPE_{value.ToString().ToUpper()}")); }
public override string ToString() { return($"Type: " + ElementalType.ToString() + "Duration: " + /*TickDuration.ToString() +*/ "Bonus: " + EffectedStat.ToString()); }