// Token: 0x06001403 RID: 5123 RVA: 0x0007FBC0 File Offset: 0x0007DFC0
        public static void setupBundle(SkinCreatorOutput bundle, string patternID, out ushort skinID)
        {
            skinID = 0;
            ItemAsset itemAsset = Assets.find(EAssetType.ITEM, bundle.itemID) as ItemAsset;

            if (itemAsset == null)
            {
                return;
            }
            string text = string.Concat(new string[]
            {
                GameProject.PROJECT_PATH,
                "\\Builds\\Shared\\Bundles\\Skins\\",
                itemAsset.name,
                "/",
                patternID
            });

            if (!Directory.Exists(text))
            {
                Directory.CreateDirectory(text);
            }
            string path  = text + "/" + patternID + ".dat";
            string text2 = "Type Skin\nID " + skinID + "\n\nSight\nTactical\nGrip\nBarrel\nMagazine";

            if (bundle.secondarySkins.Count > 0)
            {
                text2 = text2 + "\n\nSecondary_Skins " + bundle.secondarySkins.Count;
                for (int i = 0; i < bundle.secondarySkins.Count; i++)
                {
                    SecondarySkinInfo secondarySkinInfo = bundle.secondarySkins[i];
                    string            text3             = text2;
                    text2 = string.Concat(new object[]
                    {
                        text3,
                        "\nSecondary_",
                        i,
                        " ",
                        secondarySkinInfo.itemID
                    });
                }
            }
            File.WriteAllText(path, text2);
        }