示例#1
0
        private static void CreateWeaponDataLookup()
        {
            var weapons  = WeaponReader.GetAllWeapons();
            var destFile = $@"{Global.ASSETS_ROOT}\WeaponNameLookup.json"; // Same as weaponData we have, but ID lookup instead of GMD.

            File.WriteAllText(destFile, JsonConvert.SerializeObject(weapons, Formatting.Indented));
        }
示例#2
0
 private static void CreateEditorDataLookup()
 {
     File.WriteAllText($@"{Global.ASSETS_ROOT}\EditorData\ArmorNameLookupById.json", JsonConvert.SerializeObject(ArmorReader.GetAllArmors(IndexOrId.Id), Formatting.Indented));
     File.WriteAllText($@"{Global.ASSETS_ROOT}\EditorData\ArmorNameLookupByIndex.json", JsonConvert.SerializeObject(ArmorReader.GetAllArmors(IndexOrId.Index), Formatting.Indented));
     File.WriteAllText($@"{Global.ASSETS_ROOT}\EditorData\ArmorNameLookupByFileIndex.json", JsonConvert.SerializeObject(ArmorReader.GetArmorByFileIndex(), Formatting.Indented));
     File.WriteAllText($@"{Global.ASSETS_ROOT}\EditorData\WeaponNameLookupById.json", JsonConvert.SerializeObject(WeaponReader.GetAllWeapons(IndexOrId.Id), Formatting.Indented));
     File.WriteAllText($@"{Global.ASSETS_ROOT}\EditorData\WeaponNameLookupByIndex.json", JsonConvert.SerializeObject(WeaponReader.GetAllWeapons(IndexOrId.Index), Formatting.Indented));
     File.WriteAllText($@"{Global.ASSETS_ROOT}\EditorData\GemItemIds.json", JsonConvert.SerializeObject(ItemReader.GetGemIds(), Formatting.Indented));
     File.WriteAllText($@"{Global.ASSETS_ROOT}\EditorData\PalicoArmorHeadLookupByModelId.json", JsonConvert.SerializeObject(PalicoArmorReader.GetPalicoArmorsByModelId(HeadOrBody.Head), Formatting.Indented));
     File.WriteAllText($@"{Global.ASSETS_ROOT}\EditorData\PalicoArmorBodyLookupByModelId.json", JsonConvert.SerializeObject(PalicoArmorReader.GetPalicoArmorsByModelId(HeadOrBody.Body), Formatting.Indented));
     File.WriteAllText($@"{Global.ASSETS_ROOT}\EditorData\ItemRarityById.json", JsonConvert.SerializeObject(ItemReader.GetItemRarityByIds(), Formatting.Indented));
 }