Esempio n. 1
0
 public static bool HasShearedSprite(string type)
 {
     return(ModEntry.Assets.ContainsKey("sheared" + ModEntry.Sanitize(type)));
 }
Esempio n. 2
0
 public static bool HasBabySprite(string type)
 {
     return(ModEntry.Assets.ContainsKey("baby" + ModEntry.Sanitize(type)));
 }
Esempio n. 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"));
 }
Esempio n. 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"));
 }
Esempio n. 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);
 }
Esempio n. 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)));
 }