예제 #1
0
        public static string GetPluralName(this Weenie weenie)
        {
            var pluralName = weenie.GetProperty(PropertyString.PluralName);

            if (pluralName == null)
            {
                pluralName = weenie.GetProperty(PropertyString.Name).Pluralize();
            }

            return(pluralName);
        }
예제 #2
0
        public static bool IsVendorService(this Weenie weenie)
        {
            var vendorService = weenie.GetProperty(PropertyBool.VendorService) ?? false;

            return(vendorService);
        }
예제 #3
0
        public static bool RequiresBackpackSlotOrIsContainer(this Weenie weenie)
        {
            var requiresBackPackSlot = weenie.GetProperty(PropertyBool.RequiresBackpackSlot) ?? false;

            return(requiresBackPackSlot || weenie.Type == (int)WeenieType.Container);
        }