Exemple #1
0
 public static bool HasShearedSprite(string type)
 {
     return(ModEntry.Assets.ContainsKey("sheared" + ModEntry.Sanitize(type)));
 }
Exemple #2
0
 public static bool HasBabySprite(string type)
 {
     return(ModEntry.Assets.ContainsKey("baby" + ModEntry.Sanitize(type)));
 }
Exemple #3
0
 /// <summary>Returns whether the given type contains the word "cow"</summary>
 public static bool IsCow(string type)
 {
     return(ModEntry.Sanitize(type).Contains("cow"));
 }
Exemple #4
0
 /// <summary>Returns whether the given type contains the word "chicken"</summary>
 public static bool IsChicken(string type)
 {
     return(ModEntry.Sanitize(type).Contains("chicken"));
 }
Exemple #5
0
 /// <summary>Returns true if the given creature subtype (i.e. Dog, Cat, WhiteChicken) has at least one custom skin loaded for it in A&S.</summary>
 public static bool HasSkins(string type)
 {
     return(ModEntry.Assets.ContainsKey(ModEntry.Sanitize(type)) && (ModEntry.Assets[ModEntry.Sanitize(type)]).Count > 0);
 }
Exemple #6
0
 /// <summary>Returns true if the given creature subtype (i.e. Dog, Cat, WhiteChicken) is being handled by A&S</summary>
 public static bool IsRegisteredType(string type)
 {
     return(ModEntry.Assets.ContainsKey(ModEntry.Sanitize(type)));
 }