@zylem/game-lib 0.8.2 → 0.8.4

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.
Files changed (58) hide show
  1. package/dist/actions.d.ts +5 -5
  2. package/dist/api/game-lib.api.json +2079 -1214
  3. package/dist/api/game-lib.api.md +150 -97
  4. package/dist/api/game-lib.d.ts +321 -95
  5. package/dist/api/game-lib.typedoc.json +141279 -214520
  6. package/dist/bridge.d.ts +111 -0
  7. package/dist/bridge.js +1 -0
  8. package/dist/{chunk-KVSJE4XD.js → chunk-3I537JFL.js} +1 -1
  9. package/dist/chunk-4CHZUWLF.js +1 -0
  10. package/dist/chunk-6B5JP7T5.js +24 -0
  11. package/dist/chunk-AIQ6IVT5.js +1 -0
  12. package/dist/chunk-C5NEGC3S.js +1 -0
  13. package/dist/chunk-D3JO4HW2.js +1 -0
  14. package/dist/chunk-HNCTOJP7.js +1 -0
  15. package/dist/chunk-LKFF6XJC.js +1 -0
  16. package/dist/{chunk-CD7ZOZ35.js → chunk-OAWK2UUY.js} +1 -1
  17. package/dist/chunk-PNLNC3FA.js +1 -0
  18. package/dist/chunk-TV3AZKT4.js +9 -0
  19. package/dist/chunk-VIPINV7V.js +19 -0
  20. package/dist/chunk-W5SXED5T.js +1 -0
  21. package/dist/{chunk-YAOXFYOD.js → chunk-WBQ5TNRZ.js} +1 -1
  22. package/dist/{collision-builder-B_tm8OVy.d.ts → collision-builder-4TVDzXsp.d.ts} +1 -1
  23. package/dist/core.d.ts +11 -11
  24. package/dist/core.js +1 -1
  25. package/dist/debug-state-s0s-qndj.d.ts +49 -0
  26. package/dist/debug.d.ts +32 -7
  27. package/dist/debug.js +1 -1
  28. package/dist/{entity-BGEq1yfC.d.ts → entity-BI7cSlK8.d.ts} +3 -3
  29. package/dist/{entity-B9yZeBm4.d.ts → entity-DDks47JB.d.ts} +1 -1
  30. package/dist/{entity-type-map-CW6RHQkx.d.ts → entity-type-map-COHu4fkW.d.ts} +41 -7
  31. package/dist/entity.d.ts +7 -7
  32. package/dist/entity.js +1 -1
  33. package/dist/events.d.ts +1 -64
  34. package/dist/events.js +1 -1
  35. package/dist/{game-DbqBQiFC.d.ts → game-4fsy55uN.d.ts} +55 -27
  36. package/dist/game-default-4PPYYGAR.js +1 -0
  37. package/dist/graphics.d.ts +5 -5
  38. package/dist/{material-DbSuZBbP.d.ts → material-BKPYeBC6.d.ts} +1 -1
  39. package/dist/public.d.ts +12 -10
  40. package/dist/public.js +1 -1
  41. package/dist/runtime.d.ts +3 -3
  42. package/dist/runtime.js +1 -1
  43. package/dist/{vector-DN6zlPoE.d.ts → vector-DPbwlzgG.d.ts} +10 -2
  44. package/dist/web-components.d.ts +9 -9
  45. package/dist/web-components.js +1 -1
  46. package/dist/{zylem-camera-Du2UPW9O.d.ts → zylem-camera-B73ZNcgs.d.ts} +1 -1
  47. package/package.json +20 -14
  48. package/LICENSE +0 -21
  49. package/dist/chunk-3PRBSSTS.js +0 -24
  50. package/dist/chunk-CFVRRRZZ.js +0 -1
  51. package/dist/chunk-COM6HJ2L.js +0 -1
  52. package/dist/chunk-JQKS42G4.js +0 -1
  53. package/dist/chunk-MZZCDXFB.js +0 -1
  54. package/dist/chunk-TAUWDQZF.js +0 -9
  55. package/dist/chunk-VS2D4B3W.js +0 -1
  56. package/dist/chunk-YHEWKN7N.js +0 -1
  57. package/dist/debug-state-DRoeasG2.d.ts +0 -17
  58. package/dist/game-default-6AZZCNST.js +0 -1
@@ -5,6 +5,7 @@
5
5
  ```ts
6
6
 
7
7
  import { abs } from 'three/tsl';
8
+ import { announceBridgeReady } from '@zylem/bridge';
8
9
  import { asin } from 'three/tsl';
9
10
  import { atan } from 'three/tsl';
10
11
  import { BehaviorDescriptor } from '@zylem/behaviors';
@@ -26,6 +27,14 @@ import { BoundaryRicochet3DEntity } from '@zylem/behaviors';
26
27
  import { BoundaryRicochetCoordinator } from '@zylem/behaviors';
27
28
  import { BoundaryRicochetEntity } from '@zylem/behaviors';
28
29
  import { BoundaryRicochetUpdate } from '@zylem/behaviors';
30
+ import { BRIDGE_READY_EVENT } from '@zylem/bridge';
31
+ import { BridgeChannel } from '@zylem/bridge';
32
+ import { BridgeDebugTool } from '@zylem/bridge';
33
+ import { BridgeHandler } from '@zylem/bridge';
34
+ import { GameLoadingPayload as BridgeLoadingPayload } from '@zylem/bridge';
35
+ import { BridgeMessages } from '@zylem/bridge';
36
+ import { BridgeMessageType } from '@zylem/bridge';
37
+ import { BridgeVec3 } from '@zylem/bridge';
29
38
  import { BufferGeometry } from 'three';
30
39
  import { BurstParticlePresetOptions } from '@zylem/behaviors';
31
40
  import { Camera } from 'three';
@@ -77,11 +86,14 @@ import { Destructible3DHandle } from '@zylem/behaviors';
77
86
  import { DestructibleMesh } from '@zylem/behaviors';
78
87
  import { DestructiblePrebakeWorkerAPI } from '@zylem/behaviors';
79
88
  import { dot } from 'three/tsl';
89
+ import { EditorToGameMessages } from '@zylem/bridge';
80
90
  import { emitRuntimeGoal } from '@zylem/behaviors/runtime-2d';
81
91
  import { emitRuntimeRicochet } from '@zylem/behaviors/runtime-2d';
82
92
  import { emitRuntimeTriggerRegionEnter } from '@zylem/behaviors/runtime-2d';
83
93
  import { EntityDefinition } from '@zylem/behaviors/core';
84
94
  import { EntityHandle } from '@zylem/behaviors/core';
95
+ import { EntitySummaryPayload } from '@zylem/bridge';
96
+ import { EntityThumbnailPayload } from '@zylem/bridge';
85
97
  import { exp } from 'three/tsl';
86
98
  import { FacingAngle2DEntity } from '@zylem/behaviors';
87
99
  import { fireCooldown } from '@zylem/behaviors';
@@ -108,11 +120,16 @@ import { FogExp2 } from 'three';
108
120
  import { fract } from 'three/tsl';
109
121
  import { FractureOptions } from '@zylem/behaviors';
110
122
  import { FractureOptionsInput } from '@zylem/behaviors';
123
+ import { GameConfigPayload } from '@zylem/bridge';
124
+ import { GameNoticePayload } from '@zylem/bridge';
125
+ import { GameToEditorMessages } from '@zylem/bridge';
126
+ import { GameVariablePayload } from '@zylem/bridge';
111
127
  import { getCooldown } from '@zylem/behaviors';
112
128
  import { getCooldownStore } from '@zylem/behaviors';
113
129
  import { getEntityFacingAngle2D } from '@zylem/behaviors';
114
130
  import { getPosition } from '@zylem/behaviors/core';
115
131
  import { getVelocity } from '@zylem/behaviors/core';
132
+ import { getZylemBridge } from '@zylem/bridge';
116
133
  import { Group } from 'three';
117
134
  import { hasAnyWorldBoundary2DHit } from '@zylem/behaviors';
118
135
  import { hasAnyWorldBoundary3DHit } from '@zylem/behaviors';
@@ -308,6 +325,7 @@ import { StageBodyKindValue } from '@zylem/behaviors/core';
308
325
  import { StageBoundaryDim } from '@zylem/behaviors/core';
309
326
  import { StageColliderConfig } from '@zylem/behaviors/core';
310
327
  import { StageColliderShape } from '@zylem/behaviors/core';
328
+ import { StageConfigPayload } from '@zylem/bridge';
311
329
  import { StageDebugRender } from '@zylem/behaviors/core';
312
330
  import { StageEvent } from '@zylem/behaviors/core';
313
331
  import { StageEventType } from '@zylem/behaviors/core';
@@ -316,6 +334,7 @@ import { StageRaycastHit } from '@zylem/behaviors/core';
316
334
  import { StageRenderSlot } from '@zylem/behaviors/core';
317
335
  import { StageRicochetDim } from '@zylem/behaviors/core';
318
336
  import { StageRicochetReflection } from '@zylem/behaviors/core';
337
+ import { StageSnapshotPayload } from '@zylem/bridge';
319
338
  import { StageTopDownPlane } from '@zylem/behaviors/core';
320
339
  import { Static } from '@sinclair/typebox';
321
340
  import { step } from 'three/tsl';
@@ -380,6 +399,7 @@ import { WorldBoundary3DPosition } from '@zylem/behaviors';
380
399
  import { WorldBoundary3DState } from '@zylem/behaviors';
381
400
  import { wrapAround3D } from '@zylem/behaviors/core';
382
401
  import { wrapAroundXY } from '@zylem/behaviors/core';
402
+ import { ZylemBridge } from '@zylem/bridge';
383
403
 
384
404
  export { abs }
385
405
 
@@ -411,6 +431,8 @@ export interface AnalogState {
411
431
  value: number;
412
432
  }
413
433
 
434
+ export { announceBridgeReady }
435
+
414
436
  // Warning: (ae-forgotten-export) The symbol "TransformableEntity" needs to be exported by the entry point public.d.ts
415
437
  //
416
438
  // @public
@@ -469,6 +491,22 @@ export function boxCollision(opts?: BoxCollisionOptions): CollisionComponent;
469
491
  // @public
470
492
  export function boxMesh(opts?: BoxMeshOptions): Mesh;
471
493
 
494
+ export { BRIDGE_READY_EVENT }
495
+
496
+ export { BridgeChannel }
497
+
498
+ export { BridgeDebugTool }
499
+
500
+ export { BridgeHandler }
501
+
502
+ export { BridgeLoadingPayload }
503
+
504
+ export { BridgeMessages }
505
+
506
+ export { BridgeMessageType }
507
+
508
+ export { BridgeVec3 }
509
+
472
510
  // @public
473
511
  export function buildBoxCollider(size: Vec3Input, options?: RuntimeColliderOptions): StageColliderConfig;
474
512
 
@@ -920,13 +958,16 @@ export function cylinderCollision(opts?: CylinderCollisionOptions): CollisionCom
920
958
  // @public
921
959
  export function cylinderMesh(opts?: CylinderMeshOptions): Mesh;
922
960
 
961
+ // @public
962
+ export type DebugEntityResolver = (uuid: string) => GameEntity<any> | null;
963
+
923
964
  // Warning: (ae-forgotten-export) The symbol "DebugState" needs to be exported by the entry point public.d.ts
924
965
  //
925
966
  // @public (undocumented)
926
967
  export const debugState: DebugState;
927
968
 
928
969
  // @public (undocumented)
929
- export type DebugTools = 'select' | 'translate' | 'rotate' | 'scale' | 'delete' | 'none';
970
+ export type DebugTools = 'select' | 'translate' | 'rotate' | 'scale' | 'delete' | 'add' | 'none';
930
971
 
931
972
  // @public
932
973
  export function defaultTouchControls(player?: InputPlayer, options?: DefaultTouchControlsOptions): GameInputConfig;
@@ -989,6 +1030,8 @@ export function dispatchStageState(): void;
989
1030
 
990
1031
  export { dot }
991
1032
 
1033
+ export { EditorToGameMessages }
1034
+
992
1035
  export { emitRuntimeGoal }
993
1036
 
994
1037
  export { emitRuntimeRicochet }
@@ -998,40 +1041,6 @@ export { emitRuntimeTriggerRegionEnter }
998
1041
  // @public (undocumented)
999
1042
  export type EntityBlueprint = Static<typeof EntitySchema>;
1000
1043
 
1001
- // @public
1002
- export interface EntityConfigPayload {
1003
- bounds?: {
1004
- width: number;
1005
- height: number;
1006
- depth: number;
1007
- };
1008
- // (undocumented)
1009
- name: string;
1010
- // (undocumented)
1011
- position: {
1012
- x: number;
1013
- y: number;
1014
- z: number;
1015
- };
1016
- // (undocumented)
1017
- rotation: {
1018
- x: number;
1019
- y: number;
1020
- z: number;
1021
- };
1022
- // (undocumented)
1023
- scale: {
1024
- x: number;
1025
- y: number;
1026
- z: number;
1027
- };
1028
- thumbnail?: string | null;
1029
- // (undocumented)
1030
- type: string;
1031
- // (undocumented)
1032
- uuid: string;
1033
- }
1034
-
1035
1044
  export { EntityDefinition }
1036
1045
 
1037
1046
  // @public (undocumented)
@@ -1138,9 +1147,12 @@ export const EntitySchema: _sinclair_typebox.TObject<{
1138
1147
  // @public (undocumented)
1139
1148
  export function entitySpawner(factory: (x: number, y: number) => Promise<any> | GameEntity<any>): EntitySpawner;
1140
1149
 
1150
+ export { EntitySummaryPayload }
1151
+
1141
1152
  // @public
1142
1153
  export class EntityThumbnailCache {
1143
- constructor(size?: number);
1154
+ constructor(size?: number, maxEntries?: number);
1155
+ get cacheSize(): number;
1144
1156
  // (undocumented)
1145
1157
  clear(): void;
1146
1158
  ensure(uuid: string, object: Object3D | null | undefined): Promise<EntityThumbnailCacheEntry | null>;
@@ -1148,6 +1160,7 @@ export class EntityThumbnailCache {
1148
1160
  get(uuid: string): EntityThumbnailCacheEntry | null;
1149
1161
  // (undocumented)
1150
1162
  invalidate(uuid: string): void;
1163
+ get pendingCount(): number;
1151
1164
  // (undocumented)
1152
1165
  setRenderer(renderer: WebGPURenderer | null): void;
1153
1166
  }
@@ -1161,13 +1174,14 @@ export interface EntityThumbnailCacheEntry extends EntityThumbnailResult {
1161
1174
  uuid: string;
1162
1175
  }
1163
1176
 
1177
+ export { EntityThumbnailPayload }
1178
+
1164
1179
  // @public (undocumented)
1165
1180
  export interface EntityThumbnailResult {
1166
1181
  // Warning: (ae-forgotten-export) The symbol "ObjectBounds" needs to be exported by the entry point public.d.ts
1167
1182
  //
1168
1183
  // (undocumented)
1169
1184
  bounds: Pick<ObjectBounds, 'width' | 'height' | 'depth'>;
1170
- // (undocumented)
1171
1185
  dataUrl: string;
1172
1186
  }
1173
1187
 
@@ -1405,6 +1419,39 @@ export class Game<TGlobals extends BaseGlobals> implements IGame<TGlobals> {
1405
1419
  step(deltaTime?: number): void;
1406
1420
  }
1407
1421
 
1422
+ // @public (undocumented)
1423
+ export class GameBridge {
1424
+ constructor();
1425
+ connect(host: GameBridgeHost, announceTarget?: EventTarget): void;
1426
+ // (undocumented)
1427
+ disconnect(): void;
1428
+ onEditorAttached(callback: () => void): () => void;
1429
+ // (undocumented)
1430
+ publishConfig(config: GameConfigPayload): void;
1431
+ // (undocumented)
1432
+ publishLoading(payload: BridgeLoadingPayload): void;
1433
+ publishNotice(level: GameNoticePayload['level'], message: string): void;
1434
+ // (undocumented)
1435
+ publishStageSnapshot(snapshot: StageSnapshotPayload): void;
1436
+ // (undocumented)
1437
+ publishStatus(status: {
1438
+ paused?: boolean;
1439
+ debug?: boolean;
1440
+ }): void;
1441
+ publishVariable(payload: GameVariablePayload): void;
1442
+ queueEntityRemoved(uuids: string[]): void;
1443
+ queueEntityUpsert(entities: EntitySummaryPayload[]): void;
1444
+ queueThumbnails(thumbnails: EntityThumbnailPayload[]): void;
1445
+ wantsEntityUpdates(): boolean;
1446
+ wantsThumbnails(): boolean;
1447
+ }
1448
+
1449
+ // @public
1450
+ export interface GameBridgeHost {
1451
+ resolveEntity(uuid: string): GameEntity<any> | null;
1452
+ setStageVariable?(key: string, value: unknown): void;
1453
+ }
1454
+
1408
1455
  // @public
1409
1456
  export function gameConfig(config: GameConfigLike): GameConfigLike;
1410
1457
 
@@ -1538,6 +1585,8 @@ export type GameConfigLike = Partial<{
1538
1585
  canvas: HTMLCanvasElement;
1539
1586
  }>;
1540
1587
 
1588
+ export { GameConfigPayload }
1589
+
1541
1590
  // @public (undocumented)
1542
1591
  export type GameDeviceConfig = Partial<{
1543
1592
  aspectRatio: AspectRatioValue | keyof typeof AspectRatio;
@@ -1777,7 +1826,6 @@ export type GameEvents = {
1777
1826
  'debug': {
1778
1827
  enabled: boolean;
1779
1828
  };
1780
- 'state:dispatch': StateDispatchPayload;
1781
1829
  };
1782
1830
 
1783
1831
  // @public (undocumented)
@@ -2009,6 +2057,10 @@ export interface GameLoadingPayload extends LoadingEvent {
2009
2057
  stageName?: string;
2010
2058
  }
2011
2059
 
2060
+ export { GameToEditorMessages }
2061
+
2062
+ export { GameVariablePayload }
2063
+
2012
2064
  export { getCooldown }
2013
2065
 
2014
2066
  export { getCooldownStore }
@@ -2024,6 +2076,12 @@ export function getGlobal<T = unknown>(path: string): T | undefined;
2024
2076
  // @public
2025
2077
  export function getGlobals<T = Record<string, unknown>>(): T;
2026
2078
 
2079
+ // @public
2080
+ export function getHoveredEntity(): GameEntity<any> | null;
2081
+
2082
+ // @public (undocumented)
2083
+ export function getHoveredEntityId(): string | null;
2084
+
2027
2085
  export { getPosition }
2028
2086
 
2029
2087
  // @public (undocumented)
@@ -2034,11 +2092,19 @@ export function getPresetResolution(preset: RetroPresetKey, key?: string): Retro
2034
2092
  // @public
2035
2093
  export function getRotation(entity: RotatableEntity): any;
2036
2094
 
2095
+ // @public
2096
+ export function getSelectedEntity(): GameEntity<any> | null;
2097
+
2098
+ // @public (undocumented)
2099
+ export function getSelectedEntityId(): string | null;
2100
+
2037
2101
  // @public
2038
2102
  export function getVariable<T = unknown>(target: object, path: string): T | undefined;
2039
2103
 
2040
2104
  export { getVelocity }
2041
2105
 
2106
+ export { getZylemBridge }
2107
+
2042
2108
  // @public
2043
2109
  export function globalChange<T = any>(key: string, callback: (value: T, ctx: UpdateContext<any>) => void): (ctx: UpdateContext<any>) => void;
2044
2110
 
@@ -2593,6 +2659,9 @@ export const RECT_TYPE: unique symbol;
2593
2659
 
2594
2660
  export { registerCooldown }
2595
2661
 
2662
+ // @public
2663
+ export function registerDebugEntityResolver(resolver: DebugEntityResolver): () => void;
2664
+
2596
2665
  // @public
2597
2666
  export function registerEntityFocusContext(context: EntityFocusContext): () => void;
2598
2667
 
@@ -2666,6 +2735,9 @@ export function resolveButtonAccent(theme: TouchTheme, slot: VirtualTouchButtonS
2666
2735
 
2667
2736
  export { ResolvedAim2D }
2668
2737
 
2738
+ // @public
2739
+ export function resolveDebugEntity(uuid: string | null): GameEntity<any> | null;
2740
+
2669
2741
  // @public (undocumented)
2670
2742
  export interface ResolveGameConfigRuntime {
2671
2743
  // (undocumented)
@@ -2934,6 +3006,9 @@ export function setDebugTool(tool: DebugTools): void;
2934
3006
  // @public
2935
3007
  export function setGlobal(path: string, value: unknown): void;
2936
3008
 
3009
+ // @public (undocumented)
3010
+ export function setHoveredEntityId(uuid: string | null): void;
3011
+
2937
3012
  // @public (undocumented)
2938
3013
  export function setPaused(paused: boolean): void;
2939
3014
 
@@ -2969,8 +3044,11 @@ export function setRotationY(entity: RotatableEntity, y: number): void;
2969
3044
  // @public
2970
3045
  export function setRotationZ(entity: RotatableEntity, z: number): void;
2971
3046
 
3047
+ // @public @deprecated (undocumented)
3048
+ export function setSelectedEntity(entity: GameEntity<any> | string | null): void;
3049
+
2972
3050
  // @public (undocumented)
2973
- export function setSelectedEntity(entity: GameEntity<any> | null): void;
3051
+ export function setSelectedEntityId(uuid: string | null): void;
2974
3052
 
2975
3053
  // @public (undocumented)
2976
3054
  export function setStageFrameProfilerEnabled(value: boolean): void;
@@ -3055,6 +3133,7 @@ export class SimulationBody implements PhysicsRenderPoseProvider {
3055
3133
  linvel(): PhysicsVector3;
3056
3134
  lockRotations(locked: boolean, _wakeUp?: boolean): void;
3057
3135
  lockTranslations(locked: boolean, _wakeUp?: boolean): void;
3136
+ markPoseDiscontinuity(): void;
3058
3137
  // (undocumented)
3059
3138
  mass(): number;
3060
3139
  // Warning: (ae-forgotten-export) The symbol "PhysicsQuaternion" needs to be exported by the entry point public.d.ts
@@ -3161,6 +3240,15 @@ export type SpriteImage = {
3161
3240
  file: string;
3162
3241
  };
3163
3242
 
3243
+ // @public
3244
+ export type SpriteSheet = {
3245
+ file: string;
3246
+ columns: number;
3247
+ rows: number;
3248
+ frames: Array<string | null>;
3249
+ filter?: 'nearest' | 'linear';
3250
+ };
3251
+
3164
3252
  // @public
3165
3253
  export const STAGE_STATE_CHANGE = "STAGE_STATE_CHANGE";
3166
3254
 
@@ -3226,25 +3314,7 @@ export type StageConfigLike = Partial<{
3226
3314
  postProcessingEffects: ZylemPostEffect[];
3227
3315
  }>;
3228
3316
 
3229
- // @public
3230
- export interface StageConfigPayload {
3231
- // (undocumented)
3232
- backgroundColor: string;
3233
- // (undocumented)
3234
- backgroundImage: string | null;
3235
- // (undocumented)
3236
- gravity: {
3237
- x: number;
3238
- y: number;
3239
- z: number;
3240
- };
3241
- // (undocumented)
3242
- id: string;
3243
- // (undocumented)
3244
- inputs: Record<string, string[]>;
3245
- // (undocumented)
3246
- variables: Record<string, unknown>;
3247
- }
3317
+ export { StageConfigPayload }
3248
3318
 
3249
3319
  export { StageDebugRender }
3250
3320
 
@@ -3407,6 +3477,8 @@ export const StageSchema: _sinclair_typebox.TObject<{
3407
3477
  assets: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
3408
3478
  }>;
3409
3479
 
3480
+ export { StageSnapshotPayload }
3481
+
3410
3482
  // @public (undocumented)
3411
3483
  export const stageState: {
3412
3484
  previous: StageBlueprint | null;
@@ -3446,34 +3518,6 @@ export const standardShader: {
3446
3518
  fragment: string;
3447
3519
  };
3448
3520
 
3449
- // @public
3450
- export interface StateDispatchPayload {
3451
- // (undocumented)
3452
- config?: {
3453
- id: string;
3454
- aspectRatio: number;
3455
- fullscreen: boolean;
3456
- bodyBackground: string | undefined;
3457
- internalResolution: {
3458
- width: number;
3459
- height: number;
3460
- } | undefined;
3461
- debug: boolean;
3462
- } | null;
3463
- // (undocumented)
3464
- entities?: EntityConfigPayload[] | null;
3465
- // (undocumented)
3466
- path: string;
3467
- // (undocumented)
3468
- previousValue?: unknown;
3469
- // (undocumented)
3470
- scope: 'game' | 'stage' | 'entity';
3471
- // (undocumented)
3472
- stageConfig?: StageConfigPayload | null;
3473
- // (undocumented)
3474
- value: unknown;
3475
- }
3476
-
3477
3521
  export { step }
3478
3522
 
3479
3523
  // @public
@@ -4182,6 +4226,8 @@ export class ZylemBox extends GameEntity<ZylemBoxOptions> {
4182
4226
  static type: symbol;
4183
4227
  }
4184
4228
 
4229
+ export { ZylemBridge }
4230
+
4185
4231
  // Warning: (ae-forgotten-export) The symbol "ZylemConeOptions" needs to be exported by the entry point public.d.ts
4186
4232
  //
4187
4233
  // @public
@@ -4497,9 +4543,11 @@ export class ZylemSprite extends GameEntity<ZylemSpriteOptions> {
4497
4543
  // (undocumented)
4498
4544
  protected createAnimations(animations: SpriteAnimation[]): void;
4499
4545
  // (undocumented)
4546
+ protected createSpriteFromSheet(sheet: SpriteSheet): void;
4547
+ // (undocumented)
4500
4548
  protected createSpritesFromImages(images: SpriteImage[]): void;
4501
4549
  // (undocumented)
4502
- protected currentAnimation: any;
4550
+ protected currentAnimation: string | null;
4503
4551
  // (undocumented)
4504
4552
  protected currentAnimationFrame: string;
4505
4553
  // (undocumented)
@@ -4509,9 +4557,14 @@ export class ZylemSprite extends GameEntity<ZylemSpriteOptions> {
4509
4557
  // (undocumented)
4510
4558
  protected currentSpriteIndex: number;
4511
4559
  // (undocumented)
4560
+ protected flippedX: boolean;
4561
+ // (undocumented)
4562
+ isFlippedX(): boolean;
4512
4563
  setAnimation(name: string, delta: number): void;
4564
+ setFlipX(flip: boolean): void;
4513
4565
  // (undocumented)
4514
4566
  setSprite(key: string): void;
4567
+ protected sheetTexture: Texture | null;
4515
4568
  // (undocumented)
4516
4569
  spriteDestroy(params: DestroyContext<ZylemSpriteOptions>): void;
4517
4570
  // (undocumented)
@@ -4592,16 +4645,16 @@ export class ZylemZone extends GameEntity<ZylemZoneOptions> implements Collision
4592
4645
 
4593
4646
  // Warnings were encountered during analysis:
4594
4647
  //
4595
- // dist/entity-BGEq1yfC.d.ts:423:5 - (ae-forgotten-export) The symbol "RenderCategory_2" needs to be exported by the entry point public.d.ts
4596
- // dist/entity-BGEq1yfC.d.ts:424:5 - (ae-forgotten-export) The symbol "RuntimeEntityOptions" needs to be exported by the entry point public.d.ts
4597
- // dist/entity-BGEq1yfC.d.ts:425:5 - (ae-forgotten-export) The symbol "CollisionOptions" needs to be exported by the entry point public.d.ts
4598
- // dist/entity-BGEq1yfC.d.ts:426:5 - (ae-forgotten-export) The symbol "MaterialOptions" needs to be exported by the entry point public.d.ts
4599
- // dist/entity-BGEq1yfC.d.ts:434:9 - (ae-forgotten-export) The symbol "IBuilder" needs to be exported by the entry point public.d.ts
4600
- // dist/entity-BGEq1yfC.d.ts:434:9 - (ae-forgotten-export) The symbol "EntityMeshBuilder" needs to be exported by the entry point public.d.ts
4601
- // dist/entity-BGEq1yfC.d.ts:435:9 - (ae-forgotten-export) The symbol "EntityCollisionBuilder" needs to be exported by the entry point public.d.ts
4602
- // dist/entity-BGEq1yfC.d.ts:436:9 - (ae-forgotten-export) The symbol "MaterialBuilder" needs to be exported by the entry point public.d.ts
4603
- // dist/game-DbqBQiFC.d.ts:937:5 - (ae-forgotten-export) The symbol "StageAssetLoaderConfig" needs to be exported by the entry point public.d.ts
4604
- // dist/game-DbqBQiFC.d.ts:1549:5 - (ae-forgotten-export) The symbol "StageInterface" needs to be exported by the entry point public.d.ts
4648
+ // dist/entity-BI7cSlK8.d.ts:423:5 - (ae-forgotten-export) The symbol "RenderCategory_2" needs to be exported by the entry point public.d.ts
4649
+ // dist/entity-BI7cSlK8.d.ts:424:5 - (ae-forgotten-export) The symbol "RuntimeEntityOptions" needs to be exported by the entry point public.d.ts
4650
+ // dist/entity-BI7cSlK8.d.ts:425:5 - (ae-forgotten-export) The symbol "CollisionOptions" needs to be exported by the entry point public.d.ts
4651
+ // dist/entity-BI7cSlK8.d.ts:426:5 - (ae-forgotten-export) The symbol "MaterialOptions" needs to be exported by the entry point public.d.ts
4652
+ // dist/entity-BI7cSlK8.d.ts:434:9 - (ae-forgotten-export) The symbol "IBuilder" needs to be exported by the entry point public.d.ts
4653
+ // dist/entity-BI7cSlK8.d.ts:434:9 - (ae-forgotten-export) The symbol "EntityMeshBuilder" needs to be exported by the entry point public.d.ts
4654
+ // dist/entity-BI7cSlK8.d.ts:435:9 - (ae-forgotten-export) The symbol "EntityCollisionBuilder" needs to be exported by the entry point public.d.ts
4655
+ // dist/entity-BI7cSlK8.d.ts:436:9 - (ae-forgotten-export) The symbol "MaterialBuilder" needs to be exported by the entry point public.d.ts
4656
+ // dist/game-4fsy55uN.d.ts:951:5 - (ae-forgotten-export) The symbol "StageAssetLoaderConfig" needs to be exported by the entry point public.d.ts
4657
+ // dist/game-4fsy55uN.d.ts:1563:5 - (ae-forgotten-export) The symbol "StageInterface" needs to be exported by the entry point public.d.ts
4605
4658
 
4606
4659
  // (No @packageDocumentation comment for this package)
4607
4660