gdcore-tools 1.0.4 → 1.0.6
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 +11 -0
- package/package.json +1 -1
- package/src/EventsFunctionsExtensionsLoader/MetadataDeclarationHelpers.js +442 -449
- package/src/EventsFunctionsExtensionsLoader/index.js +373 -354
- package/src/LocalFileSystem.js +39 -39
- package/src/WrappedGD.js +159 -0
- package/src/downloadGD.js +40 -29
- package/src/index.js +10 -118
- package/package-lock.json +0 -223
package/README.md
CHANGED
|
@@ -27,6 +27,13 @@ You can find examples [here](https://github.com/arthuro555/gdcore-tools/tree/mas
|
|
|
27
27
|
|
|
28
28
|
You can find the API for GDCore (`WrappedGD.gd`) at [the official GDevelop website](https://docs.gdevelop-app.com/GDCore%20Documentation/namespacegd.html). Note that every method in `PascalCase` on the docs have to be used in `camelCase` in JavaScript.
|
|
29
29
|
|
|
30
|
+
#### Events:
|
|
31
|
+
##### `print`:
|
|
32
|
+
Triggered when GDCore wants to print a message.
|
|
33
|
+
|
|
34
|
+
##### `error`:
|
|
35
|
+
Triggered when GDCore errors.
|
|
36
|
+
|
|
30
37
|
#### `loadGD(version?: string): Promise<WrappedGD>`
|
|
31
38
|
|
|
32
39
|
The entrypoint of the module. Accept a github release tag to specify a specific version to download and use.
|
|
@@ -48,6 +55,10 @@ Returns a promise that resolves once the file is saved.
|
|
|
48
55
|
|
|
49
56
|
Exports a project to a directory. Some options may be passed to the exporter, but they aren't officially documented. Returns a promise that resolves once the export is done.
|
|
50
57
|
|
|
58
|
+
#### `WrappedGD.reloadEventsFunctions(project): void`
|
|
59
|
+
|
|
60
|
+
Regenerates the code and reloads all events based extensions.
|
|
61
|
+
|
|
51
62
|
#### `WrappedGD.getRuntimePath(): string`
|
|
52
63
|
|
|
53
64
|
Get the path to the downloaded and built GDJS runtime.
|