Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 public static string ToString(this PokemonUnity.Types type, TextScripts text)
 {
     //create a switch, and return Locale Name or Description
     return(type.ToString());
 }
Ejemplo n.º 3
0
 public static string ToString(this PokemonUnity.Abilities ability, TextScripts text)
 {
     //create a switch, and return Locale Name or Description
     return(ability.ToString());
 }
Ejemplo n.º 4
0
 public static string ToString(this PokemonUnity.Monster.Forms form, TextScripts text)
 {
     //create an operator and return Locale Name
     return(form.ToString());
 }
Ejemplo n.º 5
0
 public static string ToString(this PokemonUnity.Combat.Stats stat, TextScripts text)
 {
     //create a switch, and return Locale Name or Description
     return(stat.ToString());
 }
Ejemplo n.º 6
0
 public static string ToString(this PokemonUnity.Inventory.Items item, TextScripts text)
 {
     //create a switch, and return Locale Name, Plural, or Description
     return(item.ToString());
 }
Ejemplo n.º 7
0
 public string ToString(TextScripts text)
 {
     return(Base.ToString(text));
 }