public string ToString(TextScripts text) { if (text == TextScripts.Name) { if (Type == MachineType.TechnicalMachine) { return(string.Format("TM{0}", Id.ToString("00"))); } if (Type == MachineType.HiddenMachine) { return(string.Format("HM{0}", Id.ToString("00"))); } if (Type == MachineType.TechnicalRecord) { return(string.Format("TR{0}", Id.ToString("00"))); } } if (text == TextScripts.Description) { return(string.Format("Teaches {0} to a compatible Pokémon", Move.ToString(TextScripts.Name))); } else { return(null); } }
public static string ToString(this PokemonUnity.Types type, TextScripts text) { //create a switch, and return Locale Name or Description return(type.ToString()); }
public static string ToString(this PokemonUnity.Abilities ability, TextScripts text) { //create a switch, and return Locale Name or Description return(ability.ToString()); }
public static string ToString(this PokemonUnity.Monster.Forms form, TextScripts text) { //create an operator and return Locale Name return(form.ToString()); }
public static string ToString(this PokemonUnity.Combat.Stats stat, TextScripts text) { //create a switch, and return Locale Name or Description return(stat.ToString()); }
public static string ToString(this PokemonUnity.Inventory.Items item, TextScripts text) { //create a switch, and return Locale Name, Plural, or Description return(item.ToString()); }
public string ToString(TextScripts text) { return(Base.ToString(text)); }