@carbonenginejs/runtime-resource 0.19.2 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +6 -0
- package/dist/CjsResMan.js +1374 -1318
- package/dist/CjsResMan.js.map +1 -1
- package/dist/format/CjsFormat.js +393 -164
- package/dist/format/CjsFormat.js.map +1 -1
- package/dist/format/CjsFormatStore.js +315 -0
- package/dist/format/CjsFormatStore.js.map +1 -0
- package/dist/format/CjsResourceProbe.js +66 -234
- package/dist/format/CjsResourceProbe.js.map +1 -1
- package/dist/format/payloadContract.js +47 -6
- package/dist/format/payloadContract.js.map +1 -1
- package/dist/formats/black/CjsBlackFormat.js +23 -6
- package/dist/formats/black/CjsBlackFormat.js.map +1 -1
- package/dist/formats/bnk/CjsBnkFormat.js +122 -120
- package/dist/formats/bnk/CjsBnkFormat.js.map +1 -1
- package/dist/formats/bnk/core/helpers.js +5 -15
- package/dist/formats/bnk/core/helpers.js.map +1 -1
- package/dist/formats/cmf/CjsCmfFormat.js +31 -14
- package/dist/formats/cmf/CjsCmfFormat.js.map +1 -1
- package/dist/formats/dds/CjsDdsFormat.js +29 -19
- package/dist/formats/dds/CjsDdsFormat.js.map +1 -1
- package/dist/formats/dds/core/helpers.js +4 -5
- package/dist/formats/dds/core/helpers.js.map +1 -1
- package/dist/formats/dxbc/CjsDxbcFormat.js +15 -13
- package/dist/formats/dxbc/CjsDxbcFormat.js.map +1 -1
- package/dist/formats/fbx/CjsFbxFormat.js +27 -19
- package/dist/formats/fbx/CjsFbxFormat.js.map +1 -1
- package/dist/formats/fbx/core/helpers.js +4 -4
- package/dist/formats/fbx/core/helpers.js.map +1 -1
- package/dist/formats/flac/CjsFlacFormat.js +19 -17
- package/dist/formats/flac/CjsFlacFormat.js.map +1 -1
- package/dist/formats/flac/core/helpers.js +5 -11
- package/dist/formats/flac/core/helpers.js.map +1 -1
- package/dist/formats/fsd/32/CjsFsd32Format.js +55 -0
- package/dist/formats/fsd/32/CjsFsd32Format.js.map +1 -0
- package/dist/formats/fsd/32/index.js +2 -0
- package/dist/formats/fsd/32/index.js.map +1 -0
- package/dist/formats/fsd/64/CjsFsd64Format.js +119 -0
- package/dist/formats/fsd/64/CjsFsd64Format.js.map +1 -0
- package/dist/formats/fsd/64/core/CjsFsd64Binary.js +393 -0
- package/dist/formats/fsd/64/core/CjsFsd64Binary.js.map +1 -0
- package/dist/formats/fsd/64/core/CjsFsd64Reader.js +138 -0
- package/dist/formats/fsd/64/core/CjsFsd64Reader.js.map +1 -0
- package/dist/formats/fsd/64/core/CjsFsd64SchemaDecoder.js +389 -0
- package/dist/formats/fsd/64/core/CjsFsd64SchemaDecoder.js.map +1 -0
- package/dist/formats/fsd/64/core/CjsFsd64SchemaReader.js +43 -0
- package/dist/formats/fsd/64/core/CjsFsd64SchemaReader.js.map +1 -0
- package/dist/formats/fsd/64/core/fsd64Records.js +60 -0
- package/dist/formats/fsd/64/core/fsd64Records.js.map +1 -0
- package/dist/formats/fsd/64/index.js +7 -0
- package/dist/formats/fsd/64/index.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64ReaderSetCharacterStaticData.js +33 -0
- package/dist/formats/fsd/64/readers/CjsFsd64ReaderSetCharacterStaticData.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaAgentTypes.js +35 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaAgentTypes.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaAgentsInSpace.js +50 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaAgentsInSpace.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaAncestries.js +75 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaAncestries.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaArchetypes.js +57 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaArchetypes.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaAudioMetadata.js +201 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaAudioMetadata.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaBloodlines.js +73 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaBloodlines.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCategories.js +53 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCategories.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCharacterAvatarBehaviors.js +44 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCharacterAvatarBehaviors.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCharacterColorLocations.js +38 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCharacterColorLocations.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCharacterColorNames.js +34 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCharacterColorNames.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCharacterModifierLocations.js +34 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCharacterModifierLocations.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCharacterPortraitResources.js +44 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCharacterPortraitResources.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCharacterResources.js +81 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCharacterResources.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCharacterSculptingLocations.js +34 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCharacterSculptingLocations.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCompressibleTypes.js +41 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCompressibleTypes.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaContrabandTypes.js +63 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaContrabandTypes.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaControlTowerResources.js +76 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaControlTowerResources.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCorporationActivities.js +38 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCorporationActivities.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCorporationRoleGroups.js +74 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCorporationRoleGroups.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCorporationRoles.js +59 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaCorporationRoles.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaDogmaAttributeCategories.js +46 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaDogmaAttributeCategories.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaDogmaAttributes.js +133 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaDogmaAttributes.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaDogmaEffects.js +236 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaDogmaEffects.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaDogmaUnits.js +60 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaDogmaUnits.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaDynamicItemAttributes.js +95 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaDynamicItemAttributes.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaEpicArcs.js +106 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaEpicArcs.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaExpertSystems.js +86 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaExpertSystems.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaFactions.js +117 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaFactions.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaGraphicIds.js +70 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaGraphicIds.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaGraphicMaterialSets.js +173 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaGraphicMaterialSets.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaGroups.js +77 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaGroups.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaIcons.js +62 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaIcons.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaMarketGroups.js +63 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaMarketGroups.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaMetaGroups.js +86 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaMetaGroups.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaNpcCorporationDivisions.js +72 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaNpcCorporationDivisions.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaNpcCorporations.js +326 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaNpcCorporations.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaPaperdolls.js +279 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaPaperdolls.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaRaces.js +64 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaRaces.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSchoolMap.js +40 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSchoolMap.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSchools.js +113 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSchools.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkillPlans.js +130 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkillPlans.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrComponentCategories.js +38 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrComponentCategories.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrComponentPointValues.js +45 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrComponentPointValues.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrComponentRarities.js +44 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrComponentRarities.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrComponents.js +163 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrComponents.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrSlotCategories.js +37 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrSlotCategories.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrSlotConfigurations.js +77 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrSlotConfigurations.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrSlotNames.js +37 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrSlotNames.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrSlots.js +74 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrSlots.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrTierThresholds.js +44 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaSkinrTierThresholds.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaStationOperations.js +120 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaStationOperations.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaStationServices.js +49 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaStationServices.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaTypeDogma.js +73 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaTypeDogma.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaTypeLists.js +122 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaTypeLists.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaTypeMaterials.js +83 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaTypeMaterials.js.map +1 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaTypes.js +194 -0
- package/dist/formats/fsd/64/readers/CjsFsd64SchemaTypes.js.map +1 -0
- package/dist/formats/fsd/64/readers/index.js +58 -0
- package/dist/formats/fsd/64/readers/index.js.map +1 -0
- package/dist/formats/fsd/CjsFsdFormat.js +62 -0
- package/dist/formats/fsd/CjsFsdFormat.js.map +1 -0
- package/dist/formats/fsd/index.js +9 -0
- package/dist/formats/fsd/index.js.map +1 -0
- package/dist/formats/gif/CjsGifFormat.js +26 -16
- package/dist/formats/gif/CjsGifFormat.js.map +1 -1
- package/dist/formats/gif/core/helpers.js +6 -18
- package/dist/formats/gif/core/helpers.js.map +1 -1
- package/dist/formats/gltf/CjsGltfFormat.js +25 -13
- package/dist/formats/gltf/CjsGltfFormat.js.map +1 -1
- package/dist/formats/gr2/CjsGr2Format.js +27 -6
- package/dist/formats/gr2/CjsGr2Format.js.map +1 -1
- package/dist/formats/hlsl/CjsHlslFormat.js +20 -16
- package/dist/formats/hlsl/CjsHlslFormat.js.map +1 -1
- package/dist/formats/hlsl/core/analysis.js +1 -1
- package/dist/formats/index.js +5 -0
- package/dist/formats/index.js.map +1 -1
- package/dist/formats/jpeg/CjsJpegFormat.js +26 -19
- package/dist/formats/jpeg/CjsJpegFormat.js.map +1 -1
- package/dist/formats/jpeg/core/helpers.js +6 -15
- package/dist/formats/jpeg/core/helpers.js.map +1 -1
- package/dist/formats/jpeg/core/jpeg.js +0 -3
- package/dist/formats/jpeg/core/jpeg.js.map +1 -1
- package/dist/formats/mp3/CjsMp3Format.js +19 -19
- package/dist/formats/mp3/CjsMp3Format.js.map +1 -1
- package/dist/formats/mp3/core/helpers.js +5 -11
- package/dist/formats/mp3/core/helpers.js.map +1 -1
- package/dist/formats/mp4/CjsMp4Format.js +20 -19
- package/dist/formats/mp4/CjsMp4Format.js.map +1 -1
- package/dist/formats/mp4/core/helpers.js +6 -15
- package/dist/formats/mp4/core/helpers.js.map +1 -1
- package/dist/formats/obj/CjsObjFormat.js +25 -12
- package/dist/formats/obj/CjsObjFormat.js.map +1 -1
- package/dist/formats/ogg/CjsOggFormat.js +26 -17
- package/dist/formats/ogg/CjsOggFormat.js.map +1 -1
- package/dist/formats/ogg/core/helpers.js +5 -16
- package/dist/formats/ogg/core/helpers.js.map +1 -1
- package/dist/formats/pickle/CjsPickleFormat.js +64 -5
- package/dist/formats/pickle/CjsPickleFormat.js.map +1 -1
- package/dist/formats/png/CjsPngFormat.js +28 -19
- package/dist/formats/png/CjsPngFormat.js.map +1 -1
- package/dist/formats/png/core/helpers.js +5 -14
- package/dist/formats/png/core/helpers.js.map +1 -1
- package/dist/formats/red/CjsRedFormat.js +19 -5
- package/dist/formats/red/CjsRedFormat.js.map +1 -1
- package/dist/formats/schemabound/CjsSchemaBoundFormat.js +48 -38
- package/dist/formats/schemabound/CjsSchemaBoundFormat.js.map +1 -1
- package/dist/formats/sqlite/CjsSqliteFormat.js +49 -41
- package/dist/formats/sqlite/CjsSqliteFormat.js.map +1 -1
- package/dist/formats/static/CjsStaticFormat.js +15 -57
- package/dist/formats/static/CjsStaticFormat.js.map +1 -1
- package/dist/formats/static/staticContainers.js +6 -6
- package/dist/formats/static/staticContainers.js.map +1 -1
- package/dist/formats/stl/CjsStlFormat.js +25 -12
- package/dist/formats/stl/CjsStlFormat.js.map +1 -1
- package/dist/formats/tga/CjsTgaFormat.js +26 -19
- package/dist/formats/tga/CjsTgaFormat.js.map +1 -1
- package/dist/formats/tga/core/helpers.js +7 -22
- package/dist/formats/tga/core/helpers.js.map +1 -1
- package/dist/formats/wav/CjsWavFormat.js +26 -19
- package/dist/formats/wav/CjsWavFormat.js.map +1 -1
- package/dist/formats/wav/core/helpers.js +7 -16
- package/dist/formats/wav/core/helpers.js.map +1 -1
- package/dist/formats/webgl/CjsWebglFormat.js +11 -13
- package/dist/formats/webgl/CjsWebglFormat.js.map +1 -1
- package/dist/formats/webgl/core/glsl/DxbcGlslEmitter.js +90 -12
- package/dist/formats/webgl/core/glsl/DxbcGlslEmitter.js.map +1 -1
- package/dist/formats/webgl/core/helpers.js +2 -2
- package/dist/formats/webgl/core/helpers.js.map +1 -1
- package/dist/formats/webgl/core/readGlslEffectContainer.js +8 -8
- package/dist/formats/webgl/core/readGlslEffectContainer.js.map +1 -1
- package/dist/formats/webgpu/CjsWebgpuFormat.js +11 -5
- package/dist/formats/webgpu/CjsWebgpuFormat.js.map +1 -1
- package/dist/formats/webm/CjsWebmFormat.js +20 -19
- package/dist/formats/webm/CjsWebmFormat.js.map +1 -1
- package/dist/formats/webm/core/helpers.js +6 -15
- package/dist/formats/webm/core/helpers.js.map +1 -1
- package/dist/formats/webp/CjsWebpFormat.js +19 -17
- package/dist/formats/webp/CjsWebpFormat.js.map +1 -1
- package/dist/formats/webp/core/helpers.js +5 -11
- package/dist/formats/webp/core/helpers.js.map +1 -1
- package/dist/formats/wem/CjsWemFormat.js +128 -141
- package/dist/formats/wem/CjsWemFormat.js.map +1 -1
- package/dist/formats/wem/core/helpers.js +1 -114
- package/dist/formats/wem/core/helpers.js.map +1 -1
- package/dist/formats/wem/core/{resolve.js → probeCodecSupport.js} +11 -18
- package/dist/formats/wem/core/probeCodecSupport.js.map +1 -0
- package/dist/formats/yaml/CjsYamlFormat.js +20 -5
- package/dist/formats/yaml/CjsYamlFormat.js.map +1 -1
- package/dist/generated/index.js +2 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/generated/resources/Tr2RaycastGeometryRes.js +34 -0
- package/dist/generated/resources/Tr2RaycastGeometryRes.js.map +1 -0
- package/dist/generated/resources/index.js +2 -0
- package/dist/generated/resources/index.js.map +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/resource/CjsResource.js +134 -0
- package/dist/resource/CjsResource.js.map +1 -1
- package/dist/resource/ResourceRequirement.js +42 -0
- package/dist/resource/ResourceRequirement.js.map +1 -0
- package/dist/resource/Tr2LightProfileRes.js +2 -1
- package/dist/resource/Tr2LightProfileRes.js.map +1 -1
- package/dist/resource/geometry/TriGeometryRes.js +34 -7
- package/dist/resource/geometry/TriGeometryRes.js.map +1 -1
- package/dist/resource/geometry/granny/Tr2GrannyStateRes.js +184 -7
- package/dist/resource/geometry/granny/Tr2GrannyStateRes.js.map +1 -1
- package/dist/resource/geometry/granny/TriGrannyRes.js +20 -8
- package/dist/resource/geometry/granny/TriGrannyRes.js.map +1 -1
- package/dist/resource/index.js +1 -0
- package/dist/resource/index.js.map +1 -1
- package/dist/resource/resourceBoundary.js +24 -1
- package/dist/resource/resourceBoundary.js.map +1 -1
- package/dist/resource/shader/Tr2EffectRes.js +2 -1
- package/dist/resource/shader/Tr2EffectRes.js.map +1 -1
- package/dist/resource/texture/CjsTextureArrayRes.js +2 -1
- package/dist/resource/texture/CjsTextureArrayRes.js.map +1 -1
- package/dist/resource/texture/Tr2ImageRes.js +2 -1
- package/dist/resource/texture/Tr2ImageRes.js.map +1 -1
- package/dist/resource/texture/TriTextureRes.js +40 -2
- package/dist/resource/texture/TriTextureRes.js.map +1 -1
- package/docs/architecture.md +121 -116
- package/docs/concepts/format-capabilities.md +90 -0
- package/docs/formats/README.md +14 -6
- package/docs/formats/fsd.md +104 -0
- package/docs/formats/gr2.md +1 -1
- package/docs/formats/hlsl/reference/api.md +6 -4
- package/docs/formats/provenance.md +18 -0
- package/docs/formats/schemabound.md +10 -4
- package/docs/formats/static.md +26 -26
- package/docs/formats/webgpu/reference/api.md +4 -3
- package/docs/reference/classes/core.md +22 -2
- package/docs/reference/classes/formats.md +643 -1
- package/docs/reference/classes/resources.md +463 -453
- package/docs/reference/queues.md +205 -194
- package/docs/roadmap.md +14 -18
- package/format-notices/fsd/LICENSE +21 -0
- package/format-notices/fsd/NOTICE +11 -0
- package/package.json +70 -64
- package/dist/formats/wem/core/resolve.js.map +0 -1
- package/docs/concepts/format-type-resolution.md +0 -79
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CjsFsd64SchemaDecoder } from '../core/CjsFsd64SchemaDecoder.js';
|
|
2
|
+
import { CjsFsd64SchemaReader } from '../core/CjsFsd64SchemaReader.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Reads caller-supplied `corporationactivities.fsdbinary` bytes.
|
|
6
|
+
*
|
|
7
|
+
* `nameID` is a localisation label identifier; resolve it through
|
|
8
|
+
* `CjsFsdLocalization`.
|
|
9
|
+
*
|
|
10
|
+
* An 8-byte record carrying one label and nothing else. `npcCorporations`
|
|
11
|
+
* references it through `mainActivityID` and `secondaryActivityID`.
|
|
12
|
+
*/
|
|
13
|
+
class CjsFsd64SchemaCorporationActivities extends CjsFsd64SchemaReader {
|
|
14
|
+
static getFsdSchema = CjsFsd64SchemaReader.bindFsdSchema(CjsFsd64SchemaDecoder.defineSchema({
|
|
15
|
+
"schema": "carbonenginejs.fsdBinarySchema",
|
|
16
|
+
"name": "corporationActivities",
|
|
17
|
+
"schemaVersion": 1,
|
|
18
|
+
"path": "res:/staticdata/corporationactivities.fsdbinary",
|
|
19
|
+
"schemaID": "682b3a00388dd009443aa1c2e32e89c6",
|
|
20
|
+
"container": {
|
|
21
|
+
"type": "MAP",
|
|
22
|
+
"recordSize": 8,
|
|
23
|
+
"key": {
|
|
24
|
+
"type": "UINT_32_IDENTIFIER",
|
|
25
|
+
"offset": 0
|
|
26
|
+
},
|
|
27
|
+
"fields": [{
|
|
28
|
+
"name": "nameID",
|
|
29
|
+
"type": "UINT_32",
|
|
30
|
+
"offset": 4,
|
|
31
|
+
"sourceName": "nameID"
|
|
32
|
+
}]
|
|
33
|
+
}
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { CjsFsd64SchemaCorporationActivities };
|
|
38
|
+
//# sourceMappingURL=CjsFsd64SchemaCorporationActivities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CjsFsd64SchemaCorporationActivities.js","sources":["../../../../../../src/formats/fsd/64/readers/CjsFsd64SchemaCorporationActivities.js"],"sourcesContent":["import { CjsFsd64SchemaDecoder } from \"../core/CjsFsd64SchemaDecoder.js\";\nimport { CjsFsd64SchemaReader } from \"../core/CjsFsd64SchemaReader.js\";\n\n\n/**\n * Reads caller-supplied `corporationactivities.fsdbinary` bytes.\n *\n * `nameID` is a localisation label identifier; resolve it through\n * `CjsFsdLocalization`.\n *\n * An 8-byte record carrying one label and nothing else. `npcCorporations`\n * references it through `mainActivityID` and `secondaryActivityID`.\n */\nexport class CjsFsd64SchemaCorporationActivities extends CjsFsd64SchemaReader\n{\n static getFsdSchema = CjsFsd64SchemaReader.bindFsdSchema(CjsFsd64SchemaDecoder.defineSchema({\n \"schema\": \"carbonenginejs.fsdBinarySchema\",\n \"name\": \"corporationActivities\",\n \"schemaVersion\": 1,\n \"path\": \"res:/staticdata/corporationactivities.fsdbinary\",\n \"schemaID\": \"682b3a00388dd009443aa1c2e32e89c6\",\n \"container\": {\n \"type\": \"MAP\",\n \"recordSize\": 8,\n \"key\": {\n \"type\": \"UINT_32_IDENTIFIER\",\n \"offset\": 0\n },\n \"fields\": [\n {\n \"name\": \"nameID\",\n \"type\": \"UINT_32\",\n \"offset\": 4,\n \"sourceName\": \"nameID\"\n }\n ]\n }\n }));\n\n}\n\nexport default new CjsFsd64SchemaCorporationActivities();\n"],"names":["CjsFsd64SchemaCorporationActivities","CjsFsd64SchemaReader","getFsdSchema","bindFsdSchema","CjsFsd64SchemaDecoder","defineSchema"],"mappings":";;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,mCAAmC,SAASC,oBAAoB,CAC7E;EACI,OAAOC,YAAY,GAAGD,oBAAoB,CAACE,aAAa,CAACC,qBAAqB,CAACC,YAAY,CAAC;AACxF,IAAA,QAAQ,EAAE,gCAAgC;AAC1C,IAAA,MAAM,EAAE,uBAAuB;AAC/B,IAAA,eAAe,EAAE,CAAC;AAClB,IAAA,MAAM,EAAE,iDAAiD;AACzD,IAAA,UAAU,EAAE,kCAAkC;AAC9C,IAAA,WAAW,EAAE;AACT,MAAA,MAAM,EAAE,KAAK;AACb,MAAA,YAAY,EAAE,CAAC;AACf,MAAA,KAAK,EAAE;AACH,QAAA,MAAM,EAAE,oBAAoB;AAC5B,QAAA,QAAQ,EAAE;OACb;AACD,MAAA,QAAQ,EAAE,CACN;AACI,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,MAAM,EAAE,SAAS;AACjB,QAAA,QAAQ,EAAE,CAAC;AACX,QAAA,YAAY,EAAE;OACjB;AAET;AACJ,GAAC,CAAC,CAAC;AAEP;;;;"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { CjsFsd64SchemaDecoder } from '../core/CjsFsd64SchemaDecoder.js';
|
|
2
|
+
import { CjsFsd64SchemaReader } from '../core/CjsFsd64SchemaReader.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Reads caller-supplied `corporationrolegroups.fsdbinary` bytes.
|
|
6
|
+
*
|
|
7
|
+
* `roleGroupNameID` is a localisation label identifier; resolve it through
|
|
8
|
+
* `CjsFsdLocalization`.
|
|
9
|
+
*
|
|
10
|
+
* `roleMask` exceeds 2^53 and is read as a 64-bit value. It is not decoration:
|
|
11
|
+
* it is the only place the role-to-group relation is stored. See
|
|
12
|
+
* `CjsFsd64SchemaCorporationRoles` for the derivation.
|
|
13
|
+
*
|
|
14
|
+
* `roleMask` is a bit set over role identifiers, so a caller reading it must
|
|
15
|
+
* use `BigInt` rather than `Number` to test a bit.
|
|
16
|
+
*/
|
|
17
|
+
class CjsFsd64SchemaCorporationRoleGroups extends CjsFsd64SchemaReader {
|
|
18
|
+
static getFsdSchema = CjsFsd64SchemaReader.bindFsdSchema(CjsFsd64SchemaDecoder.defineSchema({
|
|
19
|
+
"schema": "carbonenginejs.fsdBinarySchema",
|
|
20
|
+
"name": "corporationRoleGroups",
|
|
21
|
+
"schemaVersion": 1,
|
|
22
|
+
"path": "res:/staticdata/corporationrolegroups.fsdbinary",
|
|
23
|
+
"schemaID": "88a96e3e9f22800c4f0c9f3f33c9dc9a",
|
|
24
|
+
"container": {
|
|
25
|
+
"type": "MAP",
|
|
26
|
+
"recordSize": 48,
|
|
27
|
+
"key": {
|
|
28
|
+
"type": "UINT_32_IDENTIFIER",
|
|
29
|
+
"offset": 0
|
|
30
|
+
},
|
|
31
|
+
"fields": [{
|
|
32
|
+
"name": "appliesTo",
|
|
33
|
+
"type": "STRING",
|
|
34
|
+
"offset": 8,
|
|
35
|
+
"sourceName": "appliesTo"
|
|
36
|
+
}, {
|
|
37
|
+
"name": "appliesToGrantable",
|
|
38
|
+
"type": "STRING",
|
|
39
|
+
"offset": 16,
|
|
40
|
+
"sourceName": "appliesToGrantable"
|
|
41
|
+
}, {
|
|
42
|
+
"name": "roleGroupName",
|
|
43
|
+
"type": "STRING",
|
|
44
|
+
"offset": 24,
|
|
45
|
+
"sourceName": "roleGroupName"
|
|
46
|
+
}, {
|
|
47
|
+
"name": "roleMask",
|
|
48
|
+
"type": "UINT_64_IDENTIFIER",
|
|
49
|
+
"offset": 32,
|
|
50
|
+
"sourceName": "roleMask"
|
|
51
|
+
}, {
|
|
52
|
+
"name": "roleGroupNameID",
|
|
53
|
+
"type": "UINT_32",
|
|
54
|
+
"offset": 40,
|
|
55
|
+
"sourceName": "roleGroupNameID"
|
|
56
|
+
}, {
|
|
57
|
+
"name": "isDivisional",
|
|
58
|
+
"type": "BOOLEAN",
|
|
59
|
+
"offset": 44,
|
|
60
|
+
"bit": 0,
|
|
61
|
+
"sourceName": "isDivisional"
|
|
62
|
+
}, {
|
|
63
|
+
"name": "isLocational",
|
|
64
|
+
"type": "BOOLEAN",
|
|
65
|
+
"offset": 45,
|
|
66
|
+
"bit": 0,
|
|
67
|
+
"sourceName": "isLocational"
|
|
68
|
+
}]
|
|
69
|
+
}
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export { CjsFsd64SchemaCorporationRoleGroups };
|
|
74
|
+
//# sourceMappingURL=CjsFsd64SchemaCorporationRoleGroups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CjsFsd64SchemaCorporationRoleGroups.js","sources":["../../../../../../src/formats/fsd/64/readers/CjsFsd64SchemaCorporationRoleGroups.js"],"sourcesContent":["import { CjsFsd64SchemaDecoder } from \"../core/CjsFsd64SchemaDecoder.js\";\nimport { CjsFsd64SchemaReader } from \"../core/CjsFsd64SchemaReader.js\";\n\n\n/**\n * Reads caller-supplied `corporationrolegroups.fsdbinary` bytes.\n *\n * `roleGroupNameID` is a localisation label identifier; resolve it through\n * `CjsFsdLocalization`.\n *\n * `roleMask` exceeds 2^53 and is read as a 64-bit value. It is not decoration:\n * it is the only place the role-to-group relation is stored. See\n * `CjsFsd64SchemaCorporationRoles` for the derivation.\n *\n * `roleMask` is a bit set over role identifiers, so a caller reading it must\n * use `BigInt` rather than `Number` to test a bit.\n */\nexport class CjsFsd64SchemaCorporationRoleGroups extends CjsFsd64SchemaReader\n{\n static getFsdSchema = CjsFsd64SchemaReader.bindFsdSchema(CjsFsd64SchemaDecoder.defineSchema({\n \"schema\": \"carbonenginejs.fsdBinarySchema\",\n \"name\": \"corporationRoleGroups\",\n \"schemaVersion\": 1,\n \"path\": \"res:/staticdata/corporationrolegroups.fsdbinary\",\n \"schemaID\": \"88a96e3e9f22800c4f0c9f3f33c9dc9a\",\n \"container\": {\n \"type\": \"MAP\",\n \"recordSize\": 48,\n \"key\": {\n \"type\": \"UINT_32_IDENTIFIER\",\n \"offset\": 0\n },\n \"fields\": [\n {\n \"name\": \"appliesTo\",\n \"type\": \"STRING\",\n \"offset\": 8,\n \"sourceName\": \"appliesTo\"\n },\n {\n \"name\": \"appliesToGrantable\",\n \"type\": \"STRING\",\n \"offset\": 16,\n \"sourceName\": \"appliesToGrantable\"\n },\n {\n \"name\": \"roleGroupName\",\n \"type\": \"STRING\",\n \"offset\": 24,\n \"sourceName\": \"roleGroupName\"\n },\n {\n \"name\": \"roleMask\",\n \"type\": \"UINT_64_IDENTIFIER\",\n \"offset\": 32,\n \"sourceName\": \"roleMask\"\n },\n {\n \"name\": \"roleGroupNameID\",\n \"type\": \"UINT_32\",\n \"offset\": 40,\n \"sourceName\": \"roleGroupNameID\"\n },\n {\n \"name\": \"isDivisional\",\n \"type\": \"BOOLEAN\",\n \"offset\": 44,\n \"bit\": 0,\n \"sourceName\": \"isDivisional\"\n },\n {\n \"name\": \"isLocational\",\n \"type\": \"BOOLEAN\",\n \"offset\": 45,\n \"bit\": 0,\n \"sourceName\": \"isLocational\"\n }\n ]\n }\n }));\n\n}\n\nexport default new CjsFsd64SchemaCorporationRoleGroups();\n"],"names":["CjsFsd64SchemaCorporationRoleGroups","CjsFsd64SchemaReader","getFsdSchema","bindFsdSchema","CjsFsd64SchemaDecoder","defineSchema"],"mappings":";;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,mCAAmC,SAASC,oBAAoB,CAC7E;EACI,OAAOC,YAAY,GAAGD,oBAAoB,CAACE,aAAa,CAACC,qBAAqB,CAACC,YAAY,CAAC;AACxF,IAAA,QAAQ,EAAE,gCAAgC;AAC1C,IAAA,MAAM,EAAE,uBAAuB;AAC/B,IAAA,eAAe,EAAE,CAAC;AAClB,IAAA,MAAM,EAAE,iDAAiD;AACzD,IAAA,UAAU,EAAE,kCAAkC;AAC9C,IAAA,WAAW,EAAE;AACT,MAAA,MAAM,EAAE,KAAK;AACb,MAAA,YAAY,EAAE,EAAE;AAChB,MAAA,KAAK,EAAE;AACH,QAAA,MAAM,EAAE,oBAAoB;AAC5B,QAAA,QAAQ,EAAE;OACb;AACD,MAAA,QAAQ,EAAE,CACN;AACI,QAAA,MAAM,EAAE,WAAW;AACnB,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,QAAQ,EAAE,CAAC;AACX,QAAA,YAAY,EAAE;AAClB,OAAC,EACD;AACI,QAAA,MAAM,EAAE,oBAAoB;AAC5B,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,YAAY,EAAE;AAClB,OAAC,EACD;AACI,QAAA,MAAM,EAAE,eAAe;AACvB,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,YAAY,EAAE;AAClB,OAAC,EACD;AACI,QAAA,MAAM,EAAE,UAAU;AAClB,QAAA,MAAM,EAAE,oBAAoB;AAC5B,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,YAAY,EAAE;AAClB,OAAC,EACD;AACI,QAAA,MAAM,EAAE,iBAAiB;AACzB,QAAA,MAAM,EAAE,SAAS;AACjB,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,YAAY,EAAE;AAClB,OAAC,EACD;AACI,QAAA,MAAM,EAAE,cAAc;AACtB,QAAA,MAAM,EAAE,SAAS;AACjB,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,YAAY,EAAE;AAClB,OAAC,EACD;AACI,QAAA,MAAM,EAAE,cAAc;AACtB,QAAA,MAAM,EAAE,SAAS;AACjB,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,YAAY,EAAE;OACjB;AAET;AACJ,GAAC,CAAC,CAAC;AAEP;;;;"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { CjsFsd64SchemaDecoder } from '../core/CjsFsd64SchemaDecoder.js';
|
|
2
|
+
import { CjsFsd64SchemaReader } from '../core/CjsFsd64SchemaReader.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Reads caller-supplied `corporationroles.fsdbinary` bytes.
|
|
6
|
+
*
|
|
7
|
+
* `descriptionID`, `nameID` are localisation label identifiers; resolve them
|
|
8
|
+
* through `CjsFsdLocalization`.
|
|
9
|
+
*
|
|
10
|
+
* **`roleGroupIDs` is not stored, and this reader does not invent it.** CCP's
|
|
11
|
+
* export publishes it; the client derives it. Role `r` belongs to group `g` iff
|
|
12
|
+
* bit `r` of `CjsFsd64SchemaCorporationRoleGroups`'s `roleMask` for `g` is set,
|
|
13
|
+
* which reproduces all 55 roles exactly - including role 61, which lands in no
|
|
14
|
+
* group at all and which the export publishes without the field. A caller that
|
|
15
|
+
* wants `roleGroupIDs` computes it from the two tables; `roleMask` exceeds
|
|
16
|
+
* 2^53, so test the bit with `BigInt`.
|
|
17
|
+
*/
|
|
18
|
+
class CjsFsd64SchemaCorporationRoles extends CjsFsd64SchemaReader {
|
|
19
|
+
static getFsdSchema = CjsFsd64SchemaReader.bindFsdSchema(CjsFsd64SchemaDecoder.defineSchema({
|
|
20
|
+
"schema": "carbonenginejs.fsdBinarySchema",
|
|
21
|
+
"name": "corporationRoles",
|
|
22
|
+
"schemaVersion": 1,
|
|
23
|
+
"path": "res:/staticdata/corporationroles.fsdbinary",
|
|
24
|
+
"schemaID": "71d7046924e19a6795d747a204b2bc4a",
|
|
25
|
+
"container": {
|
|
26
|
+
"type": "MAP",
|
|
27
|
+
"recordSize": 32,
|
|
28
|
+
"key": {
|
|
29
|
+
"type": "UINT_32_IDENTIFIER",
|
|
30
|
+
"offset": 0
|
|
31
|
+
},
|
|
32
|
+
"presence": {
|
|
33
|
+
"type": "UINT_32",
|
|
34
|
+
"offset": 24,
|
|
35
|
+
"allowedMask": 1
|
|
36
|
+
},
|
|
37
|
+
"fields": [{
|
|
38
|
+
"name": "roleName",
|
|
39
|
+
"type": "STRING",
|
|
40
|
+
"offset": 8,
|
|
41
|
+
"sourceName": "roleName"
|
|
42
|
+
}, {
|
|
43
|
+
"name": "descriptionID",
|
|
44
|
+
"type": "UINT_32",
|
|
45
|
+
"offset": 16,
|
|
46
|
+
"sourceName": "descriptionID",
|
|
47
|
+
"presenceMask": 1
|
|
48
|
+
}, {
|
|
49
|
+
"name": "nameID",
|
|
50
|
+
"type": "UINT_32",
|
|
51
|
+
"offset": 20,
|
|
52
|
+
"sourceName": "nameID"
|
|
53
|
+
}]
|
|
54
|
+
}
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { CjsFsd64SchemaCorporationRoles };
|
|
59
|
+
//# sourceMappingURL=CjsFsd64SchemaCorporationRoles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CjsFsd64SchemaCorporationRoles.js","sources":["../../../../../../src/formats/fsd/64/readers/CjsFsd64SchemaCorporationRoles.js"],"sourcesContent":["import { CjsFsd64SchemaDecoder } from \"../core/CjsFsd64SchemaDecoder.js\";\nimport { CjsFsd64SchemaReader } from \"../core/CjsFsd64SchemaReader.js\";\n\n\n/**\n * Reads caller-supplied `corporationroles.fsdbinary` bytes.\n *\n * `descriptionID`, `nameID` are localisation label identifiers; resolve them\n * through `CjsFsdLocalization`.\n *\n * **`roleGroupIDs` is not stored, and this reader does not invent it.** CCP's\n * export publishes it; the client derives it. Role `r` belongs to group `g` iff\n * bit `r` of `CjsFsd64SchemaCorporationRoleGroups`'s `roleMask` for `g` is set,\n * which reproduces all 55 roles exactly - including role 61, which lands in no\n * group at all and which the export publishes without the field. A caller that\n * wants `roleGroupIDs` computes it from the two tables; `roleMask` exceeds\n * 2^53, so test the bit with `BigInt`.\n */\nexport class CjsFsd64SchemaCorporationRoles extends CjsFsd64SchemaReader\n{\n static getFsdSchema = CjsFsd64SchemaReader.bindFsdSchema(CjsFsd64SchemaDecoder.defineSchema({\n \"schema\": \"carbonenginejs.fsdBinarySchema\",\n \"name\": \"corporationRoles\",\n \"schemaVersion\": 1,\n \"path\": \"res:/staticdata/corporationroles.fsdbinary\",\n \"schemaID\": \"71d7046924e19a6795d747a204b2bc4a\",\n \"container\": {\n \"type\": \"MAP\",\n \"recordSize\": 32,\n \"key\": {\n \"type\": \"UINT_32_IDENTIFIER\",\n \"offset\": 0\n },\n \"presence\": {\n \"type\": \"UINT_32\",\n \"offset\": 24,\n \"allowedMask\": 1\n },\n \"fields\": [\n {\n \"name\": \"roleName\",\n \"type\": \"STRING\",\n \"offset\": 8,\n \"sourceName\": \"roleName\"\n },\n {\n \"name\": \"descriptionID\",\n \"type\": \"UINT_32\",\n \"offset\": 16,\n \"sourceName\": \"descriptionID\",\n \"presenceMask\": 1\n },\n {\n \"name\": \"nameID\",\n \"type\": \"UINT_32\",\n \"offset\": 20,\n \"sourceName\": \"nameID\"\n }\n ]\n }\n }));\n\n}\n\nexport default new CjsFsd64SchemaCorporationRoles();\n"],"names":["CjsFsd64SchemaCorporationRoles","CjsFsd64SchemaReader","getFsdSchema","bindFsdSchema","CjsFsd64SchemaDecoder","defineSchema"],"mappings":";;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,8BAA8B,SAASC,oBAAoB,CACxE;EACI,OAAOC,YAAY,GAAGD,oBAAoB,CAACE,aAAa,CAACC,qBAAqB,CAACC,YAAY,CAAC;AACxF,IAAA,QAAQ,EAAE,gCAAgC;AAC1C,IAAA,MAAM,EAAE,kBAAkB;AAC1B,IAAA,eAAe,EAAE,CAAC;AAClB,IAAA,MAAM,EAAE,4CAA4C;AACpD,IAAA,UAAU,EAAE,kCAAkC;AAC9C,IAAA,WAAW,EAAE;AACT,MAAA,MAAM,EAAE,KAAK;AACb,MAAA,YAAY,EAAE,EAAE;AAChB,MAAA,KAAK,EAAE;AACH,QAAA,MAAM,EAAE,oBAAoB;AAC5B,QAAA,QAAQ,EAAE;OACb;AACD,MAAA,UAAU,EAAE;AACR,QAAA,MAAM,EAAE,SAAS;AACjB,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,aAAa,EAAE;OAClB;AACD,MAAA,QAAQ,EAAE,CACN;AACI,QAAA,MAAM,EAAE,UAAU;AAClB,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,QAAQ,EAAE,CAAC;AACX,QAAA,YAAY,EAAE;AAClB,OAAC,EACD;AACI,QAAA,MAAM,EAAE,eAAe;AACvB,QAAA,MAAM,EAAE,SAAS;AACjB,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,YAAY,EAAE,eAAe;AAC7B,QAAA,cAAc,EAAE;AACpB,OAAC,EACD;AACI,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,MAAM,EAAE,SAAS;AACjB,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,YAAY,EAAE;OACjB;AAET;AACJ,GAAC,CAAC,CAAC;AAEP;;;;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { CjsFsd64SchemaDecoder } from '../core/CjsFsd64SchemaDecoder.js';
|
|
2
|
+
import { CjsFsd64SchemaReader } from '../core/CjsFsd64SchemaReader.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Reads caller-supplied `dogmaattributecategories.fsdbinary` bytes.
|
|
6
|
+
*
|
|
7
|
+
* Both fields are inline text rather than label identifiers, so this table
|
|
8
|
+
* needs no localisation and reads identically on every publisher.
|
|
9
|
+
*/
|
|
10
|
+
class CjsFsd64SchemaDogmaAttributeCategories extends CjsFsd64SchemaReader {
|
|
11
|
+
static getFsdSchema = CjsFsd64SchemaReader.bindFsdSchema(CjsFsd64SchemaDecoder.defineSchema({
|
|
12
|
+
"schema": "carbonenginejs.fsdBinarySchema",
|
|
13
|
+
"name": "dogmaAttributeCategories",
|
|
14
|
+
"schemaVersion": 1,
|
|
15
|
+
"path": "res:/staticdata/dogmaattributecategories.fsdbinary",
|
|
16
|
+
"schemaID": "9f72a07713f5a7ef7cd664b64a8b601f",
|
|
17
|
+
"container": {
|
|
18
|
+
"type": "MAP",
|
|
19
|
+
"recordSize": 32,
|
|
20
|
+
"key": {
|
|
21
|
+
"type": "UINT_32_IDENTIFIER",
|
|
22
|
+
"offset": 0
|
|
23
|
+
},
|
|
24
|
+
"presence": {
|
|
25
|
+
"type": "UINT_32",
|
|
26
|
+
"offset": 24,
|
|
27
|
+
"allowedMask": 1
|
|
28
|
+
},
|
|
29
|
+
"fields": [{
|
|
30
|
+
"name": "description",
|
|
31
|
+
"type": "STRING",
|
|
32
|
+
"offset": 8,
|
|
33
|
+
"sourceName": "description",
|
|
34
|
+
"presenceMask": 1
|
|
35
|
+
}, {
|
|
36
|
+
"name": "name",
|
|
37
|
+
"type": "STRING",
|
|
38
|
+
"offset": 16,
|
|
39
|
+
"sourceName": "name"
|
|
40
|
+
}]
|
|
41
|
+
}
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { CjsFsd64SchemaDogmaAttributeCategories };
|
|
46
|
+
//# sourceMappingURL=CjsFsd64SchemaDogmaAttributeCategories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CjsFsd64SchemaDogmaAttributeCategories.js","sources":["../../../../../../src/formats/fsd/64/readers/CjsFsd64SchemaDogmaAttributeCategories.js"],"sourcesContent":["import { CjsFsd64SchemaDecoder } from \"../core/CjsFsd64SchemaDecoder.js\";\nimport { CjsFsd64SchemaReader } from \"../core/CjsFsd64SchemaReader.js\";\n\n\n/**\n * Reads caller-supplied `dogmaattributecategories.fsdbinary` bytes.\n *\n * Both fields are inline text rather than label identifiers, so this table\n * needs no localisation and reads identically on every publisher.\n */\nexport class CjsFsd64SchemaDogmaAttributeCategories extends CjsFsd64SchemaReader\n{\n static getFsdSchema = CjsFsd64SchemaReader.bindFsdSchema(CjsFsd64SchemaDecoder.defineSchema({\n \"schema\": \"carbonenginejs.fsdBinarySchema\",\n \"name\": \"dogmaAttributeCategories\",\n \"schemaVersion\": 1,\n \"path\": \"res:/staticdata/dogmaattributecategories.fsdbinary\",\n \"schemaID\": \"9f72a07713f5a7ef7cd664b64a8b601f\",\n \"container\": {\n \"type\": \"MAP\",\n \"recordSize\": 32,\n \"key\": {\n \"type\": \"UINT_32_IDENTIFIER\",\n \"offset\": 0\n },\n \"presence\": {\n \"type\": \"UINT_32\",\n \"offset\": 24,\n \"allowedMask\": 1\n },\n \"fields\": [\n {\n \"name\": \"description\",\n \"type\": \"STRING\",\n \"offset\": 8,\n \"sourceName\": \"description\",\n \"presenceMask\": 1\n },\n {\n \"name\": \"name\",\n \"type\": \"STRING\",\n \"offset\": 16,\n \"sourceName\": \"name\"\n }\n ]\n }\n }));\n\n}\n\nexport default new CjsFsd64SchemaDogmaAttributeCategories();\n"],"names":["CjsFsd64SchemaDogmaAttributeCategories","CjsFsd64SchemaReader","getFsdSchema","bindFsdSchema","CjsFsd64SchemaDecoder","defineSchema"],"mappings":";;;AAIA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,sCAAsC,SAASC,oBAAoB,CAChF;EACI,OAAOC,YAAY,GAAGD,oBAAoB,CAACE,aAAa,CAACC,qBAAqB,CAACC,YAAY,CAAC;AACxF,IAAA,QAAQ,EAAE,gCAAgC;AAC1C,IAAA,MAAM,EAAE,0BAA0B;AAClC,IAAA,eAAe,EAAE,CAAC;AAClB,IAAA,MAAM,EAAE,oDAAoD;AAC5D,IAAA,UAAU,EAAE,kCAAkC;AAC9C,IAAA,WAAW,EAAE;AACT,MAAA,MAAM,EAAE,KAAK;AACb,MAAA,YAAY,EAAE,EAAE;AAChB,MAAA,KAAK,EAAE;AACH,QAAA,MAAM,EAAE,oBAAoB;AAC5B,QAAA,QAAQ,EAAE;OACb;AACD,MAAA,UAAU,EAAE;AACR,QAAA,MAAM,EAAE,SAAS;AACjB,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,aAAa,EAAE;OAClB;AACD,MAAA,QAAQ,EAAE,CACN;AACI,QAAA,MAAM,EAAE,aAAa;AACrB,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,QAAQ,EAAE,CAAC;AACX,QAAA,YAAY,EAAE,aAAa;AAC3B,QAAA,cAAc,EAAE;AACpB,OAAC,EACD;AACI,QAAA,MAAM,EAAE,MAAM;AACd,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,YAAY,EAAE;OACjB;AAET;AACJ,GAAC,CAAC,CAAC;AAEP;;;;"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { CjsFsd64SchemaDecoder } from '../core/CjsFsd64SchemaDecoder.js';
|
|
2
|
+
import { CjsFsd64SchemaReader } from '../core/CjsFsd64SchemaReader.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Reads caller-supplied `dogmaattributes.fsdbinary` bytes.
|
|
6
|
+
*
|
|
7
|
+
* Decodes attribute definitions. `name` and `description` are inline text
|
|
8
|
+
* because they are internal, but `displayNameID`, `tooltipTitleID` and
|
|
9
|
+
* `tooltipDescriptionID` are label identifiers: resolve them through
|
|
10
|
+
* `CjsFsdLocalization`. CCP's export publishes the resolved text under
|
|
11
|
+
* `displayName`, `tooltipTitle` and `tooltipDescription`, and renames
|
|
12
|
+
* `categoryID` to `attributeCategoryID`; this reader keeps the client's names.
|
|
13
|
+
*
|
|
14
|
+
* `attributeID` repeats the record key, which the client stores rather than
|
|
15
|
+
* derives. It is guarded by a presence bit that is set on every record.
|
|
16
|
+
*
|
|
17
|
+
* Field names and order were read from `dogmaAttributesLoader.pyd`; offsets and
|
|
18
|
+
* presence masks were solved against CCP's published export at build 3466501,
|
|
19
|
+
* unanimously over all 2,866 records.
|
|
20
|
+
*/
|
|
21
|
+
class CjsFsd64SchemaDogmaAttributes extends CjsFsd64SchemaReader {
|
|
22
|
+
static getFsdSchema = CjsFsd64SchemaReader.bindFsdSchema(CjsFsd64SchemaDecoder.defineSchema({
|
|
23
|
+
"schema": "carbonenginejs.fsdBinarySchema",
|
|
24
|
+
"name": "dogmaAttributes",
|
|
25
|
+
"schemaVersion": 1,
|
|
26
|
+
"path": "res:/staticdata/dogmaattributes.fsdbinary",
|
|
27
|
+
"schemaID": "dd6befd76ceb8a44f54c7c5e2f69a988",
|
|
28
|
+
"container": {
|
|
29
|
+
"type": "MAP",
|
|
30
|
+
"recordSize": 80,
|
|
31
|
+
"key": {
|
|
32
|
+
"type": "UINT_32_IDENTIFIER",
|
|
33
|
+
"offset": 0
|
|
34
|
+
},
|
|
35
|
+
"presence": {
|
|
36
|
+
"type": "UINT_32",
|
|
37
|
+
"offset": 76,
|
|
38
|
+
"allowedMask": 2047
|
|
39
|
+
},
|
|
40
|
+
"fields": [{
|
|
41
|
+
"name": "description",
|
|
42
|
+
"type": "STRING",
|
|
43
|
+
"offset": 8,
|
|
44
|
+
"presenceMask": 4
|
|
45
|
+
}, {
|
|
46
|
+
"name": "name",
|
|
47
|
+
"type": "STRING",
|
|
48
|
+
"offset": 16
|
|
49
|
+
}, {
|
|
50
|
+
"name": "attributeID",
|
|
51
|
+
"type": "UINT_32_IDENTIFIER",
|
|
52
|
+
"offset": 24,
|
|
53
|
+
"presenceMask": 16
|
|
54
|
+
}, {
|
|
55
|
+
"name": "categoryID",
|
|
56
|
+
"type": "UINT_32_IDENTIFIER",
|
|
57
|
+
"offset": 28,
|
|
58
|
+
"presenceMask": 1
|
|
59
|
+
}, {
|
|
60
|
+
"name": "chargeRechargeTimeID",
|
|
61
|
+
"type": "UINT_32_IDENTIFIER",
|
|
62
|
+
"offset": 32,
|
|
63
|
+
"presenceMask": 2
|
|
64
|
+
}, {
|
|
65
|
+
"name": "dataType",
|
|
66
|
+
"type": "UINT_32",
|
|
67
|
+
"offset": 36
|
|
68
|
+
}, {
|
|
69
|
+
"name": "defaultValue",
|
|
70
|
+
"type": "FLOAT_32",
|
|
71
|
+
"offset": 40
|
|
72
|
+
}, {
|
|
73
|
+
"name": "displayNameID",
|
|
74
|
+
"type": "UINT_32",
|
|
75
|
+
"offset": 44,
|
|
76
|
+
"presenceMask": 8
|
|
77
|
+
}, {
|
|
78
|
+
"name": "iconID",
|
|
79
|
+
"type": "UINT_32_IDENTIFIER",
|
|
80
|
+
"offset": 48,
|
|
81
|
+
"presenceMask": 32
|
|
82
|
+
}, {
|
|
83
|
+
"name": "maxAttributeID",
|
|
84
|
+
"type": "UINT_32_IDENTIFIER",
|
|
85
|
+
"offset": 52,
|
|
86
|
+
"presenceMask": 64
|
|
87
|
+
}, {
|
|
88
|
+
"name": "minAttributeID",
|
|
89
|
+
"type": "UINT_32_IDENTIFIER",
|
|
90
|
+
"offset": 56,
|
|
91
|
+
"presenceMask": 128
|
|
92
|
+
}, {
|
|
93
|
+
"name": "tooltipDescriptionID",
|
|
94
|
+
"type": "UINT_32",
|
|
95
|
+
"offset": 60,
|
|
96
|
+
"presenceMask": 256
|
|
97
|
+
}, {
|
|
98
|
+
"name": "tooltipTitleID",
|
|
99
|
+
"type": "UINT_32",
|
|
100
|
+
"offset": 64,
|
|
101
|
+
"presenceMask": 512
|
|
102
|
+
}, {
|
|
103
|
+
"name": "unitID",
|
|
104
|
+
"type": "UINT_32_IDENTIFIER",
|
|
105
|
+
"offset": 68,
|
|
106
|
+
"presenceMask": 1024
|
|
107
|
+
}, {
|
|
108
|
+
"name": "displayWhenZero",
|
|
109
|
+
"type": "BOOLEAN",
|
|
110
|
+
"offset": 72,
|
|
111
|
+
"bit": 0
|
|
112
|
+
}, {
|
|
113
|
+
"name": "highIsGood",
|
|
114
|
+
"type": "BOOLEAN",
|
|
115
|
+
"offset": 73,
|
|
116
|
+
"bit": 0
|
|
117
|
+
}, {
|
|
118
|
+
"name": "published",
|
|
119
|
+
"type": "BOOLEAN",
|
|
120
|
+
"offset": 74,
|
|
121
|
+
"bit": 0
|
|
122
|
+
}, {
|
|
123
|
+
"name": "stackable",
|
|
124
|
+
"type": "BOOLEAN",
|
|
125
|
+
"offset": 75,
|
|
126
|
+
"bit": 0
|
|
127
|
+
}]
|
|
128
|
+
}
|
|
129
|
+
}));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export { CjsFsd64SchemaDogmaAttributes };
|
|
133
|
+
//# sourceMappingURL=CjsFsd64SchemaDogmaAttributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CjsFsd64SchemaDogmaAttributes.js","sources":["../../../../../../src/formats/fsd/64/readers/CjsFsd64SchemaDogmaAttributes.js"],"sourcesContent":["import { CjsFsd64SchemaDecoder } from \"../core/CjsFsd64SchemaDecoder.js\";\nimport { CjsFsd64SchemaReader } from \"../core/CjsFsd64SchemaReader.js\";\n\n\n/**\n * Reads caller-supplied `dogmaattributes.fsdbinary` bytes.\n *\n * Decodes attribute definitions. `name` and `description` are inline text\n * because they are internal, but `displayNameID`, `tooltipTitleID` and\n * `tooltipDescriptionID` are label identifiers: resolve them through\n * `CjsFsdLocalization`. CCP's export publishes the resolved text under\n * `displayName`, `tooltipTitle` and `tooltipDescription`, and renames\n * `categoryID` to `attributeCategoryID`; this reader keeps the client's names.\n *\n * `attributeID` repeats the record key, which the client stores rather than\n * derives. It is guarded by a presence bit that is set on every record.\n *\n * Field names and order were read from `dogmaAttributesLoader.pyd`; offsets and\n * presence masks were solved against CCP's published export at build 3466501,\n * unanimously over all 2,866 records.\n */\nexport class CjsFsd64SchemaDogmaAttributes extends CjsFsd64SchemaReader\n{\n static getFsdSchema = CjsFsd64SchemaReader.bindFsdSchema(CjsFsd64SchemaDecoder.defineSchema({\n \"schema\": \"carbonenginejs.fsdBinarySchema\",\n \"name\": \"dogmaAttributes\",\n \"schemaVersion\": 1,\n \"path\": \"res:/staticdata/dogmaattributes.fsdbinary\",\n \"schemaID\": \"dd6befd76ceb8a44f54c7c5e2f69a988\",\n \"container\": {\n \"type\": \"MAP\",\n \"recordSize\": 80,\n \"key\": {\n \"type\": \"UINT_32_IDENTIFIER\",\n \"offset\": 0\n },\n \"presence\": {\n \"type\": \"UINT_32\",\n \"offset\": 76,\n \"allowedMask\": 2047\n },\n \"fields\": [\n {\n \"name\": \"description\",\n \"type\": \"STRING\",\n \"offset\": 8,\n \"presenceMask\": 4\n },\n {\n \"name\": \"name\",\n \"type\": \"STRING\",\n \"offset\": 16\n },\n {\n \"name\": \"attributeID\",\n \"type\": \"UINT_32_IDENTIFIER\",\n \"offset\": 24,\n \"presenceMask\": 16\n },\n {\n \"name\": \"categoryID\",\n \"type\": \"UINT_32_IDENTIFIER\",\n \"offset\": 28,\n \"presenceMask\": 1\n },\n {\n \"name\": \"chargeRechargeTimeID\",\n \"type\": \"UINT_32_IDENTIFIER\",\n \"offset\": 32,\n \"presenceMask\": 2\n },\n {\n \"name\": \"dataType\",\n \"type\": \"UINT_32\",\n \"offset\": 36\n },\n {\n \"name\": \"defaultValue\",\n \"type\": \"FLOAT_32\",\n \"offset\": 40\n },\n {\n \"name\": \"displayNameID\",\n \"type\": \"UINT_32\",\n \"offset\": 44,\n \"presenceMask\": 8\n },\n {\n \"name\": \"iconID\",\n \"type\": \"UINT_32_IDENTIFIER\",\n \"offset\": 48,\n \"presenceMask\": 32\n },\n {\n \"name\": \"maxAttributeID\",\n \"type\": \"UINT_32_IDENTIFIER\",\n \"offset\": 52,\n \"presenceMask\": 64\n },\n {\n \"name\": \"minAttributeID\",\n \"type\": \"UINT_32_IDENTIFIER\",\n \"offset\": 56,\n \"presenceMask\": 128\n },\n {\n \"name\": \"tooltipDescriptionID\",\n \"type\": \"UINT_32\",\n \"offset\": 60,\n \"presenceMask\": 256\n },\n {\n \"name\": \"tooltipTitleID\",\n \"type\": \"UINT_32\",\n \"offset\": 64,\n \"presenceMask\": 512\n },\n {\n \"name\": \"unitID\",\n \"type\": \"UINT_32_IDENTIFIER\",\n \"offset\": 68,\n \"presenceMask\": 1024\n },\n {\n \"name\": \"displayWhenZero\",\n \"type\": \"BOOLEAN\",\n \"offset\": 72,\n \"bit\": 0\n },\n {\n \"name\": \"highIsGood\",\n \"type\": \"BOOLEAN\",\n \"offset\": 73,\n \"bit\": 0\n },\n {\n \"name\": \"published\",\n \"type\": \"BOOLEAN\",\n \"offset\": 74,\n \"bit\": 0\n },\n {\n \"name\": \"stackable\",\n \"type\": \"BOOLEAN\",\n \"offset\": 75,\n \"bit\": 0\n }\n ]\n }\n }));\n\n}\n\nexport default new CjsFsd64SchemaDogmaAttributes();\n"],"names":["CjsFsd64SchemaDogmaAttributes","CjsFsd64SchemaReader","getFsdSchema","bindFsdSchema","CjsFsd64SchemaDecoder","defineSchema"],"mappings":"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"}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { CjsFsd64SchemaDecoder } from '../core/CjsFsd64SchemaDecoder.js';
|
|
2
|
+
import { CjsFsd64SchemaReader } from '../core/CjsFsd64SchemaReader.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Reads caller-supplied `dogmaeffects.fsdbinary` bytes.
|
|
6
|
+
*
|
|
7
|
+
* Decodes effect definitions and their `modifierInfo` list, which is what makes
|
|
8
|
+
* this table worth having: each entry names the attribute an effect modifies,
|
|
9
|
+
* the attribute it modifies it by, and the operation between them.
|
|
10
|
+
*
|
|
11
|
+
* Two fields the client stores are absent from CCP's export — `sfxName`, whose
|
|
12
|
+
* only non-empty value is the string `"None"`, and `effectID`, which repeats the
|
|
13
|
+
* record key. The export also renames `effectName` to `name` and
|
|
14
|
+
* `effectCategory` to `effectCategoryID`; this reader keeps the client's names.
|
|
15
|
+
*
|
|
16
|
+
* Field names and order were read from `dogmaEffectsLoader.pyd`; offsets and
|
|
17
|
+
* presence masks were solved against CCP's published export at build 3466501,
|
|
18
|
+
* unanimously over all 3,417 records and all 5,152 modifier entries.
|
|
19
|
+
*
|
|
20
|
+
* This is the one dataset of ten whose layout identity is not shared by all
|
|
21
|
+
* three publishers: Infinity reads `3f128288…` where CCP and Serenity read
|
|
22
|
+
* `b7107f57…`. The layout behind it is the same, which is why the second
|
|
23
|
+
* identity is accepted rather than solved again — measured over the 3,366
|
|
24
|
+
* effects Infinity shares with CCP, every field solves to the identical offset,
|
|
25
|
+
* the presence union is `0xffff` on both, the modifier entry is the same 48
|
|
26
|
+
* bytes, and 3,349 modifier lists decode identically. The seventeen that do not
|
|
27
|
+
* are well-formed decodes of different values, which is Infinity being a
|
|
28
|
+
* different world rather than the layout being different.
|
|
29
|
+
*/
|
|
30
|
+
class CjsFsd64SchemaDogmaEffects extends CjsFsd64SchemaReader {
|
|
31
|
+
static getFsdSchema = CjsFsd64SchemaReader.bindFsdSchema(CjsFsd64SchemaDecoder.defineSchema({
|
|
32
|
+
"schema": "carbonenginejs.fsdBinarySchema",
|
|
33
|
+
"name": "dogmaEffects",
|
|
34
|
+
"schemaVersion": 1,
|
|
35
|
+
"path": "res:/staticdata/dogmaeffects.fsdbinary",
|
|
36
|
+
"schemaID": "b7107f57fd413dd7f47a626dbc39abc9",
|
|
37
|
+
"acceptedSchemaIDs": ["3f12828866ea55b2d241ad5dec1a10c0"],
|
|
38
|
+
"container": {
|
|
39
|
+
"type": "MAP",
|
|
40
|
+
"recordSize": 112,
|
|
41
|
+
"key": {
|
|
42
|
+
"type": "UINT_32_IDENTIFIER",
|
|
43
|
+
"offset": 0
|
|
44
|
+
},
|
|
45
|
+
"presence": {
|
|
46
|
+
"type": "UINT_32",
|
|
47
|
+
"offset": 108,
|
|
48
|
+
"allowedMask": 65535
|
|
49
|
+
},
|
|
50
|
+
"fields": [{
|
|
51
|
+
"name": "effectName",
|
|
52
|
+
"type": "STRING",
|
|
53
|
+
"offset": 8
|
|
54
|
+
}, {
|
|
55
|
+
"name": "guid",
|
|
56
|
+
"type": "STRING",
|
|
57
|
+
"offset": 16,
|
|
58
|
+
"presenceMask": 128
|
|
59
|
+
}, {
|
|
60
|
+
"name": "modifierInfo",
|
|
61
|
+
"type": "LIST",
|
|
62
|
+
"offset": 24,
|
|
63
|
+
"itemSize": 48,
|
|
64
|
+
"presenceMask": 512,
|
|
65
|
+
"item": {
|
|
66
|
+
"type": "OBJECT",
|
|
67
|
+
"presence": {
|
|
68
|
+
"type": "UINT_32",
|
|
69
|
+
"offset": 40,
|
|
70
|
+
"allowedMask": 63
|
|
71
|
+
},
|
|
72
|
+
"fields": [{
|
|
73
|
+
"name": "domain",
|
|
74
|
+
"type": "STRING",
|
|
75
|
+
"offset": 0
|
|
76
|
+
}, {
|
|
77
|
+
"name": "func",
|
|
78
|
+
"type": "STRING",
|
|
79
|
+
"offset": 8
|
|
80
|
+
}, {
|
|
81
|
+
"name": "effectID",
|
|
82
|
+
"type": "UINT_32_IDENTIFIER",
|
|
83
|
+
"offset": 16,
|
|
84
|
+
"presenceMask": 1
|
|
85
|
+
}, {
|
|
86
|
+
"name": "groupID",
|
|
87
|
+
"type": "UINT_32_IDENTIFIER",
|
|
88
|
+
"offset": 20,
|
|
89
|
+
"presenceMask": 2
|
|
90
|
+
}, {
|
|
91
|
+
"name": "modifiedAttributeID",
|
|
92
|
+
"type": "UINT_32_IDENTIFIER",
|
|
93
|
+
"offset": 24,
|
|
94
|
+
"presenceMask": 4
|
|
95
|
+
}, {
|
|
96
|
+
"name": "modifyingAttributeID",
|
|
97
|
+
"type": "UINT_32_IDENTIFIER",
|
|
98
|
+
"offset": 28,
|
|
99
|
+
"presenceMask": 8
|
|
100
|
+
}, {
|
|
101
|
+
"name": "operation",
|
|
102
|
+
"type": "INT_32",
|
|
103
|
+
"offset": 32,
|
|
104
|
+
"presenceMask": 16
|
|
105
|
+
}, {
|
|
106
|
+
"name": "skillTypeID",
|
|
107
|
+
"type": "UINT_32_IDENTIFIER",
|
|
108
|
+
"offset": 36,
|
|
109
|
+
"presenceMask": 32
|
|
110
|
+
}]
|
|
111
|
+
}
|
|
112
|
+
}, {
|
|
113
|
+
"name": "sfxName",
|
|
114
|
+
"type": "STRING",
|
|
115
|
+
"offset": 32,
|
|
116
|
+
"presenceMask": 16384
|
|
117
|
+
}, {
|
|
118
|
+
"name": "descriptionID",
|
|
119
|
+
"type": "UINT_32",
|
|
120
|
+
"offset": 40,
|
|
121
|
+
"presenceMask": 1
|
|
122
|
+
}, {
|
|
123
|
+
"name": "dischargeAttributeID",
|
|
124
|
+
"type": "UINT_32_IDENTIFIER",
|
|
125
|
+
"offset": 44,
|
|
126
|
+
"presenceMask": 2
|
|
127
|
+
}, {
|
|
128
|
+
"name": "displayNameID",
|
|
129
|
+
"type": "UINT_32",
|
|
130
|
+
"offset": 48,
|
|
131
|
+
"presenceMask": 4
|
|
132
|
+
}, {
|
|
133
|
+
"name": "distribution",
|
|
134
|
+
"type": "UINT_32",
|
|
135
|
+
"offset": 52,
|
|
136
|
+
"presenceMask": 8
|
|
137
|
+
}, {
|
|
138
|
+
"name": "durationAttributeID",
|
|
139
|
+
"type": "UINT_32_IDENTIFIER",
|
|
140
|
+
"offset": 56,
|
|
141
|
+
"presenceMask": 16
|
|
142
|
+
}, {
|
|
143
|
+
"name": "effectCategory",
|
|
144
|
+
"type": "UINT_32",
|
|
145
|
+
"offset": 60
|
|
146
|
+
}, {
|
|
147
|
+
"name": "effectID",
|
|
148
|
+
"type": "UINT_32_IDENTIFIER",
|
|
149
|
+
"offset": 64
|
|
150
|
+
}, {
|
|
151
|
+
"name": "falloffAttributeID",
|
|
152
|
+
"type": "UINT_32_IDENTIFIER",
|
|
153
|
+
"offset": 68,
|
|
154
|
+
"presenceMask": 32
|
|
155
|
+
}, {
|
|
156
|
+
"name": "fittingUsageChanceAttributeID",
|
|
157
|
+
"type": "UINT_32_IDENTIFIER",
|
|
158
|
+
"offset": 72,
|
|
159
|
+
"presenceMask": 64
|
|
160
|
+
}, {
|
|
161
|
+
"name": "iconID",
|
|
162
|
+
"type": "UINT_32_IDENTIFIER",
|
|
163
|
+
"offset": 76,
|
|
164
|
+
"presenceMask": 256
|
|
165
|
+
}, {
|
|
166
|
+
"name": "npcActivationChanceAttributeID",
|
|
167
|
+
"type": "UINT_32_IDENTIFIER",
|
|
168
|
+
"offset": 80,
|
|
169
|
+
"presenceMask": 1024
|
|
170
|
+
}, {
|
|
171
|
+
"name": "npcUsageChanceAttributeID",
|
|
172
|
+
"type": "UINT_32_IDENTIFIER",
|
|
173
|
+
"offset": 84,
|
|
174
|
+
"presenceMask": 2048
|
|
175
|
+
}, {
|
|
176
|
+
"name": "rangeAttributeID",
|
|
177
|
+
"type": "UINT_32_IDENTIFIER",
|
|
178
|
+
"offset": 88,
|
|
179
|
+
"presenceMask": 4096
|
|
180
|
+
}, {
|
|
181
|
+
"name": "resistanceAttributeID",
|
|
182
|
+
"type": "UINT_32_IDENTIFIER",
|
|
183
|
+
"offset": 92,
|
|
184
|
+
"presenceMask": 8192
|
|
185
|
+
}, {
|
|
186
|
+
"name": "trackingSpeedAttributeID",
|
|
187
|
+
"type": "UINT_32_IDENTIFIER",
|
|
188
|
+
"offset": 96,
|
|
189
|
+
"presenceMask": 32768
|
|
190
|
+
}, {
|
|
191
|
+
"name": "disallowAutoRepeat",
|
|
192
|
+
"type": "BOOLEAN",
|
|
193
|
+
"offset": 100,
|
|
194
|
+
"bit": 0
|
|
195
|
+
}, {
|
|
196
|
+
"name": "electronicChance",
|
|
197
|
+
"type": "BOOLEAN",
|
|
198
|
+
"offset": 101,
|
|
199
|
+
"bit": 0
|
|
200
|
+
}, {
|
|
201
|
+
"name": "isAssistance",
|
|
202
|
+
"type": "BOOLEAN",
|
|
203
|
+
"offset": 102,
|
|
204
|
+
"bit": 0
|
|
205
|
+
}, {
|
|
206
|
+
"name": "isOffensive",
|
|
207
|
+
"type": "BOOLEAN",
|
|
208
|
+
"offset": 103,
|
|
209
|
+
"bit": 0
|
|
210
|
+
}, {
|
|
211
|
+
"name": "isWarpSafe",
|
|
212
|
+
"type": "BOOLEAN",
|
|
213
|
+
"offset": 104,
|
|
214
|
+
"bit": 0
|
|
215
|
+
}, {
|
|
216
|
+
"name": "propulsionChance",
|
|
217
|
+
"type": "BOOLEAN",
|
|
218
|
+
"offset": 105,
|
|
219
|
+
"bit": 0
|
|
220
|
+
}, {
|
|
221
|
+
"name": "published",
|
|
222
|
+
"type": "BOOLEAN",
|
|
223
|
+
"offset": 106,
|
|
224
|
+
"bit": 0
|
|
225
|
+
}, {
|
|
226
|
+
"name": "rangeChance",
|
|
227
|
+
"type": "BOOLEAN",
|
|
228
|
+
"offset": 107,
|
|
229
|
+
"bit": 0
|
|
230
|
+
}]
|
|
231
|
+
}
|
|
232
|
+
}));
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export { CjsFsd64SchemaDogmaEffects };
|
|
236
|
+
//# sourceMappingURL=CjsFsd64SchemaDogmaEffects.js.map
|