@almadar/ui 5.75.0 → 5.76.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/avl/index.cjs +2545 -6006
- package/dist/avl/index.d.ts +43 -43
- package/dist/avl/index.js +1250 -4711
- package/dist/components/avl/atoms/AvlApplication.d.ts +1 -1
- package/dist/components/avl/atoms/AvlBindingRef.d.ts +1 -1
- package/dist/components/avl/atoms/AvlEffect.d.ts +1 -1
- package/dist/components/avl/atoms/AvlEntity.d.ts +1 -1
- package/dist/components/avl/atoms/AvlEvent.d.ts +1 -1
- package/dist/components/avl/atoms/AvlField.d.ts +1 -1
- package/dist/components/avl/atoms/AvlFieldType.d.ts +1 -1
- package/dist/components/avl/atoms/AvlGuard.d.ts +1 -1
- package/dist/components/avl/atoms/AvlLiteral.d.ts +1 -1
- package/dist/components/avl/atoms/AvlOperator.d.ts +1 -1
- package/dist/components/avl/atoms/AvlPage.d.ts +1 -1
- package/dist/components/avl/atoms/AvlPersistence.d.ts +1 -1
- package/dist/components/avl/atoms/AvlSExpr.d.ts +1 -1
- package/dist/components/avl/atoms/AvlState.d.ts +2 -2
- package/dist/components/avl/atoms/index.d.ts +4 -4
- package/dist/components/avl/{molecules → lib}/avl-behavior-compose-converter.d.ts +1 -1
- package/dist/components/avl/{molecules → lib}/avl-elk-layout.d.ts +2 -2
- package/dist/components/avl/{molecules → lib}/avl-flow-converter.d.ts +1 -1
- package/dist/components/avl/{molecules → lib}/avl-preview-converter.d.ts +1 -1
- package/dist/components/avl/{molecules → lib}/avl-story-schemas.d.ts +6 -6
- package/dist/components/avl/{molecules → lib}/avl-zoom-band.d.ts +1 -1
- package/dist/components/avl/molecules/Avl3DExprTree.d.ts +1 -1
- package/dist/components/avl/molecules/AvlBehaviorGlyph.d.ts +1 -1
- package/dist/components/avl/molecules/AvlClosedCircuit.d.ts +1 -1
- package/dist/components/avl/molecules/AvlOrbitalUnit.d.ts +1 -1
- package/dist/components/avl/molecules/AvlStateMachine.d.ts +1 -1
- package/dist/components/avl/molecules/AvlTransitionLane.d.ts +1 -1
- package/dist/components/avl/molecules/BehaviorView.d.ts +1 -1
- package/dist/components/avl/molecules/DetailView.d.ts +1 -1
- package/dist/components/avl/molecules/MiniStateMachine.d.ts +1 -1
- package/dist/components/avl/molecules/ModuleCard.d.ts +1 -1
- package/dist/components/avl/molecules/OrbPreviewNode.d.ts +1 -1
- package/dist/components/avl/molecules/SystemNode.d.ts +1 -1
- package/dist/components/avl/molecules/index.d.ts +9 -9
- package/dist/components/avl/organisms/Avl3DApplicationScene.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DEffects.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DOrbitalScene.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DTraitScene.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DTransitionScene.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DViewer.d.ts +2 -2
- package/dist/components/avl/organisms/AvlCosmicZoom.d.ts +1 -1
- package/dist/components/avl/organisms/AvlLegend.d.ts +1 -1
- package/dist/components/avl/organisms/AvlTraitScene.d.ts +1 -1
- package/dist/components/avl/organisms/AvlTransitionDetail.d.ts +1 -1
- package/dist/components/avl/organisms/AvlTransitionScene.d.ts +1 -1
- package/dist/components/avl/organisms/FlowCanvas.d.ts +2 -2
- package/dist/components/avl/organisms/OrbInspector.d.ts +1 -1
- package/dist/components/avl/organisms/ZoomBreadcrumb.d.ts +1 -1
- package/dist/components/avl/organisms/ZoomLegend.d.ts +1 -1
- package/dist/components/avl/organisms/index.d.ts +2 -2
- package/dist/components/avl/{molecules → types}/avl-behavior-compose-types.d.ts +1 -1
- package/dist/components/avl/{molecules → types}/avl-canvas-types.d.ts +1 -1
- package/dist/components/core/atoms/index.d.ts +2 -3
- package/dist/components/core/molecules/Breadcrumb.d.ts +1 -1
- package/dist/components/core/molecules/Card.d.ts +1 -1
- package/dist/components/core/molecules/Chart.d.ts +0 -2
- package/dist/components/core/molecules/ConfirmDialog.d.ts +0 -2
- package/dist/components/core/molecules/DataGrid.d.ts +1 -1
- package/dist/components/core/molecules/DataList.d.ts +1 -1
- package/dist/components/core/molecules/EmptyState.d.ts +1 -1
- package/dist/components/core/molecules/FloatingActionButton.d.ts +1 -1
- package/dist/components/core/molecules/FormSectionHeader.d.ts +1 -1
- package/dist/components/core/molecules/GraphCanvas.d.ts +0 -2
- package/dist/components/core/molecules/Header.d.ts +1 -1
- package/dist/components/core/molecules/Menu.d.ts +1 -1
- package/dist/components/core/molecules/Navigation.d.ts +1 -1
- package/dist/components/core/molecules/OrbitalVisualization.d.ts +0 -2
- package/dist/components/core/molecules/PageHeader.d.ts +1 -1
- package/dist/components/core/molecules/Section.d.ts +0 -2
- package/dist/components/core/molecules/Sidebar.d.ts +1 -1
- package/dist/components/core/molecules/SignaturePad.d.ts +0 -2
- package/dist/components/core/molecules/Split.d.ts +0 -2
- package/dist/components/core/molecules/StatDisplay.d.ts +1 -1
- package/dist/components/core/molecules/SwipeableRow.d.ts +1 -1
- package/dist/components/core/molecules/TableView.d.ts +1 -1
- package/dist/components/core/molecules/Tabs.d.ts +1 -1
- package/dist/components/core/molecules/UploadDropZone.d.ts +1 -1
- package/dist/components/core/molecules/WizardContainer.d.ts +0 -2
- package/dist/components/core/molecules/index.d.ts +1 -1
- package/dist/components/core/organisms/UISlotRenderer.d.ts +1 -1
- package/dist/components/core/organisms/index.d.ts +4 -4
- package/dist/components/core/templates/index.d.ts +12 -12
- package/dist/components/game/2d/{ActionButton.d.ts → atoms/ActionButton.d.ts} +1 -1
- package/dist/components/game/2d/{ChoiceButton.d.ts → atoms/ChoiceButton.d.ts} +1 -1
- package/dist/components/game/2d/{ControlButton.d.ts → atoms/ControlButton.d.ts} +1 -1
- package/dist/components/game/2d/{GameAudioToggle.d.ts → atoms/GameAudioToggle.d.ts} +1 -3
- package/dist/components/game/2d/atoms/GameIcon.d.ts +18 -0
- package/dist/components/game/2d/{ItemSlot.d.ts → atoms/ItemSlot.d.ts} +1 -1
- package/dist/components/game/2d/{MiniMap.d.ts → atoms/MiniMap.d.ts} +1 -1
- package/dist/components/game/2d/{ResourceCounter.d.ts → atoms/ResourceCounter.d.ts} +2 -2
- package/dist/components/game/2d/{ScoreDisplay.d.ts → atoms/ScoreDisplay.d.ts} +1 -1
- package/dist/components/game/2d/{Sprite.d.ts → atoms/Sprite.d.ts} +1 -1
- package/dist/components/game/2d/{StateIndicator.d.ts → atoms/StateIndicator.d.ts} +5 -4
- package/dist/components/game/2d/{StatusEffect.d.ts → atoms/StatusEffect.d.ts} +2 -2
- package/dist/components/game/2d/{WaypointMarker.d.ts → atoms/WaypointMarker.d.ts} +1 -1
- package/dist/components/game/2d/{Canvas2D.d.ts → molecules/Canvas2D.d.ts} +3 -3
- package/dist/components/game/2d/{ControlGrid.d.ts → molecules/ControlGrid.d.ts} +3 -2
- package/dist/components/game/2d/{GameHud.d.ts → molecules/GameHud.d.ts} +3 -1
- package/dist/components/game/2d/{GameMenu.d.ts → molecules/GameMenu.d.ts} +1 -1
- package/dist/components/game/2d/{InventoryGrid.d.ts → molecules/InventoryGrid.d.ts} +3 -2
- package/dist/components/game/2d/{ResourceBar.d.ts → molecules/ResourceBar.d.ts} +3 -1
- package/dist/components/game/2d/{StatBadge.d.ts → molecules/StatBadge.d.ts} +1 -1
- package/dist/components/game/2d/molecules/index.d.ts +107 -0
- package/dist/components/game/2d/{ActionTile.d.ts → organisms/ActionTile.d.ts} +1 -1
- package/dist/components/game/2d/{BattleBoard.d.ts → organisms/BattleBoard.d.ts} +4 -3
- package/dist/components/game/2d/{BoardgameBoard.d.ts → organisms/BoardgameBoard.d.ts} +3 -3
- package/dist/components/game/2d/{BuilderBoard.d.ts → organisms/BuilderBoard.d.ts} +7 -3
- package/dist/components/game/2d/{CanvasEffect.d.ts → organisms/CanvasEffect.d.ts} +4 -4
- package/dist/components/game/2d/{CardBattlerBoard.d.ts → organisms/CardBattlerBoard.d.ts} +1 -1
- package/dist/components/game/2d/{CastleBoard.d.ts → organisms/CastleBoard.d.ts} +2 -1
- package/dist/components/game/2d/{CityBuilderBoard.d.ts → organisms/CityBuilderBoard.d.ts} +1 -1
- package/dist/components/game/2d/{ClassifierBoard.d.ts → organisms/ClassifierBoard.d.ts} +7 -3
- package/dist/components/game/2d/{DebuggerBoard.d.ts → organisms/DebuggerBoard.d.ts} +7 -3
- package/dist/components/game/2d/{EventHandlerBoard.d.ts → organisms/EventHandlerBoard.d.ts} +1 -1
- package/dist/components/game/2d/{FishingBoard.d.ts → organisms/FishingBoard.d.ts} +12 -2
- package/dist/components/game/2d/{HexStrategyBoard.d.ts → organisms/HexStrategyBoard.d.ts} +13 -6
- package/dist/components/game/2d/{HolidayRunnerBoard.d.ts → organisms/HolidayRunnerBoard.d.ts} +3 -3
- package/dist/components/game/2d/{MatchPuzzleBoard.d.ts → organisms/MatchPuzzleBoard.d.ts} +3 -3
- package/dist/components/game/2d/{MinigolfBoard.d.ts → organisms/MinigolfBoard.d.ts} +3 -3
- package/dist/components/game/2d/{NegotiatorBoard.d.ts → organisms/NegotiatorBoard.d.ts} +7 -3
- package/dist/components/game/2d/{PinballBoard.d.ts → organisms/PinballBoard.d.ts} +12 -4
- package/dist/components/game/2d/{PirateBoard.d.ts → organisms/PirateBoard.d.ts} +13 -6
- package/dist/components/game/2d/{PlatformerBoard.d.ts → organisms/PlatformerBoard.d.ts} +1 -1
- package/dist/components/game/2d/{RacingBoard.d.ts → organisms/RacingBoard.d.ts} +13 -6
- package/dist/components/game/2d/{RoguelikeBoard.d.ts → organisms/RoguelikeBoard.d.ts} +2 -2
- package/dist/components/game/2d/{SequencerBoard.d.ts → organisms/SequencerBoard.d.ts} +1 -1
- package/dist/components/game/2d/{SimulationCanvas.d.ts → organisms/SimulationCanvas.d.ts} +3 -2
- package/dist/components/game/2d/{SimulationControls.d.ts → organisms/SimulationControls.d.ts} +6 -1
- package/dist/components/game/2d/{SimulatorBoard.d.ts → organisms/SimulatorBoard.d.ts} +7 -3
- package/dist/components/game/2d/{SokobanBoard.d.ts → organisms/SokobanBoard.d.ts} +3 -3
- package/dist/components/game/2d/{SpaceShmupBoard.d.ts → organisms/SpaceShmupBoard.d.ts} +13 -6
- package/dist/components/game/2d/{SpaceStationBoard.d.ts → organisms/SpaceStationBoard.d.ts} +3 -3
- package/dist/components/game/2d/{SportsBoard.d.ts → organisms/SportsBoard.d.ts} +3 -3
- package/dist/components/game/2d/{StateArchitectBoard.d.ts → organisms/StateArchitectBoard.d.ts} +1 -1
- package/dist/components/game/2d/{StateNode.d.ts → organisms/StateNode.d.ts} +1 -1
- package/dist/components/game/2d/{TanksBoard.d.ts → organisms/TanksBoard.d.ts} +3 -3
- package/dist/components/game/2d/{TowerDefenseBoard.d.ts → organisms/TowerDefenseBoard.d.ts} +1 -1
- package/dist/components/game/2d/{TraitSlot.d.ts → organisms/TraitSlot.d.ts} +1 -1
- package/dist/components/game/2d/{TraitStateViewer.d.ts → organisms/TraitStateViewer.d.ts} +2 -2
- package/dist/components/game/2d/{TransitionArrow.d.ts → organisms/TransitionArrow.d.ts} +1 -1
- package/dist/components/game/2d/{UncontrolledBattleBoard.d.ts → organisms/UncontrolledBattleBoard.d.ts} +1 -1
- package/dist/components/game/2d/{VisualNovelBoard.d.ts → organisms/VisualNovelBoard.d.ts} +1 -9
- package/dist/components/game/2d/{WorldMapBoard.d.ts → organisms/WorldMapBoard.d.ts} +4 -3
- package/dist/components/game/2d/{BattleTemplate.d.ts → templates/BattleTemplate.d.ts} +4 -4
- package/dist/components/game/2d/{CardBattlerTemplate.d.ts → templates/CardBattlerTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{CastleTemplate.d.ts → templates/CastleTemplate.d.ts} +4 -4
- package/dist/components/game/2d/{CityBuilderTemplate.d.ts → templates/CityBuilderTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{GameTemplate.d.ts → templates/GameTemplate.d.ts} +1 -1
- package/dist/components/game/2d/{PlatformerTemplate.d.ts → templates/PlatformerTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{RoguelikeTemplate.d.ts → templates/RoguelikeTemplate.d.ts} +3 -3
- package/dist/components/game/2d/{TopDownShooterTemplate.d.ts → templates/TopDownShooterTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{TowerDefenseTemplate.d.ts → templates/TowerDefenseTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{VisualNovelTemplate.d.ts → templates/VisualNovelTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{WorldMapTemplate.d.ts → templates/WorldMapTemplate.d.ts} +4 -4
- package/dist/components/game/3d/{Canvas3D.d.ts → molecules/Canvas3D.d.ts} +1 -1
- package/dist/components/game/3d/{GameCanvas3D.d.ts → molecules/GameCanvas3D.d.ts} +3 -3
- package/dist/components/game/3d/{index.d.ts → molecules/index.d.ts} +20 -25
- package/dist/components/game/3d/{GameBoard3D.d.ts → organisms/GameBoard3D.d.ts} +2 -2
- package/dist/components/game/3d/{GameCanvas3DBattleTemplate.d.ts → templates/GameCanvas3DBattleTemplate.d.ts} +3 -3
- package/dist/components/game/3d/{GameCanvas3DCastleTemplate.d.ts → templates/GameCanvas3DCastleTemplate.d.ts} +3 -3
- package/dist/components/game/3d/{GameCanvas3DWorldMapTemplate.d.ts → templates/GameCanvas3DWorldMapTemplate.d.ts} +3 -3
- package/dist/components/game/{3d → shared/hooks}/useAssetLoader.d.ts +1 -1
- package/dist/components/game/{2d → shared/hooks}/useBattleState.d.ts +1 -1
- package/dist/components/game/{2d → shared/hooks}/useCamera.d.ts +1 -1
- package/dist/components/game/{2d → shared/hooks}/useCanvasEffects.d.ts +1 -1
- package/dist/components/game/{3d → shared/hooks}/useGameCanvas3DEvents.d.ts +1 -1
- package/dist/components/game/{3d → shared/hooks}/useThree.d.ts +1 -1
- package/dist/components/game/{2d → shared/hooks}/useUnitSpriteAtlas.d.ts +2 -2
- package/dist/components/game/shared/index.d.ts +0 -2
- package/dist/components/game/{2d → shared/lib}/editorUtils.d.ts +6 -1
- package/dist/components/game/{2d → shared/lib}/game3dAssetManifest.d.ts +1 -1
- package/dist/components/game/{2d → shared/lib}/mechanics.d.ts +1 -1
- package/dist/components/game/{2d → shared/lib}/physicsPresets.d.ts +2 -2
- package/dist/components/game/{2d → shared/lib}/puzzleObject.d.ts +1 -1
- package/dist/components/game/{2d → shared/providers}/GameAudioProvider.d.ts +3 -4
- package/dist/components/index.cjs +4459 -5117
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +3378 -4061
- package/dist/context/index.cjs +93 -827
- package/dist/context/index.d.ts +8 -8
- package/dist/context/index.js +3 -807
- package/dist/hooks/index.cjs +9 -278
- package/dist/hooks/index.d.ts +5 -6
- package/dist/hooks/index.js +11 -262
- package/dist/hooks/useAgentChat.d.ts +7 -6
- package/dist/{renderer → hooks}/useClientEffects.d.ts +1 -1
- package/dist/hooks/useCompile.d.ts +2 -6
- package/dist/hooks/useDeepAgentGeneration.d.ts +4 -4
- package/dist/hooks/useEventBus.d.ts +5 -3
- package/dist/hooks/useFileSystem.d.ts +11 -1
- package/dist/hooks/useOrbitalHistory.d.ts +2 -2
- package/dist/hooks/useQuerySingleton.d.ts +5 -4
- package/dist/{runtime → hooks}/useResolvedSchema.d.ts +1 -1
- package/dist/{runtime → hooks}/useTraitStateMachine.d.ts +5 -5
- package/dist/hooks/useUISlots.d.ts +7 -10
- package/dist/lib/api-client.d.ts +4 -3
- package/dist/{renderer → lib}/client-effect-executor.d.ts +4 -15
- package/dist/{runtime → lib}/createClientEffectHandlers.d.ts +4 -4
- package/dist/{renderer → lib}/data-resolver.d.ts +3 -16
- package/dist/lib/debugRegistry.d.ts +8 -7
- package/dist/lib/entityDebug.d.ts +4 -3
- package/dist/lib/getNestedValue.d.ts +15 -3
- package/dist/lib/guardRegistry.d.ts +3 -2
- package/dist/lib/index.cjs +11 -12
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +11 -12
- package/dist/lib/jazari/layout.d.ts +3 -2
- package/dist/{renderer → lib}/offline-executor.d.ts +6 -5
- package/dist/lib/parseContentSegments.d.ts +2 -1
- package/dist/{renderer → lib}/pattern-resolver.d.ts +2 -2
- package/dist/{runtime → lib}/perf.d.ts +0 -2
- package/dist/{renderer → lib}/slot-definitions.d.ts +3 -15
- package/dist/{renderer → lib}/trait-binding-resolver.d.ts +6 -2
- package/dist/lib/visualizer/browser.d.ts +3 -2
- package/dist/lib/visualizer/index.d.ts +6 -5
- package/dist/marketing/index.cjs +6 -6
- package/dist/marketing/index.js +6 -6
- package/dist/{runtime → providers}/EntitySchemaContext.d.ts +0 -4
- package/dist/providers/EventBusProvider.d.ts +3 -2
- package/dist/providers/OfflineModeProvider.d.ts +1 -1
- package/dist/providers/OrbitalProvider.d.ts +5 -4
- package/dist/providers/SelectionProvider.d.ts +6 -5
- package/dist/{runtime → providers}/ServerBridge.d.ts +14 -11
- package/dist/{context → providers}/ThemeContext.d.ts +5 -5
- package/dist/{runtime → providers}/TraitProvider.d.ts +4 -3
- package/dist/{context → providers}/UISlotContext.d.ts +2 -2
- package/dist/{context → providers}/UserContext.d.ts +3 -2
- package/dist/providers/VerificationProvider.d.ts +2 -1
- package/dist/providers/index.cjs +2679 -5114
- package/dist/providers/index.d.ts +7 -1
- package/dist/providers/index.js +1597 -4087
- package/dist/{renderer → providers}/navigation.d.ts +7 -7
- package/dist/renderer/index.cjs +84 -322
- package/dist/renderer/index.d.ts +12 -12
- package/dist/renderer/index.js +30 -301
- package/dist/runtime/OrbPreview.d.ts +1 -1
- package/dist/runtime/index.cjs +2809 -6315
- package/dist/runtime/index.d.ts +11 -11
- package/dist/runtime/index.js +1740 -5270
- package/dist/{hooks → types}/event-bus-types.d.ts +2 -1
- package/dist/{renderer/types.d.ts → types/renderer-types.d.ts} +14 -28
- package/dist/types/runtime-types.d.ts +21 -0
- package/dist/{runtime/ui → types}/slot-types.d.ts +5 -4
- package/locales/index.ts +1 -1
- package/package.json +4 -21
- package/dist/components/core/atoms/ThemeSelector.d.ts +0 -21
- package/dist/components/game/2d/CardHand.d.ts +0 -35
- package/dist/components/game/2d/CombatLog.d.ts +0 -30
- package/dist/components/game/2d/CraftingRecipe.d.ts +0 -40
- package/dist/components/game/2d/DialogueBox.d.ts +0 -66
- package/dist/components/game/2d/EnemyPlate.d.ts +0 -30
- package/dist/components/game/2d/GameCanvas2D.d.ts +0 -27
- package/dist/components/game/2d/GameOverScreen.d.ts +0 -57
- package/dist/components/game/2d/HealthPanel.d.ts +0 -31
- package/dist/components/game/2d/InventoryPanel.d.ts +0 -58
- package/dist/components/game/2d/IsometricCanvas.d.ts +0 -137
- package/dist/components/game/2d/PlatformerCanvas.d.ts +0 -60
- package/dist/components/game/2d/PowerupSlots.d.ts +0 -26
- package/dist/components/game/2d/QuestTracker.d.ts +0 -20
- package/dist/components/game/2d/ScoreBoard.d.ts +0 -18
- package/dist/components/game/2d/TurnPanel.d.ts +0 -32
- package/dist/components/game/2d/UnitCommandBar.d.ts +0 -25
- package/dist/components/game/2d/index.d.ts +0 -122
- package/dist/components/game/3d/FeatureRenderer.d.ts +0 -38
- package/dist/components/game/3d/FeatureRenderer3D.d.ts +0 -44
- package/dist/components/game/3d/PhysicsObject3D.d.ts +0 -74
- package/dist/components/game/3d/TileRenderer.d.ts +0 -57
- package/dist/components/game/3d/UnitRenderer.d.ts +0 -46
- package/dist/components/game/3d/index.cjs +0 -7715
- package/dist/components/game/3d/index.css +0 -503
- package/dist/components/game/3d/index.js +0 -7633
- package/dist/components/game/3d/patterns.d.ts +0 -20
- package/dist/components/game/shared/combatEffects.d.ts +0 -64
- package/dist/docs/index.cjs +0 -7024
- package/dist/docs/index.css +0 -1252
- package/dist/docs/index.d.cts +0 -574
- package/dist/docs/index.d.ts +0 -29
- package/dist/docs/index.js +0 -6981
- package/dist/hooks/useAgentTrace.d.ts +0 -85
- package/dist/hooks/useEntities.d.ts +0 -52
- package/dist/hooks/usePinchZoom.d.ts +0 -22
- package/dist/runtime/types.d.ts +0 -37
- package/dist/stores/entityStore.d.ts +0 -99
- package/dist/stores/filtering.d.ts +0 -51
- package/dist/stores/index.cjs +0 -217
- package/dist/stores/index.d.ts +0 -7
- package/dist/stores/index.js +0 -194
- /package/dist/components/avl/{molecules → hooks}/useCanvasDnd.d.ts +0 -0
- /package/dist/components/avl/{organisms → lib}/avl-3d-layout.d.ts +0 -0
- /package/dist/components/avl/{molecules → lib}/avl-layout.d.ts +0 -0
- /package/dist/components/avl/{organisms → lib}/avl-schema-parser.d.ts +0 -0
- /package/dist/components/avl/{organisms → lib}/avl-zoom-state.d.ts +0 -0
- /package/dist/components/avl/{derive-edit-focus.d.ts → lib/derive-edit-focus.d.ts} +0 -0
- /package/dist/components/avl/{molecules → lib}/wire-validation.d.ts +0 -0
- /package/dist/components/avl/{organisms → providers}/avl-3d-context.d.ts +0 -0
- /package/dist/components/avl/{atoms/types.d.ts → types/avl-atom-types.d.ts} +0 -0
- /package/dist/components/avl/{molecules → types}/avl-preview-types.d.ts +0 -0
- /package/dist/components/game/2d/{ComboCounter.d.ts → atoms/ComboCounter.d.ts} +0 -0
- /package/dist/components/game/2d/{DamageNumber.d.ts → atoms/DamageNumber.d.ts} +0 -0
- /package/dist/components/game/2d/{DialogueBubble.d.ts → atoms/DialogueBubble.d.ts} +0 -0
- /package/dist/components/game/2d/{GameCard.d.ts → atoms/GameCard.d.ts} +0 -0
- /package/dist/components/game/2d/{HealthBar.d.ts → atoms/HealthBar.d.ts} +0 -0
- /package/dist/components/game/2d/{TimerDisplay.d.ts → atoms/TimerDisplay.d.ts} +0 -0
- /package/dist/components/game/2d/{TurnIndicator.d.ts → atoms/TurnIndicator.d.ts} +0 -0
- /package/dist/components/game/2d/{ActionPalette.d.ts → organisms/ActionPalette.d.ts} +0 -0
- /package/dist/components/game/2d/{EventLog.d.ts → organisms/EventLog.d.ts} +0 -0
- /package/dist/components/game/2d/{ObjectRulePanel.d.ts → organisms/ObjectRulePanel.d.ts} +0 -0
- /package/dist/components/game/2d/{RuleEditor.d.ts → organisms/RuleEditor.d.ts} +0 -0
- /package/dist/components/game/2d/{SequenceBar.d.ts → organisms/SequenceBar.d.ts} +0 -0
- /package/dist/components/game/2d/{SimulationGraph.d.ts → organisms/SimulationGraph.d.ts} +0 -0
- /package/dist/components/game/2d/{StateJsonView.d.ts → organisms/StateJsonView.d.ts} +0 -0
- /package/dist/components/game/2d/{TopDownShooterBoard.d.ts → organisms/TopDownShooterBoard.d.ts} +0 -0
- /package/dist/components/game/2d/{VariablePanel.d.ts → organisms/VariablePanel.d.ts} +0 -0
- /package/dist/components/game/2d/{GameShell.d.ts → templates/GameShell.d.ts} +0 -0
- /package/dist/components/game/3d/{Camera3D.d.ts → molecules/Camera3D.d.ts} +0 -0
- /package/dist/components/game/3d/{Canvas3DErrorBoundary.d.ts → molecules/Canvas3DErrorBoundary.d.ts} +0 -0
- /package/dist/components/game/3d/{Canvas3DLoadingState.d.ts → molecules/Canvas3DLoadingState.d.ts} +0 -0
- /package/dist/components/game/3d/{Lighting3D.d.ts → molecules/Lighting3D.d.ts} +0 -0
- /package/dist/components/game/3d/{ModelLoader.d.ts → molecules/ModelLoader.d.ts} +0 -0
- /package/dist/components/game/3d/{Scene3D.d.ts → molecules/Scene3D.d.ts} +0 -0
- /package/dist/components/game/{2d → shared/hooks}/useGameAudio.d.ts +0 -0
- /package/dist/components/game/{3d → shared/hooks}/useRaycaster.d.ts +0 -0
- /package/dist/components/game/{3d → shared/hooks}/useSceneGraph.d.ts +0 -0
- /package/dist/components/game/{3d → shared/lib}/AssetLoader.d.ts +0 -0
- /package/dist/components/game/{3d → shared/lib}/culling.d.ts +0 -0
- /package/dist/components/game/{3d → shared/lib}/grid3D.d.ts +0 -0
- /package/dist/components/game/{2d/types.d.ts → shared/lib/physicsTypes.d.ts} +0 -0
- /package/dist/{runtime → lib}/embedded-traits.d.ts +0 -0
- /package/dist/{runtime → lib}/fn-form-lambda.d.ts +0 -0
- /package/dist/{renderer → lib}/init.d.ts +0 -0
- /package/dist/{runtime → lib}/orbitalsByTrait.d.ts +0 -0
- /package/dist/{runtime → lib}/prepareSchemaForPreview.d.ts +0 -0
- /package/dist/{context → lib}/themeTokens.d.ts +0 -0
- /package/dist/{runtime → lib}/wrapCallbackForEvent.d.ts +0 -0
- /package/dist/{context → providers}/CurrentPagePathContext.d.ts +0 -0
- /package/dist/{context → providers}/DesignThemeContext.d.ts +0 -0
- /package/dist/{context → providers}/OrbitalThemeProvider.d.ts +0 -0
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* InventoryPanel Component
|
|
3
|
-
*
|
|
4
|
-
* Grid-based inventory UI with item selection and tooltips.
|
|
5
|
-
*
|
|
6
|
-
* **State categories (closed-circuit compliant):**
|
|
7
|
-
* - Data (items, slots, selectedSlot) → received via props
|
|
8
|
-
* - UI-transient (hoveredSlot, tooltipPosition) → local only
|
|
9
|
-
* - Events → emitted via `useEventBus()` (selectSlot, useItem, dropItem)
|
|
10
|
-
*
|
|
11
|
-
* Local state is hover/tooltip only — rendering-only concerns.
|
|
12
|
-
*/
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import type { EventEmit, EventPayload } from "@almadar/core";
|
|
15
|
-
export type InventoryItem = EventPayload & {
|
|
16
|
-
id: string;
|
|
17
|
-
type: string;
|
|
18
|
-
quantity: number;
|
|
19
|
-
sprite?: string;
|
|
20
|
-
name?: string;
|
|
21
|
-
description?: string;
|
|
22
|
-
};
|
|
23
|
-
export interface InventoryPanelProps {
|
|
24
|
-
/** Array of items in inventory */
|
|
25
|
-
items: InventoryItem[];
|
|
26
|
-
/** Total number of slots */
|
|
27
|
-
slots: number;
|
|
28
|
-
/** Number of columns in grid */
|
|
29
|
-
columns: number;
|
|
30
|
-
/** Currently selected slot index */
|
|
31
|
-
selectedSlot?: number;
|
|
32
|
-
/** Called when a slot is selected */
|
|
33
|
-
onSelectSlot?: (index: number) => void;
|
|
34
|
-
/** Called when an item is used (double-click or Enter) */
|
|
35
|
-
onUseItem?: (item: InventoryItem) => void;
|
|
36
|
-
/** Called when an item is dropped */
|
|
37
|
-
onDropItem?: (item: InventoryItem) => void;
|
|
38
|
-
/** Declarative event: emits UI:{selectSlotEvent} with { index } when a slot is selected */
|
|
39
|
-
selectSlotEvent?: EventEmit<{
|
|
40
|
-
index: number;
|
|
41
|
-
}>;
|
|
42
|
-
/** Declarative event: emits UI:{useItemEvent} with { item: InventoryItem } when an item is used */
|
|
43
|
-
useItemEvent?: EventEmit<{
|
|
44
|
-
item: InventoryItem;
|
|
45
|
-
}>;
|
|
46
|
-
/** Declarative event: emits UI:{dropItemEvent} with { item: InventoryItem } when an item is dropped */
|
|
47
|
-
dropItemEvent?: EventEmit<{
|
|
48
|
-
item: InventoryItem;
|
|
49
|
-
}>;
|
|
50
|
-
/** Show item tooltips on hover */
|
|
51
|
-
showTooltips?: boolean;
|
|
52
|
-
/** Optional className */
|
|
53
|
-
className?: string;
|
|
54
|
-
/** Slot size in pixels */
|
|
55
|
-
slotSize?: number;
|
|
56
|
-
}
|
|
57
|
-
export declare function InventoryPanel({ items, slots, columns, selectedSlot, onSelectSlot, onUseItem, onDropItem, selectSlotEvent, useItemEvent, dropItemEvent, showTooltips, className, slotSize, }: InventoryPanelProps): React.JSX.Element;
|
|
58
|
-
export default InventoryPanel;
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IsometricCanvas
|
|
3
|
-
*
|
|
4
|
-
* Core isometric game renderer. Maps to the `game-canvas` pattern.
|
|
5
|
-
* Adapted from projects/trait-wars/design-system/organisms/IsometricGameCanvas.tsx
|
|
6
|
-
* with full closed-circuit pattern compliance (className, isLoading, error).
|
|
7
|
-
*
|
|
8
|
-
* Architecture:
|
|
9
|
-
* - 2:1 diamond isometric projection
|
|
10
|
-
* - Painter's algorithm (tile → feature → unit depth sort)
|
|
11
|
-
* - Camera pan/zoom with lerp
|
|
12
|
-
* - Off-screen culling
|
|
13
|
-
* - Minimap on separate canvas
|
|
14
|
-
* - Sprite sheet animation via resolveUnitFrame
|
|
15
|
-
* - Event bus–friendly handlers (onTileClick, onUnitClick, etc.)
|
|
16
|
-
*
|
|
17
|
-
* **State categories (closed-circuit compliant):**
|
|
18
|
-
* - All game data (tiles, units, features, selection, validMoves) → received via props
|
|
19
|
-
* - Rendering state (viewportSize, RAF, camera lerp, sprite cache) → local only
|
|
20
|
-
* - Events → emitted via `useEventBus()` for trait integration
|
|
21
|
-
*
|
|
22
|
-
* This component is a **pure renderer** — it holds no game logic state.
|
|
23
|
-
*
|
|
24
|
-
* @packageDocumentation
|
|
25
|
-
*/
|
|
26
|
-
import * as React from 'react';
|
|
27
|
-
import type { Asset, AssetUrl, EventEmit } from '@almadar/core';
|
|
28
|
-
import type { IsometricTile, IsometricUnit, IsometricFeature, ActiveEffect } from '../shared/isometricTypes';
|
|
29
|
-
import type { ResolvedFrame } from '../shared/spriteAnimationTypes';
|
|
30
|
-
import type { TileLayout } from '../shared/isometric';
|
|
31
|
-
import type { UiError } from '../../core/atoms/types';
|
|
32
|
-
/** Event Contract:
|
|
33
|
-
* Emits: UI:TILE_CLICK
|
|
34
|
-
* Emits: UI:UNIT_CLICK
|
|
35
|
-
* Emits: UI:TILE_HOVER
|
|
36
|
-
* Emits: UI:TILE_LEAVE
|
|
37
|
-
*/
|
|
38
|
-
export interface TileCoord {
|
|
39
|
-
x: number;
|
|
40
|
-
y: number;
|
|
41
|
-
}
|
|
42
|
-
export interface IsometricCanvasProps {
|
|
43
|
-
/** Additional CSS classes */
|
|
44
|
-
className?: string;
|
|
45
|
-
/** Loading state indicator */
|
|
46
|
-
isLoading?: boolean;
|
|
47
|
-
/** Error state */
|
|
48
|
-
error?: UiError | null;
|
|
49
|
-
/** Array of tiles to render */
|
|
50
|
-
tiles?: IsometricTile[];
|
|
51
|
-
/** Array of units on the board */
|
|
52
|
-
units?: IsometricUnit[];
|
|
53
|
-
/** Array of features (resources, portals, buildings, etc.) */
|
|
54
|
-
features?: IsometricFeature[];
|
|
55
|
-
/** Active visual effects to draw after units. Sprite URLs resolved via assetManifest.effects[fx.key]. */
|
|
56
|
-
effects?: ActiveEffect[];
|
|
57
|
-
/** Currently selected unit ID */
|
|
58
|
-
selectedUnitId?: string | null;
|
|
59
|
-
/** Valid move positions (shown as pulsing green highlights) */
|
|
60
|
-
validMoves?: TileCoord[];
|
|
61
|
-
/** Attack target positions (shown as pulsing red highlights) */
|
|
62
|
-
attackTargets?: TileCoord[];
|
|
63
|
-
/** Hovered tile position */
|
|
64
|
-
hoveredTile?: TileCoord | null;
|
|
65
|
-
onTileClick?: (x: number, y: number) => void;
|
|
66
|
-
onUnitClick?: (unitId: string) => void;
|
|
67
|
-
onTileHover?: (x: number, y: number) => void;
|
|
68
|
-
onTileLeave?: () => void;
|
|
69
|
-
/** Declarative event: emits UI:{tileClickEvent} with { x, y } on tile click */
|
|
70
|
-
tileClickEvent?: EventEmit<{
|
|
71
|
-
x: number;
|
|
72
|
-
y: number;
|
|
73
|
-
}>;
|
|
74
|
-
/** Declarative event: emits UI:{unitClickEvent} with { unitId } on unit click */
|
|
75
|
-
unitClickEvent?: EventEmit<{
|
|
76
|
-
unitId: string;
|
|
77
|
-
}>;
|
|
78
|
-
/** Declarative event: emits UI:{tileHoverEvent} with { x, y } on tile hover */
|
|
79
|
-
tileHoverEvent?: EventEmit<{
|
|
80
|
-
x: number;
|
|
81
|
-
y: number;
|
|
82
|
-
}>;
|
|
83
|
-
/** Declarative event: emits UI:{tileLeaveEvent} with {} on tile leave */
|
|
84
|
-
tileLeaveEvent?: EventEmit<Record<string, never>>;
|
|
85
|
-
/** Tile layout projection: 'isometric' (default 2:1 diamond), 'hex' (pointy-top offset rows), or 'flat' (orthographic top-down square grid) */
|
|
86
|
-
tileLayout?: TileLayout;
|
|
87
|
-
/** Render scale (0.4 = 40% zoom) */
|
|
88
|
-
scale?: number;
|
|
89
|
-
/** Show debug grid lines and coordinates */
|
|
90
|
-
debug?: boolean;
|
|
91
|
-
/** Background image URL tiled behind the isometric grid */
|
|
92
|
-
backgroundImage?: AssetUrl;
|
|
93
|
-
/** Toggle minimap overlay */
|
|
94
|
-
showMinimap?: boolean;
|
|
95
|
-
/** Enable camera pan/zoom controls */
|
|
96
|
-
enableCamera?: boolean;
|
|
97
|
-
/** Extra scale multiplier for unit draw size. 1 = default. */
|
|
98
|
-
unitScale?: number;
|
|
99
|
-
/** Ratio of unit draw height to scaledFloorHeight. Default 1.5. */
|
|
100
|
-
spriteHeightRatio?: number;
|
|
101
|
-
/** Max unit draw width as a ratio of scaledTileWidth. Default 0.6. */
|
|
102
|
-
spriteMaxWidthRatio?: number;
|
|
103
|
-
/** Board width in tiles (overrides tile-derived size) */
|
|
104
|
-
boardWidth?: number;
|
|
105
|
-
/** Board height in tiles (overrides tile-derived size) */
|
|
106
|
-
boardHeight?: number;
|
|
107
|
-
/** Override for the diamond-top Y offset within the tile sprite (default: 374).
|
|
108
|
-
* This controls where the flat diamond face sits vertically inside the tile image. */
|
|
109
|
-
diamondTopY?: number;
|
|
110
|
-
/** Resolve terrain sprite URL from terrain key */
|
|
111
|
-
getTerrainSprite?: (terrain: string) => string | undefined;
|
|
112
|
-
/** Resolve feature sprite URL from feature type key */
|
|
113
|
-
getFeatureSprite?: (featureType: string) => string | undefined;
|
|
114
|
-
/** Resolve unit static sprite URL */
|
|
115
|
-
getUnitSprite?: (unit: IsometricUnit) => string | undefined;
|
|
116
|
-
/** Resolve animated sprite sheet frame for a unit */
|
|
117
|
-
resolveUnitFrame?: (unitId: string) => ResolvedFrame | null;
|
|
118
|
-
/** Additional sprite URLs to preload (e.g., effect sprites) */
|
|
119
|
-
effectSpriteUrls?: AssetUrl[];
|
|
120
|
-
/** Callback to draw canvas effects after units (canvas-specific: cannot be declarative) */
|
|
121
|
-
onDrawEffects?: (ctx: CanvasRenderingContext2D, animTime: number, getImage: (url: string) => HTMLImageElement | undefined) => void;
|
|
122
|
-
/** Whether there are active effects — keeps RAF loop alive */
|
|
123
|
-
hasActiveEffects?: boolean;
|
|
124
|
-
/** Manifest mapping entity keys to resolved Asset objects.
|
|
125
|
-
* Used as a fallback when inline assets and callbacks don't resolve. */
|
|
126
|
-
assetManifest?: {
|
|
127
|
-
terrains?: Record<string, Asset>;
|
|
128
|
-
units?: Record<string, Asset>;
|
|
129
|
-
features?: Record<string, Asset>;
|
|
130
|
-
effects?: Record<string, Asset>;
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
export declare function IsometricCanvas({ className, isLoading, error, tiles: _tilesPropRaw, units: _unitsPropRaw, features: _featuresPropRaw, effects: _effectsPropRaw, selectedUnitId, validMoves, attackTargets, hoveredTile, onTileClick, onUnitClick, onTileHover, onTileLeave, tileClickEvent, unitClickEvent, tileHoverEvent, tileLeaveEvent, tileLayout, scale, debug, backgroundImage, showMinimap, enableCamera, unitScale, spriteHeightRatio, spriteMaxWidthRatio, getTerrainSprite, getFeatureSprite, getUnitSprite, resolveUnitFrame, effectSpriteUrls, onDrawEffects, hasActiveEffects: _hasActiveEffects, diamondTopY: diamondTopYProp, assetManifest, }: IsometricCanvasProps): React.JSX.Element;
|
|
134
|
-
export declare namespace IsometricCanvas {
|
|
135
|
-
var displayName: string;
|
|
136
|
-
}
|
|
137
|
-
export default IsometricCanvas;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type { AssetUrl, EventEmit } from '@almadar/core';
|
|
2
|
-
import type { ActiveEffect } from '../shared/isometricTypes';
|
|
3
|
-
export interface PlatformerPlatform {
|
|
4
|
-
x: number;
|
|
5
|
-
y: number;
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
type?: 'ground' | 'platform' | 'hazard' | 'goal';
|
|
9
|
-
}
|
|
10
|
-
export interface PlatformerPlayer {
|
|
11
|
-
x: number;
|
|
12
|
-
y: number;
|
|
13
|
-
width?: number;
|
|
14
|
-
height?: number;
|
|
15
|
-
vx?: number;
|
|
16
|
-
vy?: number;
|
|
17
|
-
grounded?: boolean;
|
|
18
|
-
facingRight?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface PlatformerCanvasProps {
|
|
21
|
-
/** Player state data */
|
|
22
|
-
player?: PlatformerPlayer;
|
|
23
|
-
/** Static platforms / level geometry */
|
|
24
|
-
platforms?: readonly PlatformerPlatform[];
|
|
25
|
-
/** World dimensions */
|
|
26
|
-
worldWidth?: number;
|
|
27
|
-
worldHeight?: number;
|
|
28
|
-
/** Canvas display size */
|
|
29
|
-
canvasWidth?: number;
|
|
30
|
-
canvasHeight?: number;
|
|
31
|
-
/** Camera follows player */
|
|
32
|
-
followCamera?: boolean;
|
|
33
|
-
/** Background color */
|
|
34
|
-
bgColor?: string;
|
|
35
|
-
/** Player sprite image URL */
|
|
36
|
-
playerSprite?: AssetUrl;
|
|
37
|
-
/** Map of platform type to tile sprite URL */
|
|
38
|
-
tileSprites?: Record<string, AssetUrl>;
|
|
39
|
-
/** Background image URL */
|
|
40
|
-
backgroundImage?: AssetUrl;
|
|
41
|
-
/** Base URL prefix for asset URLs */
|
|
42
|
-
assetBaseUrl?: AssetUrl;
|
|
43
|
-
/** Event names for keyboard controls */
|
|
44
|
-
leftEvent?: EventEmit<{
|
|
45
|
-
direction: number;
|
|
46
|
-
}>;
|
|
47
|
-
rightEvent?: EventEmit<{
|
|
48
|
-
direction: number;
|
|
49
|
-
}>;
|
|
50
|
-
jumpEvent?: EventEmit<Record<string, never>>;
|
|
51
|
-
stopEvent?: EventEmit<Record<string, never>>;
|
|
52
|
-
/** Active visual effects (key, world x/y, ttl) — drawn after the player */
|
|
53
|
-
effects?: ActiveEffect[];
|
|
54
|
-
/** Additional CSS classes */
|
|
55
|
-
className?: string;
|
|
56
|
-
}
|
|
57
|
-
export declare function PlatformerCanvas({ player, platforms, worldWidth, worldHeight, canvasWidth, canvasHeight, followCamera, bgColor, playerSprite, tileSprites, backgroundImage, assetBaseUrl, leftEvent, rightEvent, jumpEvent, stopEvent, effects, className, }: PlatformerCanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
58
|
-
export declare namespace PlatformerCanvas {
|
|
59
|
-
var displayName: string;
|
|
60
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { IconInput } from '../../core/atoms';
|
|
2
|
-
import type { Asset } from '@almadar/core';
|
|
3
|
-
export interface ActivePowerup {
|
|
4
|
-
/** Unique powerup ID */
|
|
5
|
-
id: string;
|
|
6
|
-
/** Sprite asset — takes precedence over icon when provided */
|
|
7
|
-
assetUrl?: Asset;
|
|
8
|
-
/** Icon component or emoji */
|
|
9
|
-
icon?: IconInput;
|
|
10
|
-
/** Powerup label */
|
|
11
|
-
label: string;
|
|
12
|
-
/** Remaining time in seconds */
|
|
13
|
-
remainingTime?: number;
|
|
14
|
-
}
|
|
15
|
-
export interface PowerupSlotsProps {
|
|
16
|
-
/** Array of active powerups */
|
|
17
|
-
active: ActivePowerup[];
|
|
18
|
-
/** Maximum number of powerup slots */
|
|
19
|
-
maxSlots?: number;
|
|
20
|
-
/** Additional CSS classes */
|
|
21
|
-
className?: string;
|
|
22
|
-
}
|
|
23
|
-
export declare function PowerupSlots({ active, maxSlots, className, }: PowerupSlotsProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export declare namespace PowerupSlots {
|
|
25
|
-
var displayName: string;
|
|
26
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface Quest {
|
|
2
|
-
id: string;
|
|
3
|
-
title: string;
|
|
4
|
-
progress: number;
|
|
5
|
-
maxProgress: number;
|
|
6
|
-
active?: boolean;
|
|
7
|
-
completed?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface QuestTrackerProps {
|
|
10
|
-
/** Array of quests to display */
|
|
11
|
-
quests: Quest[];
|
|
12
|
-
/** ID of the currently active quest */
|
|
13
|
-
activeQuestId?: string;
|
|
14
|
-
/** Additional CSS classes */
|
|
15
|
-
className?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare function QuestTracker({ quests, activeQuestId, className, }: QuestTrackerProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export declare namespace QuestTracker {
|
|
19
|
-
var displayName: string;
|
|
20
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface ScoreBoardProps {
|
|
2
|
-
/** Current score */
|
|
3
|
-
score: number;
|
|
4
|
-
/** All-time high score */
|
|
5
|
-
highScore?: number;
|
|
6
|
-
/** Current combo count */
|
|
7
|
-
combo?: number;
|
|
8
|
-
/** Score multiplier */
|
|
9
|
-
multiplier?: number;
|
|
10
|
-
/** Current level */
|
|
11
|
-
level?: number;
|
|
12
|
-
/** Additional CSS classes */
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare function ScoreBoard({ score: rawScore, highScore: rawHighScore, combo: rawCombo, multiplier: rawMultiplier, level: rawLevel, className, }: ScoreBoardProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare namespace ScoreBoard {
|
|
17
|
-
var displayName: string;
|
|
18
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { IconInput } from '../../core/atoms';
|
|
2
|
-
import type { Asset } from '@almadar/core';
|
|
3
|
-
export interface TurnPanelAction {
|
|
4
|
-
/** Action button label */
|
|
5
|
-
label: string;
|
|
6
|
-
/** Sprite asset — takes precedence over icon when provided */
|
|
7
|
-
assetUrl?: Asset;
|
|
8
|
-
/** Icon for the button */
|
|
9
|
-
icon?: IconInput;
|
|
10
|
-
/** Event name to emit when clicked */
|
|
11
|
-
event?: string;
|
|
12
|
-
/** Whether the action is disabled */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface TurnPanelProps {
|
|
16
|
-
/** Current turn number */
|
|
17
|
-
currentTurn: number;
|
|
18
|
-
/** Maximum number of turns */
|
|
19
|
-
maxTurns?: number;
|
|
20
|
-
/** Current phase label */
|
|
21
|
-
phase?: string;
|
|
22
|
-
/** Active team name */
|
|
23
|
-
activeTeam?: string;
|
|
24
|
-
/** Action buttons to display */
|
|
25
|
-
actions?: TurnPanelAction[];
|
|
26
|
-
/** Additional CSS classes */
|
|
27
|
-
className?: string;
|
|
28
|
-
}
|
|
29
|
-
export declare function TurnPanel({ currentTurn, maxTurns, phase, activeTeam, actions, className, }: TurnPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export declare namespace TurnPanel {
|
|
31
|
-
var displayName: string;
|
|
32
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { IconInput } from '../../core/atoms';
|
|
2
|
-
export interface UnitCommand {
|
|
3
|
-
/** Command label */
|
|
4
|
-
label: string;
|
|
5
|
-
/** Icon for the command button */
|
|
6
|
-
icon?: IconInput;
|
|
7
|
-
/** Event name to emit when clicked */
|
|
8
|
-
event?: string;
|
|
9
|
-
/** Whether the command is disabled */
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
/** Keyboard shortcut hint */
|
|
12
|
-
hotkey?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface UnitCommandBarProps {
|
|
15
|
-
/** Available commands */
|
|
16
|
-
commands: UnitCommand[];
|
|
17
|
-
/** ID of the currently selected unit */
|
|
18
|
-
selectedUnitId?: string;
|
|
19
|
-
/** Additional CSS classes */
|
|
20
|
-
className?: string;
|
|
21
|
-
}
|
|
22
|
-
export declare function UnitCommandBar({ commands, selectedUnitId, className, }: UnitCommandBarProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export declare namespace UnitCommandBar {
|
|
24
|
-
var displayName: string;
|
|
25
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Game 2D Components (flat)
|
|
3
|
-
*
|
|
4
|
-
* Atoms, molecules, board organisms, templates, puzzles, editor, and physics-sim.
|
|
5
|
-
* Dimension-agnostic DTO types/utils/hooks are re-surfaced from ../shared.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
export * from '../shared';
|
|
10
|
-
export { GameCard, type GameCardProps } from './GameCard';
|
|
11
|
-
export { HealthBar, type HealthBarProps } from './HealthBar';
|
|
12
|
-
export { ScoreDisplay, type ScoreDisplayProps } from './ScoreDisplay';
|
|
13
|
-
export { ControlButton, type ControlButtonProps } from './ControlButton';
|
|
14
|
-
export { Sprite, drawSprite, type SpriteProps } from './Sprite';
|
|
15
|
-
export { StateIndicator, type StateIndicatorProps, type StateStyle } from './StateIndicator';
|
|
16
|
-
export { TimerDisplay, type TimerDisplayProps } from './TimerDisplay';
|
|
17
|
-
export { ResourceCounter, type ResourceCounterProps } from './ResourceCounter';
|
|
18
|
-
export { ItemSlot, type ItemSlotProps } from './ItemSlot';
|
|
19
|
-
export { TurnIndicator, type TurnIndicatorProps } from './TurnIndicator';
|
|
20
|
-
export { ComboCounter, type ComboCounterProps } from './ComboCounter';
|
|
21
|
-
export { WaypointMarker, type WaypointMarkerProps } from './WaypointMarker';
|
|
22
|
-
export { StatusEffect, type StatusEffectProps } from './StatusEffect';
|
|
23
|
-
export { DamageNumber, type DamageNumberProps } from './DamageNumber';
|
|
24
|
-
export { DialogueBubble, type DialogueBubbleProps } from './DialogueBubble';
|
|
25
|
-
export { ChoiceButton, type ChoiceButtonProps } from './ChoiceButton';
|
|
26
|
-
export { ActionButton, type ActionButtonProps } from './ActionButton';
|
|
27
|
-
export { MiniMap, type MiniMapProps } from './MiniMap';
|
|
28
|
-
export { ControlGrid, type ControlGridProps, type ControlGridButton, type ControlGridKind, type DPadDirection } from './ControlGrid';
|
|
29
|
-
export { StatBadge, type StatBadgeProps } from './StatBadge';
|
|
30
|
-
export { InventoryGrid, type InventoryGridProps, type InventoryGridItem } from './InventoryGrid';
|
|
31
|
-
export { CardHand, type CardHandProps, type CardHandCard } from './CardHand';
|
|
32
|
-
export { QuestTracker, type QuestTrackerProps, type Quest } from './QuestTracker';
|
|
33
|
-
export { CraftingRecipe, type CraftingRecipeProps, type CraftingIngredient } from './CraftingRecipe';
|
|
34
|
-
export { PowerupSlots, type PowerupSlotsProps, type ActivePowerup } from './PowerupSlots';
|
|
35
|
-
export { GameCanvas2D, type GameCanvas2DProps } from './GameCanvas2D';
|
|
36
|
-
export { HealthPanel, type HealthPanelProps } from './HealthPanel';
|
|
37
|
-
export { ScoreBoard, type ScoreBoardProps } from './ScoreBoard';
|
|
38
|
-
export { ResourceBar, type ResourceBarProps, type ResourceBarResource } from './ResourceBar';
|
|
39
|
-
export { TurnPanel, type TurnPanelProps, type TurnPanelAction } from './TurnPanel';
|
|
40
|
-
export { EnemyPlate, type EnemyPlateProps, type EnemyPlateEffect } from './EnemyPlate';
|
|
41
|
-
export { UnitCommandBar, type UnitCommandBarProps, type UnitCommand } from './UnitCommandBar';
|
|
42
|
-
export { GameHud, type GameHudProps, type GameHudStat, type GameHudElement } from './GameHud';
|
|
43
|
-
export { DialogueBox, type DialogueBoxProps, type DialogueNode, type DialogueChoice } from './DialogueBox';
|
|
44
|
-
export { CombatLog, type CombatLogProps, type CombatEvent, type CombatLogEventType } from './CombatLog';
|
|
45
|
-
export { InventoryPanel, type InventoryPanelProps, type InventoryItem } from './InventoryPanel';
|
|
46
|
-
export { GameMenu, type GameMenuProps, type MenuOption } from './GameMenu';
|
|
47
|
-
export { GameOverScreen, type GameOverScreenProps, type GameOverStat, type GameOverAction } from './GameOverScreen';
|
|
48
|
-
export { PlatformerCanvas, type PlatformerCanvasProps, type PlatformerPlatform, type PlatformerPlayer } from './PlatformerCanvas';
|
|
49
|
-
export { IsometricCanvas, type IsometricCanvasProps } from './IsometricCanvas';
|
|
50
|
-
export { Canvas2D, type Canvas2DProps, type Projection, type CameraMode, type Platform, type SidePlayer, type TileCoord, } from './Canvas2D';
|
|
51
|
-
export { useUnitSpriteAtlas } from './useUnitSpriteAtlas';
|
|
52
|
-
export { CanvasEffect, type CanvasEffectProps } from './CanvasEffect';
|
|
53
|
-
export * from './useCanvasEffects';
|
|
54
|
-
export { GameAudioProvider, GameAudioContext, useGameAudioContext, type GameAudioProviderProps, type GameAudioContextValue, } from './GameAudioProvider';
|
|
55
|
-
export { GameAudioToggle, type GameAudioToggleProps, } from './GameAudioToggle';
|
|
56
|
-
export { useGameAudio, type AudioManifest, type SoundEntry, type GameAudioControls, type UseGameAudioOptions, } from './useGameAudio';
|
|
57
|
-
export { useCamera } from './useCamera';
|
|
58
|
-
export { BattleBoard, type BattleBoardProps, type BattlePhase, type BattleSlotContext, } from './BattleBoard';
|
|
59
|
-
export { UncontrolledBattleBoard, type UncontrolledBattleBoardProps, } from './UncontrolledBattleBoard';
|
|
60
|
-
export { useBattleState, type BattleStateEventConfig, type BattleStateCallbacks, type BattleStateResult, } from './useBattleState';
|
|
61
|
-
export { WorldMapBoard, type WorldMapBoardProps, type WorldMapSlotContext, } from './WorldMapBoard';
|
|
62
|
-
export { CastleBoard, type CastleBoardProps, type CastleSlotContext, } from './CastleBoard';
|
|
63
|
-
export { PlatformerBoard, type PlatformerBoardProps, } from './PlatformerBoard';
|
|
64
|
-
export { TowerDefenseBoard, type TowerDefenseBoardProps, } from './TowerDefenseBoard';
|
|
65
|
-
export { RoguelikeBoard, type RoguelikeBoardProps, } from './RoguelikeBoard';
|
|
66
|
-
export { TopDownShooterBoard, type TopDownShooterBoardProps, } from './TopDownShooterBoard';
|
|
67
|
-
export { CityBuilderBoard, type CityBuilderBoardProps, } from './CityBuilderBoard';
|
|
68
|
-
export { VisualNovelBoard, type VisualNovelBoardProps, type VisualNovelNode, type VisualNovelChoice, } from './VisualNovelBoard';
|
|
69
|
-
export { CardBattlerBoard, type CardBattlerBoardProps, type CardBattlerCard, } from './CardBattlerBoard';
|
|
70
|
-
export { HexStrategyBoard, type HexStrategyBoardProps, } from './HexStrategyBoard';
|
|
71
|
-
export { RacingBoard, type RacingBoardProps } from './RacingBoard';
|
|
72
|
-
export { TanksBoard, type TanksBoardProps } from './TanksBoard';
|
|
73
|
-
export { SpaceShmupBoard, type SpaceShmupBoardProps } from './SpaceShmupBoard';
|
|
74
|
-
export { SportsBoard, type SportsBoardProps } from './SportsBoard';
|
|
75
|
-
export { SokobanBoard, type SokobanBoardProps } from './SokobanBoard';
|
|
76
|
-
export { BoardgameBoard, type BoardgameBoardProps } from './BoardgameBoard';
|
|
77
|
-
export { PirateBoard, type PirateBoardProps } from './PirateBoard';
|
|
78
|
-
export { PinballBoard, type PinballBoardProps } from './PinballBoard';
|
|
79
|
-
export { FishingBoard, type FishingBoardProps } from './FishingBoard';
|
|
80
|
-
export { MatchPuzzleBoard, type MatchPuzzleBoardProps } from './MatchPuzzleBoard';
|
|
81
|
-
export { HolidayRunnerBoard, type HolidayRunnerBoardProps } from './HolidayRunnerBoard';
|
|
82
|
-
export { MinigolfBoard, type MinigolfBoardProps } from './MinigolfBoard';
|
|
83
|
-
export { SpaceStationBoard, type SpaceStationBoardProps } from './SpaceStationBoard';
|
|
84
|
-
export { TraitStateViewer, type TraitStateViewerProps, type TraitStateMachineDefinition, type TraitTransition, } from './TraitStateViewer';
|
|
85
|
-
export { TraitSlot, type TraitSlotProps, type SlotItemData, } from './TraitSlot';
|
|
86
|
-
export { CollapsibleSection, EditorSlider, EditorSelect, EditorCheckbox, EditorTextInput, StatusBar, TerrainPalette, EditorToolbar, TERRAIN_COLORS, FEATURE_TYPES, type EditorMode, type CollapsibleSectionProps, type EditorSliderProps, type EditorSelectProps, type EditorCheckboxProps, type EditorTextInputProps, type StatusBarProps, type TerrainPaletteProps, type EditorToolbarProps, } from './editorUtils';
|
|
87
|
-
export { ActionTile, type ActionTileProps } from './ActionTile';
|
|
88
|
-
export { ActionPalette, type ActionPaletteProps } from './ActionPalette';
|
|
89
|
-
export { SequenceBar, type SequenceBarProps } from './SequenceBar';
|
|
90
|
-
export { SequencerBoard, type SequencerBoardProps } from './SequencerBoard';
|
|
91
|
-
export { RuleEditor, type RuleEditorProps, type RuleDefinition } from './RuleEditor';
|
|
92
|
-
export { EventLog, type EventLogProps, type EventLogEntry } from './EventLog';
|
|
93
|
-
export { ObjectRulePanel, type ObjectRulePanelProps } from './ObjectRulePanel';
|
|
94
|
-
export { EventHandlerBoard, type EventHandlerBoardProps } from './EventHandlerBoard';
|
|
95
|
-
export * from './puzzleObject';
|
|
96
|
-
export { StateNode, type StateNodeProps } from './StateNode';
|
|
97
|
-
export { TransitionArrow, type TransitionArrowProps } from './TransitionArrow';
|
|
98
|
-
export { VariablePanel, type VariablePanelProps } from './VariablePanel';
|
|
99
|
-
export { StateJsonView, type StateJsonViewProps } from './StateJsonView';
|
|
100
|
-
export { StateArchitectBoard, type StateArchitectBoardProps, type StateArchitectTransition, type TestCase, } from './StateArchitectBoard';
|
|
101
|
-
export { SimulatorBoard, type SimulatorBoardProps, type SimulatorParameter } from './SimulatorBoard';
|
|
102
|
-
export { ClassifierBoard, type ClassifierBoardProps, type ClassifierItem, type ClassifierCategory } from './ClassifierBoard';
|
|
103
|
-
export { BuilderBoard, type BuilderBoardProps, type BuilderComponent, type BuilderSlot } from './BuilderBoard';
|
|
104
|
-
export { DebuggerBoard, type DebuggerBoardProps, type DebuggerLine } from './DebuggerBoard';
|
|
105
|
-
export { NegotiatorBoard, type NegotiatorBoardProps, type NegotiatorAction, type PayoffEntry } from './NegotiatorBoard';
|
|
106
|
-
export { SimulationCanvas, type SimulationCanvasProps } from './SimulationCanvas';
|
|
107
|
-
export { SimulationControls, type SimulationControlsProps } from './SimulationControls';
|
|
108
|
-
export { SimulationGraph, type SimulationGraphProps, type MeasurementPoint } from './SimulationGraph';
|
|
109
|
-
export type { PhysicsPreset, PhysicsBody, PhysicsConstraint } from './types';
|
|
110
|
-
export { projectileMotion, pendulum, springOscillator, ALL_PRESETS } from './physicsPresets';
|
|
111
|
-
export { GameTemplate, type GameTemplateProps } from './GameTemplate';
|
|
112
|
-
export { GameShell, type GameShellProps } from './GameShell';
|
|
113
|
-
export { BattleTemplate, type BattleTemplateProps } from './BattleTemplate';
|
|
114
|
-
export { CastleTemplate, type CastleTemplateProps } from './CastleTemplate';
|
|
115
|
-
export { WorldMapTemplate, type WorldMapTemplateProps } from './WorldMapTemplate';
|
|
116
|
-
export { PlatformerTemplate, type PlatformerTemplateProps } from './PlatformerTemplate';
|
|
117
|
-
export { TowerDefenseTemplate, type TowerDefenseTemplateProps } from './TowerDefenseTemplate';
|
|
118
|
-
export { RoguelikeTemplate, type RoguelikeTemplateProps } from './RoguelikeTemplate';
|
|
119
|
-
export { TopDownShooterTemplate, type TopDownShooterTemplateProps } from './TopDownShooterTemplate';
|
|
120
|
-
export { CityBuilderTemplate, type CityBuilderTemplateProps } from './CityBuilderTemplate';
|
|
121
|
-
export { VisualNovelTemplate, type VisualNovelTemplateProps } from './VisualNovelTemplate';
|
|
122
|
-
export { CardBattlerTemplate, type CardBattlerTemplateProps } from './CardBattlerTemplate';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FeatureRenderer
|
|
3
|
-
*
|
|
4
|
-
* Renders static features (trees, rocks, buildings) in the 3D scene.
|
|
5
|
-
* Supports different feature types and selection states.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import type { IsometricFeature } from '../shared/isometricTypes';
|
|
11
|
-
export interface FeatureRendererProps {
|
|
12
|
-
/** Array of features to render */
|
|
13
|
-
features: IsometricFeature[];
|
|
14
|
-
/** Grid cell size */
|
|
15
|
-
cellSize?: number;
|
|
16
|
-
/** Grid offset X */
|
|
17
|
-
offsetX?: number;
|
|
18
|
-
/** Grid offset Z */
|
|
19
|
-
offsetZ?: number;
|
|
20
|
-
/** Called when feature is clicked */
|
|
21
|
-
onFeatureClick?: (feature: IsometricFeature) => void;
|
|
22
|
-
/** Called when feature is hovered */
|
|
23
|
-
onFeatureHover?: (feature: IsometricFeature | null) => void;
|
|
24
|
-
/** Selected feature IDs */
|
|
25
|
-
selectedFeatureIds?: string[];
|
|
26
|
-
/** Feature color overrides */
|
|
27
|
-
featureColors?: Record<string, string>;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Self-contained FeatureRenderer. three.js geometry only renders inside an
|
|
31
|
-
* `@react-three/fiber` `<Canvas>`. When already inside one (the fiber context is
|
|
32
|
-
* set) it renders the raw group; standalone it bundles a default `<Canvas>`
|
|
33
|
-
* (camera + lighting) so it shows on its own. The Canvas is an implementation
|
|
34
|
-
* detail, and the conditional check keeps it composable inside a larger scene
|
|
35
|
-
* (no nested Canvas).
|
|
36
|
-
*/
|
|
37
|
-
export declare function FeatureRenderer(props: FeatureRendererProps): React.JSX.Element;
|
|
38
|
-
export default FeatureRenderer;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FeatureRenderer3D
|
|
3
|
-
*
|
|
4
|
-
* Renders 3D features with GLB model loading from CDN.
|
|
5
|
-
* Supports assetUrl property on features for external model loading.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import type { IsometricFeature } from '../shared/isometricTypes';
|
|
11
|
-
export interface FeatureRenderer3DProps {
|
|
12
|
-
/** Array of features to render */
|
|
13
|
-
features: IsometricFeature[];
|
|
14
|
-
/** Grid cell size */
|
|
15
|
-
cellSize?: number;
|
|
16
|
-
/** Grid offset X */
|
|
17
|
-
offsetX?: number;
|
|
18
|
-
/** Grid offset Z */
|
|
19
|
-
offsetZ?: number;
|
|
20
|
-
/** Called when feature is clicked */
|
|
21
|
-
onFeatureClick?: (feature: IsometricFeature) => void;
|
|
22
|
-
/** Called when feature is hovered */
|
|
23
|
-
onFeatureHover?: (feature: IsometricFeature | null) => void;
|
|
24
|
-
/** Selected feature IDs */
|
|
25
|
-
selectedFeatureIds?: string[];
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* FeatureRenderer3D Component
|
|
29
|
-
*
|
|
30
|
-
* Renders 3D features with GLB model loading support.
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```tsx
|
|
34
|
-
* <FeatureRenderer3D
|
|
35
|
-
* features={[
|
|
36
|
-
* { id: 'gate', x: 0, y: 0, type: 'gate', assetUrl: 'https://.../gate.glb' }
|
|
37
|
-
* ]}
|
|
38
|
-
* cellSize={1}
|
|
39
|
-
* />
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
export declare function FeatureRenderer3D({ features, cellSize, offsetX, offsetZ, onFeatureClick, onFeatureHover, selectedFeatureIds, }: FeatureRenderer3DProps): React.JSX.Element;
|
|
43
|
-
export default FeatureRenderer3D;
|
|
44
|
-
export declare function preloadFeatures(urls: string[]): void;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PhysicsObject3D Component
|
|
3
|
-
*
|
|
4
|
-
* Three.js component that syncs a 3D object's position with physics state.
|
|
5
|
-
* Use this to render physics-enabled entities in GameCanvas3D.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* <PhysicsObject3D
|
|
10
|
-
* entityId="player-1"
|
|
11
|
-
* modelUrl="https://trait-wars-assets.web.app/3d/medieval/props/barrels.glb"
|
|
12
|
-
* initialPosition={[0, 10, 0]}
|
|
13
|
-
* mass={1}
|
|
14
|
-
* />
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @packageDocumentation
|
|
18
|
-
*/
|
|
19
|
-
import React from 'react';
|
|
20
|
-
export interface Physics3DState {
|
|
21
|
-
id: string;
|
|
22
|
-
x: number;
|
|
23
|
-
y: number;
|
|
24
|
-
z: number;
|
|
25
|
-
vx: number;
|
|
26
|
-
vy: number;
|
|
27
|
-
vz: number;
|
|
28
|
-
rx: number;
|
|
29
|
-
ry: number;
|
|
30
|
-
rz: number;
|
|
31
|
-
isGrounded: boolean;
|
|
32
|
-
gravity: number;
|
|
33
|
-
friction: number;
|
|
34
|
-
mass: number;
|
|
35
|
-
state: 'Active' | 'Frozen';
|
|
36
|
-
}
|
|
37
|
-
export interface PhysicsObject3DProps {
|
|
38
|
-
/** Unique entity ID */
|
|
39
|
-
entityId: string;
|
|
40
|
-
/** GLB model URL */
|
|
41
|
-
modelUrl: string;
|
|
42
|
-
/** Initial position [x, y, z] */
|
|
43
|
-
initialPosition?: [number, number, number];
|
|
44
|
-
/** Initial velocity [vx, vy, vz] */
|
|
45
|
-
initialVelocity?: [number, number, number];
|
|
46
|
-
/** Mass for collision response */
|
|
47
|
-
mass?: number;
|
|
48
|
-
/** Gravity force (default: 9.8) */
|
|
49
|
-
gravity?: number;
|
|
50
|
-
/** Ground plane Y position (default: 0) */
|
|
51
|
-
groundY?: number;
|
|
52
|
-
/** Model scale */
|
|
53
|
-
scale?: number | [number, number, number];
|
|
54
|
-
/** Called when physics state updates */
|
|
55
|
-
onPhysicsUpdate?: (state: Physics3DState) => void;
|
|
56
|
-
/** Called when object hits ground */
|
|
57
|
-
onGroundHit?: () => void;
|
|
58
|
-
/** Called when collision occurs */
|
|
59
|
-
onCollision?: (otherEntityId: string) => void;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* 3D Physics-enabled object for GameCanvas3D
|
|
63
|
-
*/
|
|
64
|
-
export declare function PhysicsObject3D({ entityId, modelUrl, initialPosition, scale, }: PhysicsObject3DProps): React.JSX.Element;
|
|
65
|
-
/**
|
|
66
|
-
* Hook for controlling a PhysicsObject3D from parent component
|
|
67
|
-
*/
|
|
68
|
-
export declare function usePhysics3DController(entityId: string): {
|
|
69
|
-
applyForce: (fx: number, fy: number, fz: number) => void;
|
|
70
|
-
setVelocity: (vx: number, vy: number, vz: number) => void;
|
|
71
|
-
setPosition: (x: number, y: number, z: number) => void;
|
|
72
|
-
jump: (force?: number) => void;
|
|
73
|
-
};
|
|
74
|
-
export default PhysicsObject3D;
|