@almadar/ui 5.105.0 → 5.107.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 +1903 -4193
- package/dist/avl/index.js +998 -3288
- package/dist/components/core/atoms/index.d.ts +1 -1
- 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 +2 -2
- package/dist/components/game/{2d/atoms → atoms}/ActionButton.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/ChoiceButton.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/ControlButton.d.ts +1 -1
- package/dist/components/game/atoms/DrawShape.d.ts +50 -0
- package/dist/components/game/atoms/DrawSprite.d.ts +47 -0
- package/dist/components/game/atoms/DrawText.d.ts +31 -0
- package/dist/components/game/{2d/atoms → atoms}/GameAudioToggle.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/GameIcon.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/ItemSlot.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/MiniMap.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/ResourceCounter.d.ts +2 -2
- package/dist/components/game/{2d/atoms → atoms}/ScoreDisplay.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/Sprite.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/StateIndicator.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/StatusEffect.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/WaypointMarker.d.ts +1 -1
- package/dist/components/game/{shared/hooks → hooks}/useCamera.d.ts +1 -1
- package/dist/components/game/{shared/hooks → hooks}/useUnitSpriteAtlas.d.ts +2 -2
- package/dist/components/game/{shared → lib}/index.d.ts +1 -2
- package/dist/components/game/{shared/lib → lib}/puzzleObject.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/ActionTile.d.ts +1 -1
- package/dist/components/game/molecules/Canvas.d.ts +96 -0
- package/dist/components/game/molecules/Canvas2D.d.ts +120 -0
- package/dist/components/game/{2d/molecules → molecules}/ControlGrid.d.ts +1 -1
- package/dist/components/game/molecules/DrawShapeLayer.d.ts +19 -0
- package/dist/components/game/molecules/DrawSpriteLayer.d.ts +21 -0
- package/dist/components/game/molecules/DrawTextLayer.d.ts +22 -0
- package/dist/components/game/{2d/molecules → molecules}/GameHud.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/InventoryGrid.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/ResourceBar.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/StatBadge.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/StateNode.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/TraitSlot.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/TraitStateViewer.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/TransitionArrow.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/index.d.ts +9 -16
- package/dist/components/game/patterns.d.ts +20 -0
- package/dist/components/game/{shared/providers → providers}/GameAudioProvider.d.ts +1 -1
- package/dist/components/game/{2d/templates → templates}/GameTemplate.d.ts +1 -1
- package/dist/components/game/{3d → three}/atoms/SpriteBillboard3D.d.ts +1 -1
- package/dist/components/game/{shared → three}/hooks/useGameCanvas3DEvents.d.ts +4 -3
- package/dist/components/game/{3d → three}/index.cjs +766 -3008
- package/dist/components/game/{3d → three}/index.css +3 -3
- package/dist/components/game/{3d → three}/index.d.ts +0 -1
- package/dist/components/game/{3d → three}/index.js +622 -2863
- package/dist/components/game/{shared → three}/lib/game3dAssetManifest.d.ts +1 -1
- package/dist/components/game/three/molecules/GameCanvas3D.d.ts +175 -0
- package/dist/components/game/{3d → three}/molecules/index.d.ts +9 -12
- package/dist/components/game/{3d → three}/patterns.d.ts +0 -4
- package/dist/components/index.cjs +2315 -4418
- package/dist/components/index.js +1412 -3508
- package/dist/lib/drawable/Drawable3D.d.ts +20 -0
- package/dist/lib/drawable/contract.d.ts +68 -0
- package/dist/lib/drawable/hitTest.d.ts +23 -0
- package/dist/lib/drawable/mesh3d.d.ts +28 -0
- package/dist/lib/drawable/paintDispatch.d.ts +22 -0
- package/dist/lib/drawable/projector.d.ts +14 -0
- package/dist/lib/drawable/projector3d.d.ts +20 -0
- package/dist/lib/imageCache.d.ts +9 -0
- package/dist/lib/painter2d.d.ts +81 -0
- package/dist/lib/webPainter2d.d.ts +7 -0
- package/dist/marketing/index.cjs +10 -0
- package/dist/marketing/index.js +10 -0
- package/dist/providers/index.cjs +1748 -4042
- package/dist/providers/index.js +956 -3250
- package/dist/runtime/index.cjs +1758 -4048
- package/dist/runtime/index.js +972 -3262
- package/package.json +13 -13
- package/dist/components/game/2d/molecules/Canvas2D.d.ts +0 -175
- package/dist/components/game/2d/molecules/SideCanvas2D.d.ts +0 -36
- package/dist/components/game/2d/organisms/BuilderBoard.d.ts +0 -60
- package/dist/components/game/2d/organisms/ClassifierBoard.d.ts +0 -66
- package/dist/components/game/2d/organisms/DebuggerBoard.d.ts +0 -61
- package/dist/components/game/2d/organisms/EventHandlerBoard.d.ts +0 -42
- package/dist/components/game/2d/organisms/NegotiatorBoard.d.ts +0 -56
- package/dist/components/game/2d/organisms/SequencerBoard.d.ts +0 -69
- package/dist/components/game/2d/organisms/SimulatorBoard.d.ts +0 -58
- package/dist/components/game/2d/organisms/StateArchitectBoard.d.ts +0 -61
- package/dist/components/game/3d/atoms/EventMarker3D.d.ts +0 -17
- package/dist/components/game/3d/molecules/FeatureMesh3D.d.ts +0 -21
- package/dist/components/game/3d/molecules/GameCanvas3D.d.ts +0 -259
- package/dist/components/game/3d/molecules/SideScene3D.d.ts +0 -31
- package/dist/components/game/3d/molecules/TileMesh3D.d.ts +0 -28
- package/dist/components/game/3d/molecules/UnitMesh3D.d.ts +0 -29
- package/dist/components/game/3d/organisms/GameBoard3D.d.ts +0 -66
- package/dist/components/game/3d/templates/GameCanvas3DBattleTemplate.d.ts +0 -82
- package/dist/components/game/3d/templates/GameCanvas3DCastleTemplate.d.ts +0 -87
- package/dist/components/game/3d/templates/GameCanvas3DWorldMapTemplate.d.ts +0 -95
- package/dist/components/game/shared/effects.d.ts +0 -253
- /package/dist/components/game/{2d/atoms → atoms}/ComboCounter.d.ts +0 -0
- /package/dist/components/game/{2d/atoms → atoms}/DamageNumber.d.ts +0 -0
- /package/dist/components/game/{2d/atoms → atoms}/DialogueBubble.d.ts +0 -0
- /package/dist/components/game/{2d/atoms → atoms}/GameCard.d.ts +0 -0
- /package/dist/components/game/{2d/atoms → atoms}/HealthBar.d.ts +0 -0
- /package/dist/components/game/{2d/atoms → atoms}/TimerDisplay.d.ts +0 -0
- /package/dist/components/game/{2d/atoms → atoms}/TurnIndicator.d.ts +0 -0
- /package/dist/components/game/{shared/hooks → hooks}/useGameAudio.d.ts +0 -0
- /package/dist/components/game/{shared → hooks}/useImageCache.d.ts +0 -0
- /package/dist/components/game/{shared → lib}/boardEntity.d.ts +0 -0
- /package/dist/components/game/{shared/lib → lib}/editorUtils.d.ts +0 -0
- /package/dist/components/game/{shared → lib}/game.d.ts +0 -0
- /package/dist/components/game/{shared → lib}/isometric.d.ts +0 -0
- /package/dist/components/game/{shared → lib}/isometricTypes.d.ts +0 -0
- /package/dist/components/game/{shared → lib}/makeAsset.d.ts +0 -0
- /package/dist/components/game/{shared/lib → lib}/mechanics.d.ts +0 -0
- /package/dist/components/game/{shared/lib → lib}/physicsPresets.d.ts +0 -0
- /package/dist/components/game/{shared/lib → lib}/physicsTypes.d.ts +0 -0
- /package/dist/components/game/{shared → lib}/spriteAnimation.d.ts +0 -0
- /package/dist/components/game/{shared → lib}/spriteAnimationTypes.d.ts +0 -0
- /package/dist/components/game/{shared → lib}/spriteSheetConstants.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/ActionPalette.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/EventLog.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/GameMenu.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/ObjectRulePanel.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/RuleEditor.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/SequenceBar.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/StateGraph.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/StateJsonView.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/VariablePanel.d.ts +0 -0
- /package/dist/components/game/{2d/templates → templates}/GameShell.d.ts +0 -0
- /package/dist/components/game/{shared → three}/game3dTheme.d.ts +0 -0
- /package/dist/components/game/{shared → three}/hooks/useAssetLoader.d.ts +0 -0
- /package/dist/components/game/{shared → three}/hooks/useRaycaster.d.ts +0 -0
- /package/dist/components/game/{shared → three}/hooks/useSceneGraph.d.ts +0 -0
- /package/dist/components/game/{shared → three}/hooks/useThree.d.ts +0 -0
- /package/dist/components/game/{shared → three}/lib/AssetLoader.d.ts +0 -0
- /package/dist/components/game/{shared → three}/lib/culling.d.ts +0 -0
- /package/dist/components/game/{shared → three}/lib/grid3D.d.ts +0 -0
- /package/dist/components/game/{3d → three}/molecules/Camera3D.d.ts +0 -0
- /package/dist/components/game/{3d → three}/molecules/Canvas3DErrorBoundary.d.ts +0 -0
- /package/dist/components/game/{3d → three}/molecules/Canvas3DLoadingState.d.ts +0 -0
- /package/dist/components/game/{3d → three}/molecules/GameCamera3D.d.ts +0 -0
- /package/dist/components/game/{3d → three}/molecules/Lighting3D.d.ts +0 -0
- /package/dist/components/game/{3d → three}/molecules/ModelLoader.d.ts +0 -0
- /package/dist/components/game/{3d → three}/molecules/Scene3D.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type StatBadgeProps } from "./StatBadge";
|
|
3
3
|
import type { Asset } from "@almadar/core";
|
|
4
|
-
import type { IconInput } from "
|
|
4
|
+
import type { IconInput } from "../../core/atoms/index";
|
|
5
5
|
export interface GameHudStat extends Omit<StatBadgeProps, "size"> {
|
|
6
6
|
/** Data source entity name */
|
|
7
7
|
source?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { EventEmit, Asset } from '@almadar/core';
|
|
3
|
-
import type { IconInput } from '
|
|
3
|
+
import type { IconInput } from '../../core/atoms/index';
|
|
4
4
|
export interface InventoryGridItem {
|
|
5
5
|
id: string;
|
|
6
6
|
icon?: IconInput;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { Asset } from '@almadar/core';
|
|
3
|
-
import type { IconInput } from '
|
|
3
|
+
import type { IconInput } from '../../core/atoms/index';
|
|
4
4
|
export interface ResourceBarResource {
|
|
5
5
|
/** Icon for the resource */
|
|
6
6
|
icon?: IconInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { type IconInput } from '
|
|
2
|
+
import { type IconInput } from '../../core/atoms/Icon';
|
|
3
3
|
import type { Asset } from '@almadar/core';
|
|
4
4
|
/**
|
|
5
5
|
* StatBadge — game stat display molecule (distinct from core Badge atom).
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
import React from 'react';
|
|
21
21
|
import type { Asset, EventEmit } from '@almadar/core';
|
|
22
22
|
import { type TraitStateMachineDefinition } from './TraitStateViewer';
|
|
23
|
-
import type { UiError } from '
|
|
23
|
+
import type { UiError } from '../../core/atoms/types';
|
|
24
24
|
/** Data shape for a slot's equipped item */
|
|
25
25
|
export type SlotItemData = {
|
|
26
26
|
id: string;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { type StateStyle } from '../atoms/StateIndicator';
|
|
14
|
-
import type { UiError } from '
|
|
14
|
+
import type { UiError } from '../../core/atoms/types';
|
|
15
15
|
export type TraitTransition = {
|
|
16
16
|
from: string;
|
|
17
17
|
to: string;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import type { Point } from '
|
|
10
|
+
import type { Point } from '../../core/atoms/types';
|
|
11
11
|
export interface TransitionArrowProps {
|
|
12
12
|
/** Start position (center of from-node) */
|
|
13
13
|
from: Point;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
*/
|
|
9
|
-
export * from '
|
|
9
|
+
export * from '../lib/index';
|
|
10
10
|
export { GameCard, type GameCardProps } from '../atoms/GameCard';
|
|
11
11
|
export { HealthBar, type HealthBarProps } from '../atoms/HealthBar';
|
|
12
12
|
export { ScoreDisplay, type ScoreDisplayProps } from '../atoms/ScoreDisplay';
|
|
@@ -34,33 +34,26 @@ export { GameHud, type GameHudProps, type GameHudStat, type GameHudElement } fro
|
|
|
34
34
|
export { GameMenu, type GameMenuProps, type MenuOption } from './GameMenu';
|
|
35
35
|
export { StateGraph, type StateGraphProps, type StateGraphTransition } from './StateGraph';
|
|
36
36
|
export { Canvas2D, type Canvas2DProps, type Projection, type CameraMode, type Platform, type SidePlayer, type TileCoord, } from './Canvas2D';
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
37
|
+
export { Canvas, type CanvasProps, type CanvasMode } from './Canvas';
|
|
38
|
+
export { useUnitSpriteAtlas } from '../hooks/useUnitSpriteAtlas';
|
|
39
|
+
export { GameAudioProvider, GameAudioContext, useGameAudioContext, type GameAudioProviderProps, type GameAudioContextValue, } from '../providers/GameAudioProvider';
|
|
39
40
|
export { GameAudioToggle, type GameAudioToggleProps, } from '../atoms/GameAudioToggle';
|
|
40
|
-
export { useGameAudio, type AudioManifest, type SoundEntry, type GameAudioControls, type UseGameAudioOptions, } from '
|
|
41
|
-
export { useCamera } from '
|
|
41
|
+
export { useGameAudio, type AudioManifest, type SoundEntry, type GameAudioControls, type UseGameAudioOptions, } from '../hooks/useGameAudio';
|
|
42
|
+
export { useCamera } from '../hooks/useCamera';
|
|
42
43
|
export { TraitStateViewer, type TraitStateViewerProps, type TraitStateMachineDefinition, type TraitTransition, } from './TraitStateViewer';
|
|
43
44
|
export { TraitSlot, type TraitSlotProps, type SlotItemData, } from './TraitSlot';
|
|
44
|
-
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 '
|
|
45
|
+
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 '../lib/editorUtils';
|
|
45
46
|
export { ActionTile, type ActionTileProps } from './ActionTile';
|
|
46
47
|
export { ActionPalette, type ActionPaletteProps } from './ActionPalette';
|
|
47
48
|
export { SequenceBar, type SequenceBarProps } from './SequenceBar';
|
|
48
|
-
export { SequencerBoard, type SequencerBoardProps } from '../organisms/SequencerBoard';
|
|
49
49
|
export { RuleEditor, type RuleEditorProps, type RuleDefinition } from './RuleEditor';
|
|
50
50
|
export { EventLog, type EventLogProps, type EventLogEntry } from './EventLog';
|
|
51
51
|
export { ObjectRulePanel, type ObjectRulePanelProps } from './ObjectRulePanel';
|
|
52
|
-
export
|
|
53
|
-
export * from '../../shared/lib/puzzleObject';
|
|
52
|
+
export * from '../lib/puzzleObject';
|
|
54
53
|
export { StateNode, type StateNodeProps } from './StateNode';
|
|
55
54
|
export { TransitionArrow, type TransitionArrowProps } from './TransitionArrow';
|
|
56
55
|
export { VariablePanel, type VariablePanelProps } from './VariablePanel';
|
|
57
56
|
export { StateJsonView, type StateJsonViewProps } from './StateJsonView';
|
|
58
|
-
export {
|
|
59
|
-
export { SimulatorBoard, type SimulatorBoardProps, type SimulatorParameter } from '../organisms/SimulatorBoard';
|
|
60
|
-
export { ClassifierBoard, type ClassifierBoardProps, type ClassifierItem, type ClassifierCategory } from '../organisms/ClassifierBoard';
|
|
61
|
-
export { BuilderBoard, type BuilderBoardProps, type BuilderComponent, type BuilderSlot } from '../organisms/BuilderBoard';
|
|
62
|
-
export { DebuggerBoard, type DebuggerBoardProps, type DebuggerLine } from '../organisms/DebuggerBoard';
|
|
63
|
-
export { NegotiatorBoard, type NegotiatorBoardProps, type NegotiatorAction, type PayoffEntry } from '../organisms/NegotiatorBoard';
|
|
64
|
-
export { projectileMotion, pendulum, springOscillator, ALL_PRESETS } from '../../shared/lib/physicsPresets';
|
|
57
|
+
export { projectileMotion, pendulum, springOscillator, ALL_PRESETS } from '../lib/physicsPresets';
|
|
65
58
|
export { GameTemplate, type GameTemplateProps } from '../templates/GameTemplate';
|
|
66
59
|
export { GameShell, type GameShellProps } from '../templates/GameShell';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Curated list of the neutral DRAWABLE render-ui pattern components — the
|
|
3
|
+
* dimension-agnostic primitives a canvas draw-host paints under its `children`.
|
|
4
|
+
*
|
|
5
|
+
* These atoms/molecules are R3F-free (the 3D mesh backends live in
|
|
6
|
+
* `lib/drawable/mesh3d`, pulled in only by the code-split 3D host), so they are
|
|
7
|
+
* safe to admit to the public pattern surface. `pattern-sync` discovers
|
|
8
|
+
* `patterns.ts` files by walking the tree and admits exactly the names listed
|
|
9
|
+
* here, taking each one's tier from its source path (atoms / molecules) — so the
|
|
10
|
+
* dispatch/painter infra co-located under `lib/` never leaks in as a pattern.
|
|
11
|
+
* Move this file anywhere under `components/` and the scanner still finds it.
|
|
12
|
+
*
|
|
13
|
+
* @packageDocumentation
|
|
14
|
+
*/
|
|
15
|
+
export { DrawSprite } from './atoms/DrawSprite';
|
|
16
|
+
export { DrawShape } from './atoms/DrawShape';
|
|
17
|
+
export { DrawText } from './atoms/DrawText';
|
|
18
|
+
export { DrawSpriteLayer } from './molecules/DrawSpriteLayer';
|
|
19
|
+
export { DrawShapeLayer } from './molecules/DrawShapeLayer';
|
|
20
|
+
export { DrawTextLayer } from './molecules/DrawTextLayer';
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import React from 'react';
|
|
20
20
|
import { type AudioManifest, type GameAudioControls } from '../hooks/useGameAudio';
|
|
21
|
-
import type { UiError } from '
|
|
21
|
+
import type { UiError } from '../../core/atoms/types';
|
|
22
22
|
export type GameAudioContextValue = Pick<GameAudioControls, 'muted' | 'setMuted' | 'masterVolume' | 'setMasterVolume' | 'play' | 'playMusic' | 'stopMusic'>;
|
|
23
23
|
export declare const GameAudioContext: React.Context<GameAudioContextValue | null>;
|
|
24
24
|
/**
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import React from "react";
|
|
9
9
|
import type { Asset } from "@almadar/core";
|
|
10
|
-
import type { TemplateProps } from "
|
|
10
|
+
import type { TemplateProps } from "../../core/templates/types";
|
|
11
11
|
export interface GameControls {
|
|
12
12
|
onPlay?: () => void;
|
|
13
13
|
onPause?: () => void;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import type { ResolvedFrame } from '../../
|
|
11
|
+
import type { ResolvedFrame } from '../../lib/spriteAnimationTypes';
|
|
12
12
|
export interface SpriteBillboard3DProps {
|
|
13
13
|
sheetUrl: string;
|
|
14
14
|
resolveFrame: () => ResolvedFrame | null;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { EventEmit } from '@almadar/core';
|
|
2
|
-
import type { IsometricTile, IsometricUnit, IsometricFeature } from '
|
|
2
|
+
import type { IsometricTile, IsometricUnit, IsometricFeature } from '../../lib/isometricTypes';
|
|
3
3
|
export interface GameCanvas3DEventConfig {
|
|
4
|
-
/** Event name for tile clicks
|
|
4
|
+
/** Event name for tile clicks. `tileId` is optional — the neutral draw-host emits
|
|
5
|
+
* only the scene coordinate `{ x, z }` (the FSM keys off the cell, not an id). */
|
|
5
6
|
tileClickEvent?: EventEmit<{
|
|
6
|
-
tileId: string;
|
|
7
7
|
x: number;
|
|
8
8
|
z: number;
|
|
9
|
+
tileId?: string;
|
|
9
10
|
type?: string;
|
|
10
11
|
terrain?: string;
|
|
11
12
|
elevation?: number;
|