Beispiel #1
0
        public override int GetItemMask()
        {
            WeaponType orDefault = WeaponType.Values.FirstOrDefault(x => x.Id == Type);

            if (orDefault == null)
            {
                return(0);
            }

            int firstOrDefault = orDefault.GetMask();

            return(firstOrDefault);
        }
Beispiel #2
0
        public override int GetItemMask()
        {
            WeaponType orDefault = Enums.WeaponType.Values.FirstOrDefault(x => x.Id == WeaponType);

            return(orDefault?.GetMask() ?? 0);
        }