예제 #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);
     }
 }
예제 #2
0
 public static string ToString(this PokemonUnity.Types type, TextScripts text)
 {
     //create a switch, and return Locale Name or Description
     return(type.ToString());
 }
예제 #3
0
 public static string ToString(this PokemonUnity.Abilities ability, TextScripts text)
 {
     //create a switch, and return Locale Name or Description
     return(ability.ToString());
 }
예제 #4
0
 public static string ToString(this PokemonUnity.Monster.Forms form, TextScripts text)
 {
     //create an operator and return Locale Name
     return(form.ToString());
 }
예제 #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());
 }
예제 #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());
 }
예제 #7
0
 public string ToString(TextScripts text)
 {
     return(Base.ToString(text));
 }