public static bool HasShearedSprite(string type) { return(ModEntry.Assets.ContainsKey("sheared" + ModEntry.Sanitize(type))); }
public static bool HasBabySprite(string type) { return(ModEntry.Assets.ContainsKey("baby" + ModEntry.Sanitize(type))); }
/// <summary>Returns whether the given type contains the word "cow"</summary> public static bool IsCow(string type) { return(ModEntry.Sanitize(type).Contains("cow")); }
/// <summary>Returns whether the given type contains the word "chicken"</summary> public static bool IsChicken(string type) { return(ModEntry.Sanitize(type).Contains("chicken")); }
/// <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); }
/// <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))); }