Exemplo n.º 1
0
        public static WeaponPartsStruct GetParts(this WeaponComponent comp)
        {
            var result = new WeaponPartsStruct
            {
                LowerRail = comp.LowerRail,
                UpperRail = comp.UpperRail,
                Muzzle    = comp.Muzzle,
                Stock     = comp.Stock,
                Magazine  = comp.Magazine,
            };

            result = result.ApplyDefaultParts(comp.Id);
            return(result);
        }
Exemplo n.º 2
0
        public static WeaponPartsStruct GetParts(this WeaponInfo info)
        {
            var result = new WeaponPartsStruct
            {
                LowerRail = info.LowerRail,
                UpperRail = info.UpperRail,
                Magazine  = info.Magazine,
                Muzzle    = info.Muzzle,
                Stock     = info.Stock,
            };

            result = result.ApplyDefaultParts(info.Id);
            return(result);
        }