@zylem/game-lib 0.8.3 → 0.8.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/dist/actions.d.ts +7 -5
- package/dist/api/game-lib.api.json +3564 -395
- package/dist/api/game-lib.api.md +196 -12
- package/dist/api/game-lib.d.ts +547 -14
- package/dist/api/game-lib.typedoc.json +213478 -129350
- package/dist/base-node-idopiSw5.d.ts +96 -0
- package/dist/bridge.d.ts +41 -5
- package/dist/bridge.js +1 -1
- package/dist/catalog.d.ts +77 -0
- package/dist/catalog.js +1 -0
- package/dist/{chunk-CM5YRNBJ.js → chunk-7NYP4YAG.js} +1 -1
- package/dist/chunk-AE3CTVHY.js +1 -0
- package/dist/chunk-BCFFS3FP.js +1 -0
- package/dist/chunk-BMRFDDMR.js +1 -0
- package/dist/chunk-DECK4UEC.js +1 -0
- package/dist/chunk-DQQA3VJH.js +1 -0
- package/dist/chunk-FYQNZCIP.js +1 -0
- package/dist/chunk-GHJQ2HKI.js +1 -0
- package/dist/chunk-LD4KDRYL.js +24 -0
- package/dist/chunk-MXO4VGDB.js +1 -0
- package/dist/chunk-Q2YDBMVY.js +19 -0
- package/dist/chunk-QDQ4QMAI.js +1 -0
- package/dist/{chunk-TV3AZKT4.js → chunk-QVIUZEYA.js} +1 -1
- package/dist/chunk-SAQA4SXW.js +1 -0
- package/dist/chunk-VJZMSBKP.js +1 -0
- package/dist/{chunk-YAOXFYOD.js → chunk-WBQ5TNRZ.js} +1 -1
- package/dist/chunk-YOVE25NW.js +1 -0
- package/dist/{collision-builder-B_tm8OVy.d.ts → collision-builder-BckxkdmA.d.ts} +1 -1
- package/dist/core.d.ts +14 -11
- package/dist/core.js +1 -1
- package/dist/debug-state-B5awuDHl.d.ts +89 -0
- package/dist/debug.d.ts +200 -7
- package/dist/debug.js +1 -1
- package/dist/{entity-B9yZeBm4.d.ts → entity-BIf_a4dl.d.ts} +1 -1
- package/dist/{entity-BGEq1yfC.d.ts → entity-XZNGBeca.d.ts} +32 -98
- package/dist/{entity-type-map-CW6RHQkx.d.ts → entity-type-map-CkkFMSrL.d.ts} +42 -7
- package/dist/entity.d.ts +9 -7
- package/dist/entity.js +1 -1
- package/dist/{game-NHkubIfI.d.ts → game-Cy8f6gJm.d.ts} +181 -17
- package/dist/game-default-F3KPYZ7X.js +1 -0
- package/dist/graphics.d.ts +6 -5
- package/dist/graphics.js +1 -1
- package/dist/{material-DbSuZBbP.d.ts → material-CxxAyJYp.d.ts} +1 -1
- package/dist/public.d.ts +12 -10
- package/dist/public.js +1 -1
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.js +1 -1
- package/dist/{vector-DN6zlPoE.d.ts → simulation-body-zQw-emOr.d.ts} +11 -42
- package/dist/vector-D3eDzvcA.d.ts +41 -0
- package/dist/web-components.d.ts +12 -9
- package/dist/web-components.js +1 -1
- package/dist/{zylem-camera-Du2UPW9O.d.ts → zylem-camera-DZTpPOiD.d.ts} +12 -1
- package/package.json +21 -16
- package/LICENSE +0 -21
- package/dist/chunk-2VSVOPQN.js +0 -19
- package/dist/chunk-3I537JFL.js +0 -1
- package/dist/chunk-C5NEGC3S.js +0 -1
- package/dist/chunk-CV75NSES.js +0 -1
- package/dist/chunk-GKHAJ3MW.js +0 -1
- package/dist/chunk-LGS5N5M4.js +0 -1
- package/dist/chunk-LKFF6XJC.js +0 -1
- package/dist/chunk-Q27ULMXY.js +0 -24
- package/dist/chunk-W5SXED5T.js +0 -1
- package/dist/chunk-WVSYUWTT.js +0 -1
- package/dist/debug-state-Dp9CQQZ4.d.ts +0 -49
- package/dist/game-default-5TB3T5N7.js +0 -1
- /package/dist/{chunk-DFLI7ICU.js → chunk-MSCVL5OK.js} +0 -0
package/dist/api/game-lib.api.md
CHANGED
|
@@ -34,6 +34,7 @@ import { BridgeHandler } from '@zylem/bridge';
|
|
|
34
34
|
import { GameLoadingPayload as BridgeLoadingPayload } from '@zylem/bridge';
|
|
35
35
|
import { BridgeMessages } from '@zylem/bridge';
|
|
36
36
|
import { BridgeMessageType } from '@zylem/bridge';
|
|
37
|
+
import { BridgePose } from '@zylem/bridge';
|
|
37
38
|
import { BridgeVec3 } from '@zylem/bridge';
|
|
38
39
|
import { BufferGeometry } from 'three';
|
|
39
40
|
import { BurstParticlePresetOptions } from '@zylem/behaviors';
|
|
@@ -94,6 +95,7 @@ import { EntityDefinition } from '@zylem/behaviors/core';
|
|
|
94
95
|
import { EntityHandle } from '@zylem/behaviors/core';
|
|
95
96
|
import { EntitySummaryPayload } from '@zylem/bridge';
|
|
96
97
|
import { EntityThumbnailPayload } from '@zylem/bridge';
|
|
98
|
+
import { EntityTypeDescriptor } from '@zylem/bridge';
|
|
97
99
|
import { exp } from 'three/tsl';
|
|
98
100
|
import { FacingAngle2DEntity } from '@zylem/behaviors';
|
|
99
101
|
import { fireCooldown } from '@zylem/behaviors';
|
|
@@ -279,6 +281,7 @@ import { RuntimeTriggerRegion2DEvent } from '@zylem/behaviors/runtime-2d';
|
|
|
279
281
|
import { RuntimeTriggerRegion2DHandle } from '@zylem/behaviors/runtime-2d';
|
|
280
282
|
import { RuntimeTriggerRegion2DOptions } from '@zylem/behaviors/runtime-2d';
|
|
281
283
|
import { Scene } from 'three';
|
|
284
|
+
import { SceneOperationPayload } from '@zylem/bridge';
|
|
282
285
|
import { ScreenVisibilityBehavior } from '@zylem/behaviors';
|
|
283
286
|
import { ScreenVisibilityChangeContext } from '@zylem/behaviors';
|
|
284
287
|
import { ScreenVisibilityFSM } from '@zylem/behaviors';
|
|
@@ -339,6 +342,7 @@ import { StageTopDownPlane } from '@zylem/behaviors/core';
|
|
|
339
342
|
import { Static } from '@sinclair/typebox';
|
|
340
343
|
import { step } from 'three/tsl';
|
|
341
344
|
import { Texture } from 'three';
|
|
345
|
+
import * as three from 'three';
|
|
342
346
|
import { ThrusterBehavior } from '@zylem/behaviors';
|
|
343
347
|
import { ThrusterBehaviorOptions } from '@zylem/behaviors';
|
|
344
348
|
import { ThrusterEntity } from '@zylem/behaviors';
|
|
@@ -715,6 +719,9 @@ export { clamp }
|
|
|
715
719
|
// @public
|
|
716
720
|
export function clearGlobalSubscriptions(): void;
|
|
717
721
|
|
|
722
|
+
// @public
|
|
723
|
+
export function closestAxisValue(ray: GizmoRay, origin: Vector3, axis: Vector3): number | null;
|
|
724
|
+
|
|
718
725
|
// @public
|
|
719
726
|
export interface CollisionComponent {
|
|
720
727
|
// (undocumented)
|
|
@@ -750,6 +757,20 @@ export function coneCollision(opts?: ConeCollisionOptions): CollisionComponent;
|
|
|
750
757
|
// @public
|
|
751
758
|
export function coneMesh(opts?: ConeMeshOptions): Mesh;
|
|
752
759
|
|
|
760
|
+
// @public
|
|
761
|
+
export class ConstructionGrid {
|
|
762
|
+
constructor();
|
|
763
|
+
// (undocumented)
|
|
764
|
+
addTo(scene: Scene): void;
|
|
765
|
+
// (undocumented)
|
|
766
|
+
dispose(): void;
|
|
767
|
+
setIncrement(increment: number): void;
|
|
768
|
+
// (undocumented)
|
|
769
|
+
setVisible(visible: boolean): void;
|
|
770
|
+
// (undocumented)
|
|
771
|
+
get visible(): boolean;
|
|
772
|
+
}
|
|
773
|
+
|
|
753
774
|
export { CooldownBehavior }
|
|
754
775
|
|
|
755
776
|
export { CooldownConfig }
|
|
@@ -969,6 +990,9 @@ export const debugState: DebugState;
|
|
|
969
990
|
// @public (undocumented)
|
|
970
991
|
export type DebugTools = 'select' | 'translate' | 'rotate' | 'scale' | 'delete' | 'add' | 'none';
|
|
971
992
|
|
|
993
|
+
// @public (undocumented)
|
|
994
|
+
export const DEFAULT_SNAP_SETTINGS: SnapSettings;
|
|
995
|
+
|
|
972
996
|
// @public
|
|
973
997
|
export function defaultTouchControls(player?: InputPlayer, options?: DefaultTouchControlsOptions): GameInputConfig;
|
|
974
998
|
|
|
@@ -987,6 +1011,9 @@ export { defineBehavior }
|
|
|
987
1011
|
|
|
988
1012
|
export { DefineBehaviorConfig }
|
|
989
1013
|
|
|
1014
|
+
// @public
|
|
1015
|
+
export function degreesToRadians(degrees: number): number;
|
|
1016
|
+
|
|
990
1017
|
// @public
|
|
991
1018
|
export function delay(ms: number): Action;
|
|
992
1019
|
|
|
@@ -1223,6 +1250,9 @@ export interface EntityTypeMap {
|
|
|
1223
1250
|
[ZONE_TYPE]: ZylemZone;
|
|
1224
1251
|
}
|
|
1225
1252
|
|
|
1253
|
+
// @public
|
|
1254
|
+
export function eulerToQuaternion(rotation: Vec3): Quat;
|
|
1255
|
+
|
|
1226
1256
|
// @public
|
|
1227
1257
|
export class EventEmitterDelegate<TEvents extends Record<string, unknown>> {
|
|
1228
1258
|
constructor();
|
|
@@ -1426,11 +1456,13 @@ export class GameBridge {
|
|
|
1426
1456
|
// (undocumented)
|
|
1427
1457
|
disconnect(): void;
|
|
1428
1458
|
onEditorAttached(callback: () => void): () => void;
|
|
1459
|
+
publishCatalog(entities: EntityTypeDescriptor[]): void;
|
|
1429
1460
|
// (undocumented)
|
|
1430
1461
|
publishConfig(config: GameConfigPayload): void;
|
|
1431
1462
|
// (undocumented)
|
|
1432
1463
|
publishLoading(payload: BridgeLoadingPayload): void;
|
|
1433
1464
|
publishNotice(level: GameNoticePayload['level'], message: string): void;
|
|
1465
|
+
publishSceneOperation(op: SceneOperationPayload): void;
|
|
1434
1466
|
// (undocumented)
|
|
1435
1467
|
publishStageSnapshot(snapshot: StageSnapshotPayload): void;
|
|
1436
1468
|
// (undocumented)
|
|
@@ -1438,17 +1470,19 @@ export class GameBridge {
|
|
|
1438
1470
|
paused?: boolean;
|
|
1439
1471
|
debug?: boolean;
|
|
1440
1472
|
}): void;
|
|
1441
|
-
// (undocumented)
|
|
1442
1473
|
publishVariable(payload: GameVariablePayload): void;
|
|
1443
1474
|
queueEntityRemoved(uuids: string[]): void;
|
|
1444
1475
|
queueEntityUpsert(entities: EntitySummaryPayload[]): void;
|
|
1445
1476
|
queueThumbnails(thumbnails: EntityThumbnailPayload[]): void;
|
|
1446
1477
|
wantsEntityUpdates(): boolean;
|
|
1478
|
+
wantsSceneOperations(): boolean;
|
|
1447
1479
|
wantsThumbnails(): boolean;
|
|
1448
1480
|
}
|
|
1449
1481
|
|
|
1450
1482
|
// @public
|
|
1451
1483
|
export interface GameBridgeHost {
|
|
1484
|
+
applySceneOperation?(op: SceneOperationPayload, direction: 'undo' | 'redo'): void;
|
|
1485
|
+
createEntity?(typeId: string, props: Record<string, unknown> | undefined, pose: BridgePose | undefined): void;
|
|
1452
1486
|
resolveEntity(uuid: string): GameEntity<any> | null;
|
|
1453
1487
|
setStageVariable?(key: string, value: unknown): void;
|
|
1454
1488
|
}
|
|
@@ -1632,9 +1666,11 @@ export class GameEntity<O extends GameEntityOptions> extends BaseNode<O> impleme
|
|
|
1632
1666
|
clearActions(): void;
|
|
1633
1667
|
// (undocumented)
|
|
1634
1668
|
clone(overrides?: Partial<O>): this;
|
|
1669
|
+
colliderBaseline: SimulationColliderDefinition[] | null;
|
|
1635
1670
|
// (undocumented)
|
|
1636
1671
|
colliderDesc: SimulationColliderDefinition | undefined;
|
|
1637
1672
|
colliderDescs: SimulationColliderDefinition[];
|
|
1673
|
+
colliderScaleDirty: boolean;
|
|
1638
1674
|
// Warning: (ae-forgotten-export) The symbol "CollisionDispatchMetadata" needs to be exported by the entry point public.d.ts
|
|
1639
1675
|
//
|
|
1640
1676
|
// (undocumented)
|
|
@@ -1682,6 +1718,7 @@ export class GameEntity<O extends GameEntityOptions> extends BaseNode<O> impleme
|
|
|
1682
1718
|
getPosition: () => Vector | null;
|
|
1683
1719
|
// (undocumented)
|
|
1684
1720
|
getRotation: () => any;
|
|
1721
|
+
getScale(): Vec3;
|
|
1685
1722
|
// (undocumented)
|
|
1686
1723
|
getVelocity: () => Vector | null;
|
|
1687
1724
|
// (undocumented)
|
|
@@ -1772,6 +1809,7 @@ export class GameEntity<O extends GameEntityOptions> extends BaseNode<O> impleme
|
|
|
1772
1809
|
setRotationY: (y: number) => void;
|
|
1773
1810
|
// (undocumented)
|
|
1774
1811
|
setRotationZ: (z: number) => void;
|
|
1812
|
+
setScale(x: number, y: number, z: number): void;
|
|
1775
1813
|
_setup(params: SetupContext<this>): void;
|
|
1776
1814
|
_spawnInProgress: boolean;
|
|
1777
1815
|
_spawnPlacementPending: boolean;
|
|
@@ -2099,6 +2137,12 @@ export function getSelectedEntity(): GameEntity<any> | null;
|
|
|
2099
2137
|
// @public (undocumented)
|
|
2100
2138
|
export function getSelectedEntityId(): string | null;
|
|
2101
2139
|
|
|
2140
|
+
// @public
|
|
2141
|
+
export function getSelectedEntityIds(): string[];
|
|
2142
|
+
|
|
2143
|
+
// @public
|
|
2144
|
+
export function getSnapSettings(): SnapSettings;
|
|
2145
|
+
|
|
2102
2146
|
// @public
|
|
2103
2147
|
export function getVariable<T = unknown>(target: object, path: string): T | undefined;
|
|
2104
2148
|
|
|
@@ -2106,6 +2150,33 @@ export { getVelocity }
|
|
|
2106
2150
|
|
|
2107
2151
|
export { getZylemBridge }
|
|
2108
2152
|
|
|
2153
|
+
// @public
|
|
2154
|
+
export type GizmoAxis = 'x' | 'y' | 'z' | 'xy' | 'yz' | 'xz' | 'xyz';
|
|
2155
|
+
|
|
2156
|
+
// @public
|
|
2157
|
+
export type GizmoDelta = {
|
|
2158
|
+
kind: 'translate';
|
|
2159
|
+
offset: Vector3;
|
|
2160
|
+
} | {
|
|
2161
|
+
kind: 'rotate';
|
|
2162
|
+
axis: Vector3;
|
|
2163
|
+
angle: number;
|
|
2164
|
+
} | {
|
|
2165
|
+
kind: 'scale';
|
|
2166
|
+
factor: Vector3;
|
|
2167
|
+
};
|
|
2168
|
+
|
|
2169
|
+
// @public (undocumented)
|
|
2170
|
+
export type GizmoMode = 'translate' | 'rotate' | 'scale';
|
|
2171
|
+
|
|
2172
|
+
// @public
|
|
2173
|
+
export interface GizmoRay {
|
|
2174
|
+
// (undocumented)
|
|
2175
|
+
direction: Vector3;
|
|
2176
|
+
// (undocumented)
|
|
2177
|
+
origin: Vector3;
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2109
2180
|
// @public
|
|
2110
2181
|
export function globalChange<T = any>(key: string, callback: (value: T, ctx: UpdateContext<any>) => void): (ctx: UpdateContext<any>) => void;
|
|
2111
2182
|
|
|
@@ -2203,6 +2274,9 @@ export interface InputProvider {
|
|
|
2203
2274
|
// @public (undocumented)
|
|
2204
2275
|
export type Inputs = Record<InputPlayer, InputGamepad>;
|
|
2205
2276
|
|
|
2277
|
+
// @public
|
|
2278
|
+
export function intersectPlane(ray: GizmoRay, origin: Vector3, normal: Vector3, target: Vector3): Vector3 | null;
|
|
2279
|
+
|
|
2206
2280
|
// @public
|
|
2207
2281
|
export function isGLSLShader(shader: ZylemShader): shader is ZylemShaderObject;
|
|
2208
2282
|
|
|
@@ -2212,6 +2286,9 @@ export function isManagedRenderEntity(entity: {
|
|
|
2212
2286
|
isBundled?: boolean;
|
|
2213
2287
|
}): boolean;
|
|
2214
2288
|
|
|
2289
|
+
// @public (undocumented)
|
|
2290
|
+
export function isTransformTool(tool: DebugTools): tool is TransformTool;
|
|
2291
|
+
|
|
2215
2292
|
// @public
|
|
2216
2293
|
export function isTSLShader(shader: ZylemShader): shader is ZylemTSLShader;
|
|
2217
2294
|
|
|
@@ -2655,6 +2732,24 @@ export function pyramidCollision(opts?: PyramidCollisionOptions): CollisionCompo
|
|
|
2655
2732
|
// @public
|
|
2656
2733
|
export function pyramidMesh(opts?: PyramidMeshOptions): Mesh;
|
|
2657
2734
|
|
|
2735
|
+
// @public
|
|
2736
|
+
export interface Quat {
|
|
2737
|
+
// (undocumented)
|
|
2738
|
+
w: number;
|
|
2739
|
+
// (undocumented)
|
|
2740
|
+
x: number;
|
|
2741
|
+
// (undocumented)
|
|
2742
|
+
y: number;
|
|
2743
|
+
// (undocumented)
|
|
2744
|
+
z: number;
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
// @public
|
|
2748
|
+
export function quaternionToEuler(rotation: Quat): Vec3;
|
|
2749
|
+
|
|
2750
|
+
// @public
|
|
2751
|
+
export function radiansToDegrees(radians: number): number;
|
|
2752
|
+
|
|
2658
2753
|
// @public (undocumented)
|
|
2659
2754
|
export const RECT_TYPE: unique symbol;
|
|
2660
2755
|
|
|
@@ -2998,6 +3093,9 @@ export { SemanticParticlePresetOptions }
|
|
|
2998
3093
|
// @public
|
|
2999
3094
|
export function sequence(...actions: Action[]): Action;
|
|
3000
3095
|
|
|
3096
|
+
// @public
|
|
3097
|
+
export function setAddType(typeId: string | null, props?: Record<string, unknown> | null): void;
|
|
3098
|
+
|
|
3001
3099
|
// @public
|
|
3002
3100
|
export function setCameraFeed(entity: StageEntity, camera: CameraWrapper, options?: CameraFeedOptions): void;
|
|
3003
3101
|
|
|
@@ -3007,6 +3105,9 @@ export function setDebugTool(tool: DebugTools): void;
|
|
|
3007
3105
|
// @public
|
|
3008
3106
|
export function setGlobal(path: string, value: unknown): void;
|
|
3009
3107
|
|
|
3108
|
+
// @public (undocumented)
|
|
3109
|
+
export function setGridVisible(visible: boolean): void;
|
|
3110
|
+
|
|
3010
3111
|
// @public (undocumented)
|
|
3011
3112
|
export function setHoveredEntityId(uuid: string | null): void;
|
|
3012
3113
|
|
|
@@ -3051,6 +3152,12 @@ export function setSelectedEntity(entity: GameEntity<any> | string | null): void
|
|
|
3051
3152
|
// @public (undocumented)
|
|
3052
3153
|
export function setSelectedEntityId(uuid: string | null): void;
|
|
3053
3154
|
|
|
3155
|
+
// @public
|
|
3156
|
+
export function setSelectedEntityIds(uuids: string[]): void;
|
|
3157
|
+
|
|
3158
|
+
// @public (undocumented)
|
|
3159
|
+
export function setSnapSettings(snap: Partial<SnapSettings>): void;
|
|
3160
|
+
|
|
3054
3161
|
// @public (undocumented)
|
|
3055
3162
|
export function setStageFrameProfilerEnabled(value: boolean): void;
|
|
3056
3163
|
|
|
@@ -3134,6 +3241,7 @@ export class SimulationBody implements PhysicsRenderPoseProvider {
|
|
|
3134
3241
|
linvel(): PhysicsVector3;
|
|
3135
3242
|
lockRotations(locked: boolean, _wakeUp?: boolean): void;
|
|
3136
3243
|
lockTranslations(locked: boolean, _wakeUp?: boolean): void;
|
|
3244
|
+
markPoseDiscontinuity(): void;
|
|
3137
3245
|
// (undocumented)
|
|
3138
3246
|
mass(): number;
|
|
3139
3247
|
// Warning: (ae-forgotten-export) The symbol "PhysicsQuaternion" needs to be exported by the entry point public.d.ts
|
|
@@ -3186,6 +3294,26 @@ export { sin }
|
|
|
3186
3294
|
|
|
3187
3295
|
export { smoothstep }
|
|
3188
3296
|
|
|
3297
|
+
// @public
|
|
3298
|
+
export function snapScale(value: Vec3, increment: number): Vec3;
|
|
3299
|
+
|
|
3300
|
+
// @public
|
|
3301
|
+
export interface SnapSettings {
|
|
3302
|
+
// (undocumented)
|
|
3303
|
+
enabled: boolean;
|
|
3304
|
+
rotate: number;
|
|
3305
|
+
// (undocumented)
|
|
3306
|
+
scale: number;
|
|
3307
|
+
// (undocumented)
|
|
3308
|
+
translate: number;
|
|
3309
|
+
}
|
|
3310
|
+
|
|
3311
|
+
// @public
|
|
3312
|
+
export function snapToIncrement(value: number, increment: number): number;
|
|
3313
|
+
|
|
3314
|
+
// @public
|
|
3315
|
+
export function snapVec3(value: Vec3, increment: number): Vec3;
|
|
3316
|
+
|
|
3189
3317
|
// @public (undocumented)
|
|
3190
3318
|
export const SPHERE_TYPE: unique symbol;
|
|
3191
3319
|
|
|
@@ -3240,6 +3368,15 @@ export type SpriteImage = {
|
|
|
3240
3368
|
file: string;
|
|
3241
3369
|
};
|
|
3242
3370
|
|
|
3371
|
+
// @public
|
|
3372
|
+
export type SpriteSheet = {
|
|
3373
|
+
file: string;
|
|
3374
|
+
columns: number;
|
|
3375
|
+
rows: number;
|
|
3376
|
+
frames: Array<string | null>;
|
|
3377
|
+
filter?: 'nearest' | 'linear';
|
|
3378
|
+
};
|
|
3379
|
+
|
|
3243
3380
|
// @public
|
|
3244
3381
|
export const STAGE_STATE_CHANGE = "STAGE_STATE_CHANGE";
|
|
3245
3382
|
|
|
@@ -3653,8 +3790,45 @@ export const touchThemes: {
|
|
|
3653
3790
|
readonly lagoon: TouchTheme;
|
|
3654
3791
|
};
|
|
3655
3792
|
|
|
3793
|
+
// @public
|
|
3794
|
+
export const TRANSFORM_TOOLS: readonly ["translate", "rotate", "scale"];
|
|
3795
|
+
|
|
3656
3796
|
export { TransformComponent }
|
|
3657
3797
|
|
|
3798
|
+
// @public (undocumented)
|
|
3799
|
+
export class TransformGizmo {
|
|
3800
|
+
constructor();
|
|
3801
|
+
// (undocumented)
|
|
3802
|
+
addTo(scene: Scene): void;
|
|
3803
|
+
beginDrag(axis: GizmoAxis, ray: GizmoRay, camera: Camera): boolean;
|
|
3804
|
+
// (undocumented)
|
|
3805
|
+
dispose(): void;
|
|
3806
|
+
// (undocumented)
|
|
3807
|
+
get draggingAxis(): GizmoAxis | null;
|
|
3808
|
+
// (undocumented)
|
|
3809
|
+
endDrag(): void;
|
|
3810
|
+
// (undocumented)
|
|
3811
|
+
getMode(): GizmoMode;
|
|
3812
|
+
// (undocumented)
|
|
3813
|
+
hide(): void;
|
|
3814
|
+
// (undocumented)
|
|
3815
|
+
get isDragging(): boolean;
|
|
3816
|
+
pick(ray: GizmoRay): GizmoAxis | null;
|
|
3817
|
+
// (undocumented)
|
|
3818
|
+
get pivot(): Vector3;
|
|
3819
|
+
// (undocumented)
|
|
3820
|
+
removeFromScene(): void;
|
|
3821
|
+
readonly root: Group<three.Object3DEventMap>;
|
|
3822
|
+
setHighlight(axis: GizmoAxis | null): void;
|
|
3823
|
+
// (undocumented)
|
|
3824
|
+
setMode(mode: GizmoMode): void;
|
|
3825
|
+
show(pivot: Vector3): void;
|
|
3826
|
+
update(camera: Camera): void;
|
|
3827
|
+
updateDrag(ray: GizmoRay, camera: Camera): GizmoDelta | null;
|
|
3828
|
+
// (undocumented)
|
|
3829
|
+
get visible(): boolean;
|
|
3830
|
+
}
|
|
3831
|
+
|
|
3658
3832
|
// @public
|
|
3659
3833
|
export interface TransformLike {
|
|
3660
3834
|
// (undocumented)
|
|
@@ -3665,6 +3839,9 @@ export interface TransformLike {
|
|
|
3665
3839
|
|
|
3666
3840
|
export { TransformState }
|
|
3667
3841
|
|
|
3842
|
+
// @public (undocumented)
|
|
3843
|
+
export type TransformTool = (typeof TRANSFORM_TOOLS)[number];
|
|
3844
|
+
|
|
3668
3845
|
export { uniform }
|
|
3669
3846
|
|
|
3670
3847
|
export { updateBoundaryRicochet }
|
|
@@ -4534,9 +4711,11 @@ export class ZylemSprite extends GameEntity<ZylemSpriteOptions> {
|
|
|
4534
4711
|
// (undocumented)
|
|
4535
4712
|
protected createAnimations(animations: SpriteAnimation[]): void;
|
|
4536
4713
|
// (undocumented)
|
|
4714
|
+
protected createSpriteFromSheet(sheet: SpriteSheet): void;
|
|
4715
|
+
// (undocumented)
|
|
4537
4716
|
protected createSpritesFromImages(images: SpriteImage[]): void;
|
|
4538
4717
|
// (undocumented)
|
|
4539
|
-
protected currentAnimation:
|
|
4718
|
+
protected currentAnimation: string | null;
|
|
4540
4719
|
// (undocumented)
|
|
4541
4720
|
protected currentAnimationFrame: string;
|
|
4542
4721
|
// (undocumented)
|
|
@@ -4546,9 +4725,14 @@ export class ZylemSprite extends GameEntity<ZylemSpriteOptions> {
|
|
|
4546
4725
|
// (undocumented)
|
|
4547
4726
|
protected currentSpriteIndex: number;
|
|
4548
4727
|
// (undocumented)
|
|
4728
|
+
protected flippedX: boolean;
|
|
4729
|
+
// (undocumented)
|
|
4730
|
+
isFlippedX(): boolean;
|
|
4549
4731
|
setAnimation(name: string, delta: number): void;
|
|
4732
|
+
setFlipX(flip: boolean): void;
|
|
4550
4733
|
// (undocumented)
|
|
4551
4734
|
setSprite(key: string): void;
|
|
4735
|
+
protected sheetTexture: Texture | null;
|
|
4552
4736
|
// (undocumented)
|
|
4553
4737
|
spriteDestroy(params: DestroyContext<ZylemSpriteOptions>): void;
|
|
4554
4738
|
// (undocumented)
|
|
@@ -4629,16 +4813,16 @@ export class ZylemZone extends GameEntity<ZylemZoneOptions> implements Collision
|
|
|
4629
4813
|
|
|
4630
4814
|
// Warnings were encountered during analysis:
|
|
4631
4815
|
//
|
|
4632
|
-
// dist/entity-
|
|
4633
|
-
// dist/entity-
|
|
4634
|
-
// dist/entity-
|
|
4635
|
-
// dist/entity-
|
|
4636
|
-
// dist/entity-
|
|
4637
|
-
// dist/entity-
|
|
4638
|
-
// dist/entity-
|
|
4639
|
-
// dist/entity-
|
|
4640
|
-
// dist/game-
|
|
4641
|
-
// dist/game-
|
|
4816
|
+
// dist/entity-XZNGBeca.d.ts:332:5 - (ae-forgotten-export) The symbol "RenderCategory_2" needs to be exported by the entry point public.d.ts
|
|
4817
|
+
// dist/entity-XZNGBeca.d.ts:333:5 - (ae-forgotten-export) The symbol "RuntimeEntityOptions" needs to be exported by the entry point public.d.ts
|
|
4818
|
+
// dist/entity-XZNGBeca.d.ts:334:5 - (ae-forgotten-export) The symbol "CollisionOptions" needs to be exported by the entry point public.d.ts
|
|
4819
|
+
// dist/entity-XZNGBeca.d.ts:335:5 - (ae-forgotten-export) The symbol "MaterialOptions" needs to be exported by the entry point public.d.ts
|
|
4820
|
+
// dist/entity-XZNGBeca.d.ts:343:9 - (ae-forgotten-export) The symbol "IBuilder" needs to be exported by the entry point public.d.ts
|
|
4821
|
+
// dist/entity-XZNGBeca.d.ts:343:9 - (ae-forgotten-export) The symbol "EntityMeshBuilder" needs to be exported by the entry point public.d.ts
|
|
4822
|
+
// dist/entity-XZNGBeca.d.ts:344:9 - (ae-forgotten-export) The symbol "EntityCollisionBuilder" needs to be exported by the entry point public.d.ts
|
|
4823
|
+
// dist/entity-XZNGBeca.d.ts:345:9 - (ae-forgotten-export) The symbol "MaterialBuilder" needs to be exported by the entry point public.d.ts
|
|
4824
|
+
// dist/game-Cy8f6gJm.d.ts:1051:5 - (ae-forgotten-export) The symbol "StageAssetLoaderConfig" needs to be exported by the entry point public.d.ts
|
|
4825
|
+
// dist/game-Cy8f6gJm.d.ts:1721:5 - (ae-forgotten-export) The symbol "StageInterface" needs to be exported by the entry point public.d.ts
|
|
4642
4826
|
|
|
4643
4827
|
// (No @packageDocumentation comment for this package)
|
|
4644
4828
|
|