@onimaxxing/worldgen 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.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/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@onimaxxing/worldgen",
3
3
  "type": "module",
4
4
  "description": "WASM entry point for ONI worldgen",
5
- "version": "0.31.1",
5
+ "version": "0.31.3",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
package/parallel/LICENSE CHANGED
File without changes
package/parallel/index.js CHANGED
File without changes
@@ -157,7 +157,7 @@ export function sim_env_drain_log(channel: string): string;
157
157
 
158
158
  /**
159
159
  * Set a `(key, value)` in the cross-target env overlay read by
160
- * `oni_sim::sim_env::var`. WASM-side stand-in for the `SIM_*_PATH` /
160
+ * `onimaxxing_sim_physics::sim_env::var`. WASM-side stand-in for the `SIM_*_PATH` /
161
161
  * `SIM_*_TICK` env vars used by native diag sites.
162
162
  */
163
163
  export function sim_env_set(key: string, value: string): void;
@@ -349,7 +349,7 @@ export function sim_env_drain_log(channel) {
349
349
 
350
350
  /**
351
351
  * Set a `(key, value)` in the cross-target env overlay read by
352
- * `oni_sim::sim_env::var`. WASM-side stand-in for the `SIM_*_PATH` /
352
+ * `onimaxxing_sim_physics::sim_env::var`. WASM-side stand-in for the `SIM_*_PATH` /
353
353
  * `SIM_*_TICK` env vars used by native diag sites.
354
354
  * @param {string} key
355
355
  * @param {string} value
Binary file
File without changes
package/serial/LICENSE CHANGED
File without changes
@@ -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;
@@ -331,9 +331,9 @@ export interface InitOutput {
331
331
  readonly snapshot_state_vanilla: () => number;
332
332
  readonly snapshot_state_vanilla_extensions: () => number;
333
333
  readonly snapshot_to_files: (a: number, b: number) => [number, number, number, number];
334
- readonly snapshot_checksum_canonical: (a: number, b: number) => [number, number, number, number];
335
- readonly clear_cluster_cache: () => void;
336
334
  readonly snapshot_state_version: () => number;
335
+ readonly clear_cluster_cache: () => void;
336
+ readonly snapshot_checksum_canonical: (a: number, b: number) => [number, number, number, number];
337
337
  readonly __wbindgen_malloc: (a: number, b: number) => number;
338
338
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
339
339
  readonly __wbindgen_exn_store: (a: number) => void;
@@ -339,7 +339,7 @@ export function sim_env_drain_log(channel) {
339
339
 
340
340
  /**
341
341
  * Set a `(key, value)` in the cross-target env overlay read by
342
- * `oni_sim::sim_env::var`. WASM-side stand-in for the `SIM_*_PATH` /
342
+ * `onimaxxing_sim_physics::sim_env::var`. WASM-side stand-in for the `SIM_*_PATH` /
343
343
  * `SIM_*_TICK` env vars used by native diag sites.
344
344
  * @param {string} key
345
345
  * @param {string} value
Binary file
@@ -35,9 +35,9 @@ export const snapshot_state_reset: () => void;
35
35
  export const snapshot_state_vanilla: () => number;
36
36
  export const snapshot_state_vanilla_extensions: () => number;
37
37
  export const snapshot_to_files: (a: number, b: number) => [number, number, number, number];
38
- export const snapshot_checksum_canonical: (a: number, b: number) => [number, number, number, number];
39
- export const clear_cluster_cache: () => void;
40
38
  export const snapshot_state_version: () => number;
39
+ export const clear_cluster_cache: () => void;
40
+ export const snapshot_checksum_canonical: (a: number, b: number) => [number, number, number, number];
41
41
  export const __wbindgen_malloc: (a: number, b: number) => number;
42
42
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
43
43
  export const __wbindgen_exn_store: (a: number) => void;
package/yaml.d.ts CHANGED
File without changes
package/yaml.js CHANGED
File without changes