@fps-games/editor 0.1.3-beta.4 → 0.1.4-beta.1
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/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/local-editor-agent-actions.d.ts +38 -0
- package/dist/local-editor-agent-actions.d.ts.map +1 -0
- package/dist/local-editor-agent-actions.js +134 -0
- package/dist/local-editor-agent-actions.js.map +1 -0
- package/dist/local-editor-agent-context.d.ts +29 -0
- package/dist/local-editor-agent-context.d.ts.map +1 -0
- package/dist/local-editor-agent-context.js +266 -0
- package/dist/local-editor-agent-context.js.map +1 -0
- package/dist/local-editor-harness.d.ts +19 -1
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +641 -118
- package/dist/local-editor-harness.js.map +1 -1
- package/dist/local-editor-viewport-render-coordinator.d.ts.map +1 -1
- package/dist/local-editor-viewport-render-coordinator.js +34 -14
- package/dist/local-editor-viewport-render-coordinator.js.map +1 -1
- package/dist/playable-babylon-facade.d.ts +15 -0
- package/dist/playable-babylon-facade.d.ts.map +1 -0
- package/dist/playable-babylon-facade.js +12 -0
- package/dist/playable-babylon-facade.js.map +1 -0
- package/dist/playable-babylon-outline-inspector.d.ts +32 -0
- package/dist/playable-babylon-outline-inspector.d.ts.map +1 -0
- package/dist/playable-babylon-outline-inspector.js +182 -0
- package/dist/playable-babylon-outline-inspector.js.map +1 -0
- package/dist/playable-babylon-outline-runtime.d.ts +19 -0
- package/dist/playable-babylon-outline-runtime.d.ts.map +1 -0
- package/dist/playable-babylon-outline-runtime.js +67 -0
- package/dist/playable-babylon-outline-runtime.js.map +1 -0
- package/dist/playable-local-editor-host.d.ts +501 -0
- package/dist/playable-local-editor-host.d.ts.map +1 -0
- package/dist/playable-local-editor-host.js +526 -0
- package/dist/playable-local-editor-host.js.map +1 -0
- package/dist/playable-sdk.d.ts +8 -0
- package/dist/playable-sdk.d.ts.map +1 -0
- package/dist/playable-sdk.js +5 -0
- package/dist/playable-sdk.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/environment-texture-controller.d.ts +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/environment-texture-controller.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/environment-texture-controller.js +79 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/environment-texture-controller.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/index.d.ts +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/index.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/index.js +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/index.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/profile.d.ts +3 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/profile.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/profile.js +26 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/profile.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/types.d.ts +13 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/types.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/types.js +6 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/types.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts +3 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/index.js +7 -4
- package/node_modules/@fps-games/babylon-renderer/dist/index.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/apply.d.ts +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/apply.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/apply.js +45 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/apply.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/index.d.ts +3 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/index.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/index.js +2 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/index.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/types.d.ts +7 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/types.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/types.js +2 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/types.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/index.d.ts +3 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/index.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/index.js +2 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/index.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/types.d.ts +7 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/types.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/types.js +2 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/types.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts +5 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js +83 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/index.d.ts +5 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/index.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/index.js +5 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/index.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/profile.d.ts +5 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/profile.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/profile.js +155 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/profile.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.d.ts +77 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.js +24 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/volume-stack.d.ts +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/volume-stack.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/volume-stack.js +105 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/volume-stack.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/planar-shadow-shaders.js +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/planar-shadow-system.js +14 -14
- package/node_modules/@fps-games/babylon-renderer/package.json +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js +15 -5
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/edit-session.js +4 -4
- package/node_modules/@fps-games/editor-babylon/dist/editor-world.js +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.js +24 -24
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid-layer.d.ts +3 -0
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid-layer.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid-layer.js +396 -0
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid-layer.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid.d.ts +3 -0
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid.js +2 -567
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/inspector-host.js +4 -4
- package/node_modules/@fps-games/editor-babylon/dist/legacy-runtime.js +4 -4
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.js +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-property-adapter.d.ts +3 -2
- package/node_modules/@fps-games/editor-babylon/dist/material-property-adapter.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-property-adapter.js +401 -96
- package/node_modules/@fps-games/editor-babylon/dist/material-property-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/monitor.js +2 -2
- package/node_modules/@fps-games/editor-babylon/dist/outline-adapter.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/outline-adapter.js +7 -23
- package/node_modules/@fps-games/editor-babylon/dist/outline-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-selection-controller.js +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-selection-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +10 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js +234 -150
- package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-camera-preview.js +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js +4 -4
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-input-controller.js +10 -10
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-input-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/tool-controller.js +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts +12 -2
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js +69 -17
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/types.d.ts +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/package.json +5 -5
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts +9 -2
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.js +8 -2
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-clipboard.d.ts +20 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-clipboard.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-clipboard.js +88 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-clipboard.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.d.ts +12 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js +34 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js +2 -2
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.d.ts +55 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js +144 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js +40 -7
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-auto-scroll.d.ts +5 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-auto-scroll.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-auto-scroll.js +5 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-auto-scroll.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js +312 -126
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.d.ts +43 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.js +28 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts +4 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js +48 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts +3 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js +182 -20
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js +24 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts +2 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js +373 -63
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.d.ts +2 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js +17 -12
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts +2 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js +9 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js +42 -19
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-auto-scroll.d.ts +19 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-auto-scroll.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-auto-scroll.js +40 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-auto-scroll.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.d.ts +59 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js +182 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-preview.d.ts +16 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-preview.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-preview.js +14 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-preview.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-session.d.ts +11 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-session.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-session.js +18 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-session.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.js +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts +34 -6
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts +14 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js +88 -37
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts +16 -2
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js +630 -140
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/runtime-camera-debug-panel.d.ts +40 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-camera-debug-panel.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-camera-debug-panel.js +685 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-camera-debug-panel.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug-panel-shell.d.ts +73 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug-panel-shell.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug-panel-shell.js +370 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug-panel-shell.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-lighting-debug-panel.d.ts +15 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-lighting-debug-panel.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-lighting-debug-panel.js +350 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-lighting-debug-panel.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/package.json +3 -2
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.d.ts +17 -0
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.js +14 -0
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/index.d.ts +2 -0
- package/node_modules/@fps-games/editor-core/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/index.js +14 -12
- package/node_modules/@fps-games/editor-core/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts +9 -0
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.js +108 -0
- package/node_modules/@fps-games/editor-core/dist/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts +5 -0
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/transform-operation-policy.d.ts +27 -0
- package/node_modules/@fps-games/editor-core/dist/transform-operation-policy.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/transform-operation-policy.js +35 -0
- package/node_modules/@fps-games/editor-core/dist/transform-operation-policy.js.map +1 -0
- package/node_modules/@fps-games/editor-core/package.json +2 -2
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.d.ts +23 -0
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.js +43 -0
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.js.map +1 -0
- package/node_modules/@fps-games/editor-forge-play/dist/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-forge-play/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-forge-play/dist/index.js +1 -0
- package/node_modules/@fps-games/editor-forge-play/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/drop-cache.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/drop-cache.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/drop-cache.js +93 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/drop-cache.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/payload.d.ts +15 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/payload.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/payload.js +169 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/payload.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/types.d.ts +46 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js +64 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js +28 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/types.d.ts +23 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.d.ts +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.js +120 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/identity.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/identity.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/identity.js +19 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/identity.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.js +35 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/types.d.ts +33 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/index.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/result.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/result.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/result.js +22 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/result.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/transport.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/transport.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/transport.js +42 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/transport.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/types.d.ts +27 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/workflow.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/workflow.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/workflow.js +36 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/workflow.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/constants.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/constants.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/constants.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/constants.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/drift.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/drift.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/drift.js +66 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/drift.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/source.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/source.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/source.js +51 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/source.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/client.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/client.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/client.js +60 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/client.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/types.d.ts +24 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.js +105 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/index.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/index.js +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/payload.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/payload.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/payload.js +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/payload.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/response.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/response.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/response.js +18 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/response.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.js +37 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.d.ts +54 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/index.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/payload.d.ts +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/payload.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/payload.js +26 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/payload.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/protocol.d.ts +43 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/protocol.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/protocol.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/protocol.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/readers.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/readers.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/readers.js +89 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/readers.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/types.d.ts +79 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/binding.d.ts +10 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/binding.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/binding.js +42 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/binding.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/fields.d.ts +74 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/fields.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/fields.js +24 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/fields.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/index.d.ts +13 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/index.js +13 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/math.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/math.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/math.js +19 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/math.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/pan.d.ts +12 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/pan.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/pan.js +46 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/pan.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-format.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-format.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-format.js +12 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-format.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-state.d.ts +38 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-state.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-state.js +98 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-state.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-storage.d.ts +13 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-storage.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-storage.js +33 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-storage.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-text.d.ts +10 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-text.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-text.js +149 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-text.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/rig.d.ts +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/rig.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/rig.js +214 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/rig.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/save-patch.d.ts +17 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/save-patch.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/save-patch.js +84 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/save-patch.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/snapshot.d.ts +32 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/snapshot.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/snapshot.js +85 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/snapshot.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/types.d.ts +39 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/index.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/transform.d.ts +10 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/transform.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/transform.js +88 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/transform.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/types.d.ts +50 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/core-contracts/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/core-contracts/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/core-contracts/index.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/core-contracts/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js +31 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts +112 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/resolver.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/resolver.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/resolver.js +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/resolver.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.js +201 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/types.d.ts +28 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.d.ts +17 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.js +81 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts +27 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js +27 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-property.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-property.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-property.js +16 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-property.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts +47 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js +545 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/format.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/format.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/format.js +15 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/format.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.d.ts +12 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.js +10 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/readonly.d.ts +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/readonly.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/readonly.js +99 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/readonly.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-sections.d.ts +58 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-sections.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-sections.js +557 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-sections.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-summary.d.ts +30 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-summary.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-summary.js +105 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-summary.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime.js +56 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/safe-value.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/safe-value.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/safe-value.js +33 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/safe-value.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/types.d.ts +61 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/validation.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/validation.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/validation.js +61 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/validation.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/binding.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/binding.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/binding.js +48 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/binding.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/fields.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/fields.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/fields.js +16 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/fields.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/index.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/index.js +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/math.d.ts +19 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/math.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/math.js +95 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/math.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/save-patch.d.ts +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/save-patch.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/save-patch.js +162 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/save-patch.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/snapshot.d.ts +10 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/snapshot.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/snapshot.js +71 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/snapshot.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/storage.d.ts +13 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/storage.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/storage.js +34 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/storage.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/text.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/text.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/text.js +108 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/text.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/types.d.ts +72 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/math.d.ts +13 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/math.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/math.js +70 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/math.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/profile.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/profile.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/profile.js +86 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/profile.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/types.d.ts +31 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts +80 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts +39 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js +371 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts +58 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js +125 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js +87 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/loading-overlay.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/loading-overlay.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/loading-overlay.js +82 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/loading-overlay.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts +37 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js +140 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/timing.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/timing.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/timing.js +16 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/timing.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts +40 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.d.ts +13 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.js +299 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/duplicate.d.ts +26 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/duplicate.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/duplicate.js +251 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/duplicate.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/index.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/index.js +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.d.ts +28 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.js +188 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/paths.d.ts +26 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/paths.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/paths.js +222 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/paths.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/preview.d.ts +15 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/preview.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/preview.js +97 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/preview.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/profile.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/profile.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/profile.js +128 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/profile.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/reimport.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/reimport.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/reimport.js +259 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/reimport.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/resolver.d.ts +22 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/resolver.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/resolver.js +49 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/resolver.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/types.d.ts +433 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js +224 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/json-field.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/json-field.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/json-field.js +76 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/json-field.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js +242 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/transform.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/transform.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/transform.js +30 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/transform.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/types.d.ts +62 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js +131 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/types.d.ts +41 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/draft.d.ts +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/draft.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/draft.js +45 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/draft.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/index.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/index.js +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js +759 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.js +512 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/route.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/route.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/route.js +73 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/route.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts +290 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.js +136 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/import-plan.d.ts +18 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/import-plan.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/import-plan.js +65 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/import-plan.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/index.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js +211 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts +80 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/artifacts.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/artifacts.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/artifacts.js +78 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/artifacts.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js +73 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.d.ts +10 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.js +43 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js +49 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/index.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/index.js +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js +81 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts +37 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/validation.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/validation.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/validation.js +60 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/validation.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.js +164 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.js +31 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/patch.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/patch.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/patch.js +18 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/patch.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/types.d.ts +34 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/classification.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/classification.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/classification.js +24 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/classification.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy.js +206 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.js +47 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.d.ts +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.js +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts +91 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js +579 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/transform.d.ts +14 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/transform.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/transform.js +90 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/transform.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/http.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/http.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/http.js +15 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/http.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/json.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/json.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/json.js +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/json.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.d.ts +19 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js +268 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/report.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/report.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/report.js +38 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/report.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/types.d.ts +87 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/package.json +20 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts +113 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent.js +5 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts +45 -4
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/index.js +115 -2
- package/node_modules/@fps-games/editor-protocol/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/package.json +1 -1
- package/package.json +13 -7
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
const DEFAULT_MATERIAL_PREVIEW_COLOR = { r: 0.78, g: 0.78, b: 0.78 };
|
|
2
|
+
export function createEditorSceneMaterialAssetPreview(profile) {
|
|
3
|
+
const materialProfile = profile ?? {};
|
|
4
|
+
return {
|
|
5
|
+
kind: 'material-sphere',
|
|
6
|
+
baseColor: transformEditorSceneMaterialPreviewBaseColor(materialProfile),
|
|
7
|
+
metallic: clampEditorSceneMaterialPreview01(materialProfile.metallic ?? 0),
|
|
8
|
+
roughness: clampEditorSceneMaterialPreview01(materialProfile.roughness ?? 1),
|
|
9
|
+
...(materialProfile.emission?.color ? { emissionColor: normalizeEditorSceneMaterialPreviewColor(materialProfile.emission.color) } : {}),
|
|
10
|
+
emissionIntensity: readFiniteMaterialPreviewNumber(materialProfile.emission?.intensity, 0),
|
|
11
|
+
textureUrl: materialProfile.baseColor?.texture?.url,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export function createEditorSceneMaterialAssetMeta(profile, materialAssetId) {
|
|
15
|
+
const materialProfile = profile ?? {};
|
|
16
|
+
const metallic = formatEditorSceneMaterialPreviewNumber(materialProfile.metallic ?? 0);
|
|
17
|
+
const roughness = formatEditorSceneMaterialPreviewNumber(materialProfile.roughness ?? 1);
|
|
18
|
+
return `M ${metallic} / R ${roughness} - ${materialAssetId}`;
|
|
19
|
+
}
|
|
20
|
+
export function transformEditorSceneMaterialPreviewBaseColor(profile) {
|
|
21
|
+
const baseColor = profile.baseColor ?? {};
|
|
22
|
+
const color = baseColor.color ?? DEFAULT_MATERIAL_PREVIEW_COLOR;
|
|
23
|
+
return normalizeEditorSceneMaterialPreviewColor(color);
|
|
24
|
+
}
|
|
25
|
+
function normalizeEditorSceneMaterialPreviewColor(color) {
|
|
26
|
+
return {
|
|
27
|
+
r: clampEditorSceneMaterialPreview01(color.r),
|
|
28
|
+
g: clampEditorSceneMaterialPreview01(color.g),
|
|
29
|
+
b: clampEditorSceneMaterialPreview01(color.b),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function rgbToEditorSceneMaterialPreviewHsl(r, g, b) {
|
|
33
|
+
const max = Math.max(r, g, b);
|
|
34
|
+
const min = Math.min(r, g, b);
|
|
35
|
+
const l = (max + min) / 2;
|
|
36
|
+
if (max === min)
|
|
37
|
+
return { h: 0, s: 0, l };
|
|
38
|
+
const delta = max - min;
|
|
39
|
+
const s = l > 0.5 ? delta / (2 - max - min) : delta / (max + min);
|
|
40
|
+
let h = 0;
|
|
41
|
+
switch (max) {
|
|
42
|
+
case r:
|
|
43
|
+
h = (g - b) / delta + (g < b ? 6 : 0);
|
|
44
|
+
break;
|
|
45
|
+
case g:
|
|
46
|
+
h = (b - r) / delta + 2;
|
|
47
|
+
break;
|
|
48
|
+
default:
|
|
49
|
+
h = (r - g) / delta + 4;
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
return { h: h * 60, s, l };
|
|
53
|
+
}
|
|
54
|
+
export function hslToEditorSceneMaterialPreviewRgb(h, s, l) {
|
|
55
|
+
if (s === 0)
|
|
56
|
+
return { r: l, g: l, b: l };
|
|
57
|
+
const normalizedHue = normalizeEditorSceneMaterialPreviewHue(h) / 360;
|
|
58
|
+
const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
|
59
|
+
const p = 2 * l - q;
|
|
60
|
+
return {
|
|
61
|
+
r: clampEditorSceneMaterialPreview01(hueToRgb(p, q, normalizedHue + 1 / 3)),
|
|
62
|
+
g: clampEditorSceneMaterialPreview01(hueToRgb(p, q, normalizedHue)),
|
|
63
|
+
b: clampEditorSceneMaterialPreview01(hueToRgb(p, q, normalizedHue - 1 / 3)),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export function normalizeEditorSceneMaterialPreviewHue(value) {
|
|
67
|
+
const result = value % 360;
|
|
68
|
+
return result < 0 ? result + 360 : result;
|
|
69
|
+
}
|
|
70
|
+
export function clampEditorSceneMaterialPreview01(value) {
|
|
71
|
+
if (!Number.isFinite(value))
|
|
72
|
+
return 0;
|
|
73
|
+
return Math.min(1, Math.max(0, value));
|
|
74
|
+
}
|
|
75
|
+
export function formatEditorSceneMaterialPreviewNumber(value) {
|
|
76
|
+
if (!Number.isFinite(value))
|
|
77
|
+
return '0';
|
|
78
|
+
return Number.isInteger(value) ? String(value) : value.toFixed(2).replace(/0+$/, '').replace(/\.$/, '');
|
|
79
|
+
}
|
|
80
|
+
function hueToRgb(p, q, t) {
|
|
81
|
+
let nextT = t;
|
|
82
|
+
if (nextT < 0)
|
|
83
|
+
nextT += 1;
|
|
84
|
+
if (nextT > 1)
|
|
85
|
+
nextT -= 1;
|
|
86
|
+
if (nextT < 1 / 6)
|
|
87
|
+
return p + (q - p) * 6 * nextT;
|
|
88
|
+
if (nextT < 1 / 2)
|
|
89
|
+
return q;
|
|
90
|
+
if (nextT < 2 / 3)
|
|
91
|
+
return p + (q - p) * (2 / 3 - nextT) * 6;
|
|
92
|
+
return p;
|
|
93
|
+
}
|
|
94
|
+
function readFiniteMaterialPreviewNumber(value, fallback) {
|
|
95
|
+
return typeof value === 'number' && Number.isFinite(value) ? value : fallback;
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=preview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../../src/material-binding/preview.ts"],"names":[],"mappings":"AAQA,MAAM,8BAA8B,GAAwB,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC;AAE1F,MAAM,UAAU,qCAAqC,CACnD,OAA4D;IAE5D,MAAM,eAAe,GAAG,OAAO,IAAI,EAAE,CAAC;IACtC,OAAO;QACL,IAAI,EAAE,iBAAiB;QACvB,SAAS,EAAE,4CAA4C,CAAC,eAAe,CAAC;QACxE,QAAQ,EAAE,iCAAiC,CAAC,eAAe,CAAC,QAAQ,IAAI,CAAC,CAAC;QAC1E,SAAS,EAAE,iCAAiC,CAAC,eAAe,CAAC,SAAS,IAAI,CAAC,CAAC;QAC5E,GAAG,CAAC,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,wCAAwC,CAAC,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvI,iBAAiB,EAAE,+BAA+B,CAAC,eAAe,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;QAC1F,UAAU,EAAE,eAAe,CAAC,SAA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C;AAED,SAAS,QAAQ,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS;IAC/C,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,KAAK,GAAG,CAAC;QAAE,KAAK,IAAI,CAAC,CAAC;IAC1B,IAAI,KAAK,GAAG,CAAC;QAAE,KAAK,IAAI,CAAC,CAAC;IAC1B,IAAI,KAAK,GAAG,CAAC,GAAG,CAAC;QAAE,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IAClD,IAAI,KAAK,GAAG,CAAC,GAAG,CAAC;QAAE,OAAO,CAAC,CAAC;IAC5B,IAAI,KAAK,GAAG,CAAC,GAAG,CAAC;QAAE,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IAC5D,OAAO,CAAC,CAAC;AACX,CAAC;AAED,SAAS,+BAA+B,CAAC,KAAc,EAAE,QAAgB;IACvE,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC;AAChF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EditorSceneArtistMaterialProfile, EditorSceneMaterialAsset } from './types';
|
|
2
|
+
export declare function resolveEditorSceneMaterialAssetKind(materialAsset: Pick<EditorSceneMaterialAsset, 'materialKind' | 'system'> | null | undefined): 'pbr' | 'standard';
|
|
3
|
+
export declare function isReadonlyEditorSceneMaterialAsset(materialAsset: EditorSceneMaterialAsset | null | undefined, defaultMaterialAssetIds?: readonly string[]): boolean;
|
|
4
|
+
export declare function pruneEditorSceneArtistMaterialProfile<TProfile extends EditorSceneArtistMaterialProfile>(profile: TProfile | null | undefined): TProfile;
|
|
5
|
+
export declare function patchEditorSceneMaterialAsset<TMaterialAsset extends EditorSceneMaterialAsset = EditorSceneMaterialAsset>(materialAsset: TMaterialAsset, path: string, value: unknown): TMaterialAsset;
|
|
6
|
+
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/material-binding/profile.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gCAAgC,EAChC,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,mCAAmC,CACjD,aAAa,EAAE,IAAI,CAAC,wBAAwB,EAAE,cAAc,GAAG,QAAQ,CAAC,GAAG,IAAI,GAAG,SAAS,GAC1F,KAAK,GAAG,UAAU,CAIpB;AAED,wBAAgB,kCAAkC,CAChD,aAAa,EAAE,wBAAwB,GAAG,IAAI,GAAG,SAAS,EAC1D,uBAAuB,GAAE,SAAS,MAAM,EAAO,GAC9C,OAAO,CAGT;AAED,wBAAgB,qCAAqC,CAAC,QAAQ,SAAS,gCAAgC,EACrG,OAAO,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,GACnC,QAAQ,CAkBV;AAqBD,wBAAgB,6BAA6B,CAC3C,cAAc,SAAS,wBAAwB,GAAG,wBAAwB,EAE1E,aAAa,EAAE,cAAc,EAC7B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,GACb,cAAc,CAmBhB"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { applyEditorSceneJsonFieldPatch, } from '../mutation/index.js';
|
|
2
|
+
import { validateEditorSceneMaterialAssetFieldValue, normalizeEditorSceneMaterialAssetValue, } from './paths.js';
|
|
3
|
+
export function resolveEditorSceneMaterialAssetKind(materialAsset) {
|
|
4
|
+
if (materialAsset?.materialKind === 'standard')
|
|
5
|
+
return 'standard';
|
|
6
|
+
if (materialAsset?.system?.preset === 'default-standard')
|
|
7
|
+
return 'standard';
|
|
8
|
+
return 'pbr';
|
|
9
|
+
}
|
|
10
|
+
export function isReadonlyEditorSceneMaterialAsset(materialAsset, defaultMaterialAssetIds = []) {
|
|
11
|
+
return materialAsset?.system?.readonly === true
|
|
12
|
+
|| (!!materialAsset && defaultMaterialAssetIds.includes(materialAsset.id));
|
|
13
|
+
}
|
|
14
|
+
export function pruneEditorSceneArtistMaterialProfile(profile) {
|
|
15
|
+
const next = structuredClone(profile ?? {});
|
|
16
|
+
pruneEditorSceneMaterialTextureRef(next.baseColor, 'texture');
|
|
17
|
+
if (next.baseColor && Object.keys(next.baseColor).length === 0)
|
|
18
|
+
delete next.baseColor;
|
|
19
|
+
pruneEditorSceneMaterialTextureRef(next.normal, 'texture');
|
|
20
|
+
if (next.normal && Object.keys(next.normal).length === 0)
|
|
21
|
+
delete next.normal;
|
|
22
|
+
pruneEditorSceneMaterialTextureRef(next.metallicRoughness, 'texture');
|
|
23
|
+
if (next.metallicRoughness && Object.keys(next.metallicRoughness).length === 0)
|
|
24
|
+
delete next.metallicRoughness;
|
|
25
|
+
pruneEditorSceneMaterialTextureRef(next.occlusion, 'texture');
|
|
26
|
+
if (next.occlusion && Object.keys(next.occlusion).length === 0)
|
|
27
|
+
delete next.occlusion;
|
|
28
|
+
if (next.emission) {
|
|
29
|
+
pruneEditorSceneMaterialTextureRef(next.emission, 'texture');
|
|
30
|
+
pruneEditorSceneMaterialTextureRef(next.emission, 'maskTexture');
|
|
31
|
+
if (Object.keys(next.emission).length === 0)
|
|
32
|
+
delete next.emission;
|
|
33
|
+
}
|
|
34
|
+
pruneEditorSceneMaterialTextureRef(next.alpha, 'texture');
|
|
35
|
+
if (next.alpha && Object.keys(next.alpha).length === 0)
|
|
36
|
+
delete next.alpha;
|
|
37
|
+
return next;
|
|
38
|
+
}
|
|
39
|
+
function pruneEditorSceneMaterialTextureRef(owner, key) {
|
|
40
|
+
if (!owner)
|
|
41
|
+
return;
|
|
42
|
+
const ownerRecord = owner;
|
|
43
|
+
const texture = ownerRecord[key];
|
|
44
|
+
if (texture === null)
|
|
45
|
+
return;
|
|
46
|
+
if (!texture || typeof texture !== 'object' || Array.isArray(texture))
|
|
47
|
+
return;
|
|
48
|
+
const textureRecord = texture;
|
|
49
|
+
const url = typeof textureRecord.url === 'string' ? textureRecord.url.trim() : '';
|
|
50
|
+
const textureAssetId = typeof textureRecord.textureAssetId === 'string' ? textureRecord.textureAssetId.trim() : '';
|
|
51
|
+
if (url)
|
|
52
|
+
textureRecord.url = url;
|
|
53
|
+
else
|
|
54
|
+
delete textureRecord.url;
|
|
55
|
+
if (textureAssetId)
|
|
56
|
+
textureRecord.textureAssetId = textureAssetId;
|
|
57
|
+
else
|
|
58
|
+
delete textureRecord.textureAssetId;
|
|
59
|
+
if (Object.keys(textureRecord).length === 0)
|
|
60
|
+
delete ownerRecord[key];
|
|
61
|
+
}
|
|
62
|
+
export function patchEditorSceneMaterialAsset(materialAsset, path, value) {
|
|
63
|
+
if (materialAsset.system?.readonly === true)
|
|
64
|
+
return materialAsset;
|
|
65
|
+
const normalizedValue = normalizeEditorSceneMaterialAssetValue(path, value);
|
|
66
|
+
if (!validateEditorSceneMaterialAssetFieldValue(path, normalizedValue))
|
|
67
|
+
return materialAsset;
|
|
68
|
+
const next = structuredClone(materialAsset);
|
|
69
|
+
if (path === 'name') {
|
|
70
|
+
if (typeof normalizedValue !== 'string')
|
|
71
|
+
return materialAsset;
|
|
72
|
+
next.name = normalizedValue.trim();
|
|
73
|
+
return next.name === materialAsset.name ? materialAsset : next;
|
|
74
|
+
}
|
|
75
|
+
if (!path.startsWith('profile.'))
|
|
76
|
+
return materialAsset;
|
|
77
|
+
const profilePath = path.slice('profile.'.length);
|
|
78
|
+
if (!profilePath)
|
|
79
|
+
return materialAsset;
|
|
80
|
+
next.profile = structuredClone(next.profile ?? {});
|
|
81
|
+
if (!applyEditorSceneMaterialTextureRefFieldPatch(next.profile, profilePath, normalizedValue)) {
|
|
82
|
+
applyEditorSceneJsonFieldPatch(next.profile, profilePath, normalizedValue);
|
|
83
|
+
}
|
|
84
|
+
next.profile = pruneEditorSceneArtistMaterialProfile(next.profile);
|
|
85
|
+
return JSON.stringify(next) === JSON.stringify(materialAsset) ? materialAsset : next;
|
|
86
|
+
}
|
|
87
|
+
function applyEditorSceneMaterialTextureRefFieldPatch(profile, profilePath, value) {
|
|
88
|
+
const field = profilePath.endsWith('.textureAssetId')
|
|
89
|
+
? 'textureAssetId'
|
|
90
|
+
: profilePath.endsWith('.url')
|
|
91
|
+
? 'url'
|
|
92
|
+
: null;
|
|
93
|
+
if (!field)
|
|
94
|
+
return false;
|
|
95
|
+
const texturePath = profilePath.slice(0, -(`.${field}`).length);
|
|
96
|
+
if (!texturePath.endsWith('.texture') && !texturePath.endsWith('.maskTexture'))
|
|
97
|
+
return false;
|
|
98
|
+
const segments = texturePath.split('.').filter(Boolean);
|
|
99
|
+
if (segments.length < 2)
|
|
100
|
+
return false;
|
|
101
|
+
const textureKey = segments[segments.length - 1];
|
|
102
|
+
let owner = profile;
|
|
103
|
+
for (const segment of segments.slice(0, -1)) {
|
|
104
|
+
const child = owner[segment];
|
|
105
|
+
if (!child || typeof child !== 'object' || Array.isArray(child)) {
|
|
106
|
+
if (value == null)
|
|
107
|
+
return true;
|
|
108
|
+
const nextChild = {};
|
|
109
|
+
owner[segment] = nextChild;
|
|
110
|
+
owner = nextChild;
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
owner = child;
|
|
114
|
+
}
|
|
115
|
+
if (value == null) {
|
|
116
|
+
owner[textureKey] = null;
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
const currentTexture = owner[textureKey];
|
|
120
|
+
const texture = currentTexture && typeof currentTexture === 'object' && !Array.isArray(currentTexture)
|
|
121
|
+
? { ...currentTexture }
|
|
122
|
+
: {};
|
|
123
|
+
texture[field] = value;
|
|
124
|
+
delete texture[field === 'url' ? 'textureAssetId' : 'url'];
|
|
125
|
+
owner[textureKey] = texture;
|
|
126
|
+
return true;
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=profile.js.map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A0C,EAAE;QACpD,CAAC,CAAC,EAAE,CAAC;IACP,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;IACvB,OAAO,OAAO,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC3D,KAAK,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC;IAC5B,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { EditorSceneMaterialDocument, EditorSceneMaterialGameObject, EditorSceneMaterialSlotReimportDiff } from './types';
|
|
2
|
+
export declare function resolveEditorSceneMaterialSlotReimportDiff(document: Pick<EditorSceneMaterialDocument, 'scene' | 'assets'>, gameObject: EditorSceneMaterialGameObject): EditorSceneMaterialSlotReimportDiff;
|
|
3
|
+
//# sourceMappingURL=reimport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reimport.d.ts","sourceRoot":"","sources":["../../src/material-binding/reimport.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAGV,2BAA2B,EAC3B,6BAA6B,EAG7B,mCAAmC,EAIpC,MAAM,SAAS,CAAC;AAEjB,wBAAgB,0CAA0C,CACxD,QAAQ,EAAE,IAAI,CAAC,2BAA2B,EAAE,OAAO,GAAG,QAAQ,CAAC,EAC/D,UAAU,EAAE,6BAA6B,GACxC,mCAAmC,CAgKrC"}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { findEditorSceneModelRenderer, } from '../document/index.js';
|
|
2
|
+
import { normalizeEditorSceneMaterialSlotOwnerPath, } from './paths.js';
|
|
3
|
+
import { findEditorSceneMaterialAsset, readEditorSceneAssetMaterialSlots, } from './binding.js';
|
|
4
|
+
export function resolveEditorSceneMaterialSlotReimportDiff(document, gameObject) {
|
|
5
|
+
const renderer = findEditorSceneModelRenderer(gameObject);
|
|
6
|
+
const asset = renderer ? document.assets.find((entry) => entry.id === renderer.assetId) : null;
|
|
7
|
+
const assetGuid = typeof asset?.guid === 'string' && asset.guid.trim()
|
|
8
|
+
? asset.guid.trim()
|
|
9
|
+
: asset?.id;
|
|
10
|
+
const currentSlots = readEditorSceneAssetMaterialSlots(document, gameObject);
|
|
11
|
+
const currentSlotById = new Map(currentSlots
|
|
12
|
+
.filter((slot) => !!slot.slotId)
|
|
13
|
+
.map(slot => [slot.slotId, slot]));
|
|
14
|
+
const currentSlotByOwnerPath = new Map(currentSlots.map(slot => [normalizeEditorSceneMaterialSlotOwnerPath(slot.ownerNodePath), slot]));
|
|
15
|
+
const materialSlotBindings = gameObject.overrides?.materialSlotBindings ?? {};
|
|
16
|
+
const childMaterialBindings = gameObject.overrides?.childMaterialBindings ?? {};
|
|
17
|
+
const bindingRemaps = resolveEditorSceneMaterialSlotBindingRemaps({
|
|
18
|
+
document,
|
|
19
|
+
assetId: asset?.id,
|
|
20
|
+
assetGuid,
|
|
21
|
+
currentSlots,
|
|
22
|
+
materialSlotBindings,
|
|
23
|
+
childMaterialBindings,
|
|
24
|
+
});
|
|
25
|
+
const remapByTargetSlotId = new Map(bindingRemaps.map(remap => [remap.toSlotId, remap]));
|
|
26
|
+
const remappedSourceSlotIds = new Set(bindingRemaps.map(remap => remap.fromSlotId));
|
|
27
|
+
const effectiveMaterialSlotBindings = new Map();
|
|
28
|
+
for (const [slotId, binding] of Object.entries(materialSlotBindings)) {
|
|
29
|
+
if (!binding || remappedSourceSlotIds.has(slotId))
|
|
30
|
+
continue;
|
|
31
|
+
effectiveMaterialSlotBindings.set(slotId, binding);
|
|
32
|
+
}
|
|
33
|
+
for (const remap of bindingRemaps) {
|
|
34
|
+
const binding = materialSlotBindings[remap.fromSlotId];
|
|
35
|
+
if (binding)
|
|
36
|
+
effectiveMaterialSlotBindings.set(remap.toSlotId, binding);
|
|
37
|
+
}
|
|
38
|
+
const items = [];
|
|
39
|
+
for (const [slotIndex, slot] of currentSlots.entries()) {
|
|
40
|
+
const binding = (slot.slotId
|
|
41
|
+
? effectiveMaterialSlotBindings.get(slot.slotId)
|
|
42
|
+
: undefined) ?? findEditorSceneLegacyBinding(childMaterialBindings, slot.ownerNodePath)?.binding;
|
|
43
|
+
const materialAssetId = readMaterialBindingAssetId(binding);
|
|
44
|
+
const materialAsset = materialAssetId
|
|
45
|
+
? findEditorSceneMaterialAsset(document, materialAssetId)
|
|
46
|
+
: null;
|
|
47
|
+
const sourceMaterialIndices = collectEditorSceneReimportSlotSourceMaterialIndices(slot);
|
|
48
|
+
const sourceMaterialIndex = sourceMaterialIndices[0];
|
|
49
|
+
const remap = slot.slotId ? remapByTargetSlotId.get(slot.slotId) : undefined;
|
|
50
|
+
if (remap) {
|
|
51
|
+
items.push({
|
|
52
|
+
status: 'changed',
|
|
53
|
+
reason: 'slot-remapped',
|
|
54
|
+
...(slot.slotId ? { slotId: slot.slotId } : {}),
|
|
55
|
+
previousSlotId: remap.fromSlotId,
|
|
56
|
+
ownerNodePath: slot.ownerNodePath,
|
|
57
|
+
label: readEditorSceneReimportSlotLabel(slot, slotIndex),
|
|
58
|
+
...(sourceMaterialIndex == null ? {} : { sourceMaterialIndex }),
|
|
59
|
+
...(sourceMaterialIndices.length > 0 ? { sourceMaterialIndices } : {}),
|
|
60
|
+
materialAssetId,
|
|
61
|
+
bindingPath: `overrides.materialSlotBindings.${slot.slotId}.materialAssetId`,
|
|
62
|
+
conflict: false,
|
|
63
|
+
});
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
const previousSourceMaterialIndex = readImportedEditorSceneMaterialOrigin(materialAsset, assetGuid, asset?.id)?.sourceMaterialIndex;
|
|
67
|
+
if (previousSourceMaterialIndex != null
|
|
68
|
+
&& sourceMaterialIndices.length > 0
|
|
69
|
+
&& !sourceMaterialIndices.includes(previousSourceMaterialIndex)) {
|
|
70
|
+
items.push(createEditorSceneMaterialSlotReimportIssue({
|
|
71
|
+
status: 'changed',
|
|
72
|
+
reason: 'source-material-changed',
|
|
73
|
+
...(slot.slotId ? { slotId: slot.slotId } : {}),
|
|
74
|
+
ownerNodePath: slot.ownerNodePath,
|
|
75
|
+
label: readEditorSceneReimportSlotLabel(slot, slotIndex),
|
|
76
|
+
...(sourceMaterialIndex == null ? {} : { sourceMaterialIndex }),
|
|
77
|
+
...(sourceMaterialIndices.length > 0 ? { sourceMaterialIndices } : {}),
|
|
78
|
+
previousSourceMaterialIndex,
|
|
79
|
+
...(materialAssetId ? { materialAssetId } : {}),
|
|
80
|
+
bindingPath: slot.slotId
|
|
81
|
+
? `overrides.materialSlotBindings.${slot.slotId}.materialAssetId`
|
|
82
|
+
: `overrides.childMaterialBindings.${slot.ownerNodePath}.materialAssetId`,
|
|
83
|
+
}));
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
if (!materialAssetId && sourceMaterialIndices.length > 0) {
|
|
87
|
+
items.push(createEditorSceneMaterialSlotReimportIssue({
|
|
88
|
+
status: 'added',
|
|
89
|
+
reason: 'slot-added',
|
|
90
|
+
...(slot.slotId ? { slotId: slot.slotId } : {}),
|
|
91
|
+
ownerNodePath: slot.ownerNodePath,
|
|
92
|
+
label: readEditorSceneReimportSlotLabel(slot, slotIndex),
|
|
93
|
+
...(sourceMaterialIndex == null ? {} : { sourceMaterialIndex }),
|
|
94
|
+
...(sourceMaterialIndices.length > 0 ? { sourceMaterialIndices } : {}),
|
|
95
|
+
bindingPath: slot.slotId
|
|
96
|
+
? `overrides.materialSlotBindings.${slot.slotId}.materialAssetId`
|
|
97
|
+
: `overrides.childMaterialBindings.${slot.ownerNodePath}.materialAssetId`,
|
|
98
|
+
}));
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
items.push({
|
|
102
|
+
status: 'unchanged',
|
|
103
|
+
reason: 'slot-current',
|
|
104
|
+
...(slot.slotId ? { slotId: slot.slotId } : {}),
|
|
105
|
+
ownerNodePath: slot.ownerNodePath,
|
|
106
|
+
label: readEditorSceneReimportSlotLabel(slot, slotIndex),
|
|
107
|
+
...(sourceMaterialIndex == null ? {} : { sourceMaterialIndex }),
|
|
108
|
+
...(sourceMaterialIndices.length > 0 ? { sourceMaterialIndices } : {}),
|
|
109
|
+
...(materialAssetId ? { materialAssetId } : {}),
|
|
110
|
+
bindingPath: slot.slotId
|
|
111
|
+
? `overrides.materialSlotBindings.${slot.slotId}.materialAssetId`
|
|
112
|
+
: `overrides.childMaterialBindings.${slot.ownerNodePath}.materialAssetId`,
|
|
113
|
+
conflict: false,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
for (const [slotId, binding] of Object.entries(materialSlotBindings)) {
|
|
117
|
+
if (!binding || currentSlotById.has(slotId) || remappedSourceSlotIds.has(slotId))
|
|
118
|
+
continue;
|
|
119
|
+
items.push(createEditorSceneMaterialSlotReimportIssue({
|
|
120
|
+
status: 'removed',
|
|
121
|
+
reason: 'slot-removed',
|
|
122
|
+
slotId,
|
|
123
|
+
...(readMaterialBindingAssetId(binding) ? { materialAssetId: readMaterialBindingAssetId(binding) } : {}),
|
|
124
|
+
bindingPath: `overrides.materialSlotBindings.${slotId}.materialAssetId`,
|
|
125
|
+
}));
|
|
126
|
+
}
|
|
127
|
+
for (const [ownerNodePath, binding] of Object.entries(childMaterialBindings)) {
|
|
128
|
+
if (!binding)
|
|
129
|
+
continue;
|
|
130
|
+
const normalizedOwnerNodePath = normalizeEditorSceneMaterialSlotOwnerPath(ownerNodePath);
|
|
131
|
+
if (currentSlotByOwnerPath.has(normalizedOwnerNodePath))
|
|
132
|
+
continue;
|
|
133
|
+
items.push(createEditorSceneMaterialSlotReimportIssue({
|
|
134
|
+
status: 'conflict',
|
|
135
|
+
reason: 'unmatched-legacy-binding',
|
|
136
|
+
ownerNodePath: normalizedOwnerNodePath || ownerNodePath,
|
|
137
|
+
...(readMaterialBindingAssetId(binding) ? { materialAssetId: readMaterialBindingAssetId(binding) } : {}),
|
|
138
|
+
bindingPath: `overrides.childMaterialBindings.${ownerNodePath}.materialAssetId`,
|
|
139
|
+
}));
|
|
140
|
+
}
|
|
141
|
+
const issues = items.filter(isEditorSceneMaterialSlotReimportIssue);
|
|
142
|
+
return {
|
|
143
|
+
gameObjectId: gameObject.id,
|
|
144
|
+
...(gameObject.name ? { gameObjectName: gameObject.name } : {}),
|
|
145
|
+
...(asset?.id ? { assetId: asset.id } : {}),
|
|
146
|
+
...(assetGuid ? { assetGuid } : {}),
|
|
147
|
+
ok: issues.length === 0,
|
|
148
|
+
items,
|
|
149
|
+
issues,
|
|
150
|
+
bindingRemaps,
|
|
151
|
+
counts: countEditorSceneMaterialSlotReimportStatuses(items),
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
function resolveEditorSceneMaterialSlotBindingRemaps(input) {
|
|
155
|
+
const currentSlotIds = new Set(input.currentSlots.map(slot => slot.slotId).filter((slotId) => !!slotId));
|
|
156
|
+
const occupiedSlotIds = new Set(Object.keys(input.materialSlotBindings).filter(slotId => currentSlotIds.has(slotId)));
|
|
157
|
+
const remaps = [];
|
|
158
|
+
for (const [fromSlotId, binding] of Object.entries(input.materialSlotBindings)) {
|
|
159
|
+
if (!binding || currentSlotIds.has(fromSlotId))
|
|
160
|
+
continue;
|
|
161
|
+
const materialAssetId = readMaterialBindingAssetId(binding);
|
|
162
|
+
const materialAsset = materialAssetId
|
|
163
|
+
? findEditorSceneMaterialAsset(input.document, materialAssetId)
|
|
164
|
+
: null;
|
|
165
|
+
const origin = readImportedEditorSceneMaterialOrigin(materialAsset, input.assetGuid, input.assetId);
|
|
166
|
+
if (!origin || origin.sourceSlotId !== fromSlotId)
|
|
167
|
+
continue;
|
|
168
|
+
const candidates = input.currentSlots.filter((slot) => (!!slot.slotId
|
|
169
|
+
&& !occupiedSlotIds.has(slot.slotId)
|
|
170
|
+
&& !findEditorSceneLegacyBinding(input.childMaterialBindings, slot.ownerNodePath)
|
|
171
|
+
&& collectEditorSceneReimportSlotSourceMaterialIndices(slot).includes(origin.sourceMaterialIndex)));
|
|
172
|
+
if (candidates.length !== 1)
|
|
173
|
+
continue;
|
|
174
|
+
const [candidate] = candidates;
|
|
175
|
+
occupiedSlotIds.add(candidate.slotId);
|
|
176
|
+
remaps.push({
|
|
177
|
+
fromSlotId,
|
|
178
|
+
toSlotId: candidate.slotId,
|
|
179
|
+
materialAssetId,
|
|
180
|
+
reason: 'source-material-index',
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
return remaps;
|
|
184
|
+
}
|
|
185
|
+
function findEditorSceneLegacyBinding(bindings, ownerNodePath) {
|
|
186
|
+
const exact = bindings[ownerNodePath];
|
|
187
|
+
if (exact)
|
|
188
|
+
return { ownerNodePath, binding: exact };
|
|
189
|
+
const normalizedOwnerNodePath = normalizeEditorSceneMaterialSlotOwnerPath(ownerNodePath);
|
|
190
|
+
for (const [candidateOwnerNodePath, binding] of Object.entries(bindings)) {
|
|
191
|
+
if (!binding)
|
|
192
|
+
continue;
|
|
193
|
+
if (normalizeEditorSceneMaterialSlotOwnerPath(candidateOwnerNodePath) === normalizedOwnerNodePath) {
|
|
194
|
+
return { ownerNodePath: candidateOwnerNodePath, binding };
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return null;
|
|
198
|
+
}
|
|
199
|
+
function collectEditorSceneReimportSlotSourceMaterialIndices(slot) {
|
|
200
|
+
if (slot.sourceMaterialIndices?.length) {
|
|
201
|
+
return [...new Set(slot.sourceMaterialIndices.filter((value) => Number.isInteger(value)))];
|
|
202
|
+
}
|
|
203
|
+
return typeof slot.sourceMaterialIndex === 'number' && Number.isInteger(slot.sourceMaterialIndex)
|
|
204
|
+
? [slot.sourceMaterialIndex]
|
|
205
|
+
: [];
|
|
206
|
+
}
|
|
207
|
+
function readImportedEditorSceneMaterialOrigin(materialAsset, assetGuid, assetId) {
|
|
208
|
+
if (materialAsset?.origin?.type !== 'imported')
|
|
209
|
+
return null;
|
|
210
|
+
const sourceMaterialIndex = materialAsset.origin.sourceMaterialIndex;
|
|
211
|
+
if (typeof sourceMaterialIndex !== 'number' || !Number.isInteger(sourceMaterialIndex))
|
|
212
|
+
return null;
|
|
213
|
+
const originAssetGuid = materialAsset.origin.sourceAssetGuid;
|
|
214
|
+
const originAssetId = materialAsset.origin.sourceAssetId;
|
|
215
|
+
const matchesGuid = !!assetGuid && !!originAssetGuid && originAssetGuid === assetGuid;
|
|
216
|
+
const matchesId = !!assetId && !!originAssetId && originAssetId === assetId;
|
|
217
|
+
if ((originAssetGuid || originAssetId) && !matchesGuid && !matchesId)
|
|
218
|
+
return null;
|
|
219
|
+
if (!originAssetGuid && !originAssetId && (assetGuid || assetId))
|
|
220
|
+
return null;
|
|
221
|
+
const sourceSlotId = typeof materialAsset.origin.sourceSlotId === 'string' && materialAsset.origin.sourceSlotId.trim()
|
|
222
|
+
? materialAsset.origin.sourceSlotId.trim()
|
|
223
|
+
: undefined;
|
|
224
|
+
return {
|
|
225
|
+
sourceMaterialIndex,
|
|
226
|
+
...(sourceSlotId ? { sourceSlotId } : {}),
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
function readEditorSceneReimportSlotLabel(slot, slotIndex) {
|
|
230
|
+
return slot.label?.trim()
|
|
231
|
+
|| slot.ownerNodePath?.trim()
|
|
232
|
+
|| slot.slotId?.trim()
|
|
233
|
+
|| `Slot ${slotIndex + 1}`;
|
|
234
|
+
}
|
|
235
|
+
function readMaterialBindingAssetId(binding) {
|
|
236
|
+
return typeof binding?.materialAssetId === 'string' ? binding.materialAssetId.trim() : '';
|
|
237
|
+
}
|
|
238
|
+
function createEditorSceneMaterialSlotReimportIssue(input) {
|
|
239
|
+
return {
|
|
240
|
+
...input,
|
|
241
|
+
conflict: true,
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
function isEditorSceneMaterialSlotReimportIssue(item) {
|
|
245
|
+
return item.conflict;
|
|
246
|
+
}
|
|
247
|
+
function countEditorSceneMaterialSlotReimportStatuses(items) {
|
|
248
|
+
return items.reduce((counts, item) => {
|
|
249
|
+
counts[item.status] += 1;
|
|
250
|
+
return counts;
|
|
251
|
+
}, {
|
|
252
|
+
unchanged: 0,
|
|
253
|
+
added: 0,
|
|
254
|
+
removed: 0,
|
|
255
|
+
changed: 0,
|
|
256
|
+
conflict: 0,
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
//# sourceMappingURL=reimport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reimport.js","sourceRoot":"","sources":["../../src/material-binding/reimport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,yCAAyC,GAC1C,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,4BAA4B,EAC5B,iCAAiC,GAClC,MAAM,WAAW,CAAC;AAcnB,MAAM,UAAU,0CAA0C,CACxD,QAA+D,EAC/D,UAAyC;IAEzC,MAAM,QAAQ,GAAG,4BAA4B,CAAC,UAAU,CAAC,CAAC;IAC1D,MAAM,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC/F,MAAM,SAAS,GAAG,OAAO,KAAK,EAAE,IAAI,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE;QACpE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE;QACnB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;IACd,MAAM,YAAY,GAAG,iCAAiC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IAC7E,MAAM,eAAe,GAAG,IAAI,GAAG,CAC7B,YAAY;SACT,MAAM,CAAC,CAAC,IAAI,EAAkE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;SAC/F,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,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0,0 +1,22 @@
|
|
|
1
|
+
import { type ArtistMaterialProfile, type SceneMaterialAssetKind } from '@fps-games/editor-protocol';
|
|
2
|
+
import type { EditorSceneMaterialAsset, EditorSceneMaterialBinding, EditorSceneMaterialGameObject } from './types';
|
|
3
|
+
export interface EditorSceneArtistMaterialRuntimePreview {
|
|
4
|
+
artistMaterialKind?: SceneMaterialAssetKind;
|
|
5
|
+
artistMaterialProfile?: ArtistMaterialProfile;
|
|
6
|
+
artistMaterialSlotProfiles?: Record<string, ArtistMaterialProfile>;
|
|
7
|
+
}
|
|
8
|
+
export interface EditorSceneArtistMaterialBindingResolveResult {
|
|
9
|
+
materialAsset: EditorSceneMaterialAsset | null;
|
|
10
|
+
materialAssetKind: SceneMaterialAssetKind;
|
|
11
|
+
profile: ArtistMaterialProfile;
|
|
12
|
+
missingMaterialAssetId?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface EditorSceneMaterialAssetCatalog<TMaterialAsset extends EditorSceneMaterialAsset = EditorSceneMaterialAsset> {
|
|
15
|
+
scene: {
|
|
16
|
+
materialAssets?: TMaterialAsset[];
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare function resolveEditorSceneArtistMaterialBinding<TMaterialAsset extends EditorSceneMaterialAsset = EditorSceneMaterialAsset>(document: EditorSceneMaterialAssetCatalog<TMaterialAsset>, binding: EditorSceneMaterialBinding | null | undefined): EditorSceneArtistMaterialBindingResolveResult;
|
|
20
|
+
export declare function resolveEditorSceneArtistMaterialRuntimePreview<TGameObject extends EditorSceneMaterialGameObject = EditorSceneMaterialGameObject, TMaterialAsset extends EditorSceneMaterialAsset = EditorSceneMaterialAsset>(document: EditorSceneMaterialAssetCatalog<TMaterialAsset>, gameObject: TGameObject): EditorSceneArtistMaterialRuntimePreview;
|
|
21
|
+
export declare function resolveEditorSceneArtistMaterialSlotProfiles<TGameObject extends EditorSceneMaterialGameObject = EditorSceneMaterialGameObject, TMaterialAsset extends EditorSceneMaterialAsset = EditorSceneMaterialAsset>(document: EditorSceneMaterialAssetCatalog<TMaterialAsset>, gameObject: TGameObject): Record<string, ArtistMaterialProfile>;
|
|
22
|
+
//# sourceMappingURL=resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../src/material-binding/resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,wBAAwB,EACxB,0BAA0B,EAE1B,6BAA6B,EAC9B,MAAM,SAAS,CAAC;AAQjB,MAAM,WAAW,uCAAuC;IACtD,kBAAkB,CAAC,EAAE,sBAAsB,CAAC;IAC5C,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C,0BAA0B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;CACpE;AAED,MAAM,WAAW,6CAA6C;IAC5D,aAAa,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAC/C,iBAAiB,EAAE,sBAAsB,CAAC;IAC1C,OAAO,EAAE,qBAAqB,CAAC;IAC/B,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,+BAA+B,CAC9C,cAAc,SAAS,wBAAwB,GAAG,wBAAwB;IAE1E,KAAK,EAAE;QACL,cAAc,CAAC,EAAE,cAAc,EAAE,CAAC;KACnC,CAAC;CACH;AAED,wBAAgB,uCAAuC,CACrD,cAAc,SAAS,wBAAwB,GAAG,wBAAwB,EAE1E,QAAQ,EAAE,+BAA+B,CAAC,cAAc,CAAC,EACzD,OAAO,EAAE,0BAA0B,GAAG,IAAI,GAAG,SAAS,GACrD,6CAA6C,CAiB/C;AAED,wBAAgB,8CAA8C,CAC5D,WAAW,SAAS,6BAA6B,GAAG,6BAA6B,EACjF,cAAc,SAAS,wBAAwB,GAAG,wBAAwB,EAE1E,QAAQ,EAAE,+BAA+B,CAAC,cAAc,CAAC,EACzD,UAAU,EAAE,WAAW,GACtB,uCAAuC,CAgBzC;AAED,wBAAgB,4CAA4C,CAC1D,WAAW,SAAS,6BAA6B,GAAG,6BAA6B,EACjF,cAAc,SAAS,wBAAwB,GAAG,wBAAwB,EAE1E,QAAQ,EAAE,+BAA+B,CAAC,cAAc,CAAC,EACzD,UAAU,EAAE,WAAW,GACtB,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAWvC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { mergeArtistMaterialProfiles, } from '@fps-games/editor-protocol';
|
|
2
|
+
import { normalizeEditorSceneMaterialSlotOwnerPath, } from './paths.js';
|
|
3
|
+
import { resolveEditorSceneMaterialAssetKind, } from './profile.js';
|
|
4
|
+
export function resolveEditorSceneArtistMaterialBinding(document, binding) {
|
|
5
|
+
const materialAssetId = typeof binding?.materialAssetId === 'string'
|
|
6
|
+
? binding.materialAssetId.trim()
|
|
7
|
+
: '';
|
|
8
|
+
const materialAsset = materialAssetId
|
|
9
|
+
? document.scene.materialAssets?.find((asset) => asset.id === materialAssetId) ?? null
|
|
10
|
+
: null;
|
|
11
|
+
const profile = mergeArtistMaterialProfiles(materialAsset?.profile, binding?.override);
|
|
12
|
+
return {
|
|
13
|
+
materialAsset,
|
|
14
|
+
materialAssetKind: resolveEditorSceneMaterialAssetKind(materialAsset),
|
|
15
|
+
profile,
|
|
16
|
+
...(materialAssetId && !materialAsset ? { missingMaterialAssetId: materialAssetId } : {}),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export function resolveEditorSceneArtistMaterialRuntimePreview(document, gameObject) {
|
|
20
|
+
const root = resolveEditorSceneArtistMaterialBinding(document, gameObject.overrides?.materialBinding);
|
|
21
|
+
const runtimePreview = {};
|
|
22
|
+
if (Object.keys(root.profile).length > 0) {
|
|
23
|
+
runtimePreview.artistMaterialKind = root.materialAssetKind;
|
|
24
|
+
runtimePreview.artistMaterialProfile = root.profile;
|
|
25
|
+
}
|
|
26
|
+
else if (gameObject.overrides?.materialBinding?.materialAssetId) {
|
|
27
|
+
runtimePreview.artistMaterialKind = root.materialAssetKind;
|
|
28
|
+
}
|
|
29
|
+
const slotProfiles = resolveEditorSceneArtistMaterialSlotProfiles(document, gameObject);
|
|
30
|
+
if (Object.keys(slotProfiles).length > 0) {
|
|
31
|
+
runtimePreview.artistMaterialSlotProfiles = slotProfiles;
|
|
32
|
+
}
|
|
33
|
+
return runtimePreview;
|
|
34
|
+
}
|
|
35
|
+
export function resolveEditorSceneArtistMaterialSlotProfiles(document, gameObject) {
|
|
36
|
+
const slotProfiles = {};
|
|
37
|
+
const childMaterialBindings = gameObject.overrides?.childMaterialBindings ?? {};
|
|
38
|
+
for (const [ownerNodePath, binding] of Object.entries(childMaterialBindings)) {
|
|
39
|
+
const normalizedOwnerNodePath = normalizeEditorSceneMaterialSlotOwnerPath(ownerNodePath);
|
|
40
|
+
if (!normalizedOwnerNodePath || !binding)
|
|
41
|
+
continue;
|
|
42
|
+
const resolved = resolveEditorSceneArtistMaterialBinding(document, binding);
|
|
43
|
+
if (Object.keys(resolved.profile).length === 0)
|
|
44
|
+
continue;
|
|
45
|
+
slotProfiles[normalizedOwnerNodePath] = resolved.profile;
|
|
46
|
+
}
|
|
47
|
+
return slotProfiles;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=resolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver.js","sourceRoot":"","sources":["../../src/material-binding/resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,GAG5B,MAAM,4BAA4B,CAAC;AAOpC,OAAO,EACL,yCAAyC,GAC1C,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,mCAAmC,GACpC,MAAM,WAAW,CAAC;AAuBnB,MAAM,UAAU,uCAAuC,CAGrD,QAAyD,EACzD,OAAsD;IAEtD,MAAM,eAAe,GAAG,OAAO,OAAO,EAAE,eAAe,KAAK,Q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