@aura3d/engine 1.0.3 → 1.0.6
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 +338 -14
- 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/AnimationStateGraph.d.ts +2 -0
- package/dist/animation/AnimationStateGraph.d.ts.map +1 -0
- package/dist/animation/AnimationStateGraph.js +2 -0
- package/dist/animation/AnimationStateGraph.js.map +1 -0
- package/dist/animation/AnimationStateMachine.d.ts +16 -0
- package/dist/animation/AnimationStateMachine.d.ts.map +1 -1
- package/dist/animation/AnimationStateMachine.js +69 -7
- package/dist/animation/AnimationStateMachine.js.map +1 -1
- 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 +17 -1
- package/dist/animation/index.d.ts.map +1 -1
- package/dist/animation/index.js +12 -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 +225 -8
- package/dist/aura3d-cli/cli.js.map +1 -1
- package/dist/aura3d-cli/index.d.ts +283 -3
- package/dist/aura3d-cli/index.d.ts.map +1 -1
- package/dist/aura3d-cli/index.js +1028 -4
- package/dist/aura3d-cli/index.js.map +1 -1
- package/dist/aura3d-cli/pull-bridge.d.ts +108 -0
- package/dist/aura3d-cli/pull-bridge.d.ts.map +1 -0
- package/dist/aura3d-cli/pull-bridge.js +333 -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/GameAppRuntime.d.ts +62 -0
- package/dist/engine/agent-api/GameAppRuntime.d.ts.map +1 -0
- package/dist/engine/agent-api/GameAppRuntime.js +189 -0
- package/dist/engine/agent-api/GameAppRuntime.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 +1 -0
- package/dist/engine/agent-api/humanoid-walk-runtime.d.ts.map +1 -1
- package/dist/engine/agent-api/index.d.ts +495 -1
- package/dist/engine/agent-api/index.d.ts.map +1 -1
- package/dist/engine/agent-api/index.js +752 -6
- package/dist/engine/agent-api/index.js.map +1 -1
- package/dist/engine/agent-api/product-viewer-runtime.d.ts.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 +250 -0
- package/dist/physics/HitboxWorld.d.ts.map +1 -0
- package/dist/physics/HitboxWorld.js +771 -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 +203 -118
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/engine/src/agent-api/game-kits/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,cAAc,YAAY,CAAC;AAE3B,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,QAAQ;CACA,CAAC"}
|
|
@@ -14,6 +14,7 @@ export declare const character: {
|
|
|
14
14
|
readonly lowPolyHumanoid: (options?: import("./index.js").AuraPrimitiveHumanoidPrefabOptions) => readonly import("./index.js").AuraSceneNode[];
|
|
15
15
|
readonly authoredHumanoid: (options?: import("./index.js").AuraPrimitiveHumanoidPrefabOptions) => readonly import("./index.js").AuraSceneNode[];
|
|
16
16
|
readonly primitiveHumanoid: (options?: import("./index.js").AuraPrimitiveHumanoidPrefabOptions) => readonly import("./index.js").AuraSceneNode[];
|
|
17
|
+
readonly performance: typeof import("./CartoonPerformance.js").createCartoonPerformance;
|
|
17
18
|
readonly importedRigRuntime: (options: import("@aura3d/assets").GLTFSceneAnimationRuntimeOptions) => Promise<import("@aura3d/assets").GLTFSceneAnimationRuntime>;
|
|
18
19
|
readonly visualQA: (nodes: readonly import("./index.js").AuraSceneNode[]) => import("./index.js").AuraCharacterVisualQAResult;
|
|
19
20
|
readonly validatePrimitiveHumanoid: (nodes: readonly import("./index.js").AuraSceneNode[]) => import("./index.js").AuraCharacterVisualQAResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"humanoid-walk-runtime.d.ts","sourceRoot":"","sources":["../../../../../packages/engine/src/agent-api/humanoid-walk-runtime.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,OAAO,EACP,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,EACb,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,aAAa,EACd,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,OAAO,EACP,aAAa,EACb,oBAAoB,EACrB,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,gBAAgB,GAAG,MAAM,CAAC;CAC1G;AAED,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;AACjD,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAEhD,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"humanoid-walk-runtime.d.ts","sourceRoot":"","sources":["../../../../../packages/engine/src/agent-api/humanoid-walk-runtime.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,OAAO,EACP,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,EACb,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,aAAa,EACd,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,OAAO,EACP,aAAa,EACb,oBAAoB,EACrB,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,gBAAgB,GAAG,MAAM,CAAC;CAC1G;AAED,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;AACjD,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAEhD,eAAO,MAAM,SAAS;;;;;;;;;;;;CAAgB,CAAC;AAEvC,eAAO,MAAM,SAAS;sCACE,mBAAmB,KAAQ,oBAAoB;CAG7D,CAAC;AAEX,wBAAgB,YAAY,CAAC,OAAO,GAAE,mBAAwB,GAAG,oBAAoB,CAEpF"}
|
|
@@ -1,6 +1,48 @@
|
|
|
1
1
|
import { type Collider, type ColliderDescriptor, type CollisionEvent, type Constraint, type ConstraintDescriptor, type Contact, type DebugLine, type PhysicsBackendSelection, type PhysicsShape, type PhysicsSnapshot, type PhysicsWorldDescriptor, type RaycastHit, type RaycastOptions, type RigidBody, type RigidBodyDescriptor, type RigidBodyType, type ScenePhysicsNode, type SphereCastHit } from "@aura3d/physics";
|
|
2
2
|
import type { GLTFSceneAnimationRuntime, GLTFSceneAnimationRuntimeOptions } from "@aura3d/assets/browser";
|
|
3
|
+
import type { AnimationPose } from "@aura3d/animation";
|
|
4
|
+
import type { GameHudBindingKind, GameRuntimeSubsystemOwnership } from "./GameRuntime";
|
|
5
|
+
import { createFrameLoop } from "./FrameLoop";
|
|
6
|
+
import { createCombatWorld, createGameCameraDirector, createGameEffects, applyGameCombatEventsToRuntime, createGameAccessibilityFocus, createGameAccessibilityLabel, createGameAccessibilityRuntimeSettings, createGameHighContrastSource, createGameHudBindings, createGameHudComboBinding, createGameHudDebugToggleBinding, createGameHudHealthBinding, createGameHudMeterBinding, createGameHudRoundBinding, createGameHudSnapshot, createGameHudTimerBinding, createGameBoxCollider, createGameCapsuleCollider, createGameColliderDebugGeometry, createGameCombatDebugGeometry, createGameDebugOverlayData, createGameDebugSceneNodes, createGameHitboxDebugGeometry, createGameFighting2DRules, createGameInput, createGameInputReplay, createGameInputReplayDriver, createGameJumpAssist, createGameKinematicBody, createGamePauseControlsSource, createGameRectCollider, createGameReducedFlashSource, createGameReducedMotionSource, createGameSphereCollider, createGameTouchControlLayout, gameColliderAabb, gameInputReplayEventsAt, type GameInputOptions } from "./GameRuntime";
|
|
7
|
+
import { collectGameRuntimeEvidence as collectGameRuntimeEvidenceV105, type GameRuntimeEvidence, type GameRuntimeEvidenceOptions, type GameRuntimeSourceEvidence } from "./GameEvidence";
|
|
8
|
+
import { type AuraRuntimeNodeAnimationPoseBindingMetadata, type AuraRuntimeNodeAnimationBindingMetadata, type AuraRuntimeNodeBounds, type AuraRuntimeNodeEffectAttachment, type RuntimeNodeMorphTargetWeights } from "./RuntimeNodeHandle";
|
|
9
|
+
import { createRuntimeNodeSpec } from "./GameSceneBridge";
|
|
10
|
+
import { createFightingGameKit } from "./game-kits/fighting";
|
|
11
|
+
import { createPromptAnimationEpisodePlan, createPromptAnimationStoryBible, definePromptAnimationStoryboard } from "./PromptAnimationContract";
|
|
12
|
+
import { applyShotPlaybackFrame, createShotPlaybackPlan, createShotTimeline, installShotPlayback, sampleShotPlaybackPlan } from "./ShotTimeline";
|
|
13
|
+
import { captionCueAtTime, createCaptionTimingProof, deriveCaptionTrackFromDialogue } from "./DialoguePerformance";
|
|
14
|
+
import { createAuraVoiceVisemeTrack, createGlbBlendshapeVisemeCue, createPrimitiveMouthVisemeCues, sampleVisemeTrack } from "./VisemeController";
|
|
15
|
+
import { createAuraVoiceBridgePackage, createAuraVoiceDubRerenderProof, createAuraVoiceRerenderPlan, sampleAuraVoiceBridgeAtTime } from "./AuraVoiceBridge";
|
|
16
|
+
import { createCartoonDirectorPlan } from "./CartoonDirector";
|
|
17
|
+
import { createCartoonPerformance } from "./CartoonPerformance";
|
|
18
|
+
import { createCartoonRenderOutputPackageMetadata, createCartoonRenderQueue } from "./CartoonRenderQueue";
|
|
19
|
+
import { collectPromptAnimationEvidence } from "./PromptAnimationEvidence";
|
|
20
|
+
import { type GameAppRuntime, type GameAppRuntimeOptions } from "./GameAppRuntime";
|
|
3
21
|
export { Engine } from "@aura3d/core";
|
|
22
|
+
export { asAuraAppHandle, isAuraAppHandle, type AuraAppFrame, type AuraAppFrameCallback, type AuraAppHandle, type AuraAppNodeRegistryLike, type AuraAppRuntimeState, type AuraAppScreenshot } from "./AuraAppHandle";
|
|
23
|
+
export { createGameAppRuntime, type GameAppRuntime, type GameAppRuntimeEvidence, type GameAppRuntimeLoopOptions, type GameAppRuntimeOptions, type GameAppRuntimeResize, type GameAppRuntimeStatus } from "./GameAppRuntime";
|
|
24
|
+
export { FrameLoop, createFrameLoop, type FrameLoopCallback, type FrameLoopFrame, type FrameLoopOptions, type FrameLoopSnapshot, type FrameLoopSource } from "./FrameLoop";
|
|
25
|
+
export { createCombatWorld, createGameCameraDirector, createGameEffects, applyGameCombatEventsToRuntime, createGameAccessibilityFocus, createGameAccessibilityLabel, createGameAccessibilityRuntimeSettings, createGameHighContrastSource, createGameHudBindings, createGameHudComboBinding, createGameHudDebugToggleBinding, createGameHudHealthBinding, createGameHudMeterBinding, createGameHudRoundBinding, createGameHudSnapshot, createGameHudTimerBinding, createGameBoxCollider, createGameCapsuleCollider, createGameColliderDebugGeometry, createGameCombatDebugGeometry, createGameDebugOverlayData, createGameDebugSceneNodes, createGameHitboxDebugGeometry, createGameInput, createGameInputReplay, createGameInputReplayDriver, createGameJumpAssist, createGameKinematicBody, createGamePauseControlsSource, createGameRectCollider, createGameReducedFlashSource, createGameReducedMotionSource, createGameSphereCollider, createGameTouchControlLayout, gameColliderAabb, gameColliders, gameInputReplayEventsAt, createGameLoopPlan, type GameAccessibilityFocusOptions, type GameAccessibilityLabelOptions, type GameAccessibilityPauseControlsOptions, type GameAccessibilityPreferenceOptions, type GameAccessibilityRuntimeSettings, type GameAccessibilityRuntimeSettingsOptions, type GameAccessibilitySource, type GameAccessibilitySourceKind, type GameAabb, type GameBounds3, type GameCameraDirector, type GameCameraDirectorOptions, type GameCameraSnapshot, type GameCameraTarget, type GameCollisionBox, type GameCombatActorOptions, type GameCombatActorSnapshot, type GameCombatActiveAttackSnapshot, type GameCombatEvent, type GameCombatEventRuntimeBridgeOptions, type GameCombatEventRuntimeBridgeResult, type GameCombatEventType, type GameCombatMove, type GameCombatWorld, type GameCombatWorldSnapshot, type GameBoxCollider, type GameBoxColliderOptions, type GameCapsuleCollider, type GameCapsuleColliderOptions, type GameCollider, type GameColliderAxis, type GameColliderBase, type GameColliderDimension, type GameColliderFactoryOptions, type GameColliderKind, type GameColliderPlane, type GameDebugGeometryNode, type GameDebugGeometryOptions, type GameDebugGeometryPrimitive, type GameDebugOverlayData, type GameDebugOverlayMetric, type GameDebugOverlayOptions, type GameDebugOverlaySection, type GameDebugSceneNode, type GameDebugSceneNodeOptions, type GameDebugScenePrimitive, type GameEffectInstance, type GameEffectAttachment, type GameEffectKind, type GameEffectOptions, type GameEffectsController, type GameEffectsSnapshot, type GameHudActorBindingOptions, type GameHudBinding, type GameHudBindingKind, type GameHudComboBindingOptions, type GameHudDebugToggleBindingOptions, type GameHudResolvedValue, type GameHudRoundBindingOptions, type GameHudSourceKind, type GameHudSnapshot, type GameHudSnapshotItem, type GameHudSnapshotOptions, type GameHudTimerBindingOptions, type GameHudValueFormat, type GameInputActionState, type GameInputAxisSettings, type GameInputAxisBinding, type GameInputController, type GameInputOptions, type GameInputReplayDriver, type GameInputReplayDriverSnapshot, type GameInputReplayEvent, type GameInputReplayOptions, type GameInputReplayPlan, type GameInputSnapshot, type GameJumpAssistController, type GameJumpAssistOptions, type GameJumpAssistSnapshot, type GameJumpAssistUpdate, type GameKinematicBody, type GameKinematicBodyOptions, type GameKinematicBodySnapshot, type GameLoopPlan, type GamePointerSnapshot, type GameRectCollider, type GameRectColliderOptions, type GameRuntimeSubsystemId, type GameRuntimeSubsystemOwnership, type GameSphereCollider, type GameSphereColliderOptions, type GameSubsystemOwner, type GameTouchControlAnchor, type GameTouchControlKind, type GameTouchControlLayout, type GameTouchControlLayoutOptions, type GameTouchControlRegion, type GameTouchControlRequest, type GameVec3, type GamepadSnapshot } from "./GameRuntime";
|
|
26
|
+
export { collectGameSceneRuntimeNodes, createGameSceneBridge, createRuntimeNodeSpec, type GameSceneBridge, type GameSceneBridgeApp, type GameSceneBridgeBodyLike, type GameSceneBridgeEvidence, type GameSceneBridgeNodeHandle, type GameSceneRuntimeNode } from "./GameSceneBridge";
|
|
27
|
+
export { calculateRuntimeNodeBounds, createRuntimeNodeEffectAttachment, runtimeNodeHasTag, type AuraRuntimeNodeAnimationPoseBindingMetadata, type AuraRuntimeNodeAnimationBindingMetadata, type AuraRuntimeNodeBounds, type AuraRuntimeNodeEffectAttachment, type AuraRuntimeNodeEffectKind, type RuntimeNodeAnimationSpecLike, type RuntimeNodeBoundsInput, type RuntimeNodeHandleLike, type RuntimeNodeMorphTargetWeights, type RuntimeNodeVec3 } from "./RuntimeNodeHandle";
|
|
28
|
+
export { createFightingGameKit, fighting, fighterRuntimeNode, type FightingActorState, type FightingControls, type FightingGameKit, type FightingGameKitOptions, type FightingGameSnapshot, type FightingStageOptions } from "./game-kits/fighting";
|
|
29
|
+
export { gameKits } from "./game-kits";
|
|
30
|
+
export type { GameRuntimeEvidence, GameRuntimeEvidenceApp, GameRuntimeEvidenceOptions, GameRuntimeSourceEvidence } from "./GameEvidence";
|
|
31
|
+
export * from "./GameAssetValidation.js";
|
|
32
|
+
export * from "./CharacterAssembly.js";
|
|
33
|
+
export * from "./AssetEvidence.js";
|
|
34
|
+
export * from "./AnimationController.js";
|
|
35
|
+
export { gameAssetValidation, quaterniusGameReadyFighterValidationContract, validateQuaterniusGameReadyFighterAsset } from "./GameAssetValidation.js";
|
|
36
|
+
export { createAnimationController } from "./AnimationController.js";
|
|
37
|
+
export * from "./PromptAnimationContract.js";
|
|
38
|
+
export * from "./AuraVoiceBridge.js";
|
|
39
|
+
export * from "./ShotTimeline.js";
|
|
40
|
+
export * from "./DialoguePerformance.js";
|
|
41
|
+
export * from "./VisemeController.js";
|
|
42
|
+
export * from "./PromptAnimationEvidence.js";
|
|
43
|
+
export * from "./CartoonDirector.js";
|
|
44
|
+
export * from "./CartoonPerformance.js";
|
|
45
|
+
export * from "./CartoonRenderQueue.js";
|
|
4
46
|
export type AuraVec3 = readonly [number, number, number];
|
|
5
47
|
export type AuraColor = `#${string}` | string;
|
|
6
48
|
export type AuraAssetType = "model" | "texture" | "environment" | "audio";
|
|
@@ -160,6 +202,7 @@ export interface AuraPrimitiveOptions extends AuraTransformSpec {
|
|
|
160
202
|
export interface AuraAnimationSpec {
|
|
161
203
|
readonly clip?: string;
|
|
162
204
|
readonly loop?: boolean;
|
|
205
|
+
readonly restart?: boolean;
|
|
163
206
|
readonly speed?: number;
|
|
164
207
|
readonly startTime?: number;
|
|
165
208
|
readonly duration?: number;
|
|
@@ -173,6 +216,11 @@ export interface AuraAnimationSpec {
|
|
|
173
216
|
readonly rootBob?: boolean;
|
|
174
217
|
readonly jointHierarchy?: boolean;
|
|
175
218
|
}
|
|
219
|
+
export interface AuraRuntimeNodeSpec {
|
|
220
|
+
readonly id: string;
|
|
221
|
+
readonly tags?: readonly string[];
|
|
222
|
+
readonly mutable?: boolean;
|
|
223
|
+
}
|
|
176
224
|
export interface AuraInteractionSpec {
|
|
177
225
|
readonly cursor?: string;
|
|
178
226
|
readonly onClick?: string;
|
|
@@ -283,6 +331,7 @@ export interface AuraModelNode extends AuraTransformSpec {
|
|
|
283
331
|
readonly animation?: AuraAnimationSpec;
|
|
284
332
|
readonly interaction?: AuraInteractionSpec;
|
|
285
333
|
readonly physics?: AuraNodePhysicsSpec;
|
|
334
|
+
readonly runtime?: AuraRuntimeNodeSpec;
|
|
286
335
|
}
|
|
287
336
|
export interface AuraPrimitiveNode extends AuraTransformSpec {
|
|
288
337
|
readonly kind: "primitive";
|
|
@@ -295,6 +344,7 @@ export interface AuraPrimitiveNode extends AuraTransformSpec {
|
|
|
295
344
|
readonly animation?: AuraAnimationSpec;
|
|
296
345
|
readonly interaction?: AuraInteractionSpec;
|
|
297
346
|
readonly physics?: AuraNodePhysicsSpec;
|
|
347
|
+
readonly runtime?: AuraRuntimeNodeSpec;
|
|
298
348
|
}
|
|
299
349
|
export interface AuraGroupNode extends AuraTransformSpec {
|
|
300
350
|
readonly kind: "group";
|
|
@@ -302,6 +352,7 @@ export interface AuraGroupNode extends AuraTransformSpec {
|
|
|
302
352
|
readonly children: readonly AuraSceneNode[];
|
|
303
353
|
readonly animation?: AuraAnimationSpec;
|
|
304
354
|
readonly character?: AuraCharacterRigSpec;
|
|
355
|
+
readonly runtime?: AuraRuntimeNodeSpec;
|
|
305
356
|
}
|
|
306
357
|
export type AuraLightType = "ambient" | "directional" | "point" | "studio" | "rect" | "softbox";
|
|
307
358
|
export interface AuraLightNode extends AuraTransformSpec {
|
|
@@ -369,6 +420,7 @@ export interface AuraLabelNode extends AuraTransformSpec {
|
|
|
369
420
|
readonly occlusionAware?: boolean;
|
|
370
421
|
readonly collisionAvoidance?: boolean;
|
|
371
422
|
readonly animation?: AuraAnimationSpec;
|
|
423
|
+
readonly runtime?: AuraRuntimeNodeSpec;
|
|
372
424
|
}
|
|
373
425
|
export interface AuraEnvironmentNode {
|
|
374
426
|
readonly kind: "environment";
|
|
@@ -570,6 +622,9 @@ export declare class AuraNodeBuilder<TNode extends AuraSceneNode> {
|
|
|
570
622
|
physics(spec: AuraNodePhysicsSpec): AuraNodeBuilder<TNode & {
|
|
571
623
|
readonly physics: AuraNodePhysicsSpec;
|
|
572
624
|
}>;
|
|
625
|
+
runtime(spec: AuraRuntimeNodeSpec): AuraNodeBuilder<TNode & {
|
|
626
|
+
readonly runtime: AuraRuntimeNodeSpec;
|
|
627
|
+
}>;
|
|
573
628
|
toJSON(): TNode;
|
|
574
629
|
private with;
|
|
575
630
|
}
|
|
@@ -1164,8 +1219,339 @@ export declare const games: {
|
|
|
1164
1219
|
readonly miniGolfCourse: () => readonly AuraSceneNode[];
|
|
1165
1220
|
readonly createMiniGolfState: () => AuraMiniGolfStateController;
|
|
1166
1221
|
readonly miniGolfPointerShot: typeof miniGolfPointerShotFromDrag;
|
|
1222
|
+
readonly fighting: {
|
|
1223
|
+
readonly controls: typeof import("./game-kits").defaultFightingControls;
|
|
1224
|
+
readonly moves: typeof import("./game-kits").defaultFightingMoves;
|
|
1225
|
+
readonly runtimeNode: typeof import("./game-kits").fighterRuntimeNode;
|
|
1226
|
+
readonly stagePreset: typeof import("./game-kits").fightingStagePreset;
|
|
1227
|
+
readonly stagePresets: Record<import("./game-kits").FightingStagePresetName, import("./game-kits").FightingStageOptions>;
|
|
1228
|
+
readonly stage: typeof import("./game-kits").createFightingStage;
|
|
1229
|
+
readonly validateStage: typeof import("./game-kits").validateFightingStage;
|
|
1230
|
+
readonly stageNodes: typeof import("./game-kits").fightingStageNodes;
|
|
1231
|
+
readonly createKit: typeof createFightingGameKit;
|
|
1232
|
+
};
|
|
1233
|
+
readonly createFightingGameKit: typeof createFightingGameKit;
|
|
1167
1234
|
readonly miniGolfScene: () => AuraSceneBuilder;
|
|
1168
1235
|
};
|
|
1236
|
+
export interface AuraGameLoopPlan {
|
|
1237
|
+
readonly kind: "aura-game-loop-plan";
|
|
1238
|
+
readonly fixedDt: number;
|
|
1239
|
+
readonly maxSubSteps: number;
|
|
1240
|
+
readonly timeScale: number;
|
|
1241
|
+
}
|
|
1242
|
+
export interface AuraGameInputPlan {
|
|
1243
|
+
readonly kind: "aura-game-input-plan";
|
|
1244
|
+
readonly actions: Record<string, readonly string[]>;
|
|
1245
|
+
readonly axes: Record<string, AuraGameInputAxisBinding>;
|
|
1246
|
+
readonly bufferMs: number;
|
|
1247
|
+
}
|
|
1248
|
+
export interface AuraGameInputAxisBinding {
|
|
1249
|
+
readonly negative?: string;
|
|
1250
|
+
readonly positive?: string;
|
|
1251
|
+
}
|
|
1252
|
+
export interface AuraGameInputActionState {
|
|
1253
|
+
readonly pressed: boolean;
|
|
1254
|
+
readonly held: boolean;
|
|
1255
|
+
readonly released: boolean;
|
|
1256
|
+
readonly buffered: boolean;
|
|
1257
|
+
readonly value: number;
|
|
1258
|
+
}
|
|
1259
|
+
export interface AuraGameInputReplayEvent {
|
|
1260
|
+
readonly frame: number;
|
|
1261
|
+
readonly time: number;
|
|
1262
|
+
readonly type: "press" | "release";
|
|
1263
|
+
readonly binding: string;
|
|
1264
|
+
}
|
|
1265
|
+
export interface AuraGameInputSnapshot {
|
|
1266
|
+
readonly kind: "aura-game-input-snapshot";
|
|
1267
|
+
readonly frame: number;
|
|
1268
|
+
readonly time: number;
|
|
1269
|
+
readonly activeBindings: readonly string[];
|
|
1270
|
+
readonly actions: Record<string, AuraGameInputActionState>;
|
|
1271
|
+
}
|
|
1272
|
+
export interface AuraGameInputController extends AuraGameInputPlan {
|
|
1273
|
+
update(dt?: number): AuraGameInputSnapshot;
|
|
1274
|
+
snapshot(): AuraGameInputSnapshot;
|
|
1275
|
+
pressed(action: string): boolean;
|
|
1276
|
+
held(action: string): boolean;
|
|
1277
|
+
released(action: string): boolean;
|
|
1278
|
+
buffered(action: string, windowMs?: number): boolean;
|
|
1279
|
+
axis(name: string, negativeAction?: string, positiveAction?: string): number;
|
|
1280
|
+
press(binding: string): void;
|
|
1281
|
+
release(binding: string): void;
|
|
1282
|
+
setAction(action: string, held: boolean): void;
|
|
1283
|
+
recorded(): readonly AuraGameInputReplayEvent[];
|
|
1284
|
+
replay(events: readonly AuraGameInputReplayEvent[]): AuraGameInputSnapshot;
|
|
1285
|
+
clearReplay(): void;
|
|
1286
|
+
dispose(): void;
|
|
1287
|
+
}
|
|
1288
|
+
export interface AuraGameRuntimeEvidence {
|
|
1289
|
+
readonly kind: "aura-game-runtime-evidence";
|
|
1290
|
+
readonly source?: GameRuntimeSourceEvidence;
|
|
1291
|
+
readonly ownership?: readonly GameRuntimeSubsystemOwnership[];
|
|
1292
|
+
readonly loop: {
|
|
1293
|
+
readonly frame: number;
|
|
1294
|
+
readonly time: number;
|
|
1295
|
+
readonly paused: boolean;
|
|
1296
|
+
};
|
|
1297
|
+
readonly runtimeNodes: {
|
|
1298
|
+
readonly count: number;
|
|
1299
|
+
readonly ids: readonly string[];
|
|
1300
|
+
};
|
|
1301
|
+
readonly systems: {
|
|
1302
|
+
readonly mutableNodes: boolean;
|
|
1303
|
+
readonly frameLoop: boolean;
|
|
1304
|
+
readonly inputPlan: boolean;
|
|
1305
|
+
readonly physicsPlan: boolean;
|
|
1306
|
+
readonly animationPlan: boolean;
|
|
1307
|
+
readonly effectsPlan: boolean;
|
|
1308
|
+
readonly cameraPlan: boolean;
|
|
1309
|
+
readonly collisionPlan?: boolean;
|
|
1310
|
+
readonly stagePlan?: boolean;
|
|
1311
|
+
};
|
|
1312
|
+
readonly input?: {
|
|
1313
|
+
readonly configured: boolean;
|
|
1314
|
+
readonly actions: readonly string[];
|
|
1315
|
+
readonly axes: readonly string[];
|
|
1316
|
+
readonly activeBindings: readonly string[];
|
|
1317
|
+
readonly frame: number;
|
|
1318
|
+
};
|
|
1319
|
+
readonly physics?: {
|
|
1320
|
+
readonly kinematicBodies: number;
|
|
1321
|
+
readonly groundedBodies: number;
|
|
1322
|
+
};
|
|
1323
|
+
readonly collision?: {
|
|
1324
|
+
readonly combatWorld: boolean;
|
|
1325
|
+
readonly actors: number;
|
|
1326
|
+
readonly activeAttacks: number;
|
|
1327
|
+
readonly events: number;
|
|
1328
|
+
};
|
|
1329
|
+
readonly animation?: {
|
|
1330
|
+
readonly controllers: number;
|
|
1331
|
+
readonly activeClips: readonly string[];
|
|
1332
|
+
readonly eventCount: number;
|
|
1333
|
+
};
|
|
1334
|
+
readonly effects?: {
|
|
1335
|
+
readonly active: number;
|
|
1336
|
+
readonly spawned: number;
|
|
1337
|
+
readonly pooled: number;
|
|
1338
|
+
};
|
|
1339
|
+
readonly camera?: {
|
|
1340
|
+
readonly active: boolean;
|
|
1341
|
+
readonly fov?: number;
|
|
1342
|
+
readonly zoom?: number;
|
|
1343
|
+
readonly shake?: number;
|
|
1344
|
+
readonly reducedMotion?: boolean;
|
|
1345
|
+
};
|
|
1346
|
+
readonly assets?: {
|
|
1347
|
+
readonly typedAssets: number;
|
|
1348
|
+
readonly missingAssets: readonly string[];
|
|
1349
|
+
};
|
|
1350
|
+
readonly stage?: {
|
|
1351
|
+
readonly id?: string;
|
|
1352
|
+
readonly safeZones: boolean;
|
|
1353
|
+
readonly bounds?: unknown;
|
|
1354
|
+
readonly warnings: readonly string[];
|
|
1355
|
+
};
|
|
1356
|
+
readonly hud?: {
|
|
1357
|
+
readonly bindings: number;
|
|
1358
|
+
readonly kinds: readonly GameHudBindingKind[];
|
|
1359
|
+
readonly targetIds: readonly string[];
|
|
1360
|
+
readonly debugToggles: number;
|
|
1361
|
+
readonly interactive: number;
|
|
1362
|
+
readonly warnings: readonly string[];
|
|
1363
|
+
};
|
|
1364
|
+
readonly accessibility?: {
|
|
1365
|
+
readonly sources: number;
|
|
1366
|
+
readonly labels: number;
|
|
1367
|
+
readonly focusScopes: number;
|
|
1368
|
+
readonly reducedMotion: boolean;
|
|
1369
|
+
readonly reducedFlash: boolean;
|
|
1370
|
+
readonly highContrast: boolean;
|
|
1371
|
+
readonly pauseControls: boolean;
|
|
1372
|
+
readonly warnings: readonly string[];
|
|
1373
|
+
};
|
|
1374
|
+
readonly warnings?: readonly string[];
|
|
1375
|
+
}
|
|
1376
|
+
export declare function collectGameRuntimeEvidence(app: Pick<AuraApp, "runtime" | "nodes">, options?: GameRuntimeEvidenceOptions): AuraGameRuntimeEvidence;
|
|
1377
|
+
export interface AuraGameRules {
|
|
1378
|
+
readonly kind: "aura-game-rules";
|
|
1379
|
+
readonly gravity: number;
|
|
1380
|
+
readonly roundSeconds: number;
|
|
1381
|
+
readonly maxHealth: number;
|
|
1382
|
+
readonly maxGuard: number;
|
|
1383
|
+
readonly maxMeter: number;
|
|
1384
|
+
readonly stageBounds: {
|
|
1385
|
+
readonly minX: number;
|
|
1386
|
+
readonly maxX: number;
|
|
1387
|
+
};
|
|
1388
|
+
}
|
|
1389
|
+
export interface AuraGameRuntimeOptions {
|
|
1390
|
+
readonly loop?: Partial<Omit<AuraGameLoopPlan, "kind">> | undefined;
|
|
1391
|
+
readonly input?: GameInputOptions | undefined;
|
|
1392
|
+
readonly rules?: Partial<Omit<AuraGameRules, "kind">> | undefined;
|
|
1393
|
+
readonly effectPoolSize?: number | undefined;
|
|
1394
|
+
}
|
|
1395
|
+
export interface AuraGameRuntime {
|
|
1396
|
+
readonly kind: "aura-game-runtime";
|
|
1397
|
+
readonly loop: AuraGameLoopPlan;
|
|
1398
|
+
readonly rules: AuraGameRules;
|
|
1399
|
+
readonly input?: ReturnType<typeof createGameInput> | undefined;
|
|
1400
|
+
readonly combat: ReturnType<typeof createCombatWorld>;
|
|
1401
|
+
readonly camera: ReturnType<typeof createGameCameraDirector>;
|
|
1402
|
+
readonly effects: ReturnType<typeof createGameEffects>;
|
|
1403
|
+
readonly bodies: readonly ReturnType<typeof createGameKinematicBody>[];
|
|
1404
|
+
}
|
|
1405
|
+
export declare function createAuraGameRules(options?: Partial<Omit<AuraGameRules, "kind">>): AuraGameRules;
|
|
1406
|
+
export declare const gameRules: typeof createAuraGameRules & {
|
|
1407
|
+
fighting2D: typeof createGameFighting2DRules;
|
|
1408
|
+
};
|
|
1409
|
+
export declare function createAuraGameRuntime(options?: AuraGameRuntimeOptions): AuraGameRuntime;
|
|
1410
|
+
export declare const game: {
|
|
1411
|
+
readonly createRuntime: typeof createAuraGameRuntime;
|
|
1412
|
+
readonly rules: typeof createAuraGameRules & {
|
|
1413
|
+
fighting2D: typeof createGameFighting2DRules;
|
|
1414
|
+
};
|
|
1415
|
+
readonly loop: (options?: Partial<Omit<AuraGameLoopPlan, "kind">>) => AuraGameLoopPlan;
|
|
1416
|
+
readonly frameLoop: typeof createFrameLoop;
|
|
1417
|
+
readonly runtimeNode: typeof createRuntimeNodeSpec;
|
|
1418
|
+
readonly input: typeof createGameInput;
|
|
1419
|
+
readonly inputReplay: typeof createGameInputReplay;
|
|
1420
|
+
readonly inputReplayDriver: typeof createGameInputReplayDriver;
|
|
1421
|
+
readonly inputReplayEventsAt: typeof gameInputReplayEventsAt;
|
|
1422
|
+
readonly touchControls: typeof createGameTouchControlLayout;
|
|
1423
|
+
readonly kinematicBody: typeof createGameKinematicBody;
|
|
1424
|
+
readonly jumpAssist: typeof createGameJumpAssist;
|
|
1425
|
+
readonly collider: {
|
|
1426
|
+
readonly box: typeof createGameBoxCollider;
|
|
1427
|
+
readonly sphere: typeof createGameSphereCollider;
|
|
1428
|
+
readonly capsule: typeof createGameCapsuleCollider;
|
|
1429
|
+
readonly rect: typeof createGameRectCollider;
|
|
1430
|
+
readonly aabb: typeof gameColliderAabb;
|
|
1431
|
+
readonly factories: {
|
|
1432
|
+
readonly box: typeof createGameBoxCollider;
|
|
1433
|
+
readonly sphere: typeof createGameSphereCollider;
|
|
1434
|
+
readonly capsule: typeof createGameCapsuleCollider;
|
|
1435
|
+
readonly rect: typeof createGameRectCollider;
|
|
1436
|
+
};
|
|
1437
|
+
};
|
|
1438
|
+
readonly hitbox: {
|
|
1439
|
+
readonly rect: typeof import("./GameRuntime").createGameHitboxRect;
|
|
1440
|
+
readonly box: typeof import("./GameRuntime").createGameHitboxRect;
|
|
1441
|
+
};
|
|
1442
|
+
readonly hurtbox: {
|
|
1443
|
+
readonly rect: typeof import("./GameRuntime").createGameHurtboxRect;
|
|
1444
|
+
readonly box: typeof import("./GameRuntime").createGameHurtboxRect;
|
|
1445
|
+
};
|
|
1446
|
+
readonly guardbox: {
|
|
1447
|
+
readonly rect: typeof import("./GameRuntime").createGameGuardboxRect;
|
|
1448
|
+
readonly box: typeof import("./GameRuntime").createGameGuardboxRect;
|
|
1449
|
+
};
|
|
1450
|
+
readonly pushbox: {
|
|
1451
|
+
readonly rect: typeof import("./GameRuntime").createGamePushboxRect;
|
|
1452
|
+
readonly box: typeof import("./GameRuntime").createGamePushboxRect;
|
|
1453
|
+
};
|
|
1454
|
+
readonly trigger: {
|
|
1455
|
+
readonly box: (options?: import("./GameRuntime").GameBoxColliderOptions) => import("./GameRuntime").GameBoxCollider;
|
|
1456
|
+
readonly sphere: (options?: import("./GameRuntime").GameSphereColliderOptions) => import("./GameRuntime").GameSphereCollider;
|
|
1457
|
+
readonly capsule: (options?: import("./GameRuntime").GameCapsuleColliderOptions) => import("./GameRuntime").GameCapsuleCollider;
|
|
1458
|
+
readonly rect: (options?: import("./GameRuntime").GameRectColliderOptions) => import("./GameRuntime").GameRectCollider;
|
|
1459
|
+
};
|
|
1460
|
+
readonly combatWorld: typeof createCombatWorld;
|
|
1461
|
+
readonly combatEvents: typeof applyGameCombatEventsToRuntime;
|
|
1462
|
+
readonly cameraDirector: typeof createGameCameraDirector;
|
|
1463
|
+
readonly effects: typeof createGameEffects;
|
|
1464
|
+
readonly effectPresets: {
|
|
1465
|
+
readonly hitSpark: (options?: import("./GameRuntime").GameEffectOptions) => import("./GameRuntime").GameEffectPreset;
|
|
1466
|
+
readonly blockSpark: (options?: import("./GameRuntime").GameEffectOptions) => import("./GameRuntime").GameEffectPreset;
|
|
1467
|
+
readonly groundDust: (options?: import("./GameRuntime").GameEffectOptions) => import("./GameRuntime").GameEffectPreset;
|
|
1468
|
+
readonly dashTrail: (options?: import("./GameRuntime").GameEffectOptions) => import("./GameRuntime").GameEffectPreset;
|
|
1469
|
+
readonly slashTrail: (options?: import("./GameRuntime").GameEffectOptions) => import("./GameRuntime").GameEffectPreset;
|
|
1470
|
+
readonly shockwave: (options?: import("./GameRuntime").GameEffectOptions) => import("./GameRuntime").GameEffectPreset;
|
|
1471
|
+
readonly auraBurst: (options?: import("./GameRuntime").GameEffectOptions) => import("./GameRuntime").GameEffectPreset;
|
|
1472
|
+
readonly superBurst: (options?: import("./GameRuntime").GameEffectOptions) => import("./GameRuntime").GameEffectPreset;
|
|
1473
|
+
};
|
|
1474
|
+
readonly debug: {
|
|
1475
|
+
readonly colliders: typeof createGameColliderDebugGeometry;
|
|
1476
|
+
readonly hitboxes: typeof createGameHitboxDebugGeometry;
|
|
1477
|
+
readonly combat: typeof createGameCombatDebugGeometry;
|
|
1478
|
+
readonly overlay: typeof createGameDebugOverlayData;
|
|
1479
|
+
readonly sceneNodes: typeof createGameDebugSceneNodes;
|
|
1480
|
+
};
|
|
1481
|
+
readonly hud: {
|
|
1482
|
+
readonly health: typeof createGameHudHealthBinding;
|
|
1483
|
+
readonly meter: typeof createGameHudMeterBinding;
|
|
1484
|
+
readonly timer: typeof createGameHudTimerBinding;
|
|
1485
|
+
readonly combo: typeof createGameHudComboBinding;
|
|
1486
|
+
readonly round: typeof createGameHudRoundBinding;
|
|
1487
|
+
readonly debugToggle: typeof createGameHudDebugToggleBinding;
|
|
1488
|
+
readonly bindings: typeof createGameHudBindings;
|
|
1489
|
+
readonly snapshot: typeof createGameHudSnapshot;
|
|
1490
|
+
};
|
|
1491
|
+
readonly accessibility: {
|
|
1492
|
+
readonly label: typeof createGameAccessibilityLabel;
|
|
1493
|
+
readonly focus: typeof createGameAccessibilityFocus;
|
|
1494
|
+
readonly reducedMotion: typeof createGameReducedMotionSource;
|
|
1495
|
+
readonly reducedFlash: typeof createGameReducedFlashSource;
|
|
1496
|
+
readonly highContrast: typeof createGameHighContrastSource;
|
|
1497
|
+
readonly pauseControls: typeof createGamePauseControlsSource;
|
|
1498
|
+
readonly settings: typeof createGameAccessibilityRuntimeSettings;
|
|
1499
|
+
};
|
|
1500
|
+
readonly fighting: typeof createFightingGameKit;
|
|
1501
|
+
readonly evidence: typeof collectGameRuntimeEvidence;
|
|
1502
|
+
};
|
|
1503
|
+
export declare const cartoon: {
|
|
1504
|
+
readonly episodePlan: typeof createPromptAnimationEpisodePlan;
|
|
1505
|
+
readonly storyBible: typeof createPromptAnimationStoryBible;
|
|
1506
|
+
readonly storyboard: typeof definePromptAnimationStoryboard;
|
|
1507
|
+
readonly shotTimeline: typeof createShotTimeline;
|
|
1508
|
+
readonly shotPlaybackPlan: typeof createShotPlaybackPlan;
|
|
1509
|
+
readonly sampleShotPlaybackPlan: typeof sampleShotPlaybackPlan;
|
|
1510
|
+
readonly applyShotPlaybackFrame: typeof applyShotPlaybackFrame;
|
|
1511
|
+
readonly installShotPlayback: typeof installShotPlayback;
|
|
1512
|
+
readonly captionsFromDialogue: typeof deriveCaptionTrackFromDialogue;
|
|
1513
|
+
readonly captionCueAtTime: typeof captionCueAtTime;
|
|
1514
|
+
readonly captionTimingProof: typeof createCaptionTimingProof;
|
|
1515
|
+
readonly visemeTrack: typeof createAuraVoiceVisemeTrack;
|
|
1516
|
+
readonly primitiveMouthVisemes: typeof createPrimitiveMouthVisemeCues;
|
|
1517
|
+
readonly glbBlendshapeViseme: typeof createGlbBlendshapeVisemeCue;
|
|
1518
|
+
readonly sampleVisemeTrack: typeof sampleVisemeTrack;
|
|
1519
|
+
readonly auraVoiceBridgePackage: typeof createAuraVoiceBridgePackage;
|
|
1520
|
+
readonly sampleAuraVoiceBridgeAtTime: typeof sampleAuraVoiceBridgeAtTime;
|
|
1521
|
+
readonly auraVoiceRerenderPlan: typeof createAuraVoiceRerenderPlan;
|
|
1522
|
+
readonly auraVoiceDubRerenderProof: typeof createAuraVoiceDubRerenderProof;
|
|
1523
|
+
readonly director: typeof createCartoonDirectorPlan;
|
|
1524
|
+
readonly performance: typeof createCartoonPerformance;
|
|
1525
|
+
readonly renderQueue: typeof createCartoonRenderQueue;
|
|
1526
|
+
readonly renderOutputPackage: typeof createCartoonRenderOutputPackageMetadata;
|
|
1527
|
+
readonly evidence: typeof collectPromptAnimationEvidence;
|
|
1528
|
+
};
|
|
1529
|
+
export declare const animationStudio: {
|
|
1530
|
+
readonly episodePlan: typeof createPromptAnimationEpisodePlan;
|
|
1531
|
+
readonly storyBible: typeof createPromptAnimationStoryBible;
|
|
1532
|
+
readonly storyboard: typeof definePromptAnimationStoryboard;
|
|
1533
|
+
readonly shotTimeline: typeof createShotTimeline;
|
|
1534
|
+
readonly shotPlaybackPlan: typeof createShotPlaybackPlan;
|
|
1535
|
+
readonly sampleShotPlaybackPlan: typeof sampleShotPlaybackPlan;
|
|
1536
|
+
readonly applyShotPlaybackFrame: typeof applyShotPlaybackFrame;
|
|
1537
|
+
readonly installShotPlayback: typeof installShotPlayback;
|
|
1538
|
+
readonly captionsFromDialogue: typeof deriveCaptionTrackFromDialogue;
|
|
1539
|
+
readonly captionCueAtTime: typeof captionCueAtTime;
|
|
1540
|
+
readonly captionTimingProof: typeof createCaptionTimingProof;
|
|
1541
|
+
readonly visemeTrack: typeof createAuraVoiceVisemeTrack;
|
|
1542
|
+
readonly primitiveMouthVisemes: typeof createPrimitiveMouthVisemeCues;
|
|
1543
|
+
readonly glbBlendshapeViseme: typeof createGlbBlendshapeVisemeCue;
|
|
1544
|
+
readonly sampleVisemeTrack: typeof sampleVisemeTrack;
|
|
1545
|
+
readonly auraVoiceBridgePackage: typeof createAuraVoiceBridgePackage;
|
|
1546
|
+
readonly sampleAuraVoiceBridgeAtTime: typeof sampleAuraVoiceBridgeAtTime;
|
|
1547
|
+
readonly auraVoiceRerenderPlan: typeof createAuraVoiceRerenderPlan;
|
|
1548
|
+
readonly auraVoiceDubRerenderProof: typeof createAuraVoiceDubRerenderProof;
|
|
1549
|
+
readonly director: typeof createCartoonDirectorPlan;
|
|
1550
|
+
readonly performance: typeof createCartoonPerformance;
|
|
1551
|
+
readonly renderQueue: typeof createCartoonRenderQueue;
|
|
1552
|
+
readonly renderOutputPackage: typeof createCartoonRenderOutputPackageMetadata;
|
|
1553
|
+
readonly evidence: typeof collectPromptAnimationEvidence;
|
|
1554
|
+
};
|
|
1169
1555
|
declare function collectParticleBudgetDiagnostics(nodes: readonly AuraSceneNode[]): AuraParticleBudgetDiagnostics;
|
|
1170
1556
|
export declare const particles: {
|
|
1171
1557
|
readonly materialModes: () => readonly AuraParticleMaterialMode[];
|
|
@@ -1207,6 +1593,7 @@ export declare const character: {
|
|
|
1207
1593
|
readonly lowPolyHumanoid: (options?: AuraPrimitiveHumanoidPrefabOptions) => readonly AuraSceneNode[];
|
|
1208
1594
|
readonly authoredHumanoid: (options?: AuraPrimitiveHumanoidPrefabOptions) => readonly AuraSceneNode[];
|
|
1209
1595
|
readonly primitiveHumanoid: (options?: AuraPrimitiveHumanoidPrefabOptions) => readonly AuraSceneNode[];
|
|
1596
|
+
readonly performance: typeof createCartoonPerformance;
|
|
1210
1597
|
readonly importedRigRuntime: (options: GLTFSceneAnimationRuntimeOptions) => Promise<GLTFSceneAnimationRuntime>;
|
|
1211
1598
|
readonly visualQA: typeof validatePrimitiveHumanoidVisualQA;
|
|
1212
1599
|
readonly validatePrimitiveHumanoid: typeof validatePrimitiveHumanoidVisualQA;
|
|
@@ -1420,10 +1807,30 @@ export type AuraPromptEffectId = "rain" | "fog" | "bloom" | "particles" | "wet-r
|
|
|
1420
1807
|
export type AuraPromptCameraPreset = "product-orbit" | "cinematic-dolly" | "game-board" | "material-inspection";
|
|
1421
1808
|
export type AuraPromptLightingPreset = "studio-softbox" | "neon-practicals" | "game-readable" | "material-studio";
|
|
1422
1809
|
export type AuraPromptInteractionMode = "orbit" | "keyboard" | "pointer";
|
|
1423
|
-
export interface
|
|
1810
|
+
export interface AuraPromptResolvedSubject {
|
|
1424
1811
|
readonly asset: AuraAssetRef<"model">;
|
|
1425
1812
|
readonly label?: string;
|
|
1426
1813
|
}
|
|
1814
|
+
export interface AuraPromptIntentSubject {
|
|
1815
|
+
readonly intent: string;
|
|
1816
|
+
readonly constraints?: {
|
|
1817
|
+
readonly maxTriangles?: number;
|
|
1818
|
+
readonly license?: readonly ("CC0" | "CC-BY")[];
|
|
1819
|
+
readonly animated?: boolean;
|
|
1820
|
+
};
|
|
1821
|
+
readonly label?: string;
|
|
1822
|
+
}
|
|
1823
|
+
export type AuraPromptPlanSubject = AuraPromptResolvedSubject | AuraPromptIntentSubject;
|
|
1824
|
+
export declare function promptSubjectIsResolved(s: AuraPromptPlanSubject): s is AuraPromptResolvedSubject;
|
|
1825
|
+
export interface AuraPromptSubjectResolver {
|
|
1826
|
+
resolve(query: {
|
|
1827
|
+
text: string;
|
|
1828
|
+
constraints?: AuraPromptIntentSubject["constraints"];
|
|
1829
|
+
}): Promise<{
|
|
1830
|
+
asset: AuraAssetRef<"model">;
|
|
1831
|
+
} | null>;
|
|
1832
|
+
}
|
|
1833
|
+
export declare function resolvePromptPlanSubject(plan: AuraPromptPlan, resolver: AuraPromptSubjectResolver): Promise<AuraPromptPlan>;
|
|
1427
1834
|
export interface AuraPromptPlan {
|
|
1428
1835
|
readonly sceneType: AuraPromptSceneType;
|
|
1429
1836
|
readonly subject: AuraPromptPlanSubject;
|
|
@@ -1538,15 +1945,96 @@ export interface AuraSceneEvidence {
|
|
|
1538
1945
|
readonly helperCount: number;
|
|
1539
1946
|
readonly nodeBudgetExceeded: readonly AuraHelperBudgetId[];
|
|
1540
1947
|
};
|
|
1948
|
+
readonly gameRuntime: GameRuntimeEvidence;
|
|
1541
1949
|
readonly rendering: AuraRendererDiagnosticReport;
|
|
1542
1950
|
readonly assets: readonly AuraAssetProvenance[];
|
|
1543
1951
|
}
|
|
1952
|
+
export interface AuraFrameInfo {
|
|
1953
|
+
readonly dt: number;
|
|
1954
|
+
readonly fixedDt: number;
|
|
1955
|
+
readonly time: number;
|
|
1956
|
+
readonly frame: number;
|
|
1957
|
+
readonly alpha: number;
|
|
1958
|
+
readonly paused: boolean;
|
|
1959
|
+
readonly source: "raf" | "manual" | "fixed";
|
|
1960
|
+
readonly substep: number;
|
|
1961
|
+
readonly substeps: number;
|
|
1962
|
+
}
|
|
1963
|
+
export type AuraFrameCallback = (frame: AuraFrameInfo) => void;
|
|
1964
|
+
export interface AuraRuntimeNodeSnapshot {
|
|
1965
|
+
readonly id: string;
|
|
1966
|
+
readonly kind: AuraSceneNode["kind"];
|
|
1967
|
+
readonly name?: string;
|
|
1968
|
+
readonly tags: readonly string[];
|
|
1969
|
+
readonly position: AuraVec3;
|
|
1970
|
+
readonly rotation: AuraVec3;
|
|
1971
|
+
readonly scale: number | AuraVec3;
|
|
1972
|
+
readonly visible: boolean;
|
|
1973
|
+
readonly animation?: AuraAnimationSpec;
|
|
1974
|
+
readonly animationBinding?: AuraRuntimeNodeAnimationBindingMetadata;
|
|
1975
|
+
readonly animationPose?: AnimationPose;
|
|
1976
|
+
readonly animationPoseBinding?: AuraRuntimeNodeAnimationPoseBindingMetadata;
|
|
1977
|
+
readonly morphTargets?: RuntimeNodeMorphTargetWeights;
|
|
1978
|
+
readonly bounds?: AuraRuntimeNodeBounds;
|
|
1979
|
+
readonly effects?: readonly AuraRuntimeNodeEffectAttachment[];
|
|
1980
|
+
}
|
|
1981
|
+
export interface AuraRuntimeNodeHandle {
|
|
1982
|
+
readonly id: string;
|
|
1983
|
+
readonly kind: AuraSceneNode["kind"];
|
|
1984
|
+
readonly name?: string;
|
|
1985
|
+
readonly tags: readonly string[];
|
|
1986
|
+
position: AuraVec3;
|
|
1987
|
+
rotation: AuraVec3;
|
|
1988
|
+
scale: number | AuraVec3;
|
|
1989
|
+
visible: boolean;
|
|
1990
|
+
setPosition(x: number, y: number, z: number): this;
|
|
1991
|
+
translate(x: number, y: number, z: number): this;
|
|
1992
|
+
setRotation(x: number, y: number, z: number): this;
|
|
1993
|
+
setScale(scale: number | AuraVec3): this;
|
|
1994
|
+
setVisible(visible: boolean): this;
|
|
1995
|
+
setMaterial(material: AuraMaterialSpec): this;
|
|
1996
|
+
play(clip: string, options?: Omit<AuraAnimationSpec, "clip">): this;
|
|
1997
|
+
setAnimation(animation: AuraAnimationSpec | undefined): this;
|
|
1998
|
+
setAnimationBinding(binding: AuraRuntimeNodeAnimationBindingMetadata | undefined): this;
|
|
1999
|
+
setAnimationPose(pose: AnimationPose | undefined, metadata?: AuraRuntimeNodeAnimationPoseBindingMetadata): this;
|
|
2000
|
+
animationPose(): AnimationPose | undefined;
|
|
2001
|
+
setMorphTarget(name: string, weight: number): this;
|
|
2002
|
+
setMorphTargets(weights: RuntimeNodeMorphTargetWeights): this;
|
|
2003
|
+
morphTargets(): RuntimeNodeMorphTargetWeights;
|
|
2004
|
+
bounds(): AuraRuntimeNodeBounds;
|
|
2005
|
+
attachEffect(effect: AuraRuntimeNodeEffectAttachment): this;
|
|
2006
|
+
effects(): readonly AuraRuntimeNodeEffectAttachment[];
|
|
2007
|
+
snapshot(): AuraRuntimeNodeSnapshot;
|
|
2008
|
+
}
|
|
2009
|
+
export interface AuraRuntimeNodeRegistry {
|
|
2010
|
+
get(id: string): AuraRuntimeNodeHandle | undefined;
|
|
2011
|
+
require(id: string): AuraRuntimeNodeHandle;
|
|
2012
|
+
has(id: string): boolean;
|
|
2013
|
+
ids(): readonly string[];
|
|
2014
|
+
all(): readonly AuraRuntimeNodeHandle[];
|
|
2015
|
+
}
|
|
2016
|
+
export interface AuraRuntimeState {
|
|
2017
|
+
readonly paused: boolean;
|
|
2018
|
+
readonly frame: number;
|
|
2019
|
+
readonly time: number;
|
|
2020
|
+
readonly fixedDt: number;
|
|
2021
|
+
readonly alpha: number;
|
|
2022
|
+
}
|
|
1544
2023
|
export interface AuraApp {
|
|
1545
2024
|
readonly canvas?: HTMLCanvasElement;
|
|
1546
2025
|
readonly scene: AuraSceneSnapshot;
|
|
1547
2026
|
readonly backend: AuraBackend;
|
|
2027
|
+
readonly nodes: AuraRuntimeNodeRegistry;
|
|
2028
|
+
readonly runtime: AuraRuntimeState;
|
|
1548
2029
|
setScene(scene: AuraSceneBuilder | AuraSceneSnapshot): void;
|
|
2030
|
+
onFrame(callback: AuraFrameCallback): () => void;
|
|
2031
|
+
offFrame(callback: AuraFrameCallback): void;
|
|
2032
|
+
input(options: GameInputOptions): ReturnType<typeof createGameInput>;
|
|
2033
|
+
pause(): void;
|
|
2034
|
+
resume(): void;
|
|
2035
|
+
step(dt?: number): void;
|
|
1549
2036
|
diagnostics(): AuraDiagnostics;
|
|
2037
|
+
evidence(options?: GameRuntimeEvidenceOptions): ReturnType<typeof collectGameRuntimeEvidenceV105>;
|
|
1550
2038
|
screenshot(): AuraScreenshot;
|
|
1551
2039
|
dispose(): void;
|
|
1552
2040
|
}
|
|
@@ -1557,6 +2045,11 @@ export interface AuraCreateAppOptions {
|
|
|
1557
2045
|
readonly autoStart?: boolean;
|
|
1558
2046
|
readonly resize?: boolean;
|
|
1559
2047
|
}
|
|
2048
|
+
export interface AuraCreateGameAppOptions extends AuraCreateAppOptions {
|
|
2049
|
+
readonly loop?: GameAppRuntimeOptions["loop"];
|
|
2050
|
+
readonly input?: GameAppRuntimeOptions["input"];
|
|
2051
|
+
readonly runtimeEvidence?: GameAppRuntimeOptions["evidence"];
|
|
2052
|
+
}
|
|
1560
2053
|
export interface AuraDiagnosticsOptions {
|
|
1561
2054
|
readonly overlay?: boolean;
|
|
1562
2055
|
readonly assetPanel?: boolean;
|
|
@@ -1574,6 +2067,7 @@ export declare class AuraRuntimeError extends Error {
|
|
|
1574
2067
|
constructor(code: AuraRuntimeError["code"], message: string);
|
|
1575
2068
|
}
|
|
1576
2069
|
export declare function createAuraApp(target: AuraAppTarget, options: AuraCreateAppOptions): AuraApp;
|
|
2070
|
+
export declare function createGameApp(target: AuraAppTarget, options: AuraCreateGameAppOptions): GameAppRuntime<AuraApp>;
|
|
1577
2071
|
export declare function createAuraRouteHealthSnapshot(app: AuraApp): {
|
|
1578
2072
|
readonly status: "ready" | "error";
|
|
1579
2073
|
readonly diagnostics: AuraDiagnostics;
|