nucleation 0.1.101 → 0.1.102

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.
@@ -243,10 +243,6 @@ export function debug_schematic(schematic) {
243
243
  }
244
244
  }
245
245
 
246
- export function start() {
247
- wasm.start();
248
- }
249
-
250
246
  /**
251
247
  * @param {SchematicWrapper} schematic
252
248
  * @returns {string}
@@ -265,6 +261,10 @@ export function debug_json_schematic(schematic) {
265
261
  }
266
262
  }
267
263
 
264
+ export function start() {
265
+ wasm.start();
266
+ }
267
+
268
268
  let cachedUint32ArrayMemory0 = null;
269
269
 
270
270
  function getUint32ArrayMemory0() {
@@ -2072,6 +2072,19 @@ export class TypedCircuitExecutorWrapper {
2072
2072
  const ptr = this.__destroy_into_raw();
2073
2073
  wasm.__wbg_typedcircuitexecutorwrapper_free(ptr, 0);
2074
2074
  }
2075
+ /**
2076
+ * Create executor from Insign annotations in schematic
2077
+ * @param {SchematicWrapper} schematic
2078
+ * @returns {TypedCircuitExecutorWrapper}
2079
+ */
2080
+ static fromInsign(schematic) {
2081
+ _assertClass(schematic, SchematicWrapper);
2082
+ const ret = wasm.typedcircuitexecutorwrapper_fromInsign(schematic.__wbg_ptr);
2083
+ if (ret[2]) {
2084
+ throw takeFromExternrefTable0(ret[1]);
2085
+ }
2086
+ return TypedCircuitExecutorWrapper.__wrap(ret[0]);
2087
+ }
2075
2088
  /**
2076
2089
  * Create executor from world and layout
2077
2090
  * @param {MchprsWorldWrapper} world
package/nucleation.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export function debug_schematic(schematic: SchematicWrapper): string;
4
- export function start(): void;
5
4
  export function debug_json_schematic(schematic: SchematicWrapper): string;
5
+ export function start(): void;
6
6
  export class BlockPosition {
7
7
  free(): void;
8
8
  [Symbol.dispose](): void;
@@ -486,6 +486,10 @@ export class TypedCircuitExecutorWrapper {
486
486
  private constructor();
487
487
  free(): void;
488
488
  [Symbol.dispose](): void;
489
+ /**
490
+ * Create executor from Insign annotations in schematic
491
+ */
492
+ static fromInsign(schematic: SchematicWrapper): TypedCircuitExecutorWrapper;
489
493
  /**
490
494
  * Create executor from world and layout
491
495
  */
@@ -690,6 +694,7 @@ export interface InitOutput {
690
694
  readonly simulationoptionswrapper_set_io_only: (a: number, b: number) => void;
691
695
  readonly simulationoptionswrapper_set_optimize: (a: number, b: number) => void;
692
696
  readonly typedcircuitexecutorwrapper_execute: (a: number, b: any, c: number) => [number, number, number];
697
+ readonly typedcircuitexecutorwrapper_fromInsign: (a: number) => [number, number, number];
693
698
  readonly typedcircuitexecutorwrapper_fromLayout: (a: number, b: number) => [number, number, number];
694
699
  readonly typedcircuitexecutorwrapper_fromLayoutWithOptions: (a: number, b: number, c: number) => [number, number, number];
695
700
  readonly typedcircuitexecutorwrapper_reset: (a: number) => [number, number];
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Nano nano@schem.at"
6
6
  ],
7
7
  "description": "A high-performance Minecraft schematic parser and utility library",
8
- "version": "0.1.101",
8
+ "version": "0.1.102",
9
9
  "license": "AGPL-3.0-only",
10
10
  "repository": {
11
11
  "type": "git",