Example #1
0
 /// <summary>
 /// Create blank trait with Trait value of Unknown
 /// </summary>
 public HorseTrait(TraitEnum enumval)
 {
     Trait = enumval;
 }
Example #2
0
 internal static object GetWurmTextForTrait(TraitEnum trait)
 {
     return Helper.GetTextForTrait(trait);
 }
Example #3
0
 internal static string GetTextForTrait(TraitEnum trait)
 {
     try
     {
         return HorseTrait.Helper.EnumToNameMap[trait];
     }
     catch (KeyNotFoundException)
     {
         Logger.LogError("missing trait name for trait enum: " + trait.ToString(), THIS);
         return "error";
     };
 }