@onimaxxing/worldgen-node 0.30.1 → 0.31.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/index.d.ts CHANGED
@@ -302,11 +302,22 @@ export interface WorldMapData {
302
302
  subworld_table: string[];
303
303
  biome_cells: BiomeCell[];
304
304
  geysers: GeyserSpawn[];
305
+ template_placements: TemplatePlacement[];
305
306
  buildings: EntitySpawn[];
306
307
  pickupables: EntitySpawn[];
307
308
  other_entities: EntitySpawn[];
308
309
  }
309
310
 
311
+ /** A template stamped during worldgen; `(x, y)` is its anchor cell. */
312
+ export interface TemplatePlacement {
313
+ /** Template path, e.g. `"poi/frozen/heatsink_a"`. */
314
+ template: string;
315
+ x: number;
316
+ y: number;
317
+ /** `ruleId`, `"storytrait:<path>"`, `"starting_base"`, or `null`. */
318
+ rule: string | null;
319
+ }
320
+
310
321
  export interface BiomeCell {
311
322
  id: number;
312
323
  /** Subworld type path, e.g. `"expansion1::subworlds/jungle/med_Jungle"`. */
@@ -485,6 +496,7 @@ export interface PartialWorld {
485
496
  is_starting: boolean;
486
497
  world_traits: string[];
487
498
  geysers: GeyserSpawn[];
499
+ template_placements: TemplatePlacement[];
488
500
  element_idx: Uint16Array;
489
501
  mass: Float32Array;
490
502
  temperature: Float32Array;
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.30.1",
4
+ "version": "0.31.0",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",