Пример #1
0
            public void FillOutModelFilesWithWeapon(
                LogicalWeapon weapon,
                Faction faction,
                IEnumerable <LogicalWeapon> weapons)
            {
                this.WeaponModelPath = LogicalWeapon.GetWeaponModelPaths(weapon, faction);
                LogicalWeapon subWeapon1      = weapon?.GetSubWeapon(weapons);
                LogicalWeapon secondaryWeapon = weapon?.GetSecondaryWeapon(weapons);
                LogicalWeapon subWeapon2      = secondaryWeapon?.GetSubWeapon(weapons);

                this.SubWeaponModelPath          = LogicalWeapon.GetWeaponModelPaths(subWeapon1, faction);
                this.SecondaryWeaponModelPath    = LogicalWeapon.GetWeaponModelPaths(secondaryWeapon, faction);
                this.SecondarySubWeaponModelPath = LogicalWeapon.GetWeaponModelPaths(subWeapon2, faction);
            }
Пример #2
0
            public void FillOutModelFilesWithWeapon(
                LogicalWeapon weapon,
                Faction faction,
                string preferredMount,
                IEnumerable <LogicalWeapon> weapons)
            {
                this.WeaponModelPath = Ship.GetWeaponModelPathsWithFixAssetNameForDLC(weapon, faction, preferredMount);
                LogicalWeapon subWeapon1      = weapon?.GetSubWeapon(weapons);
                LogicalWeapon secondaryWeapon = weapon?.GetSecondaryWeapon(weapons);
                LogicalWeapon subWeapon2      = secondaryWeapon?.GetSubWeapon(weapons);

                this.SubWeaponModelPath          = Ship.GetWeaponModelPathsWithFixAssetNameForDLC(subWeapon1, faction, preferredMount);
                this.SecondaryWeaponModelPath    = Ship.GetWeaponModelPathsWithFixAssetNameForDLC(secondaryWeapon, faction, preferredMount);
                this.SecondarySubWeaponModelPath = Ship.GetWeaponModelPathsWithFixAssetNameForDLC(subWeapon2, faction, preferredMount);
            }