deepwoken 0.1.0 → 0.1.1

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/types.ts ADDED
@@ -0,0 +1,63 @@
1
+ // copy the rust provided types (is there a better way to mirror types? man)
2
+
3
+ export type Stat =
4
+ | "Strength" | "Fortitude" | "Agility" | "Intelligence" | "Willpower" | "Charisma"
5
+ | "Heavy Wep." | "Medium Wep." | "Light Wep."
6
+ | "Frostdraw" | "Flamecharm" | "Thundercall" | "Galebreathe" | "Shadowcast" | "Ironsing" | "Bloodrend"
7
+ | "Total";
8
+
9
+ export interface Talent {
10
+ name: string;
11
+ desc: string;
12
+ rarity: string;
13
+ category: string;
14
+ reqs: string;
15
+ exclusive: string[];
16
+ innates: Record<string, number>;
17
+ not_counted_towards_total: boolean;
18
+ vaulted: boolean;
19
+ }
20
+
21
+ export interface Weapon {
22
+ name: string;
23
+ type: string;
24
+ damage_type: string;
25
+ reqs: string;
26
+ damage: number;
27
+ pen: number;
28
+ chip: number;
29
+ weight: number;
30
+ range: number;
31
+ speed: number;
32
+ endlag: number;
33
+ scaling: Record<string, number>;
34
+ }
35
+
36
+ export interface Mantra {
37
+ name: string;
38
+ desc: string;
39
+ stars: number;
40
+ category: string;
41
+ type: string;
42
+ attributes: string[];
43
+ reqs: string;
44
+ vaulted: boolean;
45
+ }
46
+
47
+ export interface Outfit {
48
+ name: string;
49
+ category: string;
50
+ durability: number;
51
+ resistances: Record<string, number>;
52
+ extra_percents: Record<string, number>;
53
+ talent: string | null;
54
+ reqs: string;
55
+ mats: Record<string, number>;
56
+ notes: number;
57
+ }
58
+
59
+ export interface Aspect {
60
+ name: string;
61
+ innate: Partial<Record<Stat, number>>;
62
+ is_pathfinder: boolean;
63
+ }
package/deepwoken.d.ts DELETED
@@ -1,30 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
-
4
- export class DeepData {
5
- private constructor();
6
- free(): void;
7
- [Symbol.dispose](): void;
8
- aspects(): any;
9
- /**
10
- * Fetch the latest data bundle from pocamind/data on GitHub
11
- */
12
- static fetchLatest(): Promise<DeepData>;
13
- /**
14
- * Fetch the latest data bundle from a fork
15
- */
16
- static fetchLatestFrom(owner: string, repo: string): Promise<DeepData>;
17
- /**
18
- * Parse data from a JSON string
19
- */
20
- static fromJson(json: string): DeepData;
21
- getAspect(name: string): any;
22
- getMantra(name: string): any;
23
- getOutfit(name: string): any;
24
- getTalent(name: string): any;
25
- getWeapon(name: string): any;
26
- mantras(): any;
27
- outfits(): any;
28
- talents(): any;
29
- weapons(): any;
30
- }
package/deepwoken.js DELETED
@@ -1,9 +0,0 @@
1
- /* @ts-self-types="./deepwoken.d.ts" */
2
-
3
- import * as wasm from "./deepwoken_bg.wasm";
4
- import { __wbg_set_wasm } from "./deepwoken_bg.js";
5
- __wbg_set_wasm(wasm);
6
- wasm.__wbindgen_start();
7
- export {
8
- DeepData
9
- } from "./deepwoken_bg.js";