public static string GetPluralName(this Weenie weenie) { var pluralName = weenie.GetProperty(PropertyString.PluralName); if (pluralName == null) { pluralName = weenie.GetProperty(PropertyString.Name).Pluralize(); } return(pluralName); }
public static bool IsVendorService(this Weenie weenie) { var vendorService = weenie.GetProperty(PropertyBool.VendorService) ?? false; return(vendorService); }
public static bool RequiresBackpackSlotOrIsContainer(this Weenie weenie) { var requiresBackPackSlot = weenie.GetProperty(PropertyBool.RequiresBackpackSlot) ?? false; return(requiresBackPackSlot || weenie.Type == (int)WeenieType.Container); }