pkhex 25.10.26-a
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/README.md +73 -0
- package/dist/PKHeX.Core.dll +0 -0
- package/dist/PKHeX.deps.json +361 -0
- package/dist/PKHeX.dll +0 -0
- package/dist/PKHeX.runtimeconfig.json +38 -0
- package/dist/System.Collections.Concurrent.dll +0 -0
- package/dist/System.Collections.dll +0 -0
- package/dist/System.ComponentModel.Annotations.dll +0 -0
- package/dist/System.ComponentModel.Primitives.dll +0 -0
- package/dist/System.ComponentModel.TypeConverter.dll +0 -0
- package/dist/System.Console.dll +0 -0
- package/dist/System.Diagnostics.DiagnosticSource.dll +0 -0
- package/dist/System.Diagnostics.TraceSource.dll +0 -0
- package/dist/System.IO.Compression.ZipFile.dll +0 -0
- package/dist/System.IO.Compression.dll +0 -0
- package/dist/System.IO.Pipelines.dll +0 -0
- package/dist/System.Linq.dll +0 -0
- package/dist/System.Memory.dll +0 -0
- package/dist/System.Net.Http.dll +0 -0
- package/dist/System.Net.Primitives.dll +0 -0
- package/dist/System.Numerics.Vectors.dll +0 -0
- package/dist/System.ObjectModel.dll +0 -0
- package/dist/System.Private.CoreLib.dll +0 -0
- package/dist/System.Private.Uri.dll +0 -0
- package/dist/System.Runtime.InteropServices.JavaScript.dll +0 -0
- package/dist/System.Runtime.InteropServices.dll +0 -0
- package/dist/System.Runtime.Numerics.dll +0 -0
- package/dist/System.Runtime.dll +0 -0
- package/dist/System.Security.Cryptography.dll +0 -0
- package/dist/System.Text.Encodings.Web.dll +0 -0
- package/dist/System.Text.Json.dll +0 -0
- package/dist/System.Text.RegularExpressions.dll +0 -0
- package/dist/System.Threading.Tasks.Parallel.dll +0 -0
- package/dist/System.Threading.dll +0 -0
- package/dist/api-wrapper.d.ts +114 -0
- package/dist/api-wrapper.js +154 -0
- package/dist/blazor.boot.json +47 -0
- package/dist/corebindings.c +315 -0
- package/dist/dotnet.d.ts +698 -0
- package/dist/dotnet.es6.extpost.js +2 -0
- package/dist/dotnet.es6.lib.js +149 -0
- package/dist/dotnet.es6.pre.js +3 -0
- package/dist/dotnet.globalization.js +1015 -0
- package/dist/dotnet.js +4 -0
- package/dist/dotnet.js.map +1 -0
- package/dist/dotnet.native.js +16 -0
- package/dist/dotnet.native.js.symbols +8687 -0
- package/dist/dotnet.native.wasm +0 -0
- package/dist/dotnet.runtime.js +4 -0
- package/dist/dotnet.runtime.js.map +1 -0
- package/dist/driver.c +573 -0
- package/dist/emcc-default.rsp +0 -0
- package/dist/emcc-link.rsp +17 -0
- package/dist/gc-common.h +73 -0
- package/dist/helpers.d.ts +5 -0
- package/dist/helpers.js +15 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.js +54 -0
- package/dist/package.json +44 -0
- package/dist/pinvoke.c +62 -0
- package/dist/pinvoke.h +50 -0
- package/dist/runtime.c +386 -0
- package/dist/runtime.h +25 -0
- package/dist/segmentation-rules.json +83 -0
- package/dist/wasm-config.h +13 -0
- package/dist/wasm-props.json +21 -0
- package/package.json +58 -0
- package/src/helpers.ts +20 -0
- package/src/index.d.ts +919 -0
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# PKHeX.js
|
|
2
|
+
|
|
3
|
+
Provides WebAssembly bindings for PKHeX.Core. Allows editing Pokémon save files in JavaScript environments (Browser, NodeJS, etc). If you find a feature of PKHeX is
|
|
4
|
+
missing, feel free to send a PR or open an issue.
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
|
|
8
|
+
You can install the latest version of PKHeX like this:
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install pkhex
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
// Get PKHeX API
|
|
18
|
+
import setupPKHeX from 'pkhex';
|
|
19
|
+
const pkhex = await setupPKHeX();
|
|
20
|
+
|
|
21
|
+
// Load a save file
|
|
22
|
+
const saveData = await fetch('save.sav').then(r => r.arrayBuffer());
|
|
23
|
+
const base64Data = btoa(String.fromCharCode(...new Uint8Array(saveData)));
|
|
24
|
+
const result = await pkhex.loadSave(base64Data);
|
|
25
|
+
|
|
26
|
+
if (result.success) {
|
|
27
|
+
const { handle } = result;
|
|
28
|
+
|
|
29
|
+
// Get save info
|
|
30
|
+
const { ot, gameVersion } = await PKHeXApi.getSaveInfo(handle);
|
|
31
|
+
console.log(`Trainer: ${ot}, Game: ${gameVersion}`);
|
|
32
|
+
|
|
33
|
+
// Get all Pokémon
|
|
34
|
+
const mons = await PKHeXApi.getAllPokemon(handle);
|
|
35
|
+
console.log(`Found ${mons.length} Pokémon`);
|
|
36
|
+
|
|
37
|
+
// Export modified save
|
|
38
|
+
const { base64Data } = await PKHeXApi.exportSave(handle);
|
|
39
|
+
const saveBytes = Uint8Array.from(atob(base64Data), c => c.charCodeAt(0));
|
|
40
|
+
|
|
41
|
+
// Free memory after you're done
|
|
42
|
+
await PKHeXApi.disposeSave(handle);
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## API Documentation
|
|
47
|
+
|
|
48
|
+
API documentation is built autoamtically [through GitHub pages](https://monokrome.github.io/PKHeX.js).
|
|
49
|
+
|
|
50
|
+
## Features
|
|
51
|
+
|
|
52
|
+
- Load and save Pokémon save files (Generations 1-9)
|
|
53
|
+
- Read and modify Pokémon data
|
|
54
|
+
- Edit trainer information
|
|
55
|
+
- Manage items and Pokédex
|
|
56
|
+
- Legality checking
|
|
57
|
+
- Showdown format import/export
|
|
58
|
+
|
|
59
|
+
## Updating PKHeX
|
|
60
|
+
|
|
61
|
+
The original PKHeX.Core is compiled into WASM from a git submodule at
|
|
62
|
+
lib/PKHeX. To create a PR for updating (or downgrading) PKHeX, you can
|
|
63
|
+
change the version of the submodule to a version tag, change package.json
|
|
64
|
+
for PKHeX.js to match that version, commit the changes, test a build
|
|
65
|
+
locally with scripts/build.sh, and create a PR.
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
This project uses PKHeX.Core which is licensed under GPLv3.
|
|
70
|
+
|
|
71
|
+
## Credits
|
|
72
|
+
|
|
73
|
+
Built on top of [PKHeX](https://github.com/kwsch/PKHeX) by Kurt.
|
|
Binary file
|
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runtimeTarget": {
|
|
3
|
+
"name": ".NETCoreApp,Version=v9.0/browser-wasm",
|
|
4
|
+
"signature": ""
|
|
5
|
+
},
|
|
6
|
+
"compilationOptions": {},
|
|
7
|
+
"targets": {
|
|
8
|
+
".NETCoreApp,Version=v9.0": {},
|
|
9
|
+
".NETCoreApp,Version=v9.0/browser-wasm": {
|
|
10
|
+
"PKHeX/1.0.0": {
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"Microsoft.NET.ILLink.Tasks": "9.0.10",
|
|
13
|
+
"PKHeX.Core": "25.10.26",
|
|
14
|
+
"System.Text.Json": "9.0.10",
|
|
15
|
+
"runtimepack.Microsoft.NETCore.App.Runtime.Mono.browser-wasm": "9.0.10"
|
|
16
|
+
},
|
|
17
|
+
"runtime": {
|
|
18
|
+
"PKHeX.dll": {}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"runtimepack.Microsoft.NETCore.App.Runtime.Mono.browser-wasm/9.0.10": {
|
|
22
|
+
"runtime": {
|
|
23
|
+
"System.Collections.Concurrent.dll": {
|
|
24
|
+
"assemblyVersion": "9.0.0.0",
|
|
25
|
+
"fileVersion": "9.0.1025.47515"
|
|
26
|
+
},
|
|
27
|
+
"System.Collections.dll": {
|
|
28
|
+
"assemblyVersion": "9.0.0.0",
|
|
29
|
+
"fileVersion": "9.0.1025.47515"
|
|
30
|
+
},
|
|
31
|
+
"System.ComponentModel.Annotations.dll": {
|
|
32
|
+
"assemblyVersion": "9.0.0.0",
|
|
33
|
+
"fileVersion": "9.0.1025.47515"
|
|
34
|
+
},
|
|
35
|
+
"System.ComponentModel.Primitives.dll": {
|
|
36
|
+
"assemblyVersion": "9.0.0.0",
|
|
37
|
+
"fileVersion": "9.0.1025.47515"
|
|
38
|
+
},
|
|
39
|
+
"System.ComponentModel.TypeConverter.dll": {
|
|
40
|
+
"assemblyVersion": "9.0.0.0",
|
|
41
|
+
"fileVersion": "9.0.1025.47515"
|
|
42
|
+
},
|
|
43
|
+
"System.Console.dll": {
|
|
44
|
+
"assemblyVersion": "9.0.0.0",
|
|
45
|
+
"fileVersion": "9.0.1025.47515"
|
|
46
|
+
},
|
|
47
|
+
"System.Diagnostics.DiagnosticSource.dll": {
|
|
48
|
+
"assemblyVersion": "9.0.0.0",
|
|
49
|
+
"fileVersion": "9.0.1025.47515"
|
|
50
|
+
},
|
|
51
|
+
"System.Diagnostics.TraceSource.dll": {
|
|
52
|
+
"assemblyVersion": "9.0.0.0",
|
|
53
|
+
"fileVersion": "9.0.1025.47515"
|
|
54
|
+
},
|
|
55
|
+
"System.IO.Compression.ZipFile.dll": {
|
|
56
|
+
"assemblyVersion": "9.0.0.0",
|
|
57
|
+
"fileVersion": "9.0.1025.47515"
|
|
58
|
+
},
|
|
59
|
+
"System.IO.Compression.dll": {
|
|
60
|
+
"assemblyVersion": "9.0.0.0",
|
|
61
|
+
"fileVersion": "9.0.1025.47515"
|
|
62
|
+
},
|
|
63
|
+
"System.IO.Pipelines.dll": {
|
|
64
|
+
"assemblyVersion": "9.0.0.0",
|
|
65
|
+
"fileVersion": "9.0.1025.47515"
|
|
66
|
+
},
|
|
67
|
+
"System.Linq.dll": {
|
|
68
|
+
"assemblyVersion": "9.0.0.0",
|
|
69
|
+
"fileVersion": "9.0.1025.47515"
|
|
70
|
+
},
|
|
71
|
+
"System.Memory.dll": {
|
|
72
|
+
"assemblyVersion": "9.0.0.0",
|
|
73
|
+
"fileVersion": "9.0.1025.47515"
|
|
74
|
+
},
|
|
75
|
+
"System.Net.Http.dll": {
|
|
76
|
+
"assemblyVersion": "9.0.0.0",
|
|
77
|
+
"fileVersion": "9.0.1025.47515"
|
|
78
|
+
},
|
|
79
|
+
"System.Net.Primitives.dll": {
|
|
80
|
+
"assemblyVersion": "9.0.0.0",
|
|
81
|
+
"fileVersion": "9.0.1025.47515"
|
|
82
|
+
},
|
|
83
|
+
"System.Numerics.Vectors.dll": {
|
|
84
|
+
"assemblyVersion": "9.0.0.0",
|
|
85
|
+
"fileVersion": "9.0.1025.47515"
|
|
86
|
+
},
|
|
87
|
+
"System.ObjectModel.dll": {
|
|
88
|
+
"assemblyVersion": "9.0.0.0",
|
|
89
|
+
"fileVersion": "9.0.1025.47515"
|
|
90
|
+
},
|
|
91
|
+
"System.Private.Uri.dll": {
|
|
92
|
+
"assemblyVersion": "9.0.0.0",
|
|
93
|
+
"fileVersion": "9.0.1025.47515"
|
|
94
|
+
},
|
|
95
|
+
"System.Runtime.InteropServices.JavaScript.dll": {
|
|
96
|
+
"assemblyVersion": "9.0.0.0",
|
|
97
|
+
"fileVersion": "9.0.1025.47515"
|
|
98
|
+
},
|
|
99
|
+
"System.Runtime.InteropServices.dll": {
|
|
100
|
+
"assemblyVersion": "9.0.0.0",
|
|
101
|
+
"fileVersion": "9.0.1025.47515"
|
|
102
|
+
},
|
|
103
|
+
"System.Runtime.Numerics.dll": {
|
|
104
|
+
"assemblyVersion": "9.0.0.0",
|
|
105
|
+
"fileVersion": "9.0.1025.47515"
|
|
106
|
+
},
|
|
107
|
+
"System.Runtime.dll": {
|
|
108
|
+
"assemblyVersion": "9.0.0.0",
|
|
109
|
+
"fileVersion": "9.0.1025.47515"
|
|
110
|
+
},
|
|
111
|
+
"System.Security.Cryptography.dll": {
|
|
112
|
+
"assemblyVersion": "9.0.0.0",
|
|
113
|
+
"fileVersion": "9.0.1025.47515"
|
|
114
|
+
},
|
|
115
|
+
"System.Text.Encodings.Web.dll": {
|
|
116
|
+
"assemblyVersion": "9.0.0.0",
|
|
117
|
+
"fileVersion": "9.0.1025.47515"
|
|
118
|
+
},
|
|
119
|
+
"System.Text.Json.dll": {
|
|
120
|
+
"assemblyVersion": "9.0.0.0",
|
|
121
|
+
"fileVersion": "9.0.1025.47515"
|
|
122
|
+
},
|
|
123
|
+
"System.Text.RegularExpressions.dll": {
|
|
124
|
+
"assemblyVersion": "9.0.0.0",
|
|
125
|
+
"fileVersion": "9.0.1025.47515"
|
|
126
|
+
},
|
|
127
|
+
"System.Threading.Tasks.Parallel.dll": {
|
|
128
|
+
"assemblyVersion": "9.0.0.0",
|
|
129
|
+
"fileVersion": "9.0.1025.47515"
|
|
130
|
+
},
|
|
131
|
+
"System.Threading.dll": {
|
|
132
|
+
"assemblyVersion": "9.0.0.0",
|
|
133
|
+
"fileVersion": "9.0.1025.47515"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"native": {
|
|
137
|
+
"System.Private.CoreLib.dll": {
|
|
138
|
+
"assemblyVersion": "9.0.0.0",
|
|
139
|
+
"fileVersion": "9.0.1025.47515"
|
|
140
|
+
},
|
|
141
|
+
"dotnet.d.ts": {
|
|
142
|
+
"fileVersion": "0.0.0.0"
|
|
143
|
+
},
|
|
144
|
+
"dotnet.globalization.js": {
|
|
145
|
+
"fileVersion": "0.0.0.0"
|
|
146
|
+
},
|
|
147
|
+
"dotnet.js": {
|
|
148
|
+
"fileVersion": "0.0.0.0"
|
|
149
|
+
},
|
|
150
|
+
"dotnet.js.map": {
|
|
151
|
+
"fileVersion": "0.0.0.0"
|
|
152
|
+
},
|
|
153
|
+
"dotnet.native.js": {
|
|
154
|
+
"fileVersion": "0.0.0.0"
|
|
155
|
+
},
|
|
156
|
+
"dotnet.native.js.symbols": {
|
|
157
|
+
"fileVersion": "0.0.0.0"
|
|
158
|
+
},
|
|
159
|
+
"dotnet.native.wasm": {
|
|
160
|
+
"fileVersion": "0.0.0.0"
|
|
161
|
+
},
|
|
162
|
+
"dotnet.runtime.js": {
|
|
163
|
+
"fileVersion": "0.0.0.0"
|
|
164
|
+
},
|
|
165
|
+
"dotnet.runtime.js.map": {
|
|
166
|
+
"fileVersion": "0.0.0.0"
|
|
167
|
+
},
|
|
168
|
+
"icudt.dat": {
|
|
169
|
+
"fileVersion": "0.0.0.0"
|
|
170
|
+
},
|
|
171
|
+
"icudt_CJK.dat": {
|
|
172
|
+
"fileVersion": "0.0.0.0"
|
|
173
|
+
},
|
|
174
|
+
"icudt_EFIGS.dat": {
|
|
175
|
+
"fileVersion": "0.0.0.0"
|
|
176
|
+
},
|
|
177
|
+
"icudt_hybrid.dat": {
|
|
178
|
+
"fileVersion": "0.0.0.0"
|
|
179
|
+
},
|
|
180
|
+
"icudt_no_CJK.dat": {
|
|
181
|
+
"fileVersion": "0.0.0.0"
|
|
182
|
+
},
|
|
183
|
+
"libSystem.Globalization.Native.a": {
|
|
184
|
+
"fileVersion": "0.0.0.0"
|
|
185
|
+
},
|
|
186
|
+
"libSystem.IO.Compression.Native.a": {
|
|
187
|
+
"fileVersion": "0.0.0.0"
|
|
188
|
+
},
|
|
189
|
+
"libSystem.Native.a": {
|
|
190
|
+
"fileVersion": "0.0.0.0"
|
|
191
|
+
},
|
|
192
|
+
"libicudata.a": {
|
|
193
|
+
"fileVersion": "0.0.0.0"
|
|
194
|
+
},
|
|
195
|
+
"libicui18n.a": {
|
|
196
|
+
"fileVersion": "0.0.0.0"
|
|
197
|
+
},
|
|
198
|
+
"libicuuc.a": {
|
|
199
|
+
"fileVersion": "0.0.0.0"
|
|
200
|
+
},
|
|
201
|
+
"libmono-component-debugger-static.a": {
|
|
202
|
+
"fileVersion": "0.0.0.0"
|
|
203
|
+
},
|
|
204
|
+
"libmono-component-debugger-stub-static.a": {
|
|
205
|
+
"fileVersion": "0.0.0.0"
|
|
206
|
+
},
|
|
207
|
+
"libmono-component-diagnostics_tracing-static.a": {
|
|
208
|
+
"fileVersion": "0.0.0.0"
|
|
209
|
+
},
|
|
210
|
+
"libmono-component-diagnostics_tracing-stub-static.a": {
|
|
211
|
+
"fileVersion": "0.0.0.0"
|
|
212
|
+
},
|
|
213
|
+
"libmono-component-hot_reload-static.a": {
|
|
214
|
+
"fileVersion": "0.0.0.0"
|
|
215
|
+
},
|
|
216
|
+
"libmono-component-hot_reload-stub-static.a": {
|
|
217
|
+
"fileVersion": "0.0.0.0"
|
|
218
|
+
},
|
|
219
|
+
"libmono-component-marshal-ilgen-static.a": {
|
|
220
|
+
"fileVersion": "0.0.0.0"
|
|
221
|
+
},
|
|
222
|
+
"libmono-component-marshal-ilgen-stub-static.a": {
|
|
223
|
+
"fileVersion": "0.0.0.0"
|
|
224
|
+
},
|
|
225
|
+
"libmono-ee-interp.a": {
|
|
226
|
+
"fileVersion": "0.0.0.0"
|
|
227
|
+
},
|
|
228
|
+
"libmono-icall-table.a": {
|
|
229
|
+
"fileVersion": "0.0.0.0"
|
|
230
|
+
},
|
|
231
|
+
"libmono-profiler-aot.a": {
|
|
232
|
+
"fileVersion": "0.0.0.0"
|
|
233
|
+
},
|
|
234
|
+
"libmono-profiler-browser.a": {
|
|
235
|
+
"fileVersion": "0.0.0.0"
|
|
236
|
+
},
|
|
237
|
+
"libmono-profiler-log.a": {
|
|
238
|
+
"fileVersion": "0.0.0.0"
|
|
239
|
+
},
|
|
240
|
+
"libmono-wasm-eh-js.a": {
|
|
241
|
+
"fileVersion": "0.0.0.0"
|
|
242
|
+
},
|
|
243
|
+
"libmono-wasm-eh-wasm.a": {
|
|
244
|
+
"fileVersion": "0.0.0.0"
|
|
245
|
+
},
|
|
246
|
+
"libmono-wasm-nosimd.a": {
|
|
247
|
+
"fileVersion": "0.0.0.0"
|
|
248
|
+
},
|
|
249
|
+
"libmono-wasm-simd.a": {
|
|
250
|
+
"fileVersion": "0.0.0.0"
|
|
251
|
+
},
|
|
252
|
+
"libmonosgen-2.0.a": {
|
|
253
|
+
"fileVersion": "0.0.0.0"
|
|
254
|
+
},
|
|
255
|
+
"libz.a": {
|
|
256
|
+
"fileVersion": "0.0.0.0"
|
|
257
|
+
},
|
|
258
|
+
"package.json": {
|
|
259
|
+
"fileVersion": "0.0.0.0"
|
|
260
|
+
},
|
|
261
|
+
"segmentation-rules.json": {
|
|
262
|
+
"fileVersion": "0.0.0.0"
|
|
263
|
+
},
|
|
264
|
+
"wasm-bundled-timezones.a": {
|
|
265
|
+
"fileVersion": "0.0.0.0"
|
|
266
|
+
},
|
|
267
|
+
"gc-common.h": {
|
|
268
|
+
"fileVersion": "0.0.0.0"
|
|
269
|
+
},
|
|
270
|
+
"pinvoke.h": {
|
|
271
|
+
"fileVersion": "0.0.0.0"
|
|
272
|
+
},
|
|
273
|
+
"runtime.h": {
|
|
274
|
+
"fileVersion": "0.0.0.0"
|
|
275
|
+
},
|
|
276
|
+
"wasm-config.h": {
|
|
277
|
+
"fileVersion": "0.0.0.0"
|
|
278
|
+
},
|
|
279
|
+
"corebindings.c": {
|
|
280
|
+
"fileVersion": "0.0.0.0"
|
|
281
|
+
},
|
|
282
|
+
"driver.c": {
|
|
283
|
+
"fileVersion": "0.0.0.0"
|
|
284
|
+
},
|
|
285
|
+
"emcc-default.rsp": {
|
|
286
|
+
"fileVersion": "0.0.0.0"
|
|
287
|
+
},
|
|
288
|
+
"emcc-link.rsp": {
|
|
289
|
+
"fileVersion": "0.0.0.0"
|
|
290
|
+
},
|
|
291
|
+
"pinvoke.c": {
|
|
292
|
+
"fileVersion": "0.0.0.0"
|
|
293
|
+
},
|
|
294
|
+
"runtime.c": {
|
|
295
|
+
"fileVersion": "0.0.0.0"
|
|
296
|
+
},
|
|
297
|
+
"wasm-props.json": {
|
|
298
|
+
"fileVersion": "0.0.0.0"
|
|
299
|
+
},
|
|
300
|
+
"dotnet.es6.extpost.js": {
|
|
301
|
+
"fileVersion": "0.0.0.0"
|
|
302
|
+
},
|
|
303
|
+
"dotnet.es6.lib.js": {
|
|
304
|
+
"fileVersion": "0.0.0.0"
|
|
305
|
+
},
|
|
306
|
+
"dotnet.es6.pre.js": {
|
|
307
|
+
"fileVersion": "0.0.0.0"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"Microsoft.NET.ILLink.Tasks/9.0.10": {},
|
|
312
|
+
"System.Text.Json/9.0.10": {},
|
|
313
|
+
"PKHeX.Core/25.10.26": {
|
|
314
|
+
"runtime": {
|
|
315
|
+
"PKHeX.Core.dll": {
|
|
316
|
+
"assemblyVersion": "25.10.26.0",
|
|
317
|
+
"fileVersion": "25.10.26.0"
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"libraries": {
|
|
324
|
+
"PKHeX/1.0.0": {
|
|
325
|
+
"type": "project",
|
|
326
|
+
"serviceable": false,
|
|
327
|
+
"sha512": ""
|
|
328
|
+
},
|
|
329
|
+
"runtimepack.Microsoft.NETCore.App.Runtime.Mono.browser-wasm/9.0.10": {
|
|
330
|
+
"type": "runtimepack",
|
|
331
|
+
"serviceable": false,
|
|
332
|
+
"sha512": ""
|
|
333
|
+
},
|
|
334
|
+
"Microsoft.NET.ILLink.Tasks/9.0.10": {
|
|
335
|
+
"type": "package",
|
|
336
|
+
"serviceable": true,
|
|
337
|
+
"sha512": "sha512-sseaSJcBxKEpkc59hnB00b3NmJdGvJLfj74HK+nucHxERxbZSUREuWKjC9ywc+HdzJvJyiP2eiyEOROaGSfcPw==",
|
|
338
|
+
"path": "microsoft.net.illink.tasks/9.0.10",
|
|
339
|
+
"hashPath": "microsoft.net.illink.tasks.9.0.10.nupkg.sha512"
|
|
340
|
+
},
|
|
341
|
+
"System.Text.Json/9.0.10": {
|
|
342
|
+
"type": "package",
|
|
343
|
+
"serviceable": true,
|
|
344
|
+
"sha512": "sha512-XM02ZBnzxk7Ti6l9YRy8Bp639wANqJzJzw4W4VYiCh+HXY9hBOWkGB4k89OLP/s/RxgM02P4a/mWcJTgFiLf1Q==",
|
|
345
|
+
"path": "system.text.json/9.0.10",
|
|
346
|
+
"hashPath": "system.text.json.9.0.10.nupkg.sha512"
|
|
347
|
+
},
|
|
348
|
+
"PKHeX.Core/25.10.26": {
|
|
349
|
+
"type": "project",
|
|
350
|
+
"serviceable": false,
|
|
351
|
+
"sha512": ""
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"runtimes": {
|
|
355
|
+
"browser-wasm": [
|
|
356
|
+
"browser",
|
|
357
|
+
"any",
|
|
358
|
+
"base"
|
|
359
|
+
]
|
|
360
|
+
}
|
|
361
|
+
}
|
package/dist/PKHeX.dll
ADDED
|
Binary file
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runtimeOptions": {
|
|
3
|
+
"tfm": "net9.0",
|
|
4
|
+
"includedFrameworks": [
|
|
5
|
+
{
|
|
6
|
+
"name": "Microsoft.NETCore.App",
|
|
7
|
+
"version": "9.0.10"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"configProperties": {
|
|
11
|
+
"Microsoft.Extensions.DependencyInjection.VerifyOpenGenericServiceTrimmability": true,
|
|
12
|
+
"System.ComponentModel.DefaultValueAttribute.IsSupported": false,
|
|
13
|
+
"System.ComponentModel.Design.IDesignerHost.IsSupported": false,
|
|
14
|
+
"System.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization": false,
|
|
15
|
+
"System.ComponentModel.TypeDescriptor.IsComObjectDescriptorSupported": false,
|
|
16
|
+
"System.Diagnostics.Debugger.IsSupported": false,
|
|
17
|
+
"System.Diagnostics.Metrics.Meter.IsSupported": false,
|
|
18
|
+
"System.Diagnostics.Tracing.EventSource.IsSupported": false,
|
|
19
|
+
"System.Globalization.Invariant": true,
|
|
20
|
+
"System.Globalization.Hybrid": false,
|
|
21
|
+
"System.Globalization.PredefinedCulturesOnly": true,
|
|
22
|
+
"System.Net.Http.EnableActivityPropagation": false,
|
|
23
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
|
|
24
|
+
"System.Resources.ResourceManager.AllowCustomResourceTypes": false,
|
|
25
|
+
"System.Resources.UseSystemResourceKeys": true,
|
|
26
|
+
"System.Runtime.CompilerServices.RuntimeFeature.IsDynamicCodeSupported": true,
|
|
27
|
+
"System.Runtime.InteropServices.BuiltInComInterop.IsSupported": false,
|
|
28
|
+
"System.Runtime.InteropServices.EnableConsumingManagedCodeFromNativeHosting": false,
|
|
29
|
+
"System.Runtime.InteropServices.EnableCppCLIHostActivation": false,
|
|
30
|
+
"System.Runtime.InteropServices.Marshalling.EnableGeneratedComInterfaceComImportInterop": false,
|
|
31
|
+
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false,
|
|
32
|
+
"System.StartupHookProvider.IsSupported": false,
|
|
33
|
+
"System.Text.Encoding.EnableUnsafeUTF7Encoding": false,
|
|
34
|
+
"System.Text.Json.JsonSerializer.IsReflectionEnabledByDefault": false,
|
|
35
|
+
"System.Threading.Thread.EnableAutoreleasePool": false
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { PKHeXApi } from './index.js';
|
|
2
|
+
interface RawPKHeXApi {
|
|
3
|
+
LoadSave(base64Data: string): string;
|
|
4
|
+
GetSaveInfo(handle: number): string;
|
|
5
|
+
ExportSave(handle: number): string;
|
|
6
|
+
DisposeSave(handle: number): string;
|
|
7
|
+
GetAllPokemon(handle: number): string;
|
|
8
|
+
GetParty(handle: number): string;
|
|
9
|
+
GetPokemon(handle: number, box: number, slot: number): string;
|
|
10
|
+
GetPartySlot(handle: number, slot: number): string;
|
|
11
|
+
ModifyPokemon(handle: number, box: number, slot: number, modificationsJson: string): string;
|
|
12
|
+
SetPokemon(handle: number, box: number, slot: number, base64PkmData: string): string;
|
|
13
|
+
DeletePokemon(handle: number, box: number, slot: number): string;
|
|
14
|
+
MovePokemon(handle: number, fromBox: number, fromSlot: number, toBox: number, toSlot: number): string;
|
|
15
|
+
GeneratePID(handle: number, box: number, slot: number, nature: number, shiny: boolean): string;
|
|
16
|
+
SetPID(handle: number, box: number, slot: number, pid: number): string;
|
|
17
|
+
SetShiny(handle: number, box: number, slot: number, shinyType: number): string;
|
|
18
|
+
GetPIDInfo(handle: number, box: number, slot: number): string;
|
|
19
|
+
CheckLegality(handle: number, box: number, slot: number): string;
|
|
20
|
+
LegalizePokemon(handle: number, box: number, slot: number): string;
|
|
21
|
+
ExportShowdown(handle: number, box: number, slot: number): string;
|
|
22
|
+
ImportShowdown(handle: number, box: number, slot: number, showdownText: string): string;
|
|
23
|
+
GetRibbons(handle: number, box: number, slot: number): string;
|
|
24
|
+
GetRibbonCount(handle: number, box: number, slot: number): string;
|
|
25
|
+
SetRibbon(handle: number, box: number, slot: number, ribbonName: string, value: boolean): string;
|
|
26
|
+
GetContestStats(handle: number, box: number, slot: number): string;
|
|
27
|
+
SetContestStat(handle: number, box: number, slot: number, statName: string, value: number): string;
|
|
28
|
+
GetTrainerInfo(handle: number): string;
|
|
29
|
+
SetTrainerInfo(handle: number, trainerDataJson: string): string;
|
|
30
|
+
GetTrainerCard(handle: number): string;
|
|
31
|
+
GetTrainerAppearance(handle: number): string;
|
|
32
|
+
SetTrainerAppearance(handle: number, appearanceJson: string): string;
|
|
33
|
+
GetRivalName(handle: number): string;
|
|
34
|
+
SetRivalName(handle: number, rivalName: string): string;
|
|
35
|
+
GetBoxNames(handle: number): string;
|
|
36
|
+
GetBoxWallpapers(handle: number): string;
|
|
37
|
+
SetBoxWallpaper(handle: number, box: number, wallpaperId: number): string;
|
|
38
|
+
GetBattleBox(handle: number): string;
|
|
39
|
+
SetBattleBoxSlot(handle: number, slot: number, base64PkmData: string): string;
|
|
40
|
+
GetDaycare(handle: number): string;
|
|
41
|
+
GetPouchItems(handle: number): string;
|
|
42
|
+
AddItemToPouch(handle: number, itemId: number, count: number, pouchIndex: number): string;
|
|
43
|
+
RemoveItemFromPouch(handle: number, itemId: number, count: number): string;
|
|
44
|
+
GetPokedex(handle: number): string;
|
|
45
|
+
SetPokedexSeen(handle: number, species: number, form: number): string;
|
|
46
|
+
SetPokedexCaught(handle: number, species: number, form: number): string;
|
|
47
|
+
GetBadges(handle: number): string;
|
|
48
|
+
SetBadge(handle: number, badgeIndex: number, value: boolean): string;
|
|
49
|
+
GetBattlePoints(handle: number): string;
|
|
50
|
+
SetBattlePoints(handle: number, battlePoints: number): string;
|
|
51
|
+
GetCoins(handle: number): string;
|
|
52
|
+
SetCoins(handle: number, coins: number): string;
|
|
53
|
+
GetRecords(handle: number): string;
|
|
54
|
+
SetRecord(handle: number, recordIndex: number, value: number): string;
|
|
55
|
+
GetEventFlag(handle: number, flagIndex: number): string;
|
|
56
|
+
SetEventFlag(handle: number, flagIndex: number, value: boolean): string;
|
|
57
|
+
GetEventConst(handle: number, constIndex: number): string;
|
|
58
|
+
SetEventConst(handle: number, constIndex: number, value: number): string;
|
|
59
|
+
GetBattleFacilityStats(handle: number): string;
|
|
60
|
+
GetHallOfFame(handle: number): string;
|
|
61
|
+
SetHallOfFameEntry(handle: number, index: number, teamJson: string): string;
|
|
62
|
+
GetSecondsPlayed(handle: number): string;
|
|
63
|
+
GetSecondsToStart(handle: number): string;
|
|
64
|
+
GetSecondsToFame(handle: number): string;
|
|
65
|
+
SetGameTime(handle: number, hours: number, minutes: number, seconds: number): string;
|
|
66
|
+
SetSecondsToStart(handle: number, seconds: number): string;
|
|
67
|
+
SetSecondsToFame(handle: number, seconds: number): string;
|
|
68
|
+
GetMailbox(handle: number): string;
|
|
69
|
+
GetMailMessage(handle: number, index: number): string;
|
|
70
|
+
SetMailMessage(handle: number, index: number, mailJson: string): string;
|
|
71
|
+
DeleteMail(handle: number, index: number): string;
|
|
72
|
+
GetMysteryGifts(handle: number): string;
|
|
73
|
+
GetMysteryGiftCard(handle: number, index: number): string;
|
|
74
|
+
SetMysteryGiftCard(handle: number, index: number, cardJson: string): string;
|
|
75
|
+
GetMysteryGiftFlags(handle: number): string;
|
|
76
|
+
DeleteMysteryGift(handle: number, index: number): string;
|
|
77
|
+
GetSecretBase(handle: number): string;
|
|
78
|
+
GetEntralinkData(handle: number): string;
|
|
79
|
+
GetPokePelago(handle: number): string;
|
|
80
|
+
GetFestivalPlaza(handle: number): string;
|
|
81
|
+
GetPokeJobs(handle: number): string;
|
|
82
|
+
GetSpeciesName(speciesId: number): string;
|
|
83
|
+
GetAllSpecies(): string;
|
|
84
|
+
GetMoveName(moveId: number): string;
|
|
85
|
+
GetAllMoves(): string;
|
|
86
|
+
GetAbilityName(abilityId: number): string;
|
|
87
|
+
GetAllAbilities(): string;
|
|
88
|
+
GetItemName(itemId: number): string;
|
|
89
|
+
GetAllItems(): string;
|
|
90
|
+
GetNatureName(natureId: number): string;
|
|
91
|
+
GetAllNatures(): string;
|
|
92
|
+
GetTypeName(typeId: number): string;
|
|
93
|
+
GetAllTypes(): string;
|
|
94
|
+
GetPKMData(base64PkmData: string, generation: number): string;
|
|
95
|
+
ModifyPKMData(base64PkmData: string, generation: number, modificationsJson: string): string;
|
|
96
|
+
CheckPKMLegality(base64PkmData: string, generation: number): string;
|
|
97
|
+
LegalizePKMData(base64PkmData: string, generation: number): string;
|
|
98
|
+
ExportPKMShowdown(base64PkmData: string, generation: number): string;
|
|
99
|
+
CalculatePKMStats(base64PkmData: string, generation: number): string;
|
|
100
|
+
GetPKMRibbons(base64PkmData: string, generation: number): string;
|
|
101
|
+
SetPKMRibbon(base64PkmData: string, generation: number, ribbonName: string, value: boolean): string;
|
|
102
|
+
SetPKMShiny(base64PkmData: string, generation: number, shinyType: number): string;
|
|
103
|
+
GetPKMPIDInfo(base64PkmData: string, generation: number): string;
|
|
104
|
+
SetPKMPID(base64PkmData: string, generation: number, pid: number): string;
|
|
105
|
+
RerollPKMEncryptionConstant(base64PkmData: string, generation: number): string;
|
|
106
|
+
GetPKMHiddenPower(base64PkmData: string, generation: number): string;
|
|
107
|
+
GetPKMCharacteristic(base64PkmData: string, generation: number): string;
|
|
108
|
+
GetPKMMetLocations(generation: number, gameVersion: number, eggLocations: boolean): string;
|
|
109
|
+
GetSpeciesForms(species: number, generation: number): string;
|
|
110
|
+
GetSpeciesEvolutions(species: number, generation: number): string;
|
|
111
|
+
ConvertPKMFormat(base64PkmData: string, fromGeneration: number, toGeneration: number): string;
|
|
112
|
+
}
|
|
113
|
+
export declare function createPKHeXApiWrapper(rawApiOrExports: RawPKHeXApi | any): PKHeXApi;
|
|
114
|
+
export {};
|