@onimaxxing/worldgen-node 0.31.1 → 0.31.3
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/LICENSE +0 -0
- package/README.md +0 -0
- package/editor_settings.d.ts +1 -1
- package/index.cjs +0 -0
- package/index.d.ts +8 -0
- package/oni_wasm.d.ts +1 -1
- package/oni_wasm.js +1 -1
- package/oni_wasm_bg.wasm +0 -0
- package/package.json +1 -1
- package/yaml.cjs +0 -0
- package/yaml.d.ts +0 -0
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
package/editor_settings.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Type surface for the worldgen editor snapshot. Imported and
|
|
2
|
-
// re-exported by `crates/
|
|
2
|
+
// re-exported by `crates/onimaxxing-worldgen-wasm/index.d.ts`.
|
|
3
3
|
//
|
|
4
4
|
// Usage: the active settings live in a `{ path → JSON-string }` map.
|
|
5
5
|
// Parse the entry you want to edit, mutate, write back, then call
|
package/index.cjs
CHANGED
|
File without changes
|
package/index.d.ts
CHANGED
|
@@ -613,6 +613,14 @@ export const worldgen: {
|
|
|
613
613
|
* settle runs 499 ticks total; the final call with `targetTick = 499`
|
|
614
614
|
* finalises the cluster.
|
|
615
615
|
*
|
|
616
|
+
* Every snapshot is the world as it would be written if the settle
|
|
617
|
+
* stopped at that tick, not the raw sim state: a cell carries the
|
|
618
|
+
* state of its last substance-change event, exactly like the game's
|
|
619
|
+
* own worldgen. So the tick-499 snapshot is what the game loads and
|
|
620
|
+
* what the parity digests verify (a cell whose germs died out after
|
|
621
|
+
* its last event keeps its earlier germ count, as it does in-game).
|
|
622
|
+
* Ticks before 498 show the templates stamped on top as a preview.
|
|
623
|
+
*
|
|
616
624
|
* Throws if the cache is empty or `targetTick` is out of range.
|
|
617
625
|
*/
|
|
618
626
|
advance(targetTick: number): SettleSnapshot;
|
package/oni_wasm.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ export function sim_env_drain_log(channel: string): string;
|
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
157
|
* Set a `(key, value)` in the cross-target env overlay read by
|
|
158
|
-
* `
|
|
158
|
+
* `onimaxxing_sim_physics::sim_env::var`. WASM-side stand-in for the `SIM_*_PATH` /
|
|
159
159
|
* `SIM_*_TICK` env vars used by native diag sites.
|
|
160
160
|
*/
|
|
161
161
|
export function sim_env_set(key: string, value: string): void;
|
package/oni_wasm.js
CHANGED
|
@@ -355,7 +355,7 @@ exports.sim_env_drain_log = sim_env_drain_log;
|
|
|
355
355
|
|
|
356
356
|
/**
|
|
357
357
|
* Set a `(key, value)` in the cross-target env overlay read by
|
|
358
|
-
* `
|
|
358
|
+
* `onimaxxing_sim_physics::sim_env::var`. WASM-side stand-in for the `SIM_*_PATH` /
|
|
359
359
|
* `SIM_*_TICK` env vars used by native diag sites.
|
|
360
360
|
* @param {string} key
|
|
361
361
|
* @param {string} value
|
package/oni_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/yaml.cjs
CHANGED
|
File without changes
|
package/yaml.d.ts
CHANGED
|
File without changes
|