gdcore-tools 2.0.0-beta9 → 2.0.0
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 +64 -64
- package/dist/Runtime/Extensions/DialogueTree/bondage.js/dist/bondage.min.js +10 -10
- package/dist/Runtime/Extensions/DialogueTree/bondage.js/version.txt +5 -5
- package/dist/Runtime/Extensions/Firebase/A_firebasejs/NOTICE.txt +6 -6
- package/dist/Runtime/Extensions/Multiplayer/JsExtension.js +0 -15
- package/dist/Runtime/Extensions/PhysicsBehavior/box2djs/box2d.js +804 -804
- package/dist/Runtime/Extensions/Shopify/shopify-buy.umd.polyfilled.min.js +1 -1
- package/dist/Runtime/Extensions/TileMap/example/anotherIsland.json +5768 -5768
- package/dist/Runtime/Extensions/TileMap/example/island.json +5822 -5822
- package/dist/lib/libGD.cjs +21 -21
- package/dist/lib/libGD.wasm +0 -0
- package/package.json +1 -1
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/.package-lock.json +0 -19
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/@types/pako/index.d.ts +0 -165
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/@types/pako/package.json +0 -35
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.es5.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.es5.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.es5.min.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.min.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.es5.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.es5.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.es5.min.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.min.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.es5.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.es5.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.es5.min.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.min.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/index.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/index.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/deflate.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/deflate.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/inflate.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/inflate.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/utils/common.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/utils/common.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/utils/strings.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/utils/strings.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/adler32.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/adler32.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/constants.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/constants.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/crc32.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/crc32.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/deflate.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/deflate.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/gzheader.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/gzheader.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inffast.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inffast.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inflate.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inflate.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inftrees.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inftrees.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/messages.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/messages.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/trees.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/trees.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/zstream.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/zstream.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/package.json +0 -64
- package/types/index.d.ts +0 -23
- package/types/open_project.d.ts +0 -25
package/README.md
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
# gdcore-tools
|
|
2
|
-
|
|
3
|
-
A package that downloads and bootstraps any version of GDevelops Core library.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
`npm install gdcore-tools`
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
Require the module, call it and add a callback with `.then`.
|
|
12
|
-
This will download the latest version of GDevelop, extract the required files,
|
|
13
|
-
and load GDCore wrapped with helpful functions.
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
const loadGD = require("gdcore-tools");
|
|
17
|
-
loadGD().then((gdtools) => {
|
|
18
|
-
// Create something awesome!
|
|
19
|
-
});
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## Examples
|
|
23
|
-
|
|
24
|
-
You can find examples [here](https://github.com/arthuro555/gdcore-tools/tree/master/examples).
|
|
25
|
-
|
|
26
|
-
## API
|
|
27
|
-
|
|
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
|
-
|
|
30
|
-
#### Events:
|
|
31
|
-
##### `print`:
|
|
32
|
-
Triggered when GDCore wants to print a message.
|
|
33
|
-
|
|
34
|
-
##### `error`:
|
|
35
|
-
Triggered when GDCore errors.
|
|
36
|
-
|
|
37
|
-
#### `loadGD(version?: string): Promise<WrappedGD>`
|
|
38
|
-
|
|
39
|
-
The entrypoint of the module. Accept a github release tag to specify a specific version to download and use.
|
|
40
|
-
|
|
41
|
-
#### `WrappedGD.gd: gd`
|
|
42
|
-
|
|
43
|
-
The actual `gd` namespace of GDCore.
|
|
44
|
-
|
|
45
|
-
#### `WrappedGD.loadProject(projectLocation: string): Promise<gd.Project>`
|
|
46
|
-
|
|
47
|
-
Accepts a full path to a .json file, and returns a promise that resolves to the loaded `gd.Project` instance.
|
|
48
|
-
|
|
49
|
-
#### `WrappedGD.saveProject(project: gd.Project, fileName?: string, filePath?: string): Promise<void>`
|
|
50
|
-
|
|
51
|
-
Saves a `gd.Project` to a JSON file. The default path is `./` and the default filename `game.json`.
|
|
52
|
-
Returns a promise that resolves once the file is saved.
|
|
53
|
-
|
|
54
|
-
#### `WrappedGD.exportProject(project: gd.Project, outputDir: string, options?: Object): void`
|
|
55
|
-
|
|
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.
|
|
57
|
-
|
|
58
|
-
#### `WrappedGD.reloadEventsFunctions(project): void`
|
|
59
|
-
|
|
60
|
-
Regenerates the code and reloads all events based extensions.
|
|
61
|
-
|
|
62
|
-
#### `WrappedGD.getRuntimePath(): string`
|
|
63
|
-
|
|
64
|
-
Get the path to the downloaded and built GDJS runtime.
|
|
1
|
+
# gdcore-tools
|
|
2
|
+
|
|
3
|
+
A package that downloads and bootstraps any version of GDevelops Core library.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
`npm install gdcore-tools`
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
Require the module, call it and add a callback with `.then`.
|
|
12
|
+
This will download the latest version of GDevelop, extract the required files,
|
|
13
|
+
and load GDCore wrapped with helpful functions.
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const loadGD = require("gdcore-tools");
|
|
17
|
+
loadGD().then((gdtools) => {
|
|
18
|
+
// Create something awesome!
|
|
19
|
+
});
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Examples
|
|
23
|
+
|
|
24
|
+
You can find examples [here](https://github.com/arthuro555/gdcore-tools/tree/master/examples).
|
|
25
|
+
|
|
26
|
+
## API
|
|
27
|
+
|
|
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
|
+
|
|
30
|
+
#### Events:
|
|
31
|
+
##### `print`:
|
|
32
|
+
Triggered when GDCore wants to print a message.
|
|
33
|
+
|
|
34
|
+
##### `error`:
|
|
35
|
+
Triggered when GDCore errors.
|
|
36
|
+
|
|
37
|
+
#### `loadGD(version?: string): Promise<WrappedGD>`
|
|
38
|
+
|
|
39
|
+
The entrypoint of the module. Accept a github release tag to specify a specific version to download and use.
|
|
40
|
+
|
|
41
|
+
#### `WrappedGD.gd: gd`
|
|
42
|
+
|
|
43
|
+
The actual `gd` namespace of GDCore.
|
|
44
|
+
|
|
45
|
+
#### `WrappedGD.loadProject(projectLocation: string): Promise<gd.Project>`
|
|
46
|
+
|
|
47
|
+
Accepts a full path to a .json file, and returns a promise that resolves to the loaded `gd.Project` instance.
|
|
48
|
+
|
|
49
|
+
#### `WrappedGD.saveProject(project: gd.Project, fileName?: string, filePath?: string): Promise<void>`
|
|
50
|
+
|
|
51
|
+
Saves a `gd.Project` to a JSON file. The default path is `./` and the default filename `game.json`.
|
|
52
|
+
Returns a promise that resolves once the file is saved.
|
|
53
|
+
|
|
54
|
+
#### `WrappedGD.exportProject(project: gd.Project, outputDir: string, options?: Object): void`
|
|
55
|
+
|
|
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.
|
|
57
|
+
|
|
58
|
+
#### `WrappedGD.reloadEventsFunctions(project): void`
|
|
59
|
+
|
|
60
|
+
Regenerates the code and reloads all events based extensions.
|
|
61
|
+
|
|
62
|
+
#### `WrappedGD.getRuntimePath(): string`
|
|
63
|
+
|
|
64
|
+
Get the path to the downloaded and built GDJS runtime.
|