@aura3d/engine 1.0.2 → 1.0.5
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/README.md +331 -16
- package/dist/animation/AnimationClipEvents.d.ts +57 -0
- package/dist/animation/AnimationClipEvents.d.ts.map +1 -0
- package/dist/animation/AnimationClipEvents.js +171 -0
- package/dist/animation/AnimationClipEvents.js.map +1 -0
- package/dist/animation/AnimationClipRegistry.d.ts +76 -0
- package/dist/animation/AnimationClipRegistry.d.ts.map +1 -0
- package/dist/animation/AnimationClipRegistry.js +130 -0
- package/dist/animation/AnimationClipRegistry.js.map +1 -0
- package/dist/animation/AnimationController.d.ts +168 -0
- package/dist/animation/AnimationController.d.ts.map +1 -0
- package/dist/animation/AnimationController.js +619 -0
- package/dist/animation/AnimationController.js.map +1 -0
- package/dist/animation/HumanoidRetargeting.d.ts +76 -0
- package/dist/animation/HumanoidRetargeting.d.ts.map +1 -0
- package/dist/animation/HumanoidRetargeting.js +331 -0
- package/dist/animation/HumanoidRetargeting.js.map +1 -0
- package/dist/animation/browser-index.d.ts +18 -0
- package/dist/animation/browser-index.d.ts.map +1 -1
- package/dist/animation/browser-index.js +13 -0
- package/dist/animation/browser-index.js.map +1 -1
- package/dist/animation/index.d.ts +16 -1
- package/dist/animation/index.d.ts.map +1 -1
- package/dist/animation/index.js +11 -1
- package/dist/animation/index.js.map +1 -1
- package/dist/animation/threejs-compatibility/AnimationDiagnostics.d.ts.map +1 -1
- package/dist/animation/threejs-compatibility/AnimationDiagnostics.js +3 -5
- package/dist/animation/threejs-compatibility/AnimationDiagnostics.js.map +1 -1
- package/dist/assets/GLTFAnimationRuntime.js +1 -1
- package/dist/assets/GLTFLoader.js +1 -1
- package/dist/aura3d-cli/cli.js +194 -8
- package/dist/aura3d-cli/cli.js.map +1 -1
- package/dist/aura3d-cli/index.d.ts +280 -3
- package/dist/aura3d-cli/index.d.ts.map +1 -1
- package/dist/aura3d-cli/index.js +886 -4
- package/dist/aura3d-cli/index.js.map +1 -1
- package/dist/aura3d-cli/pull-bridge.d.ts +95 -0
- package/dist/aura3d-cli/pull-bridge.d.ts.map +1 -0
- package/dist/aura3d-cli/pull-bridge.js +247 -0
- package/dist/aura3d-cli/pull-bridge.js.map +1 -0
- package/dist/create-aura3d/index.d.ts +1 -1
- package/dist/create-aura3d/index.d.ts.map +1 -1
- package/dist/create-aura3d/index.js +9 -2
- package/dist/create-aura3d/index.js.map +1 -1
- package/dist/editor-runtime/ProjectSerializer.d.ts +74 -1
- package/dist/editor-runtime/ProjectSerializer.d.ts.map +1 -1
- package/dist/editor-runtime/ProjectSerializer.js +123 -6
- package/dist/editor-runtime/ProjectSerializer.js.map +1 -1
- package/dist/editor-runtime/TimelineModel.d.ts +18 -0
- package/dist/editor-runtime/TimelineModel.d.ts.map +1 -1
- package/dist/editor-runtime/TimelineModel.js +67 -3
- package/dist/editor-runtime/TimelineModel.js.map +1 -1
- package/dist/editor-runtime/TimelineRuntimeBridge.d.ts +98 -0
- package/dist/editor-runtime/TimelineRuntimeBridge.d.ts.map +1 -0
- package/dist/editor-runtime/TimelineRuntimeBridge.js +186 -0
- package/dist/editor-runtime/TimelineRuntimeBridge.js.map +1 -0
- package/dist/editor-runtime/index.d.ts +3 -1
- package/dist/editor-runtime/index.d.ts.map +1 -1
- package/dist/editor-runtime/index.js +1 -0
- package/dist/editor-runtime/index.js.map +1 -1
- package/dist/engine/agent-api/AnimationController.d.ts +607 -0
- package/dist/engine/agent-api/AnimationController.d.ts.map +1 -0
- package/dist/engine/agent-api/AnimationController.js +2192 -0
- package/dist/engine/agent-api/AnimationController.js.map +1 -0
- package/dist/engine/agent-api/AssetEvidence.d.ts +88 -0
- package/dist/engine/agent-api/AssetEvidence.d.ts.map +1 -0
- package/dist/engine/agent-api/AssetEvidence.js +157 -0
- package/dist/engine/agent-api/AssetEvidence.js.map +1 -0
- package/dist/engine/agent-api/AuraAppHandle.d.ts +55 -0
- package/dist/engine/agent-api/AuraAppHandle.d.ts.map +1 -0
- package/dist/engine/agent-api/AuraAppHandle.js +15 -0
- package/dist/engine/agent-api/AuraAppHandle.js.map +1 -0
- package/dist/engine/agent-api/AuraVoiceBridge.d.ts +96 -0
- package/dist/engine/agent-api/AuraVoiceBridge.d.ts.map +1 -0
- package/dist/engine/agent-api/AuraVoiceBridge.js +370 -0
- package/dist/engine/agent-api/AuraVoiceBridge.js.map +1 -0
- package/dist/engine/agent-api/CartoonDirector.d.ts +95 -0
- package/dist/engine/agent-api/CartoonDirector.d.ts.map +1 -0
- package/dist/engine/agent-api/CartoonDirector.js +342 -0
- package/dist/engine/agent-api/CartoonDirector.js.map +1 -0
- package/dist/engine/agent-api/CartoonPerformance.d.ts +149 -0
- package/dist/engine/agent-api/CartoonPerformance.d.ts.map +1 -0
- package/dist/engine/agent-api/CartoonPerformance.js +317 -0
- package/dist/engine/agent-api/CartoonPerformance.js.map +1 -0
- package/dist/engine/agent-api/CartoonRenderQueue.d.ts +132 -0
- package/dist/engine/agent-api/CartoonRenderQueue.d.ts.map +1 -0
- package/dist/engine/agent-api/CartoonRenderQueue.js +385 -0
- package/dist/engine/agent-api/CartoonRenderQueue.js.map +1 -0
- package/dist/engine/agent-api/CharacterAssembly.d.ts +126 -0
- package/dist/engine/agent-api/CharacterAssembly.d.ts.map +1 -0
- package/dist/engine/agent-api/CharacterAssembly.js +280 -0
- package/dist/engine/agent-api/CharacterAssembly.js.map +1 -0
- package/dist/engine/agent-api/DialoguePerformance.d.ts +150 -0
- package/dist/engine/agent-api/DialoguePerformance.d.ts.map +1 -0
- package/dist/engine/agent-api/DialoguePerformance.js +335 -0
- package/dist/engine/agent-api/DialoguePerformance.js.map +1 -0
- package/dist/engine/agent-api/FrameLoop.d.ts +70 -0
- package/dist/engine/agent-api/FrameLoop.d.ts.map +1 -0
- package/dist/engine/agent-api/FrameLoop.js +165 -0
- package/dist/engine/agent-api/FrameLoop.js.map +1 -0
- package/dist/engine/agent-api/GameAssetValidation.d.ts +279 -0
- package/dist/engine/agent-api/GameAssetValidation.d.ts.map +1 -0
- package/dist/engine/agent-api/GameAssetValidation.js +719 -0
- package/dist/engine/agent-api/GameAssetValidation.js.map +1 -0
- package/dist/engine/agent-api/GameEvidence.d.ts +148 -0
- package/dist/engine/agent-api/GameEvidence.d.ts.map +1 -0
- package/dist/engine/agent-api/GameEvidence.js +269 -0
- package/dist/engine/agent-api/GameEvidence.js.map +1 -0
- package/dist/engine/agent-api/GameRuntime.d.ts +931 -0
- package/dist/engine/agent-api/GameRuntime.d.ts.map +1 -0
- package/dist/engine/agent-api/GameRuntime.js +2229 -0
- package/dist/engine/agent-api/GameRuntime.js.map +1 -0
- package/dist/engine/agent-api/GameSceneBridge.d.ts +54 -0
- package/dist/engine/agent-api/GameSceneBridge.d.ts.map +1 -0
- package/dist/engine/agent-api/GameSceneBridge.js +110 -0
- package/dist/engine/agent-api/GameSceneBridge.js.map +1 -0
- package/dist/engine/agent-api/PromptAnimationContract.d.ts +278 -0
- package/dist/engine/agent-api/PromptAnimationContract.d.ts.map +1 -0
- package/dist/engine/agent-api/PromptAnimationContract.js +238 -0
- package/dist/engine/agent-api/PromptAnimationContract.js.map +1 -0
- package/dist/engine/agent-api/PromptAnimationEvidence.d.ts +183 -0
- package/dist/engine/agent-api/PromptAnimationEvidence.d.ts.map +1 -0
- package/dist/engine/agent-api/PromptAnimationEvidence.js +454 -0
- package/dist/engine/agent-api/PromptAnimationEvidence.js.map +1 -0
- package/dist/engine/agent-api/RuntimeNodeHandle.d.ts +100 -0
- package/dist/engine/agent-api/RuntimeNodeHandle.d.ts.map +1 -0
- package/dist/engine/agent-api/RuntimeNodeHandle.js +36 -0
- package/dist/engine/agent-api/RuntimeNodeHandle.js.map +1 -0
- package/dist/engine/agent-api/ShotTimeline.d.ts +179 -0
- package/dist/engine/agent-api/ShotTimeline.d.ts.map +1 -0
- package/dist/engine/agent-api/ShotTimeline.js +264 -0
- package/dist/engine/agent-api/ShotTimeline.js.map +1 -0
- package/dist/engine/agent-api/VisemeController.d.ts +89 -0
- package/dist/engine/agent-api/VisemeController.d.ts.map +1 -0
- package/dist/engine/agent-api/VisemeController.js +207 -0
- package/dist/engine/agent-api/VisemeController.js.map +1 -0
- package/dist/engine/agent-api/game-kits/fighting.d.ts +123 -0
- package/dist/engine/agent-api/game-kits/fighting.d.ts.map +1 -0
- package/dist/engine/agent-api/game-kits/fighting.js +483 -0
- package/dist/engine/agent-api/game-kits/fighting.js.map +1 -0
- package/dist/engine/agent-api/game-kits/index.d.ts +15 -0
- package/dist/engine/agent-api/game-kits/index.d.ts.map +1 -0
- package/dist/engine/agent-api/game-kits/index.js +6 -0
- package/dist/engine/agent-api/game-kits/index.js.map +1 -0
- package/dist/engine/agent-api/humanoid-walk-runtime.d.ts +18 -81
- package/dist/engine/agent-api/humanoid-walk-runtime.d.ts.map +1 -1
- package/dist/engine/agent-api/humanoid-walk-runtime.js +4 -279
- package/dist/engine/agent-api/humanoid-walk-runtime.js.map +1 -1
- package/dist/engine/agent-api/index.d.ts +490 -4
- package/dist/engine/agent-api/index.d.ts.map +1 -1
- package/dist/engine/agent-api/index.js +759 -1802
- package/dist/engine/agent-api/index.js.map +1 -1
- package/dist/engine/agent-api/particle-fountain-runtime.d.ts +5 -80
- package/dist/engine/agent-api/particle-fountain-runtime.d.ts.map +1 -1
- package/dist/engine/agent-api/particle-fountain-runtime.js +7 -291
- package/dist/engine/agent-api/particle-fountain-runtime.js.map +1 -1
- package/dist/engine/agent-api/product-viewer-runtime.d.ts +17 -107
- package/dist/engine/agent-api/product-viewer-runtime.d.ts.map +1 -1
- package/dist/engine/agent-api/product-viewer-runtime.js +4 -330
- package/dist/engine/agent-api/product-viewer-runtime.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/physics/CollisionVolumes.d.ts +57 -0
- package/dist/physics/CollisionVolumes.d.ts.map +1 -0
- package/dist/physics/CollisionVolumes.js +159 -0
- package/dist/physics/CollisionVolumes.js.map +1 -0
- package/dist/physics/HitboxWorld.d.ts +229 -0
- package/dist/physics/HitboxWorld.d.ts.map +1 -0
- package/dist/physics/HitboxWorld.js +640 -0
- package/dist/physics/HitboxWorld.js.map +1 -0
- package/dist/physics/KinematicBody.d.ts +157 -0
- package/dist/physics/KinematicBody.d.ts.map +1 -0
- package/dist/physics/KinematicBody.js +405 -0
- package/dist/physics/KinematicBody.js.map +1 -0
- package/dist/physics/KinematicWorld.d.ts +58 -0
- package/dist/physics/KinematicWorld.d.ts.map +1 -0
- package/dist/physics/KinematicWorld.js +246 -0
- package/dist/physics/KinematicWorld.js.map +1 -0
- package/dist/physics/index.d.ts +4 -0
- package/dist/physics/index.d.ts.map +1 -1
- package/dist/physics/index.js +4 -0
- package/dist/physics/index.js.map +1 -1
- package/dist/rendering/ForwardPass.js +2 -2
- package/dist/rendering/ShaderLibrary.js +2 -2
- package/dist/rendering/SkinnedLitMaterial.js +3 -3
- package/dist/rendering/SkinnedUnlitMaterial.js +3 -3
- package/dist/scene/Renderable.js +2 -2
- package/dist/scripting/VisualGraph.d.ts +2 -1
- package/dist/scripting/VisualGraph.d.ts.map +1 -1
- package/dist/scripting/VisualGraph.js +118 -1
- package/dist/scripting/VisualGraph.js.map +1 -1
- package/dist/scripting/VisualGraphContext.d.ts +123 -0
- package/dist/scripting/VisualGraphContext.d.ts.map +1 -0
- package/dist/scripting/VisualGraphContext.js +2 -0
- package/dist/scripting/VisualGraphContext.js.map +1 -0
- package/dist/scripting/VisualGraphExecutor.d.ts +6 -1
- package/dist/scripting/VisualGraphExecutor.d.ts.map +1 -1
- package/dist/scripting/VisualGraphExecutor.js +364 -7
- package/dist/scripting/VisualGraphExecutor.js.map +1 -1
- package/dist/scripting/VisualNodeCatalog.d.ts +1 -1
- package/dist/scripting/VisualNodeCatalog.d.ts.map +1 -1
- package/dist/scripting/VisualNodeCatalog.js +61 -1
- package/dist/scripting/VisualNodeCatalog.js.map +1 -1
- package/dist/scripting/index.d.ts +1 -0
- package/dist/scripting/index.d.ts.map +1 -1
- package/dist/scripting/index.js.map +1 -1
- package/package.json +193 -121
- package/templates/product-viewer/src/main.ts +1 -0
- package/dist/three-compat/ThreeApiInventory.d.ts +0 -18
- package/dist/three-compat/ThreeApiInventory.d.ts.map +0 -1
- package/dist/three-compat/ThreeApiInventory.js +0 -99
- package/dist/three-compat/ThreeApiInventory.js.map +0 -1
- package/dist/three-compat/ThreeCompatibilityMatrix.d.ts +0 -30
- package/dist/three-compat/ThreeCompatibilityMatrix.d.ts.map +0 -1
- package/dist/three-compat/ThreeCompatibilityMatrix.js +0 -69
- package/dist/three-compat/ThreeCompatibilityMatrix.js.map +0 -1
- package/dist/three-compat/animation/index.d.ts +0 -3
- package/dist/three-compat/animation/index.d.ts.map +0 -1
- package/dist/three-compat/animation/index.js +0 -2
- package/dist/three-compat/animation/index.js.map +0 -1
- package/dist/three-compat/cameras/index.d.ts +0 -24
- package/dist/three-compat/cameras/index.d.ts.map +0 -1
- package/dist/three-compat/cameras/index.js +0 -44
- package/dist/three-compat/cameras/index.js.map +0 -1
- package/dist/three-compat/controls/index.d.ts +0 -3
- package/dist/three-compat/controls/index.d.ts.map +0 -1
- package/dist/three-compat/controls/index.js +0 -2
- package/dist/three-compat/controls/index.js.map +0 -1
- package/dist/three-compat/core/Object3DCompat.d.ts +0 -62
- package/dist/three-compat/core/Object3DCompat.d.ts.map +0 -1
- package/dist/three-compat/core/Object3DCompat.js +0 -112
- package/dist/three-compat/core/Object3DCompat.js.map +0 -1
- package/dist/three-compat/core/RaycasterCompat.d.ts +0 -18
- package/dist/three-compat/core/RaycasterCompat.d.ts.map +0 -1
- package/dist/three-compat/core/RaycasterCompat.js +0 -28
- package/dist/three-compat/core/RaycasterCompat.js.map +0 -1
- package/dist/three-compat/core/SceneCompat.d.ts +0 -8
- package/dist/three-compat/core/SceneCompat.d.ts.map +0 -1
- package/dist/three-compat/core/SceneCompat.js +0 -8
- package/dist/three-compat/core/SceneCompat.js.map +0 -1
- package/dist/three-compat/geometries/index.d.ts +0 -67
- package/dist/three-compat/geometries/index.d.ts.map +0 -1
- package/dist/three-compat/geometries/index.js +0 -114
- package/dist/three-compat/geometries/index.js.map +0 -1
- package/dist/three-compat/helpers/index.d.ts +0 -40
- package/dist/three-compat/helpers/index.d.ts.map +0 -1
- package/dist/three-compat/helpers/index.js +0 -129
- package/dist/three-compat/helpers/index.js.map +0 -1
- package/dist/three-compat/index.d.ts +0 -32
- package/dist/three-compat/index.d.ts.map +0 -1
- package/dist/three-compat/index.js +0 -22
- package/dist/three-compat/index.js.map +0 -1
- package/dist/three-compat/lights/index.d.ts +0 -35
- package/dist/three-compat/lights/index.d.ts.map +0 -1
- package/dist/three-compat/lights/index.js +0 -39
- package/dist/three-compat/lights/index.js.map +0 -1
- package/dist/three-compat/loaders/index.d.ts +0 -54
- package/dist/three-compat/loaders/index.d.ts.map +0 -1
- package/dist/three-compat/loaders/index.js +0 -79
- package/dist/three-compat/loaders/index.js.map +0 -1
- package/dist/three-compat/materials/index.d.ts +0 -70
- package/dist/three-compat/materials/index.d.ts.map +0 -1
- package/dist/three-compat/materials/index.js +0 -85
- package/dist/three-compat/materials/index.js.map +0 -1
- package/dist/three-compat/math/index.d.ts +0 -34
- package/dist/three-compat/math/index.d.ts.map +0 -1
- package/dist/three-compat/math/index.js +0 -90
- package/dist/three-compat/math/index.js.map +0 -1
- package/dist/three-compat/migration/CompatibilityWarnings.d.ts +0 -6
- package/dist/three-compat/migration/CompatibilityWarnings.d.ts.map +0 -1
- package/dist/three-compat/migration/CompatibilityWarnings.js +0 -8
- package/dist/three-compat/migration/CompatibilityWarnings.js.map +0 -1
- package/dist/three-compat/migration/ImportMap.d.ts +0 -2
- package/dist/three-compat/migration/ImportMap.d.ts.map +0 -1
- package/dist/three-compat/migration/ImportMap.js +0 -10
- package/dist/three-compat/migration/ImportMap.js.map +0 -1
- package/dist/three-compat/migration/ThreeToA3DAdapter.d.ts +0 -8
- package/dist/three-compat/migration/ThreeToA3DAdapter.d.ts.map +0 -1
- package/dist/three-compat/migration/ThreeToA3DAdapter.js +0 -20
- package/dist/three-compat/migration/ThreeToA3DAdapter.js.map +0 -1
- package/dist/three-compat/postprocessing/index.d.ts +0 -2
- package/dist/three-compat/postprocessing/index.d.ts.map +0 -1
- package/dist/three-compat/postprocessing/index.js +0 -2
- package/dist/three-compat/postprocessing/index.js.map +0 -1
- package/dist/three-compat/render-targets/index.d.ts +0 -17
- package/dist/three-compat/render-targets/index.d.ts.map +0 -1
- package/dist/three-compat/render-targets/index.js +0 -29
- package/dist/three-compat/render-targets/index.js.map +0 -1
- package/dist/three-compat/shaders/index.d.ts +0 -3
- package/dist/three-compat/shaders/index.d.ts.map +0 -1
- package/dist/three-compat/shaders/index.js +0 -3
- package/dist/three-compat/shaders/index.js.map +0 -1
- package/dist/three-compat/textures/index.d.ts +0 -19
- package/dist/three-compat/textures/index.d.ts.map +0 -1
- package/dist/three-compat/textures/index.js +0 -24
- package/dist/three-compat/textures/index.js.map +0 -1
|
@@ -0,0 +1,931 @@
|
|
|
1
|
+
export type GameVec3 = readonly [number, number, number];
|
|
2
|
+
export type GameSubsystemOwner = "aura3d" | "app" | "shared";
|
|
3
|
+
export type GameRuntimeSubsystemId = "runtime-nodes" | "frame-loop" | "input" | "kinematic-bodies" | "combat" | "effects" | "camera" | "animation" | "assets" | "stage" | "hud" | "accessibility";
|
|
4
|
+
export interface GameRuntimeSubsystemOwnership {
|
|
5
|
+
readonly subsystem: GameRuntimeSubsystemId | string;
|
|
6
|
+
readonly owner: GameSubsystemOwner;
|
|
7
|
+
readonly configured: boolean;
|
|
8
|
+
readonly evidence: string;
|
|
9
|
+
}
|
|
10
|
+
export type GameHudBindingKind = "health" | "meter" | "timer" | "combo" | "round" | "debug-toggle";
|
|
11
|
+
export type GameHudValueFormat = "number" | "percent" | "clock" | "text" | "boolean";
|
|
12
|
+
export type GameHudSourceKind = "combat" | "round" | "input" | "runtime" | "debug" | "app-state";
|
|
13
|
+
export interface GameHudBinding {
|
|
14
|
+
readonly kind: "aura-game-hud-binding";
|
|
15
|
+
readonly binding: GameHudBindingKind;
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly label: string;
|
|
18
|
+
readonly owner: "app";
|
|
19
|
+
readonly source: GameHudSourceKind;
|
|
20
|
+
readonly targetId?: string;
|
|
21
|
+
readonly valuePath: string;
|
|
22
|
+
readonly maxPath?: string;
|
|
23
|
+
readonly format: GameHudValueFormat;
|
|
24
|
+
readonly a11yLabel: string;
|
|
25
|
+
readonly debugOnly: boolean;
|
|
26
|
+
readonly interactive: boolean;
|
|
27
|
+
readonly visibleWhen?: string;
|
|
28
|
+
}
|
|
29
|
+
export type GameHudResolvedValue = string | number | boolean | undefined;
|
|
30
|
+
export interface GameHudSnapshotItem {
|
|
31
|
+
readonly kind: "aura-game-hud-value";
|
|
32
|
+
readonly id: string;
|
|
33
|
+
readonly binding: GameHudBindingKind;
|
|
34
|
+
readonly label: string;
|
|
35
|
+
readonly source: GameHudSourceKind;
|
|
36
|
+
readonly targetId?: string;
|
|
37
|
+
readonly valuePath: string;
|
|
38
|
+
readonly value: GameHudResolvedValue;
|
|
39
|
+
readonly max?: GameHudResolvedValue;
|
|
40
|
+
readonly formatted: string;
|
|
41
|
+
readonly changed: boolean;
|
|
42
|
+
readonly debugOnly: boolean;
|
|
43
|
+
readonly interactive: boolean;
|
|
44
|
+
readonly a11yLabel: string;
|
|
45
|
+
}
|
|
46
|
+
export interface GameHudSnapshotOptions {
|
|
47
|
+
readonly bindings: readonly GameHudBinding[];
|
|
48
|
+
readonly combat?: GameCombatWorld | GameCombatWorldSnapshot;
|
|
49
|
+
readonly events?: readonly GameCombatEvent[];
|
|
50
|
+
readonly round?: Record<string, unknown>;
|
|
51
|
+
readonly rules?: Record<string, unknown>;
|
|
52
|
+
readonly input?: GameInputController | GameInputSnapshot;
|
|
53
|
+
readonly runtime?: Record<string, unknown>;
|
|
54
|
+
readonly debug?: Record<string, unknown>;
|
|
55
|
+
readonly appState?: Record<string, unknown>;
|
|
56
|
+
}
|
|
57
|
+
export interface GameHudSnapshot {
|
|
58
|
+
readonly kind: "aura-game-hud-snapshot";
|
|
59
|
+
readonly frame: number;
|
|
60
|
+
readonly time: number;
|
|
61
|
+
readonly values: readonly GameHudSnapshotItem[];
|
|
62
|
+
readonly changedIds: readonly string[];
|
|
63
|
+
readonly events: readonly GameCombatEvent[];
|
|
64
|
+
}
|
|
65
|
+
export interface GameHudActorBindingOptions {
|
|
66
|
+
readonly id?: string;
|
|
67
|
+
readonly actorId: string;
|
|
68
|
+
readonly label?: string;
|
|
69
|
+
readonly valuePath?: string;
|
|
70
|
+
readonly maxPath?: string;
|
|
71
|
+
readonly a11yLabel?: string;
|
|
72
|
+
readonly visibleWhen?: string;
|
|
73
|
+
}
|
|
74
|
+
export interface GameHudTimerBindingOptions {
|
|
75
|
+
readonly id?: string;
|
|
76
|
+
readonly label?: string;
|
|
77
|
+
readonly valuePath?: string;
|
|
78
|
+
readonly a11yLabel?: string;
|
|
79
|
+
readonly visibleWhen?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface GameHudComboBindingOptions {
|
|
82
|
+
readonly id?: string;
|
|
83
|
+
readonly actorId?: string;
|
|
84
|
+
readonly label?: string;
|
|
85
|
+
readonly valuePath?: string;
|
|
86
|
+
readonly a11yLabel?: string;
|
|
87
|
+
readonly visibleWhen?: string;
|
|
88
|
+
}
|
|
89
|
+
export interface GameHudRoundBindingOptions {
|
|
90
|
+
readonly id?: string;
|
|
91
|
+
readonly label?: string;
|
|
92
|
+
readonly valuePath?: string;
|
|
93
|
+
readonly a11yLabel?: string;
|
|
94
|
+
readonly visibleWhen?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface GameHudDebugToggleBindingOptions {
|
|
97
|
+
readonly id?: string;
|
|
98
|
+
readonly label?: string;
|
|
99
|
+
readonly statePath?: string;
|
|
100
|
+
readonly action?: string;
|
|
101
|
+
readonly a11yLabel?: string;
|
|
102
|
+
readonly visibleWhen?: string;
|
|
103
|
+
}
|
|
104
|
+
export type GameAccessibilitySourceKind = "label" | "focus" | "reduced-motion" | "reduced-flash" | "high-contrast" | "pause-controls";
|
|
105
|
+
export interface GameAccessibilitySource {
|
|
106
|
+
readonly kind: "aura-game-accessibility-source";
|
|
107
|
+
readonly feature: GameAccessibilitySourceKind;
|
|
108
|
+
readonly id: string;
|
|
109
|
+
readonly owner: GameSubsystemOwner;
|
|
110
|
+
readonly label: string;
|
|
111
|
+
readonly targetId?: string;
|
|
112
|
+
readonly role?: string;
|
|
113
|
+
readonly actions: readonly string[];
|
|
114
|
+
readonly enabled?: boolean;
|
|
115
|
+
readonly source: "dom" | "media-query" | "input" | "app-state";
|
|
116
|
+
readonly evidence: string;
|
|
117
|
+
}
|
|
118
|
+
export interface GameAccessibilityLabelOptions {
|
|
119
|
+
readonly id?: string;
|
|
120
|
+
readonly targetId: string;
|
|
121
|
+
readonly label: string;
|
|
122
|
+
readonly role?: string;
|
|
123
|
+
readonly live?: boolean;
|
|
124
|
+
}
|
|
125
|
+
export interface GameAccessibilityFocusOptions {
|
|
126
|
+
readonly id?: string;
|
|
127
|
+
readonly scopeId: string;
|
|
128
|
+
readonly label?: string;
|
|
129
|
+
readonly targets?: readonly string[];
|
|
130
|
+
}
|
|
131
|
+
export interface GameAccessibilityPreferenceOptions {
|
|
132
|
+
readonly id?: string;
|
|
133
|
+
readonly enabled?: boolean;
|
|
134
|
+
readonly label?: string;
|
|
135
|
+
}
|
|
136
|
+
export interface GameAccessibilityPauseControlsOptions {
|
|
137
|
+
readonly id?: string;
|
|
138
|
+
readonly label?: string;
|
|
139
|
+
readonly actions?: readonly string[];
|
|
140
|
+
readonly resumeActions?: readonly string[];
|
|
141
|
+
readonly menuId?: string;
|
|
142
|
+
}
|
|
143
|
+
export interface GameAccessibilityRuntimeSettings {
|
|
144
|
+
readonly kind: "aura-game-accessibility-runtime-settings";
|
|
145
|
+
readonly reducedMotion: boolean;
|
|
146
|
+
readonly reducedFlash: boolean;
|
|
147
|
+
readonly highContrast: boolean;
|
|
148
|
+
readonly camera: Pick<GameCameraDirectorOptions, "reducedMotion">;
|
|
149
|
+
readonly effects: Pick<GameEffectsOptions, "reducedMotion" | "reducedFlash">;
|
|
150
|
+
readonly evidence: readonly string[];
|
|
151
|
+
}
|
|
152
|
+
export interface GameAccessibilityRuntimeSettingsOptions {
|
|
153
|
+
readonly reducedMotion?: boolean;
|
|
154
|
+
readonly reducedFlash?: boolean;
|
|
155
|
+
readonly highContrast?: boolean;
|
|
156
|
+
}
|
|
157
|
+
export type GameVec2 = readonly [number, number];
|
|
158
|
+
export type GameInputDeadzoneMode = "axial" | "scaled";
|
|
159
|
+
export interface GameInputAxisSettings {
|
|
160
|
+
readonly deadzone?: number;
|
|
161
|
+
readonly deadzoneMode?: GameInputDeadzoneMode;
|
|
162
|
+
readonly smoothing?: number;
|
|
163
|
+
readonly snap?: boolean;
|
|
164
|
+
readonly scale?: number;
|
|
165
|
+
readonly invert?: boolean;
|
|
166
|
+
}
|
|
167
|
+
export interface GameLoopPlan {
|
|
168
|
+
readonly kind: "aura-game-loop-plan";
|
|
169
|
+
readonly fixedDt: number;
|
|
170
|
+
readonly maxSubSteps: number;
|
|
171
|
+
readonly timeScale: number;
|
|
172
|
+
}
|
|
173
|
+
export interface GameInputAxisBinding extends GameInputAxisSettings {
|
|
174
|
+
readonly negative?: string;
|
|
175
|
+
readonly positive?: string;
|
|
176
|
+
readonly gamepadAxis?: number;
|
|
177
|
+
readonly gamepadIndex?: number;
|
|
178
|
+
readonly pointerDelta?: "x" | "y";
|
|
179
|
+
}
|
|
180
|
+
export interface GameInputOptions {
|
|
181
|
+
readonly actions: Record<string, readonly string[]>;
|
|
182
|
+
readonly axes?: Record<string, GameInputAxisBinding>;
|
|
183
|
+
readonly axisDefaults?: GameInputAxisSettings;
|
|
184
|
+
readonly bufferMs?: number;
|
|
185
|
+
readonly target?: EventTarget;
|
|
186
|
+
readonly autoListen?: boolean;
|
|
187
|
+
readonly pointer?: boolean;
|
|
188
|
+
readonly touch?: boolean;
|
|
189
|
+
readonly gamepad?: boolean | {
|
|
190
|
+
readonly index?: number;
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
export interface GameInputActionState {
|
|
194
|
+
readonly pressed: boolean;
|
|
195
|
+
readonly held: boolean;
|
|
196
|
+
readonly released: boolean;
|
|
197
|
+
readonly buffered: boolean;
|
|
198
|
+
readonly value: number;
|
|
199
|
+
}
|
|
200
|
+
export interface GameInputReplayEvent {
|
|
201
|
+
readonly frame: number;
|
|
202
|
+
readonly time: number;
|
|
203
|
+
readonly type: "press" | "release";
|
|
204
|
+
readonly binding: string;
|
|
205
|
+
}
|
|
206
|
+
export interface GamePointerSnapshot {
|
|
207
|
+
readonly active: boolean;
|
|
208
|
+
readonly x: number;
|
|
209
|
+
readonly y: number;
|
|
210
|
+
readonly dx: number;
|
|
211
|
+
readonly dy: number;
|
|
212
|
+
readonly buttons: readonly number[];
|
|
213
|
+
}
|
|
214
|
+
export interface GamepadSnapshot {
|
|
215
|
+
readonly connected: boolean;
|
|
216
|
+
readonly index?: number;
|
|
217
|
+
readonly axes: readonly number[];
|
|
218
|
+
readonly buttons: readonly string[];
|
|
219
|
+
}
|
|
220
|
+
export interface GameInputSnapshot {
|
|
221
|
+
readonly kind: "aura-game-input-snapshot";
|
|
222
|
+
readonly frame: number;
|
|
223
|
+
readonly time: number;
|
|
224
|
+
readonly activeBindings: readonly string[];
|
|
225
|
+
readonly actions: Record<string, GameInputActionState>;
|
|
226
|
+
readonly axes?: Record<string, number>;
|
|
227
|
+
readonly pointer: GamePointerSnapshot;
|
|
228
|
+
readonly gamepads: readonly GamepadSnapshot[];
|
|
229
|
+
}
|
|
230
|
+
export interface GameInputController {
|
|
231
|
+
readonly kind: "aura-game-input-plan";
|
|
232
|
+
readonly actions: Record<string, readonly string[]>;
|
|
233
|
+
readonly axes: Record<string, GameInputAxisBinding>;
|
|
234
|
+
readonly bufferMs: number;
|
|
235
|
+
update(dt?: number): GameInputSnapshot;
|
|
236
|
+
snapshot(): GameInputSnapshot;
|
|
237
|
+
pressed(action: string): boolean;
|
|
238
|
+
held(action: string): boolean;
|
|
239
|
+
released(action: string): boolean;
|
|
240
|
+
buffered(action: string, windowMs?: number): boolean;
|
|
241
|
+
combo(actions: readonly string[], windowMs?: number): boolean;
|
|
242
|
+
axis(name: string, negativeAction?: string, positiveAction?: string): number;
|
|
243
|
+
press(binding: string): void;
|
|
244
|
+
release(binding: string): void;
|
|
245
|
+
setAction(action: string, held: boolean): void;
|
|
246
|
+
recorded(): readonly GameInputReplayEvent[];
|
|
247
|
+
replay(events: readonly GameInputReplayEvent[], dt?: number): GameInputSnapshot;
|
|
248
|
+
clearReplay(): void;
|
|
249
|
+
dispose(): void;
|
|
250
|
+
}
|
|
251
|
+
export interface GameInputReplayOptions {
|
|
252
|
+
readonly fps?: number;
|
|
253
|
+
readonly seed?: number;
|
|
254
|
+
readonly label?: string;
|
|
255
|
+
}
|
|
256
|
+
export interface GameInputReplayPlan {
|
|
257
|
+
readonly kind: "aura-game-input-replay";
|
|
258
|
+
readonly label?: string;
|
|
259
|
+
readonly fps: number;
|
|
260
|
+
readonly seed: number;
|
|
261
|
+
readonly frameCount: number;
|
|
262
|
+
readonly duration: number;
|
|
263
|
+
readonly checksum: string;
|
|
264
|
+
readonly events: readonly GameInputReplayEvent[];
|
|
265
|
+
}
|
|
266
|
+
export interface GameInputReplayDriverSnapshot {
|
|
267
|
+
readonly kind: "aura-game-input-replay-driver";
|
|
268
|
+
readonly frame: number;
|
|
269
|
+
readonly time: number;
|
|
270
|
+
readonly checksum: string;
|
|
271
|
+
readonly complete: boolean;
|
|
272
|
+
}
|
|
273
|
+
export interface GameInputReplayDriver {
|
|
274
|
+
readonly kind: "aura-game-input-replay-driver";
|
|
275
|
+
readonly replay: GameInputReplayPlan;
|
|
276
|
+
step(dt?: number): GameInputSnapshot;
|
|
277
|
+
seek(frame: number, dt?: number): GameInputSnapshot;
|
|
278
|
+
reset(): void;
|
|
279
|
+
snapshot(): GameInputReplayDriverSnapshot;
|
|
280
|
+
}
|
|
281
|
+
export type GameTouchControlKind = "stick" | "dpad" | "button";
|
|
282
|
+
export type GameTouchControlAnchor = "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
283
|
+
export interface GameTouchSafeArea {
|
|
284
|
+
readonly top?: number;
|
|
285
|
+
readonly right?: number;
|
|
286
|
+
readonly bottom?: number;
|
|
287
|
+
readonly left?: number;
|
|
288
|
+
}
|
|
289
|
+
export interface GameTouchControlRequest {
|
|
290
|
+
readonly id?: string;
|
|
291
|
+
readonly kind?: GameTouchControlKind;
|
|
292
|
+
readonly action?: string;
|
|
293
|
+
readonly label?: string;
|
|
294
|
+
readonly side?: "left" | "right";
|
|
295
|
+
readonly size?: number;
|
|
296
|
+
readonly radius?: number;
|
|
297
|
+
readonly binding?: string;
|
|
298
|
+
}
|
|
299
|
+
export interface GameTouchControlLayoutOptions {
|
|
300
|
+
readonly width: number;
|
|
301
|
+
readonly height: number;
|
|
302
|
+
readonly safeArea?: GameTouchSafeArea;
|
|
303
|
+
readonly scale?: number;
|
|
304
|
+
readonly gap?: number;
|
|
305
|
+
readonly stick?: false | GameTouchControlRequest;
|
|
306
|
+
readonly buttons?: readonly GameTouchControlRequest[];
|
|
307
|
+
}
|
|
308
|
+
export interface GameTouchControlRegion {
|
|
309
|
+
readonly id: string;
|
|
310
|
+
readonly kind: GameTouchControlKind;
|
|
311
|
+
readonly action?: string;
|
|
312
|
+
readonly label: string;
|
|
313
|
+
readonly binding: string;
|
|
314
|
+
readonly anchor: GameTouchControlAnchor;
|
|
315
|
+
readonly center: GameVec2;
|
|
316
|
+
readonly radius: number;
|
|
317
|
+
readonly rect: readonly [number, number, number, number];
|
|
318
|
+
readonly zIndex: number;
|
|
319
|
+
}
|
|
320
|
+
export interface GameTouchControlLayout {
|
|
321
|
+
readonly kind: "aura-game-touch-layout";
|
|
322
|
+
readonly width: number;
|
|
323
|
+
readonly height: number;
|
|
324
|
+
readonly safeArea: Required<GameTouchSafeArea>;
|
|
325
|
+
readonly controls: readonly GameTouchControlRegion[];
|
|
326
|
+
readonly bindings: Record<string, string>;
|
|
327
|
+
}
|
|
328
|
+
export interface GameBounds3 {
|
|
329
|
+
readonly minX?: number;
|
|
330
|
+
readonly maxX?: number;
|
|
331
|
+
readonly minY?: number;
|
|
332
|
+
readonly maxY?: number;
|
|
333
|
+
readonly minZ?: number;
|
|
334
|
+
readonly maxZ?: number;
|
|
335
|
+
}
|
|
336
|
+
export interface GameKinematicMoveCommand {
|
|
337
|
+
readonly x?: number;
|
|
338
|
+
readonly y?: number;
|
|
339
|
+
readonly z?: number;
|
|
340
|
+
readonly axis?: number;
|
|
341
|
+
readonly speed?: number;
|
|
342
|
+
readonly jump?: boolean;
|
|
343
|
+
readonly jumpVelocity?: number;
|
|
344
|
+
readonly dash?: boolean | GameVec3;
|
|
345
|
+
readonly dashSpeed?: number;
|
|
346
|
+
readonly knockback?: GameVec2 | GameVec3;
|
|
347
|
+
}
|
|
348
|
+
export type GameCombatMoveDefinition = Omit<GameCombatMove, "id"> & {
|
|
349
|
+
readonly id?: string;
|
|
350
|
+
};
|
|
351
|
+
export interface GameKinematicBodyOptions {
|
|
352
|
+
readonly id?: string;
|
|
353
|
+
readonly position?: GameVec3;
|
|
354
|
+
readonly velocity?: GameVec3;
|
|
355
|
+
readonly size?: GameVec3;
|
|
356
|
+
readonly collider?: GameCollider;
|
|
357
|
+
readonly gravity?: number | boolean;
|
|
358
|
+
readonly groundY?: number;
|
|
359
|
+
readonly friction?: number;
|
|
360
|
+
readonly maxSpeed?: number;
|
|
361
|
+
readonly jumpVelocity?: number;
|
|
362
|
+
readonly coyoteMs?: number;
|
|
363
|
+
readonly jumpBufferMs?: number;
|
|
364
|
+
readonly bounds?: GameBounds3;
|
|
365
|
+
}
|
|
366
|
+
export interface GameKinematicBodySnapshot {
|
|
367
|
+
readonly kind: "aura-game-kinematic-body";
|
|
368
|
+
readonly id?: string;
|
|
369
|
+
readonly position: GameVec3;
|
|
370
|
+
readonly velocity: GameVec3;
|
|
371
|
+
readonly size: GameVec3;
|
|
372
|
+
readonly collider?: GameCollider;
|
|
373
|
+
readonly grounded: boolean;
|
|
374
|
+
readonly facing: 1 | -1;
|
|
375
|
+
readonly coyoteAvailable?: boolean;
|
|
376
|
+
readonly jumpBuffered?: boolean;
|
|
377
|
+
}
|
|
378
|
+
export interface GameKinematicBody {
|
|
379
|
+
readonly id?: string;
|
|
380
|
+
position: GameVec3;
|
|
381
|
+
velocity: GameVec3;
|
|
382
|
+
readonly size: GameVec3;
|
|
383
|
+
readonly collider?: GameCollider;
|
|
384
|
+
readonly grounded: boolean;
|
|
385
|
+
readonly facing: 1 | -1;
|
|
386
|
+
move(axis: number | GameKinematicMoveCommand, speedOrDt?: number): void | GameKinematicBodySnapshot;
|
|
387
|
+
jump(velocity?: number): boolean;
|
|
388
|
+
requestJump(): void;
|
|
389
|
+
canJump(): boolean;
|
|
390
|
+
consumeJump(velocity?: number): boolean;
|
|
391
|
+
dash(direction: GameVec3, speed?: number): void;
|
|
392
|
+
applyKnockback(velocity: GameVec3): void;
|
|
393
|
+
defineMove(id: string, move: GameCombatMoveDefinition): GameCombatMove;
|
|
394
|
+
attack(moveId: string): GameCombatMove | undefined;
|
|
395
|
+
moves(): readonly GameCombatMove[];
|
|
396
|
+
update(dt: number): GameKinematicBodySnapshot;
|
|
397
|
+
snapToGround(groundY?: number): void;
|
|
398
|
+
bounds(): GameAabb;
|
|
399
|
+
snapshot(): GameKinematicBodySnapshot;
|
|
400
|
+
}
|
|
401
|
+
export interface GameAabb {
|
|
402
|
+
readonly center: GameVec3;
|
|
403
|
+
readonly size: GameVec3;
|
|
404
|
+
readonly min: GameVec3;
|
|
405
|
+
readonly max: GameVec3;
|
|
406
|
+
}
|
|
407
|
+
export interface GameJumpAssistOptions {
|
|
408
|
+
readonly coyoteMs?: number;
|
|
409
|
+
readonly bufferMs?: number;
|
|
410
|
+
}
|
|
411
|
+
export interface GameJumpAssistUpdate {
|
|
412
|
+
readonly grounded: boolean;
|
|
413
|
+
readonly jumpPressed?: boolean;
|
|
414
|
+
readonly jumpRequested?: boolean;
|
|
415
|
+
}
|
|
416
|
+
export interface GameJumpAssistSnapshot {
|
|
417
|
+
readonly kind: "aura-game-jump-assist";
|
|
418
|
+
readonly time: number;
|
|
419
|
+
readonly grounded: boolean;
|
|
420
|
+
readonly coyoteMs: number;
|
|
421
|
+
readonly bufferMs: number;
|
|
422
|
+
readonly lastGroundedAt: number;
|
|
423
|
+
readonly lastJumpRequestedAt: number;
|
|
424
|
+
readonly coyoteAvailable: boolean;
|
|
425
|
+
readonly jumpBuffered: boolean;
|
|
426
|
+
readonly consumed: boolean;
|
|
427
|
+
readonly canJump: boolean;
|
|
428
|
+
}
|
|
429
|
+
export interface GameJumpAssistController {
|
|
430
|
+
readonly kind: "aura-game-jump-assist";
|
|
431
|
+
update(dt: number, state: GameJumpAssistUpdate): GameJumpAssistSnapshot;
|
|
432
|
+
requestJump(): void;
|
|
433
|
+
canJump(): boolean;
|
|
434
|
+
consume(): boolean;
|
|
435
|
+
reset(state?: Partial<GameJumpAssistUpdate>): GameJumpAssistSnapshot;
|
|
436
|
+
snapshot(): GameJumpAssistSnapshot;
|
|
437
|
+
}
|
|
438
|
+
export type GameColliderKind = "box" | "sphere" | "capsule" | "rect";
|
|
439
|
+
export type GameColliderDimension = 2 | 3;
|
|
440
|
+
export type GameColliderAxis = "x" | "y" | "z";
|
|
441
|
+
export type GameColliderPlane = "xy" | "xz" | "yz";
|
|
442
|
+
export interface GameColliderFactoryOptions {
|
|
443
|
+
readonly id?: string;
|
|
444
|
+
readonly center?: GameVec3;
|
|
445
|
+
readonly offset?: GameVec3;
|
|
446
|
+
readonly tags?: readonly string[];
|
|
447
|
+
readonly dimension?: GameColliderDimension;
|
|
448
|
+
readonly sensor?: boolean;
|
|
449
|
+
}
|
|
450
|
+
export interface GameBoxColliderOptions extends GameColliderFactoryOptions {
|
|
451
|
+
readonly size?: GameVec3 | GameVec2;
|
|
452
|
+
readonly width?: number;
|
|
453
|
+
readonly height?: number;
|
|
454
|
+
readonly depth?: number;
|
|
455
|
+
}
|
|
456
|
+
export interface GameSphereColliderOptions extends GameColliderFactoryOptions {
|
|
457
|
+
readonly radius?: number;
|
|
458
|
+
}
|
|
459
|
+
export interface GameCapsuleColliderOptions extends GameColliderFactoryOptions {
|
|
460
|
+
readonly radius?: number;
|
|
461
|
+
readonly height?: number;
|
|
462
|
+
readonly axis?: GameColliderAxis;
|
|
463
|
+
}
|
|
464
|
+
export interface GameRectColliderOptions extends GameColliderFactoryOptions {
|
|
465
|
+
readonly size?: GameVec2;
|
|
466
|
+
readonly width?: number;
|
|
467
|
+
readonly height?: number;
|
|
468
|
+
readonly plane?: GameColliderPlane;
|
|
469
|
+
}
|
|
470
|
+
export interface GameColliderBase {
|
|
471
|
+
readonly id?: string;
|
|
472
|
+
readonly kind: GameColliderKind;
|
|
473
|
+
readonly center: GameVec3;
|
|
474
|
+
readonly offset?: GameVec3;
|
|
475
|
+
readonly tags: readonly string[];
|
|
476
|
+
readonly dimension: GameColliderDimension;
|
|
477
|
+
readonly sensor: boolean;
|
|
478
|
+
}
|
|
479
|
+
export interface GameBoxCollider extends GameColliderBase {
|
|
480
|
+
readonly kind: "box";
|
|
481
|
+
readonly size: GameVec3;
|
|
482
|
+
}
|
|
483
|
+
export interface GameSphereCollider extends GameColliderBase {
|
|
484
|
+
readonly kind: "sphere";
|
|
485
|
+
readonly radius: number;
|
|
486
|
+
}
|
|
487
|
+
export interface GameCapsuleCollider extends GameColliderBase {
|
|
488
|
+
readonly kind: "capsule";
|
|
489
|
+
readonly radius: number;
|
|
490
|
+
readonly height: number;
|
|
491
|
+
readonly axis: GameColliderAxis;
|
|
492
|
+
}
|
|
493
|
+
export interface GameRectCollider extends GameColliderBase {
|
|
494
|
+
readonly kind: "rect";
|
|
495
|
+
readonly size: GameVec2;
|
|
496
|
+
readonly plane: GameColliderPlane;
|
|
497
|
+
}
|
|
498
|
+
export type GameCollider = GameBoxCollider | GameSphereCollider | GameCapsuleCollider | GameRectCollider;
|
|
499
|
+
export interface GameCollisionBox {
|
|
500
|
+
readonly id?: string;
|
|
501
|
+
readonly offset?: GameVec3;
|
|
502
|
+
readonly center?: GameVec3;
|
|
503
|
+
readonly size: GameVec3;
|
|
504
|
+
readonly tags?: readonly string[];
|
|
505
|
+
}
|
|
506
|
+
export interface GameCollisionBoxFactoryOptions {
|
|
507
|
+
readonly id?: string;
|
|
508
|
+
readonly offset?: GameVec2 | GameVec3;
|
|
509
|
+
readonly center?: GameVec2 | GameVec3;
|
|
510
|
+
readonly size?: GameVec2 | GameVec3;
|
|
511
|
+
readonly width?: number;
|
|
512
|
+
readonly height?: number;
|
|
513
|
+
readonly depth?: number;
|
|
514
|
+
readonly tags?: readonly string[];
|
|
515
|
+
}
|
|
516
|
+
export type GameDebugGeometryPrimitive = "box" | "sphere" | "capsule" | "rect";
|
|
517
|
+
export interface GameDebugGeometryOptions {
|
|
518
|
+
readonly color?: string;
|
|
519
|
+
readonly opacity?: number;
|
|
520
|
+
readonly wireframe?: boolean;
|
|
521
|
+
readonly source?: string;
|
|
522
|
+
readonly origin?: GameVec3;
|
|
523
|
+
readonly facing?: 1 | -1;
|
|
524
|
+
readonly mirrorX?: boolean;
|
|
525
|
+
}
|
|
526
|
+
export interface GameDebugGeometryNode {
|
|
527
|
+
readonly kind: "aura-game-debug-geometry";
|
|
528
|
+
readonly id: string;
|
|
529
|
+
readonly primitive: GameDebugGeometryPrimitive;
|
|
530
|
+
readonly position: GameVec3;
|
|
531
|
+
readonly scale: GameVec3;
|
|
532
|
+
readonly radius?: number;
|
|
533
|
+
readonly height?: number;
|
|
534
|
+
readonly axis?: GameColliderAxis;
|
|
535
|
+
readonly plane?: GameColliderPlane;
|
|
536
|
+
readonly color: string;
|
|
537
|
+
readonly opacity: number;
|
|
538
|
+
readonly wireframe: boolean;
|
|
539
|
+
readonly source: string;
|
|
540
|
+
readonly tags: readonly string[];
|
|
541
|
+
readonly aabb: GameAabb;
|
|
542
|
+
}
|
|
543
|
+
export interface GameCombatActorOptions {
|
|
544
|
+
readonly id: string;
|
|
545
|
+
readonly team?: string;
|
|
546
|
+
readonly position?: GameVec3;
|
|
547
|
+
readonly facing?: 1 | -1;
|
|
548
|
+
readonly health?: number;
|
|
549
|
+
readonly guard?: number;
|
|
550
|
+
readonly meter?: number;
|
|
551
|
+
readonly hurtboxes?: readonly GameCollisionBox[];
|
|
552
|
+
readonly guardboxes?: readonly GameCollisionBox[];
|
|
553
|
+
readonly pushboxes?: readonly GameCollisionBox[];
|
|
554
|
+
readonly guarding?: boolean;
|
|
555
|
+
}
|
|
556
|
+
export interface GameCombatActorSnapshot extends Required<Omit<GameCombatActorOptions, "position" | "hurtboxes" | "guardboxes" | "pushboxes" | "facing">> {
|
|
557
|
+
readonly position: GameVec3;
|
|
558
|
+
readonly facing: 1 | -1;
|
|
559
|
+
readonly hurtboxes: readonly GameCollisionBox[];
|
|
560
|
+
readonly guardboxes: readonly GameCollisionBox[];
|
|
561
|
+
readonly pushboxes: readonly GameCollisionBox[];
|
|
562
|
+
readonly stun: number;
|
|
563
|
+
readonly recovery: number;
|
|
564
|
+
}
|
|
565
|
+
export interface GameCombatMove {
|
|
566
|
+
readonly id: string;
|
|
567
|
+
readonly name?: string;
|
|
568
|
+
readonly startup?: number;
|
|
569
|
+
readonly active?: number;
|
|
570
|
+
readonly damage?: number;
|
|
571
|
+
readonly guardDamage?: number;
|
|
572
|
+
readonly meterGain?: number;
|
|
573
|
+
readonly hitStop?: number;
|
|
574
|
+
readonly hitStun?: number;
|
|
575
|
+
readonly blockStun?: number;
|
|
576
|
+
readonly recovery?: number;
|
|
577
|
+
readonly knockback?: GameVec3;
|
|
578
|
+
readonly activeFrames?: readonly [number, number];
|
|
579
|
+
readonly durationFrames?: number;
|
|
580
|
+
readonly hitbox?: GameCollisionBox;
|
|
581
|
+
readonly hitboxes?: readonly GameCollisionBox[];
|
|
582
|
+
readonly blockable?: boolean;
|
|
583
|
+
}
|
|
584
|
+
export type GameCombatEventType = "hit" | "blocked" | "whiff" | "push";
|
|
585
|
+
export interface GameCombatEvent {
|
|
586
|
+
readonly type: GameCombatEventType;
|
|
587
|
+
readonly frame: number;
|
|
588
|
+
readonly time: number;
|
|
589
|
+
readonly attackerId: string;
|
|
590
|
+
readonly targetId?: string;
|
|
591
|
+
readonly moveId?: string;
|
|
592
|
+
readonly damage?: number;
|
|
593
|
+
readonly guardDamage?: number;
|
|
594
|
+
readonly hitStop?: number;
|
|
595
|
+
readonly stun?: number;
|
|
596
|
+
readonly knockback?: GameVec3;
|
|
597
|
+
readonly position: GameVec3;
|
|
598
|
+
}
|
|
599
|
+
export interface GameCombatActiveAttackSnapshot {
|
|
600
|
+
readonly attackerId: string;
|
|
601
|
+
readonly moveId: string;
|
|
602
|
+
readonly frame: number;
|
|
603
|
+
readonly activeFrames: readonly [number, number];
|
|
604
|
+
readonly durationFrames: number;
|
|
605
|
+
readonly active: boolean;
|
|
606
|
+
readonly hitboxes: readonly GameCollisionBox[];
|
|
607
|
+
readonly hitTargets: readonly string[];
|
|
608
|
+
}
|
|
609
|
+
export interface GameCombatWorldSnapshot {
|
|
610
|
+
readonly kind: "aura-game-combat-world";
|
|
611
|
+
readonly frame: number;
|
|
612
|
+
readonly time: number;
|
|
613
|
+
readonly actors: readonly GameCombatActorSnapshot[];
|
|
614
|
+
readonly activeAttacks: readonly GameCombatActiveAttackSnapshot[];
|
|
615
|
+
readonly events: readonly GameCombatEvent[];
|
|
616
|
+
}
|
|
617
|
+
export interface GameCombatWorld {
|
|
618
|
+
addActor(actor: GameCombatActorOptions): void;
|
|
619
|
+
setActor(id: string, patch: Partial<GameCombatActorOptions>): void;
|
|
620
|
+
removeActor(id: string): void;
|
|
621
|
+
defineMove(actorId: string, move: GameCombatMove): void;
|
|
622
|
+
attack(attackerId: string, move: string | GameCombatMove): void;
|
|
623
|
+
beginAttack(attackerId: string, move: GameCombatMove): void;
|
|
624
|
+
update(dt: number): GameCombatWorldSnapshot;
|
|
625
|
+
step(dt: number): readonly GameCombatEvent[];
|
|
626
|
+
events(): readonly GameCombatEvent[];
|
|
627
|
+
consumeEvents(): readonly GameCombatEvent[];
|
|
628
|
+
snapshot(): GameCombatWorldSnapshot;
|
|
629
|
+
clear(): void;
|
|
630
|
+
}
|
|
631
|
+
export interface GameFighting2DRulesOptions {
|
|
632
|
+
readonly gravity?: number;
|
|
633
|
+
readonly roundSeconds?: number;
|
|
634
|
+
readonly maxHealth?: number;
|
|
635
|
+
readonly maxGuard?: number;
|
|
636
|
+
readonly maxMeter?: number;
|
|
637
|
+
readonly stageBounds?: GameBounds3;
|
|
638
|
+
readonly fps?: number;
|
|
639
|
+
readonly pushboxSeparation?: boolean;
|
|
640
|
+
}
|
|
641
|
+
export interface GameFighting2DRules {
|
|
642
|
+
readonly kind: "aura-game-fighting-2d-rules";
|
|
643
|
+
readonly gravity: number;
|
|
644
|
+
readonly roundSeconds: number;
|
|
645
|
+
readonly maxHealth: number;
|
|
646
|
+
readonly maxGuard: number;
|
|
647
|
+
readonly maxMeter: number;
|
|
648
|
+
readonly stageBounds: GameBounds3;
|
|
649
|
+
readonly fps: number;
|
|
650
|
+
readonly pushboxSeparation: boolean;
|
|
651
|
+
}
|
|
652
|
+
export interface GameCombatWorldOptions {
|
|
653
|
+
readonly fighters?: readonly (GameKinematicBody | GameCombatActorOptions)[];
|
|
654
|
+
readonly rules?: GameFighting2DRules;
|
|
655
|
+
readonly stageBounds?: GameBounds3;
|
|
656
|
+
}
|
|
657
|
+
export type GameCameraDirectorMode = "side-fighter" | "follow" | "fixed";
|
|
658
|
+
export interface GameCameraDirectorOptions {
|
|
659
|
+
readonly targetIds?: readonly string[];
|
|
660
|
+
readonly mode?: GameCameraDirectorMode;
|
|
661
|
+
readonly targetY?: number;
|
|
662
|
+
readonly distance?: number;
|
|
663
|
+
readonly baseFov?: number;
|
|
664
|
+
readonly minZoom?: number;
|
|
665
|
+
readonly maxZoom?: number;
|
|
666
|
+
readonly bounds?: GameBounds3;
|
|
667
|
+
readonly stageBounds?: GameBounds3;
|
|
668
|
+
readonly impactShake?: boolean;
|
|
669
|
+
readonly smoothing?: number;
|
|
670
|
+
readonly deadZone?: number;
|
|
671
|
+
readonly reducedMotion?: boolean;
|
|
672
|
+
}
|
|
673
|
+
export interface GameCameraTarget {
|
|
674
|
+
readonly id?: string;
|
|
675
|
+
readonly position: GameVec3;
|
|
676
|
+
}
|
|
677
|
+
export interface GameCameraSnapshot {
|
|
678
|
+
readonly kind: "aura-game-camera-director";
|
|
679
|
+
readonly position: GameVec3;
|
|
680
|
+
readonly target: GameVec3;
|
|
681
|
+
readonly fov: number;
|
|
682
|
+
readonly zoom: number;
|
|
683
|
+
readonly shake: number;
|
|
684
|
+
readonly reducedMotion: boolean;
|
|
685
|
+
readonly mode?: GameCameraDirectorMode;
|
|
686
|
+
readonly targetIds?: readonly string[];
|
|
687
|
+
}
|
|
688
|
+
export interface GameCameraDirector {
|
|
689
|
+
update(dt: number, targets: readonly GameCameraTarget[]): GameCameraSnapshot;
|
|
690
|
+
impact(intensity?: number, duration?: number): void;
|
|
691
|
+
special(target?: GameVec3, duration?: number): void;
|
|
692
|
+
snapshot(): GameCameraSnapshot;
|
|
693
|
+
}
|
|
694
|
+
export type GameEffectKind = "hit-spark" | "block-spark" | "impact-decal" | "ground-dust" | "dash-trail" | "slash-trail" | "impact-flash" | "aura-burst" | "shockwave" | "ring-shockwave" | "super-flash";
|
|
695
|
+
export interface GameEffectsOptions {
|
|
696
|
+
readonly poolSize?: number;
|
|
697
|
+
readonly reducedMotion?: boolean;
|
|
698
|
+
readonly reducedFlash?: boolean;
|
|
699
|
+
readonly sparks?: GameEffectPreset;
|
|
700
|
+
readonly trails?: GameEffectPreset;
|
|
701
|
+
readonly superBurst?: GameEffectPreset;
|
|
702
|
+
readonly presets?: Record<string, GameEffectPreset>;
|
|
703
|
+
}
|
|
704
|
+
export interface GameEffectOptions {
|
|
705
|
+
readonly color?: string;
|
|
706
|
+
readonly intensity?: number;
|
|
707
|
+
readonly duration?: number;
|
|
708
|
+
readonly radius?: number;
|
|
709
|
+
readonly ownerId?: string;
|
|
710
|
+
readonly attachment?: GameEffectAttachment;
|
|
711
|
+
}
|
|
712
|
+
export interface GameEffectPreset {
|
|
713
|
+
readonly kind: GameEffectKind;
|
|
714
|
+
readonly options?: GameEffectOptions;
|
|
715
|
+
}
|
|
716
|
+
export interface GameEffectAttachment {
|
|
717
|
+
readonly id?: string;
|
|
718
|
+
readonly targetId?: string;
|
|
719
|
+
readonly offset?: GameVec3;
|
|
720
|
+
readonly getPosition?: () => GameVec3;
|
|
721
|
+
}
|
|
722
|
+
export interface GameEffectInstance extends Required<Omit<GameEffectOptions, "ownerId" | "attachment">> {
|
|
723
|
+
readonly id: string;
|
|
724
|
+
readonly kind: GameEffectKind;
|
|
725
|
+
readonly position: GameVec3;
|
|
726
|
+
readonly ownerId?: string;
|
|
727
|
+
readonly attachmentId?: string;
|
|
728
|
+
readonly attachmentOffset?: GameVec3;
|
|
729
|
+
readonly age: number;
|
|
730
|
+
}
|
|
731
|
+
export interface GameEffectsSnapshot {
|
|
732
|
+
readonly kind: "aura-game-effects";
|
|
733
|
+
readonly active: number;
|
|
734
|
+
readonly spawned: number;
|
|
735
|
+
readonly pooled: number;
|
|
736
|
+
readonly reducedMotion: boolean;
|
|
737
|
+
readonly reducedFlash: boolean;
|
|
738
|
+
readonly effects: readonly GameEffectInstance[];
|
|
739
|
+
}
|
|
740
|
+
export interface GameEffectsController {
|
|
741
|
+
spawn(kind: GameEffectKind, position: GameVec3, options?: GameEffectOptions): GameEffectInstance;
|
|
742
|
+
emit(events: readonly GameCombatEvent[], options?: GameEffectOptions): readonly GameEffectInstance[];
|
|
743
|
+
hitSpark(position: GameVec3, options?: GameEffectOptions): GameEffectInstance;
|
|
744
|
+
blockSpark(position: GameVec3, options?: GameEffectOptions): GameEffectInstance;
|
|
745
|
+
impactDecal(position: GameVec3, options?: GameEffectOptions): GameEffectInstance;
|
|
746
|
+
groundDust(position: GameVec3, options?: GameEffectOptions): GameEffectInstance;
|
|
747
|
+
dashTrail(position: GameVec3, options?: GameEffectOptions): GameEffectInstance;
|
|
748
|
+
slashTrail(position: GameVec3, options?: GameEffectOptions): GameEffectInstance;
|
|
749
|
+
impactFlash(position: GameVec3, options?: GameEffectOptions): GameEffectInstance;
|
|
750
|
+
auraBurst(position: GameVec3, options?: GameEffectOptions): GameEffectInstance;
|
|
751
|
+
shockwave(position: GameVec3, options?: GameEffectOptions): GameEffectInstance;
|
|
752
|
+
ringShockwave(position: GameVec3, options?: GameEffectOptions): GameEffectInstance;
|
|
753
|
+
superFlash(position: GameVec3, options?: GameEffectOptions): GameEffectInstance;
|
|
754
|
+
update(dt: number): GameEffectsSnapshot;
|
|
755
|
+
snapshot(): GameEffectsSnapshot;
|
|
756
|
+
nodes(): readonly any[];
|
|
757
|
+
clear(): void;
|
|
758
|
+
}
|
|
759
|
+
export interface GameDebugOverlayMetric {
|
|
760
|
+
readonly id: string;
|
|
761
|
+
readonly label: string;
|
|
762
|
+
readonly value: string | number | boolean;
|
|
763
|
+
readonly severity?: "info" | "warn" | "error";
|
|
764
|
+
}
|
|
765
|
+
export interface GameDebugOverlaySection {
|
|
766
|
+
readonly id: string;
|
|
767
|
+
readonly title: string;
|
|
768
|
+
readonly metrics: readonly GameDebugOverlayMetric[];
|
|
769
|
+
}
|
|
770
|
+
export interface GameDebugOverlayOptions {
|
|
771
|
+
readonly runtime?: {
|
|
772
|
+
readonly frame: number;
|
|
773
|
+
readonly time: number;
|
|
774
|
+
readonly paused?: boolean;
|
|
775
|
+
};
|
|
776
|
+
readonly input?: GameInputController | GameInputSnapshot;
|
|
777
|
+
readonly bodies?: readonly GameKinematicBody[];
|
|
778
|
+
readonly bodySnapshots?: readonly GameKinematicBodySnapshot[];
|
|
779
|
+
readonly combat?: GameCombatWorld | GameCombatWorldSnapshot;
|
|
780
|
+
readonly effects?: GameEffectsController | GameEffectsSnapshot;
|
|
781
|
+
readonly camera?: GameCameraDirector | GameCameraSnapshot;
|
|
782
|
+
readonly colliders?: readonly GameCollider[];
|
|
783
|
+
readonly hitboxes?: readonly GameCollisionBox[];
|
|
784
|
+
readonly labels?: Record<string, string | number | boolean>;
|
|
785
|
+
readonly warnings?: readonly string[];
|
|
786
|
+
}
|
|
787
|
+
export interface GameDebugOverlayData {
|
|
788
|
+
readonly kind: "aura-game-debug-overlay";
|
|
789
|
+
readonly frame: number;
|
|
790
|
+
readonly time: number;
|
|
791
|
+
readonly paused: boolean;
|
|
792
|
+
readonly sections: readonly GameDebugOverlaySection[];
|
|
793
|
+
readonly geometry: readonly GameDebugGeometryNode[];
|
|
794
|
+
readonly labels: Record<string, string | number | boolean>;
|
|
795
|
+
readonly warnings: readonly string[];
|
|
796
|
+
}
|
|
797
|
+
export type GameDebugScenePrimitive = "box" | "sphere" | "capsule" | "plane";
|
|
798
|
+
export interface GameDebugSceneNode {
|
|
799
|
+
readonly kind: "primitive" | "label";
|
|
800
|
+
readonly primitive?: GameDebugScenePrimitive;
|
|
801
|
+
readonly name: string;
|
|
802
|
+
readonly position: GameVec3;
|
|
803
|
+
readonly scale?: number | GameVec3;
|
|
804
|
+
readonly material?: {
|
|
805
|
+
readonly color: string;
|
|
806
|
+
readonly emissive?: string;
|
|
807
|
+
readonly emissiveIntensity?: number;
|
|
808
|
+
readonly opacity?: number;
|
|
809
|
+
readonly transparent?: boolean;
|
|
810
|
+
readonly wireframe?: boolean;
|
|
811
|
+
};
|
|
812
|
+
readonly text?: string;
|
|
813
|
+
readonly color?: string;
|
|
814
|
+
readonly background?: string;
|
|
815
|
+
readonly size?: number;
|
|
816
|
+
readonly runtime?: {
|
|
817
|
+
readonly id: string;
|
|
818
|
+
readonly mutable: boolean;
|
|
819
|
+
readonly tags: readonly string[];
|
|
820
|
+
};
|
|
821
|
+
readonly debug?: {
|
|
822
|
+
readonly source: string;
|
|
823
|
+
readonly tags: readonly string[];
|
|
824
|
+
readonly aabb: GameAabb;
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
export interface GameDebugSceneNodeOptions {
|
|
828
|
+
readonly runtimePrefix?: string;
|
|
829
|
+
readonly includeLabels?: boolean;
|
|
830
|
+
}
|
|
831
|
+
export interface GameCombatEventRuntimeBridgeOptions {
|
|
832
|
+
readonly combat?: GameCombatWorld | GameCombatWorldSnapshot;
|
|
833
|
+
readonly effects?: GameEffectsController;
|
|
834
|
+
readonly camera?: GameCameraDirector;
|
|
835
|
+
readonly hudBindings?: readonly GameHudBinding[];
|
|
836
|
+
readonly round?: Record<string, unknown>;
|
|
837
|
+
readonly rules?: Record<string, unknown>;
|
|
838
|
+
readonly input?: GameInputController | GameInputSnapshot;
|
|
839
|
+
readonly runtime?: Record<string, unknown>;
|
|
840
|
+
readonly debug?: Record<string, unknown>;
|
|
841
|
+
readonly appState?: Record<string, unknown>;
|
|
842
|
+
}
|
|
843
|
+
export interface GameCombatEventRuntimeBridgeResult {
|
|
844
|
+
readonly kind: "aura-game-combat-event-runtime-bridge";
|
|
845
|
+
readonly events: readonly GameCombatEvent[];
|
|
846
|
+
readonly effectIds: readonly string[];
|
|
847
|
+
readonly cameraImpacts: number;
|
|
848
|
+
readonly hud?: GameHudSnapshot;
|
|
849
|
+
}
|
|
850
|
+
export declare function createGameLoopPlan(options?: Partial<Omit<GameLoopPlan, "kind">>): GameLoopPlan;
|
|
851
|
+
export declare function createGameJumpAssist(options?: GameJumpAssistOptions): GameJumpAssistController;
|
|
852
|
+
export declare function createGameInputReplay(events: readonly GameInputReplayEvent[], options?: GameInputReplayOptions): GameInputReplayPlan;
|
|
853
|
+
export declare function gameInputReplayEventsAt(replay: GameInputReplayPlan, frame: number): readonly GameInputReplayEvent[];
|
|
854
|
+
export declare function createGameInputReplayDriver(input: GameInputController, replay: GameInputReplayPlan): GameInputReplayDriver;
|
|
855
|
+
export declare function createGameTouchControlLayout(options: GameTouchControlLayoutOptions): GameTouchControlLayout;
|
|
856
|
+
export declare function createGameInput(options: GameInputOptions): GameInputController;
|
|
857
|
+
export declare function createGameKinematicBody(options?: GameKinematicBodyOptions): GameKinematicBody;
|
|
858
|
+
export declare function createGameFighting2DRules(options?: GameFighting2DRulesOptions): GameFighting2DRules;
|
|
859
|
+
export declare function createCombatWorld(options?: GameCombatWorldOptions): GameCombatWorld;
|
|
860
|
+
export declare function createGameCameraDirector(options?: GameCameraDirectorOptions): GameCameraDirector;
|
|
861
|
+
export declare function createGameEffects(options?: GameEffectsOptions): GameEffectsController;
|
|
862
|
+
export declare function applyGameCombatEventsToRuntime(events: readonly GameCombatEvent[], options?: GameCombatEventRuntimeBridgeOptions): GameCombatEventRuntimeBridgeResult;
|
|
863
|
+
export declare function createGameBoxCollider(options?: GameBoxColliderOptions): GameBoxCollider;
|
|
864
|
+
export declare function createGameSphereCollider(options?: GameSphereColliderOptions): GameSphereCollider;
|
|
865
|
+
export declare function createGameCapsuleCollider(options?: GameCapsuleColliderOptions): GameCapsuleCollider;
|
|
866
|
+
export declare function createGameRectCollider(options?: GameRectColliderOptions): GameRectCollider;
|
|
867
|
+
export declare const gameColliders: {
|
|
868
|
+
readonly box: typeof createGameBoxCollider;
|
|
869
|
+
readonly sphere: typeof createGameSphereCollider;
|
|
870
|
+
readonly capsule: typeof createGameCapsuleCollider;
|
|
871
|
+
readonly rect: typeof createGameRectCollider;
|
|
872
|
+
};
|
|
873
|
+
export declare function createGameCollisionBox(options?: GameCollisionBoxFactoryOptions, tag?: string): GameCollisionBox;
|
|
874
|
+
export declare function createGameHitboxRect(options?: GameCollisionBoxFactoryOptions): GameCollisionBox;
|
|
875
|
+
export declare function createGameHurtboxRect(options?: GameCollisionBoxFactoryOptions): GameCollisionBox;
|
|
876
|
+
export declare function createGameGuardboxRect(options?: GameCollisionBoxFactoryOptions): GameCollisionBox;
|
|
877
|
+
export declare function createGamePushboxRect(options?: GameCollisionBoxFactoryOptions): GameCollisionBox;
|
|
878
|
+
export declare const gameHitboxes: {
|
|
879
|
+
readonly rect: typeof createGameHitboxRect;
|
|
880
|
+
readonly box: typeof createGameHitboxRect;
|
|
881
|
+
};
|
|
882
|
+
export declare const gameHurtboxes: {
|
|
883
|
+
readonly rect: typeof createGameHurtboxRect;
|
|
884
|
+
readonly box: typeof createGameHurtboxRect;
|
|
885
|
+
};
|
|
886
|
+
export declare const gameGuardboxes: {
|
|
887
|
+
readonly rect: typeof createGameGuardboxRect;
|
|
888
|
+
readonly box: typeof createGameGuardboxRect;
|
|
889
|
+
};
|
|
890
|
+
export declare const gamePushboxes: {
|
|
891
|
+
readonly rect: typeof createGamePushboxRect;
|
|
892
|
+
readonly box: typeof createGamePushboxRect;
|
|
893
|
+
};
|
|
894
|
+
export declare const gameTriggerVolumes: {
|
|
895
|
+
readonly box: (options?: GameBoxColliderOptions) => GameBoxCollider;
|
|
896
|
+
readonly sphere: (options?: GameSphereColliderOptions) => GameSphereCollider;
|
|
897
|
+
readonly capsule: (options?: GameCapsuleColliderOptions) => GameCapsuleCollider;
|
|
898
|
+
readonly rect: (options?: GameRectColliderOptions) => GameRectCollider;
|
|
899
|
+
};
|
|
900
|
+
export declare const gameEffectPresets: {
|
|
901
|
+
readonly hitSpark: (options?: GameEffectOptions) => GameEffectPreset;
|
|
902
|
+
readonly blockSpark: (options?: GameEffectOptions) => GameEffectPreset;
|
|
903
|
+
readonly groundDust: (options?: GameEffectOptions) => GameEffectPreset;
|
|
904
|
+
readonly dashTrail: (options?: GameEffectOptions) => GameEffectPreset;
|
|
905
|
+
readonly slashTrail: (options?: GameEffectOptions) => GameEffectPreset;
|
|
906
|
+
readonly shockwave: (options?: GameEffectOptions) => GameEffectPreset;
|
|
907
|
+
readonly auraBurst: (options?: GameEffectOptions) => GameEffectPreset;
|
|
908
|
+
readonly superBurst: (options?: GameEffectOptions) => GameEffectPreset;
|
|
909
|
+
};
|
|
910
|
+
export declare function gameColliderAabb(collider: GameCollider): GameAabb;
|
|
911
|
+
export declare function createGameColliderDebugGeometry(colliders: readonly GameCollider[], options?: GameDebugGeometryOptions): readonly GameDebugGeometryNode[];
|
|
912
|
+
export declare function createGameHitboxDebugGeometry(hitboxes: readonly GameCollisionBox[], options?: GameDebugGeometryOptions): readonly GameDebugGeometryNode[];
|
|
913
|
+
export declare function createGameCombatDebugGeometry(snapshot: GameCombatWorldSnapshot, options?: GameDebugGeometryOptions): readonly GameDebugGeometryNode[];
|
|
914
|
+
export declare function createGameDebugOverlayData(options?: GameDebugOverlayOptions): GameDebugOverlayData;
|
|
915
|
+
export declare function createGameDebugSceneNodes(debug: GameDebugOverlayData | readonly GameDebugGeometryNode[], options?: GameDebugSceneNodeOptions): readonly GameDebugSceneNode[];
|
|
916
|
+
export declare function createGameHudHealthBinding(options: GameHudActorBindingOptions): GameHudBinding;
|
|
917
|
+
export declare function createGameHudMeterBinding(options: GameHudActorBindingOptions): GameHudBinding;
|
|
918
|
+
export declare function createGameHudTimerBinding(options?: GameHudTimerBindingOptions): GameHudBinding;
|
|
919
|
+
export declare function createGameHudComboBinding(options?: GameHudComboBindingOptions): GameHudBinding;
|
|
920
|
+
export declare function createGameHudRoundBinding(options?: GameHudRoundBindingOptions): GameHudBinding;
|
|
921
|
+
export declare function createGameHudDebugToggleBinding(options?: GameHudDebugToggleBindingOptions): GameHudBinding;
|
|
922
|
+
export declare function createGameHudBindings(bindings: readonly GameHudBinding[]): readonly GameHudBinding[];
|
|
923
|
+
export declare function createGameHudSnapshot(options: GameHudSnapshotOptions): GameHudSnapshot;
|
|
924
|
+
export declare function createGameAccessibilityLabel(options: GameAccessibilityLabelOptions): GameAccessibilitySource;
|
|
925
|
+
export declare function createGameAccessibilityFocus(options: GameAccessibilityFocusOptions): GameAccessibilitySource;
|
|
926
|
+
export declare function createGameReducedMotionSource(options?: GameAccessibilityPreferenceOptions): GameAccessibilitySource;
|
|
927
|
+
export declare function createGameReducedFlashSource(options?: GameAccessibilityPreferenceOptions): GameAccessibilitySource;
|
|
928
|
+
export declare function createGameHighContrastSource(options?: GameAccessibilityPreferenceOptions): GameAccessibilitySource;
|
|
929
|
+
export declare function createGamePauseControlsSource(options?: GameAccessibilityPauseControlsOptions): GameAccessibilitySource;
|
|
930
|
+
export declare function createGameAccessibilityRuntimeSettings(sources?: readonly GameAccessibilitySource[], options?: GameAccessibilityRuntimeSettingsOptions): GameAccessibilityRuntimeSettings;
|
|
931
|
+
//# sourceMappingURL=GameRuntime.d.ts.map
|