@zylem/game-lib 0.9.10 → 0.9.11
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 +4 -0
- package/dist/api/game-lib.api.json +1013 -68
- package/dist/api/game-lib.api.md +56 -2
- package/dist/api/game-lib.d.ts +89 -11
- package/dist/api/game-lib.typedoc.json +60619 -69662
- package/dist/bake-IARN2D5W.js +1 -0
- package/dist/bridge.d.ts +2 -0
- package/dist/bridge.js +1 -1
- package/dist/catalog.js +1 -1
- package/dist/chunk-2I76JHSN.js +1 -0
- package/dist/{chunk-CI7A5N6G.js → chunk-3XIJCDII.js} +1 -1
- package/dist/{chunk-BJYXY2FB.js → chunk-DLIQ7RKB.js} +1 -1
- package/dist/{chunk-YW2GTHCV.js → chunk-HOLQZSW3.js} +1 -1
- package/dist/{chunk-3LXDHDJB.js → chunk-KGAXGWKQ.js} +1 -1
- package/dist/chunk-LUFSPEPZ.js +1 -0
- package/dist/{chunk-5NQGXW75.js → chunk-M47F6LKE.js} +1 -1
- package/dist/chunk-NA5SAMP2.js +1 -0
- package/dist/{chunk-YFXNZ2RS.js → chunk-O5N7VFYK.js} +1 -1
- package/dist/chunk-RPLJRBU3.js +1 -0
- package/dist/{chunk-KFI5UDI6.js → chunk-RRYBT6NL.js} +2 -2
- package/dist/chunk-TLUGF3AS.js +1 -0
- package/dist/{chunk-273CUPEO.js → chunk-TRKPYAVB.js} +1 -1
- package/dist/{chunk-UNCP6V7I.js → chunk-VLGJAGMX.js} +1 -1
- package/dist/chunk-W6XV7CCC.js +1 -0
- package/dist/{chunk-JCGW5PIR.js → chunk-WM3NVEDX.js} +1 -1
- package/dist/{chunk-YWH5HQDT.js → chunk-X4TZ645S.js} +1 -1
- package/dist/{chunk-ICJ2E2OV.js → chunk-Y2NS4OJH.js} +1 -1
- package/dist/chunk-YETBTF6G.js +1 -0
- package/dist/cinematics.d.ts +2 -1
- package/dist/core.d.ts +5 -4
- package/dist/core.js +1 -1
- package/dist/{debug-state-zLtbTVix.d.ts → debug-state-CKrWEXUz.d.ts} +6 -0
- package/dist/debug.d.ts +1 -1
- package/dist/debug.js +1 -1
- package/dist/entity.js +1 -1
- package/dist/{game-CoNlUzGO.d.ts → game-BqKsvmSH.d.ts} +1 -1
- package/dist/game-default-ENWXZSPB.js +1 -0
- package/dist/graphics.js +1 -1
- package/dist/nav-mesh-P7OR5WYX.js +1 -0
- package/dist/navigation-session-2rs6rHOw.d.ts +54 -0
- package/dist/navigation-worker.js +2 -0
- package/dist/navigation.d.ts +27 -0
- package/dist/navigation.js +1 -0
- package/dist/placement.js +1 -1
- package/dist/public.d.ts +6 -3
- package/dist/public.js +1 -1
- package/dist/{stage-BO-E42In.d.ts → stage-DT8QQbGk.d.ts} +4 -11
- package/dist/web-components.d.ts +5 -4
- package/dist/web-components.js +1 -1
- package/package.json +12 -4
- package/dist/chunk-BZEZIHM7.js +0 -1
- package/dist/chunk-HDOXKVQA.js +0 -1
- package/dist/chunk-UM5VNQPY.js +0 -1
- package/dist/game-default-Y7TULWXQ.js +0 -1
package/dist/cinematics.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { k as CutsceneEasing, V as Vec3Def, h as CutsceneScene, n as CameraShot,
|
|
|
2
2
|
export { A as AudioItemSchema, q as AudioTrack, l as CameraKeyframe, c as CameraKeyframeSchema, m as CameraPoseDef, d as CameraShotSchema, j as CutsceneCameraKind, b as CutsceneCameraSchema, C as CutsceneDefinitionSchema, u as CutsceneEvent, e as CutsceneEventSchema, a as CutsceneSceneSchema, r as CutsceneTrack, f as CutsceneTrackSchema, D as DollyPathSchema, E as EventItemSchema, p as EventTrack, S as SceneTransitionSchema, t as ShotBlend } from './cutscene-definition-C479fkei.js';
|
|
3
3
|
import { f as CameraBehavior, d as CameraContext, C as CameraPose, l as ZylemCamera } from './zylem-camera-BA3VPFlS.js';
|
|
4
4
|
import { Z as ZylemTransitionShader } from './stage-transition-CmGpV4tc.js';
|
|
5
|
-
import { Z as ZylemStage, q as Stage } from './stage-
|
|
5
|
+
import { Z as ZylemStage, q as Stage } from './stage-DT8QQbGk.js';
|
|
6
6
|
import { g as SongDefinition } from './song-definition-rEKksP0B.js';
|
|
7
7
|
import { CutsceneStatusPayload, CutsceneViewPayload, CutsceneLoadPayload, CameraPosePayload } from '@zylem/bridge';
|
|
8
8
|
import '@sinclair/typebox';
|
|
@@ -11,6 +11,7 @@ import './entity-BIf_a4dl.js';
|
|
|
11
11
|
import './simulation-body-zQw-emOr.js';
|
|
12
12
|
import '@zylem/behaviors/core';
|
|
13
13
|
import 'three/webgpu';
|
|
14
|
+
import './navigation-session-2rs6rHOw.js';
|
|
14
15
|
import './base-node-idopiSw5.js';
|
|
15
16
|
import './base-node-life-cycle-BK9xebT9.js';
|
|
16
17
|
import './entity-type-map-CnxOtV01.js';
|
package/dist/core.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as StageStateInterface } from './game-
|
|
2
|
-
export { A as AspectRatio, f as AspectRatioValue, D as DeviceProfile, G as Game, b as GameConfigLike, d as GameDeviceConfig, a as GameLoadingEvent, R as ResolutionInput, e as ResolveGameConfigRuntime, j as RetroPreset, k as RetroPresetKey, l as RetroResolution, c as createGame, g as gameConfig, h as getDisplayAspect, i as getPresetResolution, p as parseResolution } from './game-
|
|
1
|
+
import { S as StageStateInterface } from './game-BqKsvmSH.js';
|
|
2
|
+
export { A as AspectRatio, f as AspectRatioValue, D as DeviceProfile, G as Game, b as GameConfigLike, d as GameDeviceConfig, a as GameLoadingEvent, R as ResolutionInput, e as ResolveGameConfigRuntime, j as RetroPreset, k as RetroPresetKey, l as RetroResolution, c as createGame, g as gameConfig, h as getDisplayAspect, i as getPresetResolution, p as parseResolution } from './game-BqKsvmSH.js';
|
|
3
3
|
export { G as GameInputConfig, a as GameInputPlayerConfig, K as KeyboardMapping, M as MouseConfig, b as MouseMapping, V as VirtualTouchButtonConfig, d as VirtualTouchButtonSlot, c as VirtualTouchButtonsConfig, e as VirtualTouchConfig, f as VirtualTouchJoystickConfig, g as VirtualTouchJoysticksConfig, h as VirtualTouchPosition, i as VirtualTouchStyle, Z as ZylemGameConfig } from './game-interfaces-vF5sRi1n.js';
|
|
4
|
-
import { q as Stage, C as CameraWrapper } from './stage-
|
|
5
|
-
export { e as CameraManager, d as CameraOptions, l as FirstPersonOptions, f as FirstPersonPerspective, k as Fixed2DOptions, F as Fixed2DPerspective, n as IsometricOptions, I as IsometricPerspective, P as PerspectiveOptions, R as RenderBundleManager, p as RenderStrategyManager, m as SecondPersonOptions, g as SecondPersonPerspective, S as StageConfigLike, a as StageOptions, j as ThirdPersonOptions, T as ThirdPersonPerspective, o as TopDownOptions, h as TopDownPerspective, b as createCamera, i as createPerspective, c as createStage, s as stageConfig } from './stage-
|
|
4
|
+
import { q as Stage, C as CameraWrapper } from './stage-DT8QQbGk.js';
|
|
5
|
+
export { e as CameraManager, d as CameraOptions, l as FirstPersonOptions, f as FirstPersonPerspective, k as Fixed2DOptions, F as Fixed2DPerspective, n as IsometricOptions, I as IsometricPerspective, P as PerspectiveOptions, R as RenderBundleManager, p as RenderStrategyManager, m as SecondPersonOptions, g as SecondPersonPerspective, S as StageConfigLike, a as StageOptions, j as ThirdPersonOptions, T as ThirdPersonPerspective, o as TopDownOptions, h as TopDownPerspective, b as createCamera, i as createPerspective, c as createStage, s as stageConfig } from './stage-DT8QQbGk.js';
|
|
6
6
|
import { LevelBuffer, LevelEntry, LevelDocument } from '@zylem/bridge';
|
|
7
7
|
export { LevelBuffer, LevelDocument } from '@zylem/bridge';
|
|
8
8
|
import { B as BaseNode, N as NodeInterface } from './base-node-idopiSw5.js';
|
|
@@ -22,6 +22,7 @@ import './default-controls-CAKJ5zlo.js';
|
|
|
22
22
|
import './events.js';
|
|
23
23
|
import 'mitt';
|
|
24
24
|
import '@zylem/behaviors/core';
|
|
25
|
+
import './navigation-session-2rs6rHOw.js';
|
|
25
26
|
import './entity-type-map-CnxOtV01.js';
|
|
26
27
|
import './material-D1IVeQc5.js';
|
|
27
28
|
import 'three/webgpu';
|
package/dist/core.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b,b as c,c as d,d as e,e as f,f as M,g as N,h as O,i as P,j as Q,k as R,l as S,m as T,n as U,o as V,p as W,q as X,r as Y}from"./chunk-
|
|
1
|
+
import{a as b,b as c,c as d,d as e,e as f,f as M,g as N,h as O,i as P,j as Q,k as R,l as S,m as T,n as U,o as V,p as W,q as X,r as Y}from"./chunk-RRYBT6NL.js";import{a,c as q,d as r,e as s,f as t,g as u,h as v,i as w,j as x,l as y,m as z,n as A,o as B,p as C,q as D,r as E,s as F,t as G,u as H,v as I,w as J,x as K,z as L}from"./chunk-NA5SAMP2.js";import"./chunk-Y2NS4OJH.js";import"./chunk-2HSR5XDQ.js";import{e as g}from"./chunk-W6XV7CCC.js";import"./chunk-WBQ5TNRZ.js";import"./chunk-D2PATZCC.js";import"./chunk-BH53MBAZ.js";import"./chunk-PCFF4LLO.js";import"./chunk-UG22Z42P.js";import"./chunk-Y5IU6IA5.js";import"./chunk-B6GDESCB.js";import"./chunk-SIRFF4DY.js";import"./chunk-TRKPYAVB.js";import"./chunk-2XMG3NJS.js";import{a as p}from"./chunk-7GYFZKK7.js";import"./chunk-QGIYILYI.js";import"./chunk-YETBTF6G.js";import"./chunk-LUFSPEPZ.js";import"./chunk-KGAXGWKQ.js";import"./chunk-DLIQ7RKB.js";import"./chunk-X4TZ645S.js";import"./chunk-VLGJAGMX.js";import"./chunk-4QLJUQSJ.js";import"./chunk-3XIJCDII.js";import"./chunk-EVYHPR3J.js";import"./chunk-XRP4JJXL.js";import"./chunk-HOLQZSW3.js";import"./chunk-5WRFDAZN.js";import"./chunk-2NO4YCLR.js";import"./chunk-T6O2SGH5.js";import{a as h,b as i,c as j,d as k,g as l,h as m,i as n,j as o}from"./chunk-7WRQ2UAN.js";import"./chunk-AIQ6IVT5.js";import"./chunk-QXVH6POE.js";import"./chunk-UUOPT2N4.js";import"./chunk-VUJXR5K5.js";import"./chunk-WOT6VMZA.js";export{b as AspectRatio,G as CameraManager,y as CameraPipeline,H as CameraWrapper,B as FirstPersonPerspective,A as Fixed2DPerspective,O as Game,C as IsometricPerspective,x as Perspectives,t as RenderBundleManager,u as RenderStrategyManager,S as STAGE_STATE_CHANGE,E as SecondPersonPerspective,N as StageManager,z as ThirdPersonPerspective,D as TopDownPerspective,i as VEC2_ONE,h as VEC2_ZERO,k as VEC3_ONE,j as VEC3_ZERO,I as createCamera,V as createFollowTarget,P as createGame,F as createPerspective,W as createPlatformFollow,L as createStage,X as createStrategyPan,p as crossfadeTransitionShader,U as dispatchStageState,R as entitySpawner,f as gameConfig,v as getActiveLevelDocument,c as getDisplayAspect,d as getPresetResolution,T as initStageStateDispatcher,s as isManagedRenderEntity,a as isWebGPUSupported,l as normalizeVec2,m as normalizeVec3,e as parseResolution,q as resolveRenderCategory,Y as setCameraFeed,w as setStageFrameProfilerEnabled,J as stageConfig,M as stageState,g as streamLevel,Q as streamLevelOnStage,n as toThreeVector2,o as toThreeVector3,r as usesManagedRenderPath,K as vessel};
|
|
@@ -46,6 +46,12 @@ interface DebugState {
|
|
|
46
46
|
* the Select tool is not armed, and keeps the hover highlight painted.
|
|
47
47
|
*/
|
|
48
48
|
pickMode: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* A Map Navigation tool (path test, obstacle, traversal link) is armed.
|
|
51
|
+
* Those tools live on the stage's navigation session, outside `tool`, and
|
|
52
|
+
* still need the canvas listeners and the game's own pointer input parked.
|
|
53
|
+
*/
|
|
54
|
+
navigationTool: boolean;
|
|
49
55
|
flags: Set<string>;
|
|
50
56
|
}
|
|
51
57
|
declare const debugState: DebugState;
|
package/dist/debug.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DEFAULT_SNAP_SETTINGS, w as DebugEntityResolver, v as DebugTools, S as SnapSettings, T as TRANSFORM_TOOLS, x as TransformTool, d as debugState, k as getHoveredEntity, j as getHoveredEntityId, e as getSelectedEntity, g as getSelectedEntityId, h as getSelectedEntityIds, m as getSnapSettings, t as isPickMode, u as isTransformTool, r as registerDebugEntityResolver, l as resolveDebugEntity, p as setAddType, s as setDebugTool, o as setGridVisible, i as setHoveredEntityId, a as setPaused, q as setPickMode, b as setSelectedEntity, c as setSelectedEntityId, f as setSelectedEntityIds, n as setSnapSettings } from './debug-state-
|
|
1
|
+
export { D as DEFAULT_SNAP_SETTINGS, w as DebugEntityResolver, v as DebugTools, S as SnapSettings, T as TRANSFORM_TOOLS, x as TransformTool, d as debugState, k as getHoveredEntity, j as getHoveredEntityId, e as getSelectedEntity, g as getSelectedEntityId, h as getSelectedEntityIds, m as getSnapSettings, t as isPickMode, u as isTransformTool, r as registerDebugEntityResolver, l as resolveDebugEntity, p as setAddType, s as setDebugTool, o as setGridVisible, i as setHoveredEntityId, a as setPaused, q as setPickMode, b as setSelectedEntity, c as setSelectedEntityId, f as setSelectedEntityIds, n as setSnapSettings } from './debug-state-CKrWEXUz.js';
|
|
2
2
|
export { G as GizmoAxis, a as GizmoDelta, b as GizmoMode, d as GizmoRay, T as TransformGizmo, c as closestAxisValue, i as intersectPlane } from './transform-gizmo-DappLQ9w.js';
|
|
3
3
|
import { Scene, Object3D, Vector3 } from 'three';
|
|
4
4
|
import { c as Vec3 } from './vector-D3eDzvcA.js';
|
package/dist/debug.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-ELQN62PQ.js";import{a as x,b as y}from"./chunk-B6GDESCB.js";import{c as P,d as Q,e as R,f as S}from"./chunk-SIRFF4DY.js";import{a as z,b as A,c as B,d as C,e as D,f as E,g as F,h as G,i as H}from"./chunk-
|
|
1
|
+
import"./chunk-ELQN62PQ.js";import{a as x,b as y}from"./chunk-B6GDESCB.js";import{c as P,d as Q,e as R,f as S}from"./chunk-SIRFF4DY.js";import{a as z,b as A,c as B,d as C,e as D,f as E,g as F,h as G,i as H}from"./chunk-TRKPYAVB.js";import{A as t,C as u,D as v,E as w,a,b,c,d,e,f,h as g,j as h,m as i,n as j,o as k,p as l,q as m,r as n,v as o,w as p,x as q,y as r,z as s}from"./chunk-LUFSPEPZ.js";import{a as I,b as J,c as K,d as L,e as M,f as N,g as O}from"./chunk-UUOPT2N4.js";import"./chunk-WOT6VMZA.js";export{S as ConstructionGrid,c as DEFAULT_SNAP_SETTINGS,x as EntityThumbnailCache,I as SELECTION_BOUNDS_MARGIN,J as SELECTION_THIN_AXIS_FRACTION,L as SELECTION_THIN_AXIS_MAX,K as SELECTION_THIN_AXIS_MIN,a as TRANSFORM_TOOLS,R as TransformGizmo,P as closestAxisValue,d as debugState,G as degreesToRadians,y as entityThumbnailCache,B as eulerToQuaternion,A as focusEntity,v as getHoveredEntity,s as getHoveredEntityId,u as getSelectedEntity,k as getSelectedEntityId,m as getSelectedEntityIds,o as getSnapSettings,Q as intersectPlane,j as isPickMode,b as isTransformTool,N as measureObjectSelectionBounds,M as padSelectionBounds,C as quaternionToEuler,H as radiansToDegrees,e as registerDebugEntityResolver,z as registerEntityFocusContext,f as resolveDebugEntity,O as resolveSelectionBounds,r as setAddType,h as setDebugTool,q as setGridVisible,t as setHoveredEntityId,g as setPaused,i as setPickMode,w as setSelectedEntity,l as setSelectedEntityId,n as setSelectedEntityIds,p as setSnapSettings,F as snapScale,D as snapToIncrement,E as snapVec3};
|
package/dist/entity.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ma,b as na,c as oa,d as pa,e as qa}from"./chunk-
|
|
1
|
+
import{a as ma,b as na,c as oa,d as pa,e as qa}from"./chunk-M47F6LKE.js";import{a as ba,b as ca,c as da,d as ea,e as fa,f as ga,g as ha,h as ia,i as ja,j as ka,l as la}from"./chunk-KGAXGWKQ.js";import{a as X,b as Y,c as Z,d as _,e as $,f as aa}from"./chunk-DLIQ7RKB.js";import{A as J,B as K,C as L,D as M,E as N,J as R,K as S,L as T,M as U,N as V,O as W,b as j,c as k,d as l,e as m,f as n,g as o,h as p,i as q,j as r,k as s,l as t,m as u,n as v,o as w,p as x,q as y,r as z,s as A,t as B,u as C,v as D,w as E,x as F,y as G,z as I}from"./chunk-X4TZ645S.js";import{d as H,e as O,f as P,g as Q}from"./chunk-VLGJAGMX.js";import"./chunk-4QLJUQSJ.js";import{E as i,c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h}from"./chunk-3XIJCDII.js";import"./chunk-EVYHPR3J.js";import"./chunk-XRP4JJXL.js";import"./chunk-HOLQZSW3.js";import"./chunk-5WRFDAZN.js";import"./chunk-2NO4YCLR.js";import"./chunk-T6O2SGH5.js";import"./chunk-7WRQ2UAN.js";import"./chunk-AIQ6IVT5.js";import"./chunk-QXVH6POE.js";import"./chunk-UUOPT2N4.js";import"./chunk-WOT6VMZA.js";export{X as ACTOR_TYPE,p as BOX_TYPE,v as CONE_TYPE,B as CYLINDER_TYPE,I as DISK_TYPE,_ as FOG_TYPE,U as LIGHT_TYPE,ha as LINE_TYPE,ma as PARTICLE_SYSTEM_TYPE,E as PILL_TYPE,L as PLANE_TYPE,y as PYRAMID_TYPE,R as RECT_TYPE,s as SPHERE_TYPE,ea as SPRITE_TYPE,ba as TEXT_TYPE,O as ZONE_TYPE,Y as ZylemActor,q as ZylemBox,w as ZylemCone,C as ZylemCylinder,J as ZylemDisk,$ as ZylemFog,V as ZylemLight,ja as ZylemLine,na as ZylemParticleSystem,F as ZylemPill,M as ZylemPlane,z as ZylemPyramid,S as ZylemRect,t as ZylemSphere,fa as ZylemSprite,ca as ZylemText,P as ZylemZone,a as boxCollision,j as boxMesh,c as coneCollision,l as coneMesh,i as create,Z as createActor,r as createBox,x as createCone,pa as createCooldownIcon,D as createCylinder,K as createDisk,H as createEntity,la as createEntityFactory,aa as createFog,W as createLight,ka as createLine,oa as createParticleSystem,G as createPill,N as createPlane,A as createPyramid,T as createRect,u as createSphere,ga as createSprite,da as createText,Q as createZone,e as cylinderCollision,n as cylinderMesh,qa as destroy,ia as pickZylemLine,f as pillCollision,o as pillMesh,g as planeCollision,d as pyramidCollision,m as pyramidMesh,b as sphereCollision,k as sphereMesh,h as zoneCollision};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { e as InputPlayerNumber, f as InputProvider, I as Inputs, a as SetupContext, U as UpdateContext, D as DestroyContext, m as IGame, h as SetupFunction, g as UpdateFunction, j as DestroyFunction, S as StageNavigationOptions } from './base-node-life-cycle-BK9xebT9.js';
|
|
2
2
|
import { G as GameInputConfig, B as BaseGlobals, Z as ZylemGameConfig } from './game-interfaces-vF5sRi1n.js';
|
|
3
3
|
import { B as BaseNode } from './base-node-idopiSw5.js';
|
|
4
|
-
import { B as BaseEntityInterface, q as Stage } from './stage-
|
|
4
|
+
import { B as BaseEntityInterface, q as Stage } from './stage-DT8QQbGk.js';
|
|
5
5
|
import { E as GameEntityLifeCycle } from './entity-B8VygThO.js';
|
|
6
6
|
import { Color, Vector3 } from 'three';
|
|
7
7
|
import { d as Vec3Components } from './vector-D3eDzvcA.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as e}from"./chunk-NA5SAMP2.js";import"./chunk-2HSR5XDQ.js";import"./chunk-W6XV7CCC.js";import"./chunk-WBQ5TNRZ.js";import"./chunk-D2PATZCC.js";import"./chunk-BH53MBAZ.js";import"./chunk-UG22Z42P.js";import"./chunk-Y5IU6IA5.js";import"./chunk-SIRFF4DY.js";import"./chunk-TRKPYAVB.js";import"./chunk-YETBTF6G.js";import"./chunk-LUFSPEPZ.js";import"./chunk-DLIQ7RKB.js";import"./chunk-VLGJAGMX.js";import"./chunk-4QLJUQSJ.js";import"./chunk-3XIJCDII.js";import"./chunk-EVYHPR3J.js";import"./chunk-XRP4JJXL.js";import"./chunk-HOLQZSW3.js";import"./chunk-5WRFDAZN.js";import"./chunk-2NO4YCLR.js";import"./chunk-T6O2SGH5.js";import"./chunk-7WRQ2UAN.js";import"./chunk-AIQ6IVT5.js";import"./chunk-QXVH6POE.js";import"./chunk-UUOPT2N4.js";import"./chunk-WOT6VMZA.js";import{proxy as t}from"valtio/vanilla";var s=()=>({id:"zylem",globals:{},stages:[e()],debug:!1,time:0,input:void 0}),a=t({...s()});function o(){return{id:a.id??"zylem",globals:a.globals??{},stages:a.stages??[e()],debug:a.debug,time:a.time,input:a.input}}export{o as getGameDefaultConfig};
|
package/dist/graphics.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as p,b as q,c as r,d as s,e as t,f as u,g as v,h as w,i as x,j as y,k as z,l as A,m as B,n as C,o as D,p as E,q as F,r as G,s as H,t as I,u as J,v as K,w as L}from"./chunk-4DAITCJS.js";import{a as o}from"./chunk-7GYFZKK7.js";import{c as a,d as b,g as c,h as d,i as e,j as f,l as g,m as h,n as i,o as j,p as k,q as l,r as m,s as n}from"./chunk-
|
|
1
|
+
import{a as p,b as q,c as r,d as s,e as t,f as u,g as v,h as w,i as x,j as y,k as z,l as A,m as B,n as C,o as D,p as E,q as F,r as G,s as H,t as I,u as J,v as K,w as L}from"./chunk-4DAITCJS.js";import{a as o}from"./chunk-7GYFZKK7.js";import{c as a,d as b,g as c,h as d,i as e,j as f,l as g,m as h,n as i,o as j,p as k,q as l,r as m,s as n}from"./chunk-HOLQZSW3.js";import"./chunk-5WRFDAZN.js";import"./chunk-2NO4YCLR.js";import"./chunk-T6O2SGH5.js";import"./chunk-7WRQ2UAN.js";import"./chunk-QXVH6POE.js";import"./chunk-WOT6VMZA.js";export{n as Fn,A as abs,d as applyEntityGlow,z as asin,y as atan,v as clamp,x as cos,p as createBackgroundShader,c as createEntityGlowMaterial,g as createNodeMaterialFromTSL,o as crossfadeTransitionShader,I as dot,B as exp,m as float,G as floor,H as fract,f as isGLSLShader,e as isTSLShader,J as length,E as max,F as min,t as mix,L as mod,s as normalize,a as objectVertexShader,r as positionWorld,q as positionWorldDirection,C as pow,w as sin,u as smoothstep,b as standardShader,D as step,j as time,h as uniform,i as uv,K as vec2,k as vec3,l as vec4};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-TLUGF3AS.js";import"./chunk-WOT6VMZA.js";export{b as NavigationMesh,a as getPositionsAndIndices};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { NavigationStatus, NavigationAsset, NavigationPath, NavigationEdit, LevelDocument, NavigationToolPayload, BridgeVec3 } from '@zylem/bridge';
|
|
2
|
+
import { Object3D, Vector3 } from 'three';
|
|
3
|
+
|
|
4
|
+
interface NavigationSessionHost {
|
|
5
|
+
stageId: string;
|
|
6
|
+
scene(): Object3D | null;
|
|
7
|
+
status?(status: NavigationStatus): void;
|
|
8
|
+
baked?(requestId: string, asset: NavigationAsset): void;
|
|
9
|
+
path?(result: NavigationPath, requestId?: string): void;
|
|
10
|
+
edit?(edit: NavigationEdit): void;
|
|
11
|
+
}
|
|
12
|
+
/** Per-stage navigation, lazily loading Recast only on bake or asset load. */
|
|
13
|
+
declare class NavigationSession {
|
|
14
|
+
private host;
|
|
15
|
+
private document;
|
|
16
|
+
private sourceHash;
|
|
17
|
+
private generation;
|
|
18
|
+
private cancelWork;
|
|
19
|
+
private mesh;
|
|
20
|
+
private helper;
|
|
21
|
+
private overlay;
|
|
22
|
+
private annotations;
|
|
23
|
+
private route;
|
|
24
|
+
private visible;
|
|
25
|
+
private tool;
|
|
26
|
+
private firstPoint;
|
|
27
|
+
private state;
|
|
28
|
+
constructor(host: NavigationSessionHost);
|
|
29
|
+
get status(): NavigationStatus;
|
|
30
|
+
private publish;
|
|
31
|
+
private cancel;
|
|
32
|
+
private releaseMesh;
|
|
33
|
+
/** Selection and visibility syncs preserve the current bake. */
|
|
34
|
+
sync(document: LevelDocument): void;
|
|
35
|
+
setPreview(visible: boolean): void;
|
|
36
|
+
setTool(tool: NavigationToolPayload): void;
|
|
37
|
+
/** Import a saved asset without running the generator. */
|
|
38
|
+
load(asset: NavigationAsset): Promise<void>;
|
|
39
|
+
private generate;
|
|
40
|
+
bake(requestId?: string): Promise<NavigationAsset | null>;
|
|
41
|
+
findPath(start: BridgeVec3, end: BridgeVec3): NavigationPath;
|
|
42
|
+
query(start: BridgeVec3, end: BridgeVec3, requestId?: string): NavigationPath;
|
|
43
|
+
private line;
|
|
44
|
+
private drawAnnotations;
|
|
45
|
+
/** Two clicks on the level surface test a path, draw an obstacle, or create a link. */
|
|
46
|
+
pointerDown(ray: {
|
|
47
|
+
origin: Vector3;
|
|
48
|
+
direction: Vector3;
|
|
49
|
+
}): boolean;
|
|
50
|
+
clear(): void;
|
|
51
|
+
dispose(): void;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { NavigationSession as N, type NavigationSessionHost as a };
|