@onimaxxing/worldgen-node 0.33.3 → 0.33.5
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 +52 -0
- package/oni_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -313,6 +313,10 @@ export interface WorldMapData {
|
|
|
313
313
|
template_rule_outcomes: TemplateRuleOutcome[];
|
|
314
314
|
buildings: EntitySpawn[];
|
|
315
315
|
pickupables: EntitySpawn[];
|
|
316
|
+
/** Raw ore deposits from templates (C# `GameSpawnData.elementalOres`). */
|
|
317
|
+
elemental_ores: EntitySpawn[];
|
|
318
|
+
/** Backwall decor from templates (C# `GameSpawnData.backwallEntities`). */
|
|
319
|
+
backwall_entities: EntitySpawn[];
|
|
316
320
|
other_entities: EntitySpawn[];
|
|
317
321
|
}
|
|
318
322
|
|
|
@@ -470,6 +474,46 @@ export interface EntitySpawn {
|
|
|
470
474
|
* (e.g. the R270 LiquidValve in `poi_old_pool`). Absent otherwise.
|
|
471
475
|
*/
|
|
472
476
|
rotationOrientation?: string;
|
|
477
|
+
/**
|
|
478
|
+
* Authored template values, copied verbatim from the template prefab
|
|
479
|
+
* (never settled). `element`, `temperature` and `units` are present,
|
|
480
|
+
* zeros included, on every template-placed entry and absent on
|
|
481
|
+
* non-template spawns (ambient mobs), which take the game defaults
|
|
482
|
+
* (element 0, temperature -1, units 1). `element` is null when the
|
|
483
|
+
* template names none.
|
|
484
|
+
*/
|
|
485
|
+
element?: string | null;
|
|
486
|
+
/** Kelvin. */
|
|
487
|
+
temperature?: number;
|
|
488
|
+
/** Mass for ores, count for stacks. */
|
|
489
|
+
units?: number;
|
|
490
|
+
diseaseName?: string;
|
|
491
|
+
diseaseCount?: number;
|
|
492
|
+
facadeId?: string;
|
|
493
|
+
loreUnlockId?: string;
|
|
494
|
+
loreDisplayText?: string;
|
|
495
|
+
loreNextCollectionId?: string;
|
|
496
|
+
rottable?: { rotAmount?: number };
|
|
497
|
+
amounts?: SpawnAmountValue[];
|
|
498
|
+
otherValues?: SpawnAmountValue[];
|
|
499
|
+
/** Container contents (e.g. RationBox). */
|
|
500
|
+
storage?: SpawnStorageItem[];
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export interface SpawnAmountValue {
|
|
504
|
+
id: string | null;
|
|
505
|
+
value: number;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export interface SpawnStorageItem {
|
|
509
|
+
id: string | null;
|
|
510
|
+
element: string | null;
|
|
511
|
+
units: number;
|
|
512
|
+
temperature: number;
|
|
513
|
+
isOre: boolean;
|
|
514
|
+
diseaseName?: string;
|
|
515
|
+
diseaseCount?: number;
|
|
516
|
+
rottable?: { rotAmount?: number };
|
|
473
517
|
}
|
|
474
518
|
|
|
475
519
|
/**
|
|
@@ -561,6 +605,10 @@ export interface EntitySpawnerWorld {
|
|
|
561
605
|
geysers: GeyserSpawn[];
|
|
562
606
|
buildings: EntitySpawn[];
|
|
563
607
|
pickupables: EntitySpawn[];
|
|
608
|
+
/** Raw ore deposits from templates (C# `GameSpawnData.elementalOres`). */
|
|
609
|
+
elemental_ores: EntitySpawn[];
|
|
610
|
+
/** Backwall decor from templates (C# `GameSpawnData.backwallEntities`). */
|
|
611
|
+
backwall_entities: EntitySpawn[];
|
|
564
612
|
other_entities: EntitySpawn[];
|
|
565
613
|
}
|
|
566
614
|
|
|
@@ -616,6 +664,10 @@ export interface PartialWorld {
|
|
|
616
664
|
biome_cells: BiomeCell[];
|
|
617
665
|
buildings: EntitySpawn[];
|
|
618
666
|
pickupables: EntitySpawn[];
|
|
667
|
+
/** Raw ore deposits from templates (C# `GameSpawnData.elementalOres`). */
|
|
668
|
+
elemental_ores: EntitySpawn[];
|
|
669
|
+
/** Backwall decor from templates (C# `GameSpawnData.backwallEntities`). */
|
|
670
|
+
backwall_entities: EntitySpawn[];
|
|
619
671
|
other_entities: EntitySpawn[];
|
|
620
672
|
}
|
|
621
673
|
|
package/oni_wasm_bg.wasm
CHANGED
|
Binary file
|