gdcore-tools 2.0.0-gd-v5.4.218-autobuild → 2.0.0-gd-v5.4.219-autobuild
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/dist/Runtime/Extensions/3D/CustomRuntimeObject3D.js +1 -1
- package/dist/Runtime/Extensions/3D/CustomRuntimeObject3D.js.map +2 -2
- package/dist/Runtime/Extensions/AnchorBehavior/anchorruntimebehavior.js +1 -1
- package/dist/Runtime/Extensions/AnchorBehavior/anchorruntimebehavior.js.map +2 -2
- package/dist/Runtime/Extensions/Physics2Behavior/physics2runtimebehavior.js +1 -1
- package/dist/Runtime/Extensions/Physics2Behavior/physics2runtimebehavior.js.map +2 -2
- package/dist/Runtime/Extensions/TileMap/simpletilemapruntimeobject.js +1 -1
- package/dist/Runtime/Extensions/TileMap/simpletilemapruntimeobject.js.map +2 -2
- package/dist/Runtime/RuntimeLayer.js +1 -1
- package/dist/Runtime/RuntimeLayer.js.map +2 -2
- package/dist/Runtime/layer.js +1 -1
- package/dist/Runtime/layer.js.map +2 -2
- package/dist/Runtime/pixi-renderers/runtimegame-pixi-renderer.js +1 -1
- package/dist/Runtime/pixi-renderers/runtimegame-pixi-renderer.js.map +2 -2
- package/dist/Runtime/runtimegame.js +1 -1
- package/dist/Runtime/runtimegame.js.map +2 -2
- package/dist/Runtime/types/global-types.d.ts +20 -3
- package/dist/Runtime/types/project-data.d.ts +1 -1
- package/dist/lib/libGD.cjs +1 -1
- package/dist/lib/libGD.wasm +0 -0
- package/gd.d.ts +13 -1
- package/package.json +1 -1
|
@@ -21,6 +21,10 @@ declare type ObjectsLists = Hashtable<gdjs.RuntimeObject[]>;
|
|
|
21
21
|
* if any. If the JavaScript code is running in a scene, this will be undefined (so you can't use this in a scene).
|
|
22
22
|
*/
|
|
23
23
|
declare type EventsFunctionContext = {
|
|
24
|
+
/**
|
|
25
|
+
* If the action in which the JavaScript runs is asynchronous, this will be non-null and
|
|
26
|
+
* allows to mark the action as finished by calling `task.resolve()`.
|
|
27
|
+
*/
|
|
24
28
|
task?: gdjs.ManuallyResolvableTask;
|
|
25
29
|
|
|
26
30
|
/** Get the list of instances of the specified object. */
|
|
@@ -42,10 +46,23 @@ declare type EventsFunctionContext = {
|
|
|
42
46
|
/** Return the number of instances of the specified object on the scene. */
|
|
43
47
|
getInstancesCountOnScene: (objectName: string) => integer;
|
|
44
48
|
|
|
45
|
-
/** Get the value (string or
|
|
46
|
-
getArgument: (argumentName: string) => string | number;
|
|
49
|
+
/** Get the value (string, number, boolean or a `gdjs.Variable`) of an argument that was passed to the events function. To get **objects**, use `getObjects` instead. */
|
|
50
|
+
getArgument: (argumentName: string) => string | number | gdjs.Variable;
|
|
47
51
|
|
|
48
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* Set the return value that should be returned by the expression or the condition.
|
|
54
|
+
* For example:
|
|
55
|
+
*
|
|
56
|
+
* ```js
|
|
57
|
+
* // When the condition is true:
|
|
58
|
+
* eventsFunctionContext.returnValue = true;
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* ```js
|
|
62
|
+
* // To return a string for an expression:
|
|
63
|
+
* eventsFunctionContext.returnValue = "Hello World";
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
49
66
|
returnValue: boolean | number | string;
|
|
50
67
|
|
|
51
68
|
/** Do not use this. Use `runtimeScene.getLayer` instead. */
|
|
@@ -283,6 +283,7 @@ declare interface LayerData {
|
|
|
283
283
|
name: string;
|
|
284
284
|
renderingType?: '' | '2d' | '3d' | '2d+3d';
|
|
285
285
|
cameraType?: 'perspective' | 'orthographic';
|
|
286
|
+
defaultCameraBehavior?: 'top-left-anchored-if-never-moved' | 'do-nothing';
|
|
286
287
|
visibility: boolean;
|
|
287
288
|
cameras: CameraData[];
|
|
288
289
|
effects: EffectData[];
|
|
@@ -397,7 +398,6 @@ declare interface ResourcesData {
|
|
|
397
398
|
}
|
|
398
399
|
|
|
399
400
|
declare interface ResourceData {
|
|
400
|
-
alwaysLoaded?: boolean;
|
|
401
401
|
file: string;
|
|
402
402
|
kind: ResourceKind;
|
|
403
403
|
metadata: string;
|