@holtjs/stage 0.10.2 → 0.11.0
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/CHANGELOG.md +29 -0
- package/dist/{anims-D9N8w6IM.d.ts → anims-BYBzSNXO.d.ts} +8 -0
- package/dist/anims.d.ts +1 -1
- package/dist/coroutine-DLgJumtD.d.ts +73 -0
- package/dist/coroutine.d.ts +2 -0
- package/dist/coroutine.js +322 -0
- package/dist/{display-DU4edtH-.js → display-CuyQc8oE.js} +223 -1
- package/dist/ecs.d.ts +87 -6
- package/dist/ecs.js +172 -6
- package/dist/flex.d.ts +185 -1
- package/dist/flex.js +353 -1
- package/dist/{game-BnozPxF8.js → game-2dS3Qsrn.js} +60 -3
- package/dist/{game-B_hIy548.d.ts → game-COsuqGzC.d.ts} +506 -2
- package/dist/headless.d.ts +77 -2
- package/dist/headless.js +203 -5
- package/dist/index.d.ts +5 -4
- package/dist/index.js +6 -5
- package/dist/joystick.d.ts +1 -1
- package/dist/kernel.d.ts +3 -2
- package/dist/kernel.js +15 -1
- package/dist/lighting.d.ts +1 -1
- package/dist/lighting.js +1 -1
- package/dist/projection.d.ts +1 -1
- package/dist/{renderer-webgpu-CHw-NNh2.js → renderer-webgpu-CHJxmCvR.js} +109 -29
- package/dist/renderer-webgpu.d.ts +1 -1
- package/dist/renderer-webgpu.js +1 -1
- package/dist/rig2d.d.ts +2 -2
- package/dist/tilemap.d.ts +2 -169
- package/dist/tilemap.js +29 -1
- package/dist/trace.d.ts +1 -1
- package/dist/world.d.ts +2 -183
- package/dist/world.js +140 -1
- package/package.json +5 -1
package/dist/world.d.ts
CHANGED
|
@@ -1,183 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
id: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
maxStack?: number;
|
|
6
|
-
/** Time in ms until `freshness01` decays from `1.0` to `0.0` (`undefined` = non-perishable). */
|
|
7
|
-
spoilDurationMs?: number;
|
|
8
|
-
/** Item ID produced when `freshness01` hits `0` (`default = 'rot'`). */
|
|
9
|
-
spoiledItemId?: string;
|
|
10
|
-
/** Fuel burn time in ms when fed into a fuel-burning workstation (`undefined` = not fuel). */
|
|
11
|
-
fuelValueMs?: number;
|
|
12
|
-
/** Max tool uses (`undefined` = infinite durability). */
|
|
13
|
-
maxUses?: number;
|
|
14
|
-
}
|
|
15
|
-
export interface ItemStack {
|
|
16
|
-
itemId: string;
|
|
17
|
-
count: number;
|
|
18
|
-
freshness01: number;
|
|
19
|
-
durability01: number;
|
|
20
|
-
}
|
|
21
|
-
export declare class ItemRegistry {
|
|
22
|
-
private readonly defs;
|
|
23
|
-
register(def: ItemDef): this;
|
|
24
|
-
registerAll(list: ReadonlyArray<ItemDef>): this;
|
|
25
|
-
get(itemId: string): ItemDef | undefined;
|
|
26
|
-
maxStackOf(itemId: string): number;
|
|
27
|
-
}
|
|
28
|
-
export declare class InventoryContainer {
|
|
29
|
-
readonly capacity: number;
|
|
30
|
-
readonly registry: ItemRegistry;
|
|
31
|
-
/** Spoilage rate multiplier (`1.0` normal backpack, `0.25` icebox, `0` preserved). */
|
|
32
|
-
spoilMultiplier: number;
|
|
33
|
-
readonly slots: Array<ItemStack | null>;
|
|
34
|
-
constructor(registry: ItemRegistry, capacity?: number, spoilMultiplier?: number);
|
|
35
|
-
countItem(itemId: string): number;
|
|
36
|
-
hasItems(reqs: ReadonlyArray<{
|
|
37
|
-
itemId: string;
|
|
38
|
-
count: number;
|
|
39
|
-
}>): boolean;
|
|
40
|
-
/** Add items, merging weighted freshness into existing partial stacks first; returns leftover count that did not fit. */
|
|
41
|
-
addItem(itemId: string, count?: number, freshness01?: number, durability01?: number): number;
|
|
42
|
-
/** Consume up to `count` of `itemId`; returns true if the full requested amount was removed. */
|
|
43
|
-
removeItem(itemId: string, count?: number): boolean;
|
|
44
|
-
/** Advance perishable spoilage across all slots; converts fully spoiled stacks into `spoiledItemId` (`'rot'`). */
|
|
45
|
-
stepSpoilage(deltaMs: number): number;
|
|
46
|
-
toJSON(): Array<ItemStack | null>;
|
|
47
|
-
loadJSON(data: ReadonlyArray<ItemStack | null>): void;
|
|
48
|
-
}
|
|
49
|
-
export interface RecipeDef {
|
|
50
|
-
id: string;
|
|
51
|
-
/** Required workstation kind (`null` / `undefined` = hand-craftable anywhere). */
|
|
52
|
-
stationKind?: string | null;
|
|
53
|
-
inputs: Array<{
|
|
54
|
-
itemId: string;
|
|
55
|
-
count: number;
|
|
56
|
-
}>;
|
|
57
|
-
outputs: Array<{
|
|
58
|
-
itemId: string;
|
|
59
|
-
count: number;
|
|
60
|
-
}>;
|
|
61
|
-
/** Processing duration in ms (`0` = instant craft). */
|
|
62
|
-
durationMs?: number;
|
|
63
|
-
/** Whether processing requires active fuel burning on the station (`default = false`). */
|
|
64
|
-
requiresFuel?: boolean;
|
|
65
|
-
}
|
|
66
|
-
export declare class RecipeRegistry {
|
|
67
|
-
private readonly recipes;
|
|
68
|
-
register(recipe: RecipeDef): this;
|
|
69
|
-
registerAll(list: ReadonlyArray<RecipeDef>): this;
|
|
70
|
-
get(recipeId: string): RecipeDef | undefined;
|
|
71
|
-
canCraft(recipeId: string, inventory: InventoryContainer, availableStationKinds?: ReadonlySet<string>): boolean;
|
|
72
|
-
/** Perform an instant craft directly from/into `inventory`. */
|
|
73
|
-
craftInstant(recipeId: string, inventory: InventoryContainer, availableStationKinds?: ReadonlySet<string>): boolean;
|
|
74
|
-
}
|
|
75
|
-
export interface WorkstationJob {
|
|
76
|
-
recipeId: string;
|
|
77
|
-
batchesRemaining: number;
|
|
78
|
-
progressMs: number;
|
|
79
|
-
}
|
|
80
|
-
export interface WorkstationSnapshot {
|
|
81
|
-
id: string;
|
|
82
|
-
kind: string;
|
|
83
|
-
wx: number;
|
|
84
|
-
wy: number;
|
|
85
|
-
fuelRemainingMs: number;
|
|
86
|
-
maxFuelMs: number;
|
|
87
|
-
queue: WorkstationJob[];
|
|
88
|
-
inputSlots: Array<ItemStack | null>;
|
|
89
|
-
fuelSlots: Array<ItemStack | null>;
|
|
90
|
-
outputSlots: Array<ItemStack | null>;
|
|
91
|
-
}
|
|
92
|
-
export declare class WorkstationInstance {
|
|
93
|
-
readonly id: string;
|
|
94
|
-
readonly kind: string;
|
|
95
|
-
wx: number;
|
|
96
|
-
wy: number;
|
|
97
|
-
fuelRemainingMs: number;
|
|
98
|
-
readonly maxFuelMs: number;
|
|
99
|
-
readonly inputInv: InventoryContainer;
|
|
100
|
-
readonly fuelInv: InventoryContainer;
|
|
101
|
-
readonly outputInv: InventoryContainer;
|
|
102
|
-
readonly queue: WorkstationJob[];
|
|
103
|
-
constructor(id: string, kind: string, itemRegistry: ItemRegistry, opts?: {
|
|
104
|
-
wx?: number;
|
|
105
|
-
wy?: number;
|
|
106
|
-
maxFuelMs?: number;
|
|
107
|
-
});
|
|
108
|
-
get isBurning(): boolean;
|
|
109
|
-
get activeProgress01(): number;
|
|
110
|
-
private activeProgressRatio;
|
|
111
|
-
enqueue(recipe: RecipeDef, batches?: number): boolean;
|
|
112
|
-
private tryAutoRefuel;
|
|
113
|
-
/**
|
|
114
|
-
* Deterministically advance smelting/crafting + fuel burn + slot spoilage over arbitrarily small or huge `deltaMs`
|
|
115
|
-
* (supports multi-minute offline chunk catch-up in exact analytical sub-steps!).
|
|
116
|
-
*/
|
|
117
|
-
step(deltaMs: number, recipes: RecipeRegistry): number;
|
|
118
|
-
toSnapshot(): WorkstationSnapshot;
|
|
119
|
-
loadSnapshot(snap: WorkstationSnapshot): void;
|
|
120
|
-
}
|
|
121
|
-
export declare class WorkstationScheduler {
|
|
122
|
-
readonly items: ItemRegistry;
|
|
123
|
-
readonly recipes: RecipeRegistry;
|
|
124
|
-
private readonly stations;
|
|
125
|
-
constructor(items: ItemRegistry, recipes: RecipeRegistry);
|
|
126
|
-
addStation(station: WorkstationInstance): WorkstationInstance;
|
|
127
|
-
getStation(id: string): WorkstationInstance | undefined;
|
|
128
|
-
removeStation(id: string): boolean;
|
|
129
|
-
stepAll(deltaMs: number): number;
|
|
130
|
-
/** Return set of station `kind`s within `radiusPx` of `(wx, wy)` for proximity-gated crafting menus. */
|
|
131
|
-
nearbyStationKinds(wx: number, wy: number, radiusPx?: number): Set<string>;
|
|
132
|
-
toJSON(): WorkstationSnapshot[];
|
|
133
|
-
loadJSON(snaps: ReadonlyArray<WorkstationSnapshot>): void;
|
|
134
|
-
}
|
|
135
|
-
export interface WorldEntityRecord {
|
|
136
|
-
id: string;
|
|
137
|
-
kind: string;
|
|
138
|
-
x: number;
|
|
139
|
-
y: number;
|
|
140
|
-
state?: Record<string, number | string | boolean>;
|
|
141
|
-
}
|
|
142
|
-
export interface TileCellDelta {
|
|
143
|
-
tx: number;
|
|
144
|
-
ty: number;
|
|
145
|
-
ground: number;
|
|
146
|
-
overlay: number;
|
|
147
|
-
flags: number;
|
|
148
|
-
}
|
|
149
|
-
export interface WorldDeltaSnapshot {
|
|
150
|
-
schemaVersion: 1;
|
|
151
|
-
seed: number;
|
|
152
|
-
dayCount: number;
|
|
153
|
-
time01: number;
|
|
154
|
-
tileDeltas: TileCellDelta[];
|
|
155
|
-
spawnedOrModifiedEntities: WorldEntityRecord[];
|
|
156
|
-
/** Seed-generated entity IDs that were chopped/mined/destroyed so they stay removed on reload! */
|
|
157
|
-
removedSeedEntityIds: string[];
|
|
158
|
-
workstations: WorkstationSnapshot[];
|
|
159
|
-
playerInventory?: Array<ItemStack | null>;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Capture ONLY player/simulation-modified tiles (`TileCellFlags.MODIFIED`) from a `ChunkedTilemap`
|
|
163
|
-
* plus entity deltas and workstation states into a tiny `WorldDeltaSnapshot`.
|
|
164
|
-
*/
|
|
165
|
-
export declare function captureWorldDelta(opts: {
|
|
166
|
-
seed: number;
|
|
167
|
-
dayCount?: number;
|
|
168
|
-
time01?: number;
|
|
169
|
-
tilemap: ChunkedTilemap;
|
|
170
|
-
spawnedOrModifiedEntities?: ReadonlyArray<WorldEntityRecord>;
|
|
171
|
-
removedSeedEntityIds?: Iterable<string>;
|
|
172
|
-
scheduler?: WorkstationScheduler;
|
|
173
|
-
playerInventory?: InventoryContainer;
|
|
174
|
-
}): WorldDeltaSnapshot;
|
|
175
|
-
/** Replay a `WorldDeltaSnapshot` onto a freshly seeded `ChunkedTilemap` + `WorkstationScheduler` + `InventoryContainer`. */
|
|
176
|
-
export declare function applyWorldDelta(snapshot: WorldDeltaSnapshot, targets: {
|
|
177
|
-
tilemap: ChunkedTilemap;
|
|
178
|
-
scheduler?: WorkstationScheduler;
|
|
179
|
-
playerInventory?: InventoryContainer;
|
|
180
|
-
}): void;
|
|
181
|
-
/** Compact UTF-8 binary framing (`HWLD` magic + version + JSON payload) for tiny file / IndexedDB / network storage. */
|
|
182
|
-
export declare function encodeWorldDeltaBytes(snapshot: WorldDeltaSnapshot): Uint8Array;
|
|
183
|
-
export declare function decodeWorldDeltaBytes(bytes: Uint8Array): WorldDeltaSnapshot;
|
|
1
|
+
import { $ as decodeWorldDeltaBytes, B as RecipeRegistry, F as InventoryContainer, G as WorkstationSnapshot, H as WorkstationInstance, I as ItemDef, J as WorldDeltaSnapshot, K as WorldCatalogRuntime, L as ItemRegistry, N as CatalogReloadDiff, P as FrozenWorldCatalog, Q as createWorldCatalogRuntime, R as ItemStack, U as WorkstationJob, V as TileCellDelta, W as WorkstationScheduler, X as applyWorldDelta, Y as WorldEntityRecord, Z as captureWorldDelta, et as defineWorldCatalog, q as WorldCatalogSpec, tt as encodeWorldDeltaBytes, z as RecipeDef } from "./game-COsuqGzC.js";
|
|
2
|
+
export { CatalogReloadDiff, FrozenWorldCatalog, InventoryContainer, ItemDef, ItemRegistry, ItemStack, RecipeDef, RecipeRegistry, TileCellDelta, WorkstationInstance, WorkstationJob, WorkstationScheduler, WorkstationSnapshot, WorldCatalogRuntime, WorldCatalogSpec, WorldDeltaSnapshot, WorldEntityRecord, applyWorldDelta, captureWorldDelta, createWorldCatalogRuntime, decodeWorldDeltaBytes, defineWorldCatalog, encodeWorldDeltaBytes };
|
package/dist/world.js
CHANGED
|
@@ -13,6 +13,17 @@ var ItemRegistry = class {
|
|
|
13
13
|
for (const d of list) this.register(d);
|
|
14
14
|
return this;
|
|
15
15
|
}
|
|
16
|
+
/** Replace all registered item definitions in-place (preserving `ItemRegistry` identity for live `InventoryContainer`s!). */
|
|
17
|
+
replaceAll(list) {
|
|
18
|
+
this.defs.clear();
|
|
19
|
+
return this.registerAll(list);
|
|
20
|
+
}
|
|
21
|
+
get size() {
|
|
22
|
+
return this.defs.size;
|
|
23
|
+
}
|
|
24
|
+
ids() {
|
|
25
|
+
return Array.from(this.defs.keys());
|
|
26
|
+
}
|
|
16
27
|
get(itemId) {
|
|
17
28
|
return this.defs.get(itemId);
|
|
18
29
|
}
|
|
@@ -133,6 +144,17 @@ var RecipeRegistry = class {
|
|
|
133
144
|
for (const r of list) this.register(r);
|
|
134
145
|
return this;
|
|
135
146
|
}
|
|
147
|
+
/** Replace all registered crafting recipes in-place (preserving `RecipeRegistry` identity for live `WorkstationScheduler`s!). */
|
|
148
|
+
replaceAll(list) {
|
|
149
|
+
this.recipes.clear();
|
|
150
|
+
return this.registerAll(list);
|
|
151
|
+
}
|
|
152
|
+
get size() {
|
|
153
|
+
return this.recipes.size;
|
|
154
|
+
}
|
|
155
|
+
ids() {
|
|
156
|
+
return Array.from(this.recipes.keys());
|
|
157
|
+
}
|
|
136
158
|
get(recipeId) {
|
|
137
159
|
return this.recipes.get(recipeId);
|
|
138
160
|
}
|
|
@@ -397,4 +419,121 @@ function decodeWorldDeltaBytes(bytes) {
|
|
|
397
419
|
const json = new TextDecoder().decode(bytes.subarray(5));
|
|
398
420
|
return JSON.parse(json);
|
|
399
421
|
}
|
|
400
|
-
|
|
422
|
+
function cloneAndFreezePureData(value, seen = /* @__PURE__ */ new Set(), path = "catalog") {
|
|
423
|
+
if (value === null || value === void 0) return value;
|
|
424
|
+
const kind = typeof value;
|
|
425
|
+
if (kind === "number" || kind === "string" || kind === "boolean") return value;
|
|
426
|
+
if (kind === "function" || kind === "symbol" || kind === "bigint") throw new Error(`defineWorldCatalog: non-data ${kind} at "${path}" (catalog must be pure JSON-serializable data)`);
|
|
427
|
+
const obj = value;
|
|
428
|
+
if (seen.has(obj)) throw new Error(`defineWorldCatalog: cyclic reference detected at "${path}"`);
|
|
429
|
+
seen.add(obj);
|
|
430
|
+
try {
|
|
431
|
+
if (Array.isArray(value)) {
|
|
432
|
+
const arr = value.map((item, idx) => cloneAndFreezePureData(item, seen, `${path}[${idx}]`));
|
|
433
|
+
return Object.freeze(arr);
|
|
434
|
+
}
|
|
435
|
+
const proto = Object.getPrototypeOf(obj);
|
|
436
|
+
if (proto !== Object.prototype && proto !== null) throw new Error(`defineWorldCatalog: class instance at "${path}" (use plain object literals)`);
|
|
437
|
+
const out = {};
|
|
438
|
+
for (const [k, v] of Object.entries(obj)) if (v !== void 0) out[k] = cloneAndFreezePureData(v, seen, `${path}.${k}`);
|
|
439
|
+
return Object.freeze(out);
|
|
440
|
+
} finally {
|
|
441
|
+
seen.delete(obj);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Validate, deep-clone, and deep-freeze a pure acyclic `WorldCatalogSpec` (rejecting functions,
|
|
446
|
+
* class instances, and cycles so static rules stay 100% decoupled from mutable runtime state).
|
|
447
|
+
*/
|
|
448
|
+
function defineWorldCatalog(spec) {
|
|
449
|
+
const items = cloneAndFreezePureData(spec.items ?? [], /* @__PURE__ */ new Set(), "catalog.items");
|
|
450
|
+
const recipes = cloneAndFreezePureData(spec.recipes ?? [], /* @__PURE__ */ new Set(), "catalog.recipes");
|
|
451
|
+
const rules = cloneAndFreezePureData(spec.rules ?? {}, /* @__PURE__ */ new Set(), "catalog.rules");
|
|
452
|
+
return Object.freeze({
|
|
453
|
+
version: spec.version ?? 1,
|
|
454
|
+
items,
|
|
455
|
+
recipes,
|
|
456
|
+
rules
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
function diffById(prevList, nextList) {
|
|
460
|
+
const prevMap = /* @__PURE__ */ new Map();
|
|
461
|
+
for (let i = 0; i < prevList.length; i++) prevMap.set(prevList[i].id, JSON.stringify(prevList[i]));
|
|
462
|
+
const nextIds = /* @__PURE__ */ new Set();
|
|
463
|
+
const added = [];
|
|
464
|
+
const updated = [];
|
|
465
|
+
for (let i = 0; i < nextList.length; i++) {
|
|
466
|
+
const it = nextList[i];
|
|
467
|
+
nextIds.add(it.id);
|
|
468
|
+
const prevJson = prevMap.get(it.id);
|
|
469
|
+
if (prevJson === void 0) added.push(it.id);
|
|
470
|
+
else if (prevJson !== JSON.stringify(it)) updated.push(it.id);
|
|
471
|
+
}
|
|
472
|
+
const removed = [];
|
|
473
|
+
for (const id of prevMap.keys()) if (!nextIds.has(id)) removed.push(id);
|
|
474
|
+
return {
|
|
475
|
+
added,
|
|
476
|
+
updated,
|
|
477
|
+
removed
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Create a hot-reloadable catalog runtime backed by live `ItemRegistry` and `RecipeRegistry` instances.
|
|
482
|
+
* Calling `runtime.reload(nextCatalog)` swaps item/recipe/balance definitions in-place while preserving
|
|
483
|
+
* all active `InventoryContainer` stacks, `WorkstationInstance` progress, and `ChunkedTilemap` state!
|
|
484
|
+
*/
|
|
485
|
+
function createWorldCatalogRuntime(initial, opts = {}) {
|
|
486
|
+
let current = defineWorldCatalog(initial);
|
|
487
|
+
const items = opts.items ?? new ItemRegistry();
|
|
488
|
+
const recipes = opts.recipes ?? new RecipeRegistry();
|
|
489
|
+
items.replaceAll(current.items);
|
|
490
|
+
recipes.replaceAll(current.recipes);
|
|
491
|
+
let seq = 0;
|
|
492
|
+
const listeners = [];
|
|
493
|
+
const reload = (nextInput) => {
|
|
494
|
+
const next = defineWorldCatalog(nextInput);
|
|
495
|
+
const itemDiff = diffById(current.items, next.items);
|
|
496
|
+
const recipeDiff = diffById(current.recipes, next.recipes);
|
|
497
|
+
const ruleKeys = /* @__PURE__ */ new Set([...Object.keys(current.rules), ...Object.keys(next.rules)]);
|
|
498
|
+
const changedRules = [];
|
|
499
|
+
for (const k of ruleKeys) if (JSON.stringify(current.rules[k]) !== JSON.stringify(next.rules[k])) changedRules.push(k);
|
|
500
|
+
current = next;
|
|
501
|
+
items.replaceAll(next.items);
|
|
502
|
+
recipes.replaceAll(next.recipes);
|
|
503
|
+
seq++;
|
|
504
|
+
const diff = Object.freeze({
|
|
505
|
+
reloadSeq: seq,
|
|
506
|
+
addedItems: Object.freeze(itemDiff.added),
|
|
507
|
+
updatedItems: Object.freeze(itemDiff.updated),
|
|
508
|
+
removedItems: Object.freeze(itemDiff.removed),
|
|
509
|
+
addedRecipes: Object.freeze(recipeDiff.added),
|
|
510
|
+
updatedRecipes: Object.freeze(recipeDiff.updated),
|
|
511
|
+
removedRecipes: Object.freeze(recipeDiff.removed),
|
|
512
|
+
changedRules: Object.freeze(changedRules)
|
|
513
|
+
});
|
|
514
|
+
for (let i = 0; i < listeners.length; i++) listeners[i](diff, current);
|
|
515
|
+
return diff;
|
|
516
|
+
};
|
|
517
|
+
return {
|
|
518
|
+
items,
|
|
519
|
+
recipes,
|
|
520
|
+
get catalog() {
|
|
521
|
+
return current;
|
|
522
|
+
},
|
|
523
|
+
get rules() {
|
|
524
|
+
return current.rules;
|
|
525
|
+
},
|
|
526
|
+
get reloadSeq() {
|
|
527
|
+
return seq;
|
|
528
|
+
},
|
|
529
|
+
reload,
|
|
530
|
+
onReload: (fn) => {
|
|
531
|
+
listeners.push(fn);
|
|
532
|
+
return () => {
|
|
533
|
+
const idx = listeners.indexOf(fn);
|
|
534
|
+
if (idx >= 0) listeners.splice(idx, 1);
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
export { InventoryContainer, ItemRegistry, RecipeRegistry, WorkstationInstance, WorkstationScheduler, applyWorldDelta, captureWorldDelta, createWorldCatalogRuntime, decodeWorldDeltaBytes, defineWorldCatalog, encodeWorldDeltaBytes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holtjs/stage",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Zero-dependency TypeScript stage engine for 2D WebGPU/WebGL2/Canvas2D games, GPU SDF UI, procedural audio, StageKernel plugins, tracing-native observability, and deterministic 60 FPS headless image & video rendering.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Botiverse, Inc.",
|
|
@@ -57,6 +57,10 @@
|
|
|
57
57
|
"types": "./dist/flex.d.ts",
|
|
58
58
|
"default": "./dist/flex.js"
|
|
59
59
|
},
|
|
60
|
+
"./coroutine": {
|
|
61
|
+
"types": "./dist/coroutine.d.ts",
|
|
62
|
+
"default": "./dist/coroutine.js"
|
|
63
|
+
},
|
|
60
64
|
"./joystick": {
|
|
61
65
|
"types": "./dist/joystick.d.ts",
|
|
62
66
|
"default": "./dist/joystick.js"
|