protected override void getCommaSeparatedToStringProps(out string className, out string commaSeparatedProps) { className = "AbilityItemModel"; commaSeparatedProps = "AbilityEffectType: " + AbilityEffectType.ToString() + ", " + "AbilityTargetType: " + AbilityTargetType.ToString() + ", " + "AbilityDurationType: " + AbilityDurationType.ToString() + ", " + "CastTurns: " + CastTurns.ToString() + ", " + "CoolDownTurns: " + CoolDownTurns.ToString() + ", " + "CoolDownTurnsElapsed: " + CoolDownTurnsElapsed.ToString() + ", " + "ImmediateAmmount: " + ImmediateAmout + ", " + "IsSpellBased: " + IsSpellBased.ToString(); if (AbilityDurationType == AbilityDurationType.MultiTurn) { commaSeparatedProps += ", " + "AbilityDurationData.OriginAbilityID: " + AbilityDurationData.OriginAbilityID.ToString() + ", " + "AbilityDurationData.PerTickAmount: " + AbilityDurationData.PerTickAmount.ToString() + ", " + "AbilityDurationData.TurnsPerTick: " + AbilityDurationData.TurnsPerTick.ToString() + ", " + "AbilityDurationData.MaxTicks: " + AbilityDurationData.MaxTicks.ToString() + ", " + "AbilityDurationData.AbilityEffectType" + AbilityDurationData.AbilityEffectType.ToString() + ", " + "AbilityDurationData.AbilityTargetType" + AbilityDurationData.AbilityTargetType.ToString() + ", " + "AbilityDurationData.NumTurnsElapsed: " + AbilityDurationData.NumTurnsElapsed.ToString(); } }
public string GetLocalizationText(AbilityTargetType targetType) { string stringId = "targetType." + targetType.ToString(); if (commonLocalizationData.TryGetValue(stringId, out string value)) { if (value == "") { return(stringId); } return(value); } else { return(stringId); } }