@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 CHANGED
File without changes
package/README.md CHANGED
File without changes
@@ -1,5 +1,5 @@
1
1
  // Type surface for the worldgen editor snapshot. Imported and
2
- // re-exported by `crates/oni-wasm/index.d.ts`.
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
- * `oni_sim::sim_env::var`. WASM-side stand-in for the `SIM_*_PATH` /
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
- * `oni_sim::sim_env::var`. WASM-side stand-in for the `SIM_*_PATH` /
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@onimaxxing/worldgen-node",
3
3
  "description": "WASM entry point for ONI worldgen",
4
- "version": "0.31.1",
4
+ "version": "0.31.3",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
package/yaml.cjs CHANGED
File without changes
package/yaml.d.ts CHANGED
File without changes