deepwoken 0.1.1 → 0.1.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/index.ts +5 -2
- package/package.json +1 -1
- package/pkg/deepwoken_bg.wasm +0 -0
- package/types.ts +1 -1
package/index.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
export { default as init } from './pkg/deepwoken.js';
|
|
2
1
|
export type { Talent, Weapon, Mantra, Outfit, Aspect, Stat } from './types.js';
|
|
3
2
|
|
|
4
|
-
import { DeepData as WasmDeepData } from './pkg/deepwoken.js';
|
|
3
|
+
import wasmInit, { DeepData as WasmDeepData } from './pkg/deepwoken.js';
|
|
5
4
|
import type { Talent, Weapon, Mantra, Outfit, Aspect } from './types.js';
|
|
6
5
|
|
|
6
|
+
if (typeof window !== 'undefined') {
|
|
7
|
+
await wasmInit();
|
|
8
|
+
}
|
|
9
|
+
|
|
7
10
|
export class DeepData {
|
|
8
11
|
private _wasm: WasmDeepData;
|
|
9
12
|
|
package/package.json
CHANGED
package/pkg/deepwoken_bg.wasm
CHANGED
|
Binary file
|
package/types.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
export type Stat =
|
|
4
4
|
| "Strength" | "Fortitude" | "Agility" | "Intelligence" | "Willpower" | "Charisma"
|
|
5
|
-
| "Heavy
|
|
5
|
+
| "Heavy" | "Medium" | "Light"
|
|
6
6
|
| "Frostdraw" | "Flamecharm" | "Thundercall" | "Galebreathe" | "Shadowcast" | "Ironsing" | "Bloodrend"
|
|
7
7
|
| "Total";
|
|
8
8
|
|