@almadar/ui 5.74.0 → 5.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avl/index.cjs +42285 -42757
- package/dist/avl/index.css +0 -504
- package/dist/avl/index.js +42495 -42966
- package/dist/components/core/atoms/index.d.ts +1 -1
- package/dist/components/core/molecules/RepeatableFormSection.d.ts +6 -5
- package/dist/components/core/molecules/index.d.ts +1 -1
- package/dist/components/core/organisms/index.d.ts +1 -1
- package/dist/components/core/templates/index.d.ts +12 -12
- package/dist/components/game/{organisms/puzzles/sequencer → 2d}/ActionPalette.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/sequencer → 2d}/ActionTile.d.ts +2 -2
- package/dist/components/game/{organisms → 2d}/BattleBoard.d.ts +2 -2
- package/dist/components/game/{templates → 2d}/BattleTemplate.d.ts +3 -3
- package/dist/components/game/{organisms → 2d}/BoardgameBoard.d.ts +4 -4
- package/dist/components/game/{organisms/puzzles/builder → 2d}/BuilderBoard.d.ts +1 -1
- package/dist/components/game/2d/Canvas2D.d.ts +161 -0
- package/dist/components/game/{organisms → 2d}/CanvasEffect.d.ts +3 -3
- package/dist/components/game/{templates → 2d}/CardBattlerTemplate.d.ts +1 -1
- package/dist/components/game/{organisms → 2d}/CastleBoard.d.ts +1 -1
- package/dist/components/game/{templates → 2d}/CastleTemplate.d.ts +3 -3
- package/dist/components/game/{templates → 2d}/CityBuilderTemplate.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/classifier → 2d}/ClassifierBoard.d.ts +1 -1
- package/dist/components/game/2d/ControlGrid.d.ts +41 -0
- package/dist/components/game/{organisms/puzzles/debugger → 2d}/DebuggerBoard.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/event-handler → 2d}/EventHandlerBoard.d.ts +1 -1
- package/dist/components/game/{organisms → 2d}/FishingBoard.d.ts +1 -1
- package/dist/components/game/{organisms → 2d}/GameAudioProvider.d.ts +1 -1
- package/dist/components/game/2d/GameCard.d.ts +26 -0
- package/dist/components/game/2d/HealthBar.d.ts +26 -0
- package/dist/components/game/{organisms → 2d}/HexStrategyBoard.d.ts +4 -4
- package/dist/components/game/{organisms → 2d}/HolidayRunnerBoard.d.ts +4 -4
- package/dist/components/game/{molecules → 2d}/IsometricCanvas.d.ts +3 -3
- package/dist/components/game/{organisms → 2d}/MatchPuzzleBoard.d.ts +4 -4
- package/dist/components/game/{organisms → 2d}/MinigolfBoard.d.ts +4 -4
- package/dist/components/game/{organisms/puzzles/negotiator → 2d}/NegotiatorBoard.d.ts +1 -1
- package/dist/components/game/{organisms → 2d}/PinballBoard.d.ts +1 -1
- package/dist/components/game/{organisms → 2d}/PirateBoard.d.ts +4 -4
- package/dist/components/game/{organisms → 2d}/PlatformerBoard.d.ts +9 -14
- package/dist/components/game/{molecules → 2d}/PlatformerCanvas.d.ts +1 -1
- package/dist/components/game/{templates → 2d}/PlatformerTemplate.d.ts +1 -1
- package/dist/components/game/{organisms → 2d}/RacingBoard.d.ts +4 -4
- package/dist/components/game/{organisms → 2d}/RoguelikeBoard.d.ts +1 -1
- package/dist/components/game/{templates → 2d}/RoguelikeTemplate.d.ts +2 -2
- package/dist/components/game/{organisms/puzzles/sequencer → 2d}/SequenceBar.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/sequencer → 2d}/SequencerBoard.d.ts +1 -1
- package/dist/components/game/{organisms/physics-sim → 2d}/SimulationCanvas.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/simulator → 2d}/SimulatorBoard.d.ts +1 -1
- package/dist/components/game/{organisms → 2d}/SokobanBoard.d.ts +4 -4
- package/dist/components/game/{organisms → 2d}/SpaceShmupBoard.d.ts +4 -4
- package/dist/components/game/{organisms → 2d}/SpaceStationBoard.d.ts +4 -4
- package/dist/components/game/{organisms → 2d}/SportsBoard.d.ts +4 -4
- package/dist/components/game/{atoms → 2d}/Sprite.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/state-architect → 2d}/StateArchitectBoard.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/state-architect → 2d}/StateNode.d.ts +1 -1
- package/dist/components/game/{organisms → 2d}/TanksBoard.d.ts +4 -4
- package/dist/components/game/{templates → 2d}/TopDownShooterTemplate.d.ts +1 -1
- package/dist/components/game/{templates → 2d}/TowerDefenseTemplate.d.ts +1 -1
- package/dist/components/game/{organisms → 2d}/TraitStateViewer.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/state-architect → 2d}/TransitionArrow.d.ts +1 -1
- package/dist/components/game/{organisms → 2d}/UncontrolledBattleBoard.d.ts +1 -1
- package/dist/components/game/{templates → 2d}/VisualNovelTemplate.d.ts +1 -1
- package/dist/components/game/{organisms → 2d}/WorldMapBoard.d.ts +2 -2
- package/dist/components/game/{templates → 2d}/WorldMapTemplate.d.ts +3 -3
- package/dist/components/game/{templates → 2d}/game3dAssetManifest.d.ts +1 -1
- package/dist/components/game/2d/index.d.ts +122 -0
- package/dist/components/game/{organisms/hooks → 2d}/useBattleState.d.ts +1 -1
- package/dist/components/game/{organisms/hooks → 2d}/useCamera.d.ts +1 -1
- package/dist/components/game/{organisms → 2d}/useCanvasEffects.d.ts +1 -1
- package/dist/components/game/{molecules → 2d}/useUnitSpriteAtlas.d.ts +2 -2
- package/dist/components/game/3d/Canvas3D.d.ts +45 -0
- package/dist/components/game/{molecules/three/renderers → 3d}/FeatureRenderer.d.ts +1 -1
- package/dist/components/game/{molecules/three/renderers → 3d}/FeatureRenderer3D.d.ts +1 -1
- package/dist/components/game/{organisms → 3d}/GameBoard3D.d.ts +2 -2
- package/dist/components/game/{molecules → 3d}/GameCanvas3D.d.ts +3 -3
- package/dist/components/game/{templates → 3d}/GameCanvas3DBattleTemplate.d.ts +2 -2
- package/dist/components/game/{templates → 3d}/GameCanvas3DCastleTemplate.d.ts +2 -2
- package/dist/components/game/{templates → 3d}/GameCanvas3DWorldMapTemplate.d.ts +2 -2
- package/dist/components/game/{molecules/three/components → 3d}/PhysicsObject3D.d.ts +1 -1
- package/dist/components/game/{molecules/three/renderers → 3d}/TileRenderer.d.ts +1 -1
- package/dist/components/game/{molecules/three/renderers → 3d}/UnitRenderer.d.ts +3 -3
- package/dist/components/game/{molecules/three → 3d}/index.cjs +218 -301
- package/dist/components/game/{molecules/three → 3d}/index.css +3 -3
- package/dist/components/game/3d/index.d.ts +41 -0
- package/dist/components/game/{molecules/three → 3d}/index.js +29 -113
- package/dist/components/game/{molecules/three → 3d}/patterns.d.ts +5 -5
- package/dist/components/game/{molecules/three/hooks → 3d}/useAssetLoader.d.ts +1 -1
- package/dist/components/game/{molecules/three/hooks → 3d}/useGameCanvas3DEvents.d.ts +1 -1
- package/dist/components/game/{molecules/three/hooks → 3d}/useThree.d.ts +1 -1
- package/dist/components/game/{organisms/utils → shared}/canvasEffects.d.ts +1 -1
- package/dist/components/game/{organisms/utils → shared}/combatPresets.d.ts +1 -1
- package/dist/components/game/{organisms/types → shared}/game.d.ts +2 -2
- package/dist/components/game/shared/index.d.ts +23 -0
- package/dist/components/game/{organisms/types/isometric.d.ts → shared/isometricTypes.d.ts} +3 -7
- package/dist/components/game/{organisms/utils → shared}/spriteAnimation.d.ts +1 -1
- package/dist/components/game/{organisms/utils → shared}/spriteSheetConstants.d.ts +1 -1
- package/dist/components/index.cjs +24732 -25476
- package/dist/components/index.css +0 -504
- package/dist/components/index.js +24287 -25052
- package/dist/context/index.cjs +5 -7
- package/dist/context/index.js +5 -7
- package/dist/docs/index.cjs +108 -53
- package/dist/docs/index.css +0 -504
- package/dist/docs/index.js +108 -53
- package/dist/hooks/index.cjs +7 -9
- package/dist/hooks/index.js +7 -9
- package/dist/providers/index.cjs +43812 -44284
- package/dist/providers/index.css +0 -504
- package/dist/providers/index.js +43764 -44235
- package/dist/runtime/index.cjs +43783 -44255
- package/dist/runtime/index.css +0 -504
- package/dist/runtime/index.js +43642 -44113
- package/package.json +11 -11
- package/dist/components/game/atoms/HealthBar.d.ts +0 -18
- package/dist/components/game/atoms/XPBar.d.ts +0 -20
- package/dist/components/game/atoms/index.d.ts +0 -25
- package/dist/components/game/molecules/ActionButtons.d.ts +0 -38
- package/dist/components/game/molecules/DPad.d.ts +0 -26
- package/dist/components/game/molecules/index.d.ts +0 -32
- package/dist/components/game/molecules/three/components/index.d.ts +0 -10
- package/dist/components/game/molecules/three/index.d.ts +0 -35
- package/dist/components/game/molecules/three/renderers/index.d.ts +0 -11
- package/dist/components/game/organisms/editor/index.d.ts +0 -9
- package/dist/components/game/organisms/hooks/usePhysics2D.d.ts +0 -45
- package/dist/components/game/organisms/hooks/useSpriteAnimations.d.ts +0 -43
- package/dist/components/game/organisms/index.d.ts +0 -66
- package/dist/components/game/organisms/managers/PhysicsManager.d.ts +0 -103
- package/dist/components/game/organisms/physics-sim/index.d.ts +0 -7
- package/dist/components/game/organisms/puzzles/builder/index.d.ts +0 -2
- package/dist/components/game/organisms/puzzles/classifier/index.d.ts +0 -2
- package/dist/components/game/organisms/puzzles/debugger/index.d.ts +0 -2
- package/dist/components/game/organisms/puzzles/event-handler/index.d.ts +0 -8
- package/dist/components/game/organisms/puzzles/negotiator/index.d.ts +0 -2
- package/dist/components/game/organisms/puzzles/sequencer/index.d.ts +0 -8
- package/dist/components/game/organisms/puzzles/simulator/index.d.ts +0 -2
- package/dist/components/game/organisms/puzzles/state-architect/index.d.ts +0 -10
- package/dist/components/game/templates/index.d.ts +0 -4
- /package/dist/components/game/{atoms → 2d}/ActionButton.d.ts +0 -0
- /package/dist/components/game/{organisms → 2d}/CardBattlerBoard.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/CardHand.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d}/ChoiceButton.d.ts +0 -0
- /package/dist/components/game/{organisms → 2d}/CityBuilderBoard.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/CombatLog.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d}/ComboCounter.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d}/ControlButton.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/CraftingRecipe.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d}/DamageNumber.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/DialogueBox.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d}/DialogueBubble.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/EnemyPlate.d.ts +0 -0
- /package/dist/components/game/{organisms/puzzles/event-handler → 2d}/EventLog.d.ts +0 -0
- /package/dist/components/game/{organisms → 2d}/GameAudioToggle.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/GameCanvas2D.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/GameHud.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/GameMenu.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/GameOverScreen.d.ts +0 -0
- /package/dist/components/game/{templates → 2d}/GameShell.d.ts +0 -0
- /package/dist/components/game/{templates → 2d}/GameTemplate.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/HealthPanel.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/InventoryGrid.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/InventoryPanel.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d}/ItemSlot.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d}/MiniMap.d.ts +0 -0
- /package/dist/components/game/{organisms/puzzles/event-handler → 2d}/ObjectRulePanel.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/PowerupSlots.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/QuestTracker.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/ResourceBar.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d}/ResourceCounter.d.ts +0 -0
- /package/dist/components/game/{organisms/puzzles/event-handler → 2d}/RuleEditor.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/ScoreBoard.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d}/ScoreDisplay.d.ts +0 -0
- /package/dist/components/game/{organisms/physics-sim → 2d}/SimulationControls.d.ts +0 -0
- /package/dist/components/game/{organisms/physics-sim → 2d}/SimulationGraph.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/StatBadge.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d}/StateIndicator.d.ts +0 -0
- /package/dist/components/game/{organisms/puzzles/state-architect → 2d}/StateJsonView.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d}/StatusEffect.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d}/TimerDisplay.d.ts +0 -0
- /package/dist/components/game/{organisms → 2d}/TopDownShooterBoard.d.ts +0 -0
- /package/dist/components/game/{organisms → 2d}/TowerDefenseBoard.d.ts +0 -0
- /package/dist/components/game/{organisms → 2d}/TraitSlot.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d}/TurnIndicator.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/TurnPanel.d.ts +0 -0
- /package/dist/components/game/{molecules → 2d}/UnitCommandBar.d.ts +0 -0
- /package/dist/components/game/{organisms/puzzles/state-architect → 2d}/VariablePanel.d.ts +0 -0
- /package/dist/components/game/{organisms → 2d}/VisualNovelBoard.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d}/WaypointMarker.d.ts +0 -0
- /package/dist/components/game/{organisms/editor → 2d}/editorUtils.d.ts +0 -0
- /package/dist/components/game/{organisms/physics-sim/presets → 2d}/mechanics.d.ts +0 -0
- /package/dist/components/game/{organisms/physics-sim/presets/index.d.ts → 2d/physicsPresets.d.ts} +0 -0
- /package/dist/components/game/{organisms/puzzles/event-handler → 2d}/puzzleObject.d.ts +0 -0
- /package/dist/components/game/{organisms/physics-sim/presets → 2d}/types.d.ts +0 -0
- /package/dist/components/game/{organisms/hooks → 2d}/useGameAudio.d.ts +0 -0
- /package/dist/components/game/{molecules/three/loaders → 3d}/AssetLoader.d.ts +0 -0
- /package/dist/components/game/{molecules/three → 3d}/Camera3D.d.ts +0 -0
- /package/dist/components/game/{molecules/three/components → 3d}/Canvas3DErrorBoundary.d.ts +0 -0
- /package/dist/components/game/{molecules/three/components → 3d}/Canvas3DLoadingState.d.ts +0 -0
- /package/dist/components/game/{molecules/three → 3d}/Lighting3D.d.ts +0 -0
- /package/dist/components/game/{molecules/three/components → 3d}/ModelLoader.d.ts +0 -0
- /package/dist/components/game/{molecules/three → 3d}/Scene3D.d.ts +0 -0
- /package/dist/components/game/{molecules/three/utils → 3d}/culling.d.ts +0 -0
- /package/dist/components/game/{molecules/three/utils → 3d}/grid3D.d.ts +0 -0
- /package/dist/components/game/{molecules/three/hooks → 3d}/useRaycaster.d.ts +0 -0
- /package/dist/components/game/{molecules/three/hooks → 3d}/useSceneGraph.d.ts +0 -0
- /package/dist/components/game/{organisms → shared}/boardEntity.d.ts +0 -0
- /package/dist/components/game/{organisms/utils → shared}/combatEffects.d.ts +0 -0
- /package/dist/components/game/{organisms/types → shared}/effects.d.ts +0 -0
- /package/dist/components/game/{organisms/utils → shared}/isometric.d.ts +0 -0
- /package/dist/components/game/{organisms/utils → shared}/makeAsset.d.ts +0 -0
- /package/dist/components/game/{organisms/types/spriteAnimation.d.ts → shared/spriteAnimationTypes.d.ts} +0 -0
- /package/dist/components/game/{organisms/hooks → shared}/useImageCache.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.75.0",
|
|
4
4
|
"description": "React UI components, hooks, and providers for Almadar",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -57,22 +57,22 @@
|
|
|
57
57
|
"require": "./dist/lib/index.cjs"
|
|
58
58
|
},
|
|
59
59
|
"./components/organisms/game/three": {
|
|
60
|
-
"types": "./dist/components/game/
|
|
61
|
-
"import": "./dist/components/game/
|
|
62
|
-
"require": "./dist/components/game/
|
|
60
|
+
"types": "./dist/components/game/3d/index.d.ts",
|
|
61
|
+
"import": "./dist/components/game/3d/index.js",
|
|
62
|
+
"require": "./dist/components/game/3d/index.cjs"
|
|
63
63
|
},
|
|
64
64
|
"./components/molecules/game/three": {
|
|
65
|
-
"types": "./dist/components/game/
|
|
66
|
-
"import": "./dist/components/game/
|
|
67
|
-
"require": "./dist/components/game/
|
|
65
|
+
"types": "./dist/components/game/3d/index.d.ts",
|
|
66
|
+
"import": "./dist/components/game/3d/index.js",
|
|
67
|
+
"require": "./dist/components/game/3d/index.cjs"
|
|
68
68
|
},
|
|
69
69
|
"./components/organisms/game/TraitStateViewer": {
|
|
70
|
-
"import": "./components/game/
|
|
71
|
-
"types": "./components/game/
|
|
70
|
+
"import": "./components/game/2d/TraitStateViewer.tsx",
|
|
71
|
+
"types": "./components/game/2d/TraitStateViewer.tsx"
|
|
72
72
|
},
|
|
73
73
|
"./components/organisms/game/TraitSlot": {
|
|
74
|
-
"import": "./components/game/
|
|
75
|
-
"types": "./components/game/
|
|
74
|
+
"import": "./components/game/2d/TraitSlot.tsx",
|
|
75
|
+
"types": "./components/game/2d/TraitSlot.tsx"
|
|
76
76
|
},
|
|
77
77
|
"./templates": {
|
|
78
78
|
"import": "./templates/index.ts",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface HealthBarProps {
|
|
2
|
-
/** Current health value */
|
|
3
|
-
current: number;
|
|
4
|
-
/** Maximum health value */
|
|
5
|
-
max: number;
|
|
6
|
-
/** Display format */
|
|
7
|
-
format?: 'hearts' | 'bar' | 'numeric';
|
|
8
|
-
/** Size variant */
|
|
9
|
-
size?: 'sm' | 'md' | 'lg';
|
|
10
|
-
/** Additional CSS classes */
|
|
11
|
-
className?: string;
|
|
12
|
-
/** Animation on change */
|
|
13
|
-
animated?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare function HealthBar({ current, max, format, size, className, animated, }: HealthBarProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare namespace HealthBar {
|
|
17
|
-
var displayName: string;
|
|
18
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface XPBarProps {
|
|
2
|
-
/** Current XP value */
|
|
3
|
-
current: number;
|
|
4
|
-
/** XP needed for next level */
|
|
5
|
-
max: number;
|
|
6
|
-
/** Current level */
|
|
7
|
-
level?: number;
|
|
8
|
-
/** Whether to show the XP label */
|
|
9
|
-
showLabel?: boolean;
|
|
10
|
-
/** Size variant */
|
|
11
|
-
size?: 'sm' | 'md' | 'lg';
|
|
12
|
-
/** Animate the fill bar with a CSS transition */
|
|
13
|
-
animated?: boolean;
|
|
14
|
-
/** Additional CSS classes */
|
|
15
|
-
className?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare function XPBar({ current, max, level, showLabel, size, animated, className, }: XPBarProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export declare namespace XPBar {
|
|
19
|
-
var displayName: string;
|
|
20
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Game Atom Components
|
|
3
|
-
*
|
|
4
|
-
* Basic building blocks for game UI.
|
|
5
|
-
*
|
|
6
|
-
* @packageDocumentation
|
|
7
|
-
*/
|
|
8
|
-
export { HealthBar, type HealthBarProps } from './HealthBar';
|
|
9
|
-
export { ScoreDisplay, type ScoreDisplayProps } from './ScoreDisplay';
|
|
10
|
-
export { ControlButton, type ControlButtonProps } from './ControlButton';
|
|
11
|
-
export { Sprite, drawSprite, type SpriteProps } from './Sprite';
|
|
12
|
-
export { StateIndicator, type StateIndicatorProps, type StateStyle } from './StateIndicator';
|
|
13
|
-
export { TimerDisplay, type TimerDisplayProps } from './TimerDisplay';
|
|
14
|
-
export { ResourceCounter, type ResourceCounterProps } from './ResourceCounter';
|
|
15
|
-
export { ItemSlot, type ItemSlotProps } from './ItemSlot';
|
|
16
|
-
export { TurnIndicator, type TurnIndicatorProps } from './TurnIndicator';
|
|
17
|
-
export { ComboCounter, type ComboCounterProps } from './ComboCounter';
|
|
18
|
-
export { XPBar, type XPBarProps } from './XPBar';
|
|
19
|
-
export { WaypointMarker, type WaypointMarkerProps } from './WaypointMarker';
|
|
20
|
-
export { StatusEffect, type StatusEffectProps } from './StatusEffect';
|
|
21
|
-
export { DamageNumber, type DamageNumberProps } from './DamageNumber';
|
|
22
|
-
export { DialogueBubble, type DialogueBubbleProps } from './DialogueBubble';
|
|
23
|
-
export { ChoiceButton, type ChoiceButtonProps } from './ChoiceButton';
|
|
24
|
-
export { ActionButton, type ActionButtonProps } from './ActionButton';
|
|
25
|
-
export { MiniMap, type MiniMapProps } from './MiniMap';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { EventEmit } from '@almadar/core';
|
|
2
|
-
import type { IconInput } from '../../core/atoms';
|
|
3
|
-
export interface ActionButtonConfig {
|
|
4
|
-
/** Unique identifier */
|
|
5
|
-
id: string;
|
|
6
|
-
/** Display label */
|
|
7
|
-
label?: string;
|
|
8
|
-
/** Icon component or emoji */
|
|
9
|
-
icon?: IconInput;
|
|
10
|
-
/** Button variant */
|
|
11
|
-
variant?: 'primary' | 'secondary' | 'ghost' | string;
|
|
12
|
-
}
|
|
13
|
-
/** Event Contract:
|
|
14
|
-
* Emits: UI:ACTION
|
|
15
|
-
*/
|
|
16
|
-
export interface ActionButtonsProps {
|
|
17
|
-
/** Button configurations */
|
|
18
|
-
buttons: ActionButtonConfig[];
|
|
19
|
-
/** Called when a button is pressed/released */
|
|
20
|
-
onAction?: (id: string, pressed: boolean) => void;
|
|
21
|
-
/** Declarative event name emitted on action via useEventBus */
|
|
22
|
-
actionEvent?: EventEmit<{
|
|
23
|
-
id: string;
|
|
24
|
-
pressed: boolean;
|
|
25
|
-
}>;
|
|
26
|
-
/** Layout variant */
|
|
27
|
-
layout?: 'horizontal' | 'vertical' | 'diamond';
|
|
28
|
-
/** Size variant */
|
|
29
|
-
size?: 'sm' | 'md' | 'lg';
|
|
30
|
-
/** Additional CSS classes */
|
|
31
|
-
className?: string;
|
|
32
|
-
/** Disabled state */
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
}
|
|
35
|
-
export declare function ActionButtons({ buttons, onAction, actionEvent, layout, size, className, disabled, }: ActionButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
export declare namespace ActionButtons {
|
|
37
|
-
var displayName: string;
|
|
38
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { EventEmit } from '@almadar/core';
|
|
2
|
-
export type DPadDirection = 'up' | 'down' | 'left' | 'right';
|
|
3
|
-
/** Event Contract:
|
|
4
|
-
* Emits: UI:DIRECTION
|
|
5
|
-
*/
|
|
6
|
-
export interface DPadProps {
|
|
7
|
-
/** Called when a direction is pressed/released */
|
|
8
|
-
onDirection?: (direction: DPadDirection, pressed: boolean) => void;
|
|
9
|
-
/** Declarative event name emitted on direction press/release via useEventBus */
|
|
10
|
-
directionEvent?: EventEmit<{
|
|
11
|
-
direction: DPadDirection;
|
|
12
|
-
pressed: boolean;
|
|
13
|
-
}>;
|
|
14
|
-
/** Size variant */
|
|
15
|
-
size?: 'sm' | 'md' | 'lg';
|
|
16
|
-
/** Whether to include diagonal buttons */
|
|
17
|
-
includeDiagonals?: boolean;
|
|
18
|
-
/** Additional CSS classes */
|
|
19
|
-
className?: string;
|
|
20
|
-
/** Disabled state */
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export declare function DPad({ onDirection, directionEvent, size, includeDiagonals, className, disabled, }: DPadProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export declare namespace DPad {
|
|
25
|
-
var displayName: string;
|
|
26
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Game Molecule Components
|
|
3
|
-
*
|
|
4
|
-
* Composed components for game UI patterns.
|
|
5
|
-
*
|
|
6
|
-
* @packageDocumentation
|
|
7
|
-
*/
|
|
8
|
-
export { DPad, type DPadProps, type DPadDirection } from './DPad';
|
|
9
|
-
export { ActionButtons, type ActionButtonsProps, type ActionButtonConfig } from './ActionButtons';
|
|
10
|
-
export { StatBadge, type StatBadgeProps } from './StatBadge';
|
|
11
|
-
export { InventoryGrid, type InventoryGridProps, type InventoryGridItem } from './InventoryGrid';
|
|
12
|
-
export { CardHand, type CardHandProps, type CardHandCard } from './CardHand';
|
|
13
|
-
export { QuestTracker, type QuestTrackerProps, type Quest } from './QuestTracker';
|
|
14
|
-
export { CraftingRecipe, type CraftingRecipeProps, type CraftingIngredient } from './CraftingRecipe';
|
|
15
|
-
export { PowerupSlots, type PowerupSlotsProps, type ActivePowerup } from './PowerupSlots';
|
|
16
|
-
export { GameCanvas2D, type GameCanvas2DProps } from './GameCanvas2D';
|
|
17
|
-
export { HealthPanel, type HealthPanelProps } from './HealthPanel';
|
|
18
|
-
export { ScoreBoard, type ScoreBoardProps } from './ScoreBoard';
|
|
19
|
-
export { ResourceBar, type ResourceBarProps, type ResourceBarResource } from './ResourceBar';
|
|
20
|
-
export { TurnPanel, type TurnPanelProps, type TurnPanelAction } from './TurnPanel';
|
|
21
|
-
export { EnemyPlate, type EnemyPlateProps, type EnemyPlateEffect } from './EnemyPlate';
|
|
22
|
-
export { UnitCommandBar, type UnitCommandBarProps, type UnitCommand } from './UnitCommandBar';
|
|
23
|
-
export { GameHud, type GameHudProps, type GameHudStat, type GameHudElement } from './GameHud';
|
|
24
|
-
export { DialogueBox, type DialogueBoxProps, type DialogueNode, type DialogueChoice } from './DialogueBox';
|
|
25
|
-
export { CombatLog, type CombatLogProps, type CombatEvent, type CombatLogEventType } from './CombatLog';
|
|
26
|
-
export { InventoryPanel, type InventoryPanelProps, type InventoryItem } from './InventoryPanel';
|
|
27
|
-
export { GameMenu, type GameMenuProps, type MenuOption } from './GameMenu';
|
|
28
|
-
export { GameOverScreen, type GameOverScreenProps, type GameOverStat, type GameOverAction } from './GameOverScreen';
|
|
29
|
-
export { PlatformerCanvas, type PlatformerCanvasProps, type PlatformerPlatform, type PlatformerPlayer } from './PlatformerCanvas';
|
|
30
|
-
export { IsometricCanvas, type IsometricCanvasProps } from './IsometricCanvas';
|
|
31
|
-
export type { TileLayout } from '../organisms/utils/isometric';
|
|
32
|
-
export type { IsometricTile, IsometricUnit, IsometricFeature } from '../organisms/types/isometric';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 3D Components
|
|
3
|
-
*
|
|
4
|
-
* UI components for 3D canvas states and error handling.
|
|
5
|
-
*
|
|
6
|
-
* @packageDocumentation
|
|
7
|
-
*/
|
|
8
|
-
export { Canvas3DLoadingState, type Canvas3DLoadingStateProps, } from './Canvas3DLoadingState';
|
|
9
|
-
export { Canvas3DErrorBoundary, type Canvas3DErrorBoundaryProps, type Canvas3DErrorBoundaryState, } from './Canvas3DErrorBoundary';
|
|
10
|
-
export { ModelLoader, type ModelLoaderProps, } from './ModelLoader';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Three.js Subdirectory
|
|
3
|
-
*
|
|
4
|
-
* Core Three.js components, hooks, loaders, and utilities for GameCanvas3D.
|
|
5
|
-
*
|
|
6
|
-
* @packageDocumentation
|
|
7
|
-
*/
|
|
8
|
-
export { Scene3D, type Scene3DProps } from './Scene3D';
|
|
9
|
-
export { Camera3D, type Camera3DProps, type Camera3DHandle, type CameraMode } from './Camera3D';
|
|
10
|
-
export { Lighting3D, type Lighting3DProps } from './Lighting3D';
|
|
11
|
-
export { Canvas3DLoadingState, type Canvas3DLoadingStateProps, } from './components/Canvas3DLoadingState';
|
|
12
|
-
export { Canvas3DErrorBoundary, type Canvas3DErrorBoundaryProps, type Canvas3DErrorBoundaryState, } from './components/Canvas3DErrorBoundary';
|
|
13
|
-
export { ModelLoader, type ModelLoaderProps, } from './components/ModelLoader';
|
|
14
|
-
export { PhysicsObject3D, usePhysics3DController, type PhysicsObject3DProps, type Physics3DState, } from './components/PhysicsObject3D';
|
|
15
|
-
export { useThree, type UseThreeOptions, type UseThreeReturn, } from './hooks/useThree';
|
|
16
|
-
export { useAssetLoader, type UseAssetLoaderOptions, type UseAssetLoaderReturn, type AssetLoadingState, } from './hooks/useAssetLoader';
|
|
17
|
-
export { useSceneGraph, type UseSceneGraphReturn, type SceneGraphNode, type NodeType, } from './hooks/useSceneGraph';
|
|
18
|
-
export { useRaycaster, type UseRaycasterOptions, type UseRaycasterReturn, type RaycastHit, type GridHit, } from './hooks/useRaycaster';
|
|
19
|
-
export { useGameCanvas3DEvents, type UseGameCanvas3DEventsOptions, type UseGameCanvas3DEventsReturn, type GameCanvas3DEventConfig, } from './hooks/useGameCanvas3DEvents';
|
|
20
|
-
export { AssetLoader, assetLoader, type LoadedModel, } from './loaders/AssetLoader';
|
|
21
|
-
export { TileRenderer, UnitRenderer, FeatureRenderer, FeatureRenderer3D, preloadFeatures, type TileRendererProps, type UnitRendererProps, type FeatureRendererProps, type FeatureRenderer3DProps, type UnitAnimationState, } from './renderers';
|
|
22
|
-
export { GameCanvas3D, type GameCanvas3DProps } from '../GameCanvas3D';
|
|
23
|
-
export { GameCanvas3DBattleTemplate, type GameCanvas3DBattleTemplateProps } from '../../templates/GameCanvas3DBattleTemplate';
|
|
24
|
-
export { GameCanvas3DCastleTemplate, type GameCanvas3DCastleTemplateProps } from '../../templates/GameCanvas3DCastleTemplate';
|
|
25
|
-
export { GameCanvas3DWorldMapTemplate, type GameCanvas3DWorldMapTemplateProps } from '../../templates/GameCanvas3DWorldMapTemplate';
|
|
26
|
-
export { gridToWorld, worldToGrid, raycastToPlane, raycastToObjects, gridDistance, gridManhattanDistance, getNeighbors, isInBounds, getCellsInRadius, createGridHighlight, normalizeMouseCoordinates, type Grid3DConfig, type GridCoordinate, } from './utils/grid3D';
|
|
27
|
-
export { Avl3DViewer, type Avl3DViewerProps } from '../../../avl/organisms/Avl3DViewer';
|
|
28
|
-
export { Avl3DApplicationScene, type Avl3DApplicationSceneProps } from '../../../avl/organisms/Avl3DApplicationScene';
|
|
29
|
-
export { Avl3DOrbitalScene, type Avl3DOrbitalSceneProps } from '../../../avl/organisms/Avl3DOrbitalScene';
|
|
30
|
-
export { Avl3DTraitScene, type Avl3DTraitSceneProps } from '../../../avl/organisms/Avl3DTraitScene';
|
|
31
|
-
export { Avl3DTransitionScene, type Avl3DTransitionSceneProps } from '../../../avl/organisms/Avl3DTransitionScene';
|
|
32
|
-
export { Avl3DEffects, type Avl3DEffectsProps } from '../../../avl/organisms/Avl3DEffects';
|
|
33
|
-
export { Avl3DContext, useAvl3DConfig, type Avl3DModelOverrides, type Avl3DConfig } from '../../../avl/organisms/avl-3d-context';
|
|
34
|
-
export { AVL_3D_COLORS, CAMERA_POSITIONS, goldenSpiralPositions, fibonacciSpherePositions, orbitRingPositions, arcCurve3D, selfLoopCurve3D, treeLayout3D, type Position3D, } from '../../../avl/organisms/avl-3d-layout';
|
|
35
|
-
export { isInFrustum, filterByFrustum, getVisibleIndices, calculateLODLevel, updateInstanceLOD, cullInstancedMesh, SpatialHashGrid, type CullingOptions, type LODLevel, type LODConfig, } from './utils/culling';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 3D Renderers
|
|
3
|
-
*
|
|
4
|
-
* Specialized renderers for tiles, units, and features in the 3D scene.
|
|
5
|
-
*
|
|
6
|
-
* @packageDocumentation
|
|
7
|
-
*/
|
|
8
|
-
export { TileRenderer, type TileRendererProps, } from './TileRenderer';
|
|
9
|
-
export { UnitRenderer, type UnitRendererProps, type UnitAnimationState, } from './UnitRenderer';
|
|
10
|
-
export { FeatureRenderer, type FeatureRendererProps, } from './FeatureRenderer';
|
|
11
|
-
export { FeatureRenderer3D, preloadFeatures, type FeatureRenderer3DProps, } from './FeatureRenderer3D';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Map Editor Utilities
|
|
3
|
-
*
|
|
4
|
-
* Reusable editor components for Storybook-based isometric map editing.
|
|
5
|
-
* All composed from @almadar/ui atoms.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
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';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Physics2DState, PhysicsConfig, PhysicsBounds } from '../managers/PhysicsManager';
|
|
2
|
-
export interface UsePhysics2DOptions extends PhysicsConfig {
|
|
3
|
-
/** Enable physics debug visualization */
|
|
4
|
-
debug?: boolean;
|
|
5
|
-
/** Callback when collision occurs */
|
|
6
|
-
onCollision?: (entityIdA: string, entityIdB: string) => void;
|
|
7
|
-
/** Ground Y position (default: 500) */
|
|
8
|
-
groundY?: number;
|
|
9
|
-
}
|
|
10
|
-
export interface UsePhysics2DReturn {
|
|
11
|
-
/** Register a unit for physics simulation */
|
|
12
|
-
registerUnit: (unitId: string, options?: Partial<Physics2DState>) => void;
|
|
13
|
-
/** Unregister a unit from physics */
|
|
14
|
-
unregisterUnit: (unitId: string) => void;
|
|
15
|
-
/** Get current physics position for a unit */
|
|
16
|
-
getPosition: (unitId: string) => {
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
} | null;
|
|
20
|
-
/** Get full physics state for a unit */
|
|
21
|
-
getState: (unitId: string) => Physics2DState | undefined;
|
|
22
|
-
/** Apply force to a unit */
|
|
23
|
-
applyForce: (unitId: string, fx: number, fy: number) => void;
|
|
24
|
-
/** Set velocity directly */
|
|
25
|
-
setVelocity: (unitId: string, vx: number, vy: number) => void;
|
|
26
|
-
/** Set position directly (teleport) */
|
|
27
|
-
setPosition: (unitId: string, x: number, y: number) => void;
|
|
28
|
-
/** Run physics tick - call this in your RAF loop */
|
|
29
|
-
tick: (deltaTime?: number) => void;
|
|
30
|
-
/** Check collision between two units */
|
|
31
|
-
checkCollision: (unitIdA: string, unitIdB: string, boundsA: PhysicsBounds, boundsB: PhysicsBounds) => boolean;
|
|
32
|
-
/** Resolve collision between two units */
|
|
33
|
-
resolveCollision: (unitIdA: string, unitIdB: string) => void;
|
|
34
|
-
/** Freeze/unfreeze a unit */
|
|
35
|
-
setFrozen: (unitId: string, frozen: boolean) => void;
|
|
36
|
-
/** Get all physics-enabled units */
|
|
37
|
-
getAllUnits: () => Physics2DState[];
|
|
38
|
-
/** Reset all physics */
|
|
39
|
-
reset: () => void;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Hook for managing 2D physics simulation
|
|
43
|
-
*/
|
|
44
|
-
export declare function usePhysics2D(options?: UsePhysics2DOptions): UsePhysics2DReturn;
|
|
45
|
-
export default usePhysics2D;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { IsometricUnit } from '../types/isometric';
|
|
2
|
-
import type { AnimationName, FacingDirection, ResolvedFrame, SpriteFrameDims, SpriteSheetUrls } from '../types/spriteAnimation';
|
|
3
|
-
export interface UseSpriteAnimationsResult {
|
|
4
|
-
/**
|
|
5
|
-
* Sync unit list and advance all animation timers.
|
|
6
|
-
* Call once per animation frame. Auto-detects movement
|
|
7
|
-
* and infers direction from position deltas.
|
|
8
|
-
*/
|
|
9
|
-
syncUnits: (units: IsometricUnit[], deltaMs: number) => void;
|
|
10
|
-
/**
|
|
11
|
-
* Explicitly set a unit's animation (for combat: attack, hit, death).
|
|
12
|
-
* Optionally override direction.
|
|
13
|
-
*/
|
|
14
|
-
setUnitAnimation: (unitId: string, animation: AnimationName, direction?: FacingDirection) => void;
|
|
15
|
-
/**
|
|
16
|
-
* Resolve the current frame for a unit. Returns null if no sprite sheet
|
|
17
|
-
* is available for this unit (falls back to static sprite in canvas).
|
|
18
|
-
* Pass this to IsometricCanvas.resolveUnitFrame.
|
|
19
|
-
*/
|
|
20
|
-
resolveUnitFrame: (unitId: string) => ResolvedFrame | null;
|
|
21
|
-
}
|
|
22
|
-
export interface UseSpriteAnimationsOptions {
|
|
23
|
-
/** Playback speed multiplier. 1.0 = baseline, 2.0 = double speed. Default: 1. */
|
|
24
|
-
speed?: number;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Resolve sprite sheet URLs for a unit. Return null if no sheet available.
|
|
28
|
-
* This is the project-agnostic callback version — projects pass manifest-specific logic.
|
|
29
|
-
*/
|
|
30
|
-
export type SheetUrlResolver = (unit: IsometricUnit) => SpriteSheetUrls | null;
|
|
31
|
-
/**
|
|
32
|
-
* Resolve frame dimensions for a unit's sprite sheet.
|
|
33
|
-
* Projects pass manifest-specific logic.
|
|
34
|
-
*/
|
|
35
|
-
export type FrameDimsResolver = (unit: IsometricUnit) => SpriteFrameDims | null;
|
|
36
|
-
/**
|
|
37
|
-
* Hook for managing per-unit sprite sheet animations.
|
|
38
|
-
*
|
|
39
|
-
* @param getSheetUrls - Callback to resolve sprite sheet URLs for a unit
|
|
40
|
-
* @param getFrameDims - Callback to resolve frame dimensions for a unit
|
|
41
|
-
* @param options - Playback speed options
|
|
42
|
-
*/
|
|
43
|
-
export declare function useSpriteAnimations(getSheetUrls: SheetUrlResolver, getFrameDims: FrameDimsResolver, options?: UseSpriteAnimationsOptions): UseSpriteAnimationsResult;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Game Organism Components
|
|
3
|
-
*
|
|
4
|
-
* Complex UI patterns for game interfaces.
|
|
5
|
-
* Composable isometric canvas system with hooks, utils, and types.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
export { CanvasEffect, type CanvasEffectProps, type CombatActionType } from './CanvasEffect';
|
|
10
|
-
export type { IsometricTile, IsometricUnit, IsometricFeature, CameraState, } from './types/isometric';
|
|
11
|
-
export type { AnimationName, FacingDirection, SpriteDirection, ResolvedFrame, UnitAnimationState, SpriteFrameDims, SpriteSheetUrls, AnimationDef, } from './types/spriteAnimation';
|
|
12
|
-
export { GameAudioProvider, GameAudioContext, useGameAudioContext, type GameAudioProviderProps, type GameAudioContextValue, } from './GameAudioProvider';
|
|
13
|
-
export { GameAudioToggle, type GameAudioToggleProps, } from './GameAudioToggle';
|
|
14
|
-
export { useGameAudio, type AudioManifest, type SoundEntry, type GameAudioControls, type UseGameAudioOptions, } from './hooks/useGameAudio';
|
|
15
|
-
export { useImageCache } from './hooks/useImageCache';
|
|
16
|
-
export { useCamera } from './hooks/useCamera';
|
|
17
|
-
export { useSpriteAnimations, type UseSpriteAnimationsResult, type UseSpriteAnimationsOptions, type SheetUrlResolver, type FrameDimsResolver, } from './hooks/useSpriteAnimations';
|
|
18
|
-
export { usePhysics2D, type UsePhysics2DOptions, type UsePhysics2DReturn, } from './hooks/usePhysics2D';
|
|
19
|
-
export { PhysicsManager, type Physics2DState, type PhysicsBounds, type PhysicsConfig, } from './managers/PhysicsManager';
|
|
20
|
-
export { isoToScreen, screenToIso, TILE_WIDTH, TILE_HEIGHT, FLOOR_HEIGHT, DIAMOND_TOP_Y, FEATURE_COLORS, } from './utils/isometric';
|
|
21
|
-
export type { TileLayout } from './utils/isometric';
|
|
22
|
-
export { inferDirection, resolveSheetDirection, getCurrentFrame, resolveFrame, createUnitAnimationState, transitionAnimation, tickAnimationState, } from './utils/spriteAnimation';
|
|
23
|
-
export { SPRITE_SHEET_LAYOUT, SHEET_COLUMNS } from './utils/spriteSheetConstants';
|
|
24
|
-
export { BattleBoard, type BattleBoardProps, type BattlePhase, type BattleSlotContext, } from './BattleBoard';
|
|
25
|
-
export { UncontrolledBattleBoard, type UncontrolledBattleBoardProps, } from './UncontrolledBattleBoard';
|
|
26
|
-
export { useBattleState, type BattleStateEventConfig, type BattleStateCallbacks, type BattleStateResult, } from './hooks/useBattleState';
|
|
27
|
-
export { WorldMapBoard, type WorldMapBoardProps, type WorldMapSlotContext, } from './WorldMapBoard';
|
|
28
|
-
export { CastleBoard, type CastleBoardProps, type CastleSlotContext, } from './CastleBoard';
|
|
29
|
-
export { PlatformerBoard, type PlatformerBoardProps, } from './PlatformerBoard';
|
|
30
|
-
export { TowerDefenseBoard, type TowerDefenseBoardProps, } from './TowerDefenseBoard';
|
|
31
|
-
export { RoguelikeBoard, type RoguelikeBoardProps, } from './RoguelikeBoard';
|
|
32
|
-
export { TopDownShooterBoard, type TopDownShooterBoardProps, } from './TopDownShooterBoard';
|
|
33
|
-
export { CityBuilderBoard, type CityBuilderBoardProps, } from './CityBuilderBoard';
|
|
34
|
-
export { GameBoard3D, type GameBoard3DProps, } from './GameBoard3D';
|
|
35
|
-
export { VisualNovelBoard, type VisualNovelBoardProps, type VisualNovelNode, type VisualNovelChoice, } from './VisualNovelBoard';
|
|
36
|
-
export { CardBattlerBoard, type CardBattlerBoardProps, type CardBattlerCard, } from './CardBattlerBoard';
|
|
37
|
-
export { HexStrategyBoard, type HexStrategyBoardProps, } from './HexStrategyBoard';
|
|
38
|
-
export { TraitStateViewer, type TraitStateViewerProps, type TraitStateMachineDefinition, type TraitTransition, } from './TraitStateViewer';
|
|
39
|
-
export { TraitSlot, type TraitSlotProps, type SlotItemData, } from './TraitSlot';
|
|
40
|
-
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 './editor';
|
|
41
|
-
export * from './puzzles/sequencer';
|
|
42
|
-
export * from './puzzles/event-handler';
|
|
43
|
-
export * from './puzzles/state-architect';
|
|
44
|
-
export * from './puzzles/simulator';
|
|
45
|
-
export * from './puzzles/classifier';
|
|
46
|
-
export * from './puzzles/builder';
|
|
47
|
-
export * from './puzzles/debugger';
|
|
48
|
-
export * from './puzzles/negotiator';
|
|
49
|
-
export * from './physics-sim';
|
|
50
|
-
export { createInitialGameState, calculateValidMoves, calculateAttackTargets, } from './types/game';
|
|
51
|
-
export type { Position, GameUnit, UnitTrait, BoardTile, GamePhase, GameState, GameAction, } from './types/game';
|
|
52
|
-
export { combatAnimations, combatClasses, combatEffects, applyTemporaryEffect, calculateDamage, generateCombatMessage, } from './utils/combatEffects';
|
|
53
|
-
export type { CombatEffect, DamageResult, CombatEventType, CombatEventData, } from './utils/combatEffects';
|
|
54
|
-
export { RacingBoard, type RacingBoardProps } from './RacingBoard';
|
|
55
|
-
export { TanksBoard, type TanksBoardProps } from './TanksBoard';
|
|
56
|
-
export { SpaceShmupBoard, type SpaceShmupBoardProps } from './SpaceShmupBoard';
|
|
57
|
-
export { SportsBoard, type SportsBoardProps } from './SportsBoard';
|
|
58
|
-
export { SokobanBoard, type SokobanBoardProps } from './SokobanBoard';
|
|
59
|
-
export { BoardgameBoard, type BoardgameBoardProps } from './BoardgameBoard';
|
|
60
|
-
export { PirateBoard, type PirateBoardProps } from './PirateBoard';
|
|
61
|
-
export { PinballBoard, type PinballBoardProps } from './PinballBoard';
|
|
62
|
-
export { FishingBoard, type FishingBoardProps } from './FishingBoard';
|
|
63
|
-
export { MatchPuzzleBoard, type MatchPuzzleBoardProps } from './MatchPuzzleBoard';
|
|
64
|
-
export { HolidayRunnerBoard, type HolidayRunnerBoardProps } from './HolidayRunnerBoard';
|
|
65
|
-
export { MinigolfBoard, type MinigolfBoardProps } from './MinigolfBoard';
|
|
66
|
-
export { SpaceStationBoard, type SpaceStationBoardProps } from './SpaceStationBoard';
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PhysicsManager
|
|
3
|
-
*
|
|
4
|
-
* Manages 2D physics simulation for entities with Physics2D state.
|
|
5
|
-
* This implements the tick logic that would normally be compiled from .orb schemas.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
export interface Physics2DState {
|
|
10
|
-
id: string;
|
|
11
|
-
x: number;
|
|
12
|
-
y: number;
|
|
13
|
-
vx: number;
|
|
14
|
-
vy: number;
|
|
15
|
-
isGrounded: boolean;
|
|
16
|
-
gravity: number;
|
|
17
|
-
friction: number;
|
|
18
|
-
airResistance: number;
|
|
19
|
-
maxVelocityY: number;
|
|
20
|
-
mass?: number;
|
|
21
|
-
restitution?: number;
|
|
22
|
-
state: 'Active' | 'Frozen';
|
|
23
|
-
}
|
|
24
|
-
export interface PhysicsBounds {
|
|
25
|
-
x: number;
|
|
26
|
-
y: number;
|
|
27
|
-
width: number;
|
|
28
|
-
height: number;
|
|
29
|
-
}
|
|
30
|
-
export interface PhysicsConfig {
|
|
31
|
-
gravity?: number;
|
|
32
|
-
friction?: number;
|
|
33
|
-
airResistance?: number;
|
|
34
|
-
maxVelocityY?: number;
|
|
35
|
-
groundY?: number;
|
|
36
|
-
}
|
|
37
|
-
export declare class PhysicsManager {
|
|
38
|
-
private entities;
|
|
39
|
-
private config;
|
|
40
|
-
constructor(config?: PhysicsConfig);
|
|
41
|
-
/**
|
|
42
|
-
* Register an entity for physics simulation
|
|
43
|
-
*/
|
|
44
|
-
registerEntity(entityId: string, initialState?: Partial<Physics2DState>): Physics2DState;
|
|
45
|
-
/**
|
|
46
|
-
* Unregister an entity from physics simulation
|
|
47
|
-
*/
|
|
48
|
-
unregisterEntity(entityId: string): void;
|
|
49
|
-
/**
|
|
50
|
-
* Get physics state for an entity
|
|
51
|
-
*/
|
|
52
|
-
getState(entityId: string): Physics2DState | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* Get all registered entities
|
|
55
|
-
*/
|
|
56
|
-
getAllEntities(): Physics2DState[];
|
|
57
|
-
/**
|
|
58
|
-
* Apply a force to an entity (impulse)
|
|
59
|
-
*/
|
|
60
|
-
applyForce(entityId: string, fx: number, fy: number): void;
|
|
61
|
-
/**
|
|
62
|
-
* Set velocity directly
|
|
63
|
-
*/
|
|
64
|
-
setVelocity(entityId: string, vx: number, vy: number): void;
|
|
65
|
-
/**
|
|
66
|
-
* Set position directly
|
|
67
|
-
*/
|
|
68
|
-
setPosition(entityId: string, x: number, y: number): void;
|
|
69
|
-
/**
|
|
70
|
-
* Freeze/unfreeze an entity
|
|
71
|
-
*/
|
|
72
|
-
setFrozen(entityId: string, frozen: boolean): void;
|
|
73
|
-
/**
|
|
74
|
-
* Main tick function - call this every frame
|
|
75
|
-
* Implements the logic from std-physics2d ticks
|
|
76
|
-
*/
|
|
77
|
-
tick(deltaTime?: number): void;
|
|
78
|
-
/**
|
|
79
|
-
* ApplyGravity tick implementation
|
|
80
|
-
*/
|
|
81
|
-
private applyGravity;
|
|
82
|
-
/**
|
|
83
|
-
* ApplyVelocity tick implementation
|
|
84
|
-
*/
|
|
85
|
-
private applyVelocity;
|
|
86
|
-
/**
|
|
87
|
-
* Check and handle ground collision
|
|
88
|
-
*/
|
|
89
|
-
private checkGroundCollision;
|
|
90
|
-
/**
|
|
91
|
-
* Check AABB collision between two entities
|
|
92
|
-
*/
|
|
93
|
-
checkCollision(entityIdA: string, entityIdB: string, boundsA: PhysicsBounds, boundsB: PhysicsBounds): boolean;
|
|
94
|
-
/**
|
|
95
|
-
* Resolve collision with bounce
|
|
96
|
-
*/
|
|
97
|
-
resolveCollision(entityIdA: string, entityIdB: string): void;
|
|
98
|
-
/**
|
|
99
|
-
* Reset all physics state
|
|
100
|
-
*/
|
|
101
|
-
reset(): void;
|
|
102
|
-
}
|
|
103
|
-
export default PhysicsManager;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { SimulationCanvas } from './SimulationCanvas';
|
|
2
|
-
export type { SimulationCanvasProps } from './SimulationCanvas';
|
|
3
|
-
export { SimulationControls } from './SimulationControls';
|
|
4
|
-
export type { SimulationControlsProps } from './SimulationControls';
|
|
5
|
-
export { SimulationGraph } from './SimulationGraph';
|
|
6
|
-
export type { SimulationGraphProps, MeasurementPoint } from './SimulationGraph';
|
|
7
|
-
export * from './presets';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { RuleEditor } from './RuleEditor';
|
|
2
|
-
export type { RuleEditorProps, RuleDefinition } from './RuleEditor';
|
|
3
|
-
export { EventLog } from './EventLog';
|
|
4
|
-
export type { EventLogProps, EventLogEntry } from './EventLog';
|
|
5
|
-
export { ObjectRulePanel } from './ObjectRulePanel';
|
|
6
|
-
export type { ObjectRulePanelProps } from './ObjectRulePanel';
|
|
7
|
-
export { EventHandlerBoard } from './EventHandlerBoard';
|
|
8
|
-
export type { EventHandlerBoardProps } from './EventHandlerBoard';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { ActionTile } from './ActionTile';
|
|
2
|
-
export type { ActionTileProps } from './ActionTile';
|
|
3
|
-
export { ActionPalette } from './ActionPalette';
|
|
4
|
-
export type { ActionPaletteProps } from './ActionPalette';
|
|
5
|
-
export { SequenceBar } from './SequenceBar';
|
|
6
|
-
export type { SequenceBarProps } from './SequenceBar';
|
|
7
|
-
export { SequencerBoard } from './SequencerBoard';
|
|
8
|
-
export type { SequencerBoardProps } from './SequencerBoard';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { StateNode } from './StateNode';
|
|
2
|
-
export type { StateNodeProps } from './StateNode';
|
|
3
|
-
export { TransitionArrow } from './TransitionArrow';
|
|
4
|
-
export type { TransitionArrowProps } from './TransitionArrow';
|
|
5
|
-
export { VariablePanel } from './VariablePanel';
|
|
6
|
-
export type { VariablePanelProps } from './VariablePanel';
|
|
7
|
-
export { StateJsonView } from './StateJsonView';
|
|
8
|
-
export type { StateJsonViewProps } from './StateJsonView';
|
|
9
|
-
export { StateArchitectBoard } from './StateArchitectBoard';
|
|
10
|
-
export type { StateArchitectBoardProps, StateArchitectTransition, TestCase, } from './StateArchitectBoard';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { TopDownShooterTemplate, type TopDownShooterTemplateProps, } from './TopDownShooterTemplate';
|
|
2
|
-
export { CityBuilderTemplate, type CityBuilderTemplateProps, } from './CityBuilderTemplate';
|
|
3
|
-
export { VisualNovelTemplate, type VisualNovelTemplateProps, } from './VisualNovelTemplate';
|
|
4
|
-
export { CardBattlerTemplate, type CardBattlerTemplateProps, } from './CardBattlerTemplate';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|