@defold-typescript/types 0.24.0 → 0.25.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.
@@ -462,29 +462,29 @@
462
462
  "go\u0000CONSTANT\u0000go.PLAYBACK_ONCE_PINGPONG\u0000": "const PLAYBACK_ONCE_PINGPONG: number & { readonly __brand: \"go.PLAYBACK_ONCE_PINGPONG\" };",
463
463
  "go\u0000FUNCTION\u0000final\u0000[{\"types\":[\"userdata\"],\"isOptional\":false}]->[]": "function final(self: Opaque<\"userdata\">): void;",
464
464
  "go\u0000FUNCTION\u0000fixed_update\u0000[{\"types\":[\"userdata\"],\"isOptional\":false},{\"types\":[\"number\"],\"isOptional\":false}]->[]": "function fixed_update(self: Opaque<\"userdata\">, dt: number): void;",
465
- "go\u0000FUNCTION\u0000go.animate\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\"],\"isOptional\":false},{\"types\":[\"go.PLAYBACK_LOOP_BACKWARD\",\"go.PLAYBACK_LOOP_FORWARD\",\"go.PLAYBACK_LOOP_PINGPONG\",\"go.PLAYBACK_ONCE_BACKWARD\",\"go.PLAYBACK_ONCE_FORWARD\",\"go.PLAYBACK_ONCE_PINGPONG\"],\"isOptional\":false},{\"types\":[\"number\",\"quaternion\",\"vector3\",\"vector4\"],\"isOptional\":false},{\"types\":[\"go.EASING_INBACK\",\"go.EASING_INBOUNCE\",\"go.EASING_INCIRC\",\"go.EASING_INCUBIC\",\"go.EASING_INELASTIC\",\"go.EASING_INEXPO\",\"go.EASING_INOUTBACK\",\"go.EASING_INOUTBOUNCE\",\"go.EASING_INOUTCIRC\",\"go.EASING_INOUTCUBIC\",\"go.EASING_INOUTELASTIC\",\"go.EASING_INOUTEXPO\",\"go.EASING_INOUTQUAD\",\"go.EASING_INOUTQUART\",\"go.EASING_INOUTQUINT\",\"go.EASING_INOUTSINE\",\"go.EASING_INQUAD\",\"go.EASING_INQUART\",\"go.EASING_INQUINT\",\"go.EASING_INSINE\",\"go.EASING_LINEAR\",\"go.EASING_OUTBACK\",\"go.EASING_OUTBOUNCE\",\"go.EASING_OUTCIRC\",\"go.EASING_OUTCUBIC\",\"go.EASING_OUTELASTIC\",\"go.EASING_OUTEXPO\",\"go.EASING_OUTINBACK\",\"go.EASING_OUTINBOUNCE\",\"go.EASING_OUTINCIRC\",\"go.EASING_OUTINCUBIC\",\"go.EASING_OUTINELASTIC\",\"go.EASING_OUTINEXPO\",\"go.EASING_OUTINQUAD\",\"go.EASING_OUTINQUART\",\"go.EASING_OUTINQUINT\",\"go.EASING_OUTINSINE\",\"go.EASING_OUTQUAD\",\"go.EASING_OUTQUART\",\"go.EASING_OUTQUINT\",\"go.EASING_OUTSINE\",\"vector\"],\"isOptional\":false},{\"types\":[\"number\"],\"isOptional\":false},{\"types\":[\"number\"],\"isOptional\":true},{\"types\":[\"function(self, url, property)\"],\"isOptional\":true}]->[]": "function animate(url: string | Hash | Url, property: string | Hash, playback: number & { readonly __brand: \"go.PLAYBACK_ONCE_FORWARD\" } | number & { readonly __brand: \"go.PLAYBACK_ONCE_BACKWARD\" } | number & { readonly __brand: \"go.PLAYBACK_ONCE_PINGPONG\" } | number & { readonly __brand: \"go.PLAYBACK_LOOP_FORWARD\" } | number & { readonly __brand: \"go.PLAYBACK_LOOP_BACKWARD\" } | number & { readonly __brand: \"go.PLAYBACK_LOOP_PINGPONG\" }, to: number | Vector3 | Vector4 | Quaternion, easing: Vector | number & { readonly __brand: \"go.EASING_INBACK\" } | number & { readonly __brand: \"go.EASING_INBOUNCE\" } | number & { readonly __brand: \"go.EASING_INCIRC\" } | number & { readonly __brand: \"go.EASING_INCUBIC\" } | number & { readonly __brand: \"go.EASING_INELASTIC\" } | number & { readonly __brand: \"go.EASING_INEXPO\" } | number & { readonly __brand: \"go.EASING_INOUTBACK\" } | number & { readonly __brand: \"go.EASING_INOUTBOUNCE\" } | number & { readonly __brand: \"go.EASING_INOUTCIRC\" } | number & { readonly __brand: \"go.EASING_INOUTCUBIC\" } | number & { readonly __brand: \"go.EASING_INOUTELASTIC\" } | number & { readonly __brand: \"go.EASING_INOUTEXPO\" } | number & { readonly __brand: \"go.EASING_INOUTQUAD\" } | number & { readonly __brand: \"go.EASING_INOUTQUART\" } | number & { readonly __brand: \"go.EASING_INOUTQUINT\" } | number & { readonly __brand: \"go.EASING_INOUTSINE\" } | number & { readonly __brand: \"go.EASING_INQUAD\" } | number & { readonly __brand: \"go.EASING_INQUART\" } | number & { readonly __brand: \"go.EASING_INQUINT\" } | number & { readonly __brand: \"go.EASING_INSINE\" } | number & { readonly __brand: \"go.EASING_LINEAR\" } | number & { readonly __brand: \"go.EASING_OUTBACK\" } | number & { readonly __brand: \"go.EASING_OUTBOUNCE\" } | number & { readonly __brand: \"go.EASING_OUTCIRC\" } | number & { readonly __brand: \"go.EASING_OUTCUBIC\" } | number & { readonly __brand: \"go.EASING_OUTELASTIC\" } | number & { readonly __brand: \"go.EASING_OUTEXPO\" } | number & { readonly __brand: \"go.EASING_OUTINBACK\" } | number & { readonly __brand: \"go.EASING_OUTINBOUNCE\" } | number & { readonly __brand: \"go.EASING_OUTINCIRC\" } | number & { readonly __brand: \"go.EASING_OUTINCUBIC\" } | number & { readonly __brand: \"go.EASING_OUTINELASTIC\" } | number & { readonly __brand: \"go.EASING_OUTINEXPO\" } | number & { readonly __brand: \"go.EASING_OUTINQUAD\" } | number & { readonly __brand: \"go.EASING_OUTINQUART\" } | number & { readonly __brand: \"go.EASING_OUTINQUINT\" } | number & { readonly __brand: \"go.EASING_OUTINSINE\" } | number & { readonly __brand: \"go.EASING_OUTQUAD\" } | number & { readonly __brand: \"go.EASING_OUTQUART\" } | number & { readonly __brand: \"go.EASING_OUTQUINT\" } | number & { readonly __brand: \"go.EASING_OUTSINE\" }, duration: number, delay?: number, complete_function?: (self: unknown, url: unknown, property: unknown) => void): void;",
466
- "go\u0000FUNCTION\u0000go.cancel_animations\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\"],\"isOptional\":true}]->[]": "function cancel_animations(url: string | Hash | Url, property?: string | Hash): void;",
467
- "go\u0000FUNCTION\u0000go.delete\u0000[{\"types\":[\"hash\",\"string\",\"table\",\"url\"],\"isOptional\":true},{\"types\":[\"boolean\"],\"isOptional\":true}]->[]": "function _delete(id?: string | Hash | Url | (string | Hash | Url)[], recursive?: boolean): void;",
468
- "go\u0000FUNCTION\u0000go.exists\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false}]->[{\"types\":[\"boolean\"],\"isOptional\":false}]": "function exists(url: string | Hash | Url): boolean;",
465
+ "go\u0000FUNCTION\u0000go.animate\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\"],\"isOptional\":false},{\"types\":[\"go.PLAYBACK_LOOP_BACKWARD\",\"go.PLAYBACK_LOOP_FORWARD\",\"go.PLAYBACK_LOOP_PINGPONG\",\"go.PLAYBACK_ONCE_BACKWARD\",\"go.PLAYBACK_ONCE_FORWARD\",\"go.PLAYBACK_ONCE_PINGPONG\"],\"isOptional\":false},{\"types\":[\"number\",\"quaternion\",\"vector3\",\"vector4\"],\"isOptional\":false},{\"types\":[\"go.EASING_INBACK\",\"go.EASING_INBOUNCE\",\"go.EASING_INCIRC\",\"go.EASING_INCUBIC\",\"go.EASING_INELASTIC\",\"go.EASING_INEXPO\",\"go.EASING_INOUTBACK\",\"go.EASING_INOUTBOUNCE\",\"go.EASING_INOUTCIRC\",\"go.EASING_INOUTCUBIC\",\"go.EASING_INOUTELASTIC\",\"go.EASING_INOUTEXPO\",\"go.EASING_INOUTQUAD\",\"go.EASING_INOUTQUART\",\"go.EASING_INOUTQUINT\",\"go.EASING_INOUTSINE\",\"go.EASING_INQUAD\",\"go.EASING_INQUART\",\"go.EASING_INQUINT\",\"go.EASING_INSINE\",\"go.EASING_LINEAR\",\"go.EASING_OUTBACK\",\"go.EASING_OUTBOUNCE\",\"go.EASING_OUTCIRC\",\"go.EASING_OUTCUBIC\",\"go.EASING_OUTELASTIC\",\"go.EASING_OUTEXPO\",\"go.EASING_OUTINBACK\",\"go.EASING_OUTINBOUNCE\",\"go.EASING_OUTINCIRC\",\"go.EASING_OUTINCUBIC\",\"go.EASING_OUTINELASTIC\",\"go.EASING_OUTINEXPO\",\"go.EASING_OUTINQUAD\",\"go.EASING_OUTINQUART\",\"go.EASING_OUTINQUINT\",\"go.EASING_OUTINSINE\",\"go.EASING_OUTQUAD\",\"go.EASING_OUTQUART\",\"go.EASING_OUTQUINT\",\"go.EASING_OUTSINE\",\"vector\"],\"isOptional\":false},{\"types\":[\"number\"],\"isOptional\":false},{\"types\":[\"number\"],\"isOptional\":true},{\"types\":[\"function(self, url, property)\"],\"isOptional\":true}]->[]": "function animate(url: SceneAddress | Hash | Url, property: string | Hash, playback: number & { readonly __brand: \"go.PLAYBACK_ONCE_FORWARD\" } | number & { readonly __brand: \"go.PLAYBACK_ONCE_BACKWARD\" } | number & { readonly __brand: \"go.PLAYBACK_ONCE_PINGPONG\" } | number & { readonly __brand: \"go.PLAYBACK_LOOP_FORWARD\" } | number & { readonly __brand: \"go.PLAYBACK_LOOP_BACKWARD\" } | number & { readonly __brand: \"go.PLAYBACK_LOOP_PINGPONG\" }, to: number | Vector3 | Vector4 | Quaternion, easing: Vector | number & { readonly __brand: \"go.EASING_INBACK\" } | number & { readonly __brand: \"go.EASING_INBOUNCE\" } | number & { readonly __brand: \"go.EASING_INCIRC\" } | number & { readonly __brand: \"go.EASING_INCUBIC\" } | number & { readonly __brand: \"go.EASING_INELASTIC\" } | number & { readonly __brand: \"go.EASING_INEXPO\" } | number & { readonly __brand: \"go.EASING_INOUTBACK\" } | number & { readonly __brand: \"go.EASING_INOUTBOUNCE\" } | number & { readonly __brand: \"go.EASING_INOUTCIRC\" } | number & { readonly __brand: \"go.EASING_INOUTCUBIC\" } | number & { readonly __brand: \"go.EASING_INOUTELASTIC\" } | number & { readonly __brand: \"go.EASING_INOUTEXPO\" } | number & { readonly __brand: \"go.EASING_INOUTQUAD\" } | number & { readonly __brand: \"go.EASING_INOUTQUART\" } | number & { readonly __brand: \"go.EASING_INOUTQUINT\" } | number & { readonly __brand: \"go.EASING_INOUTSINE\" } | number & { readonly __brand: \"go.EASING_INQUAD\" } | number & { readonly __brand: \"go.EASING_INQUART\" } | number & { readonly __brand: \"go.EASING_INQUINT\" } | number & { readonly __brand: \"go.EASING_INSINE\" } | number & { readonly __brand: \"go.EASING_LINEAR\" } | number & { readonly __brand: \"go.EASING_OUTBACK\" } | number & { readonly __brand: \"go.EASING_OUTBOUNCE\" } | number & { readonly __brand: \"go.EASING_OUTCIRC\" } | number & { readonly __brand: \"go.EASING_OUTCUBIC\" } | number & { readonly __brand: \"go.EASING_OUTELASTIC\" } | number & { readonly __brand: \"go.EASING_OUTEXPO\" } | number & { readonly __brand: \"go.EASING_OUTINBACK\" } | number & { readonly __brand: \"go.EASING_OUTINBOUNCE\" } | number & { readonly __brand: \"go.EASING_OUTINCIRC\" } | number & { readonly __brand: \"go.EASING_OUTINCUBIC\" } | number & { readonly __brand: \"go.EASING_OUTINELASTIC\" } | number & { readonly __brand: \"go.EASING_OUTINEXPO\" } | number & { readonly __brand: \"go.EASING_OUTINQUAD\" } | number & { readonly __brand: \"go.EASING_OUTINQUART\" } | number & { readonly __brand: \"go.EASING_OUTINQUINT\" } | number & { readonly __brand: \"go.EASING_OUTINSINE\" } | number & { readonly __brand: \"go.EASING_OUTQUAD\" } | number & { readonly __brand: \"go.EASING_OUTQUART\" } | number & { readonly __brand: \"go.EASING_OUTQUINT\" } | number & { readonly __brand: \"go.EASING_OUTSINE\" }, duration: number, delay?: number, complete_function?: (self: unknown, url: unknown, property: unknown) => void): void;",
466
+ "go\u0000FUNCTION\u0000go.cancel_animations\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\"],\"isOptional\":true}]->[]": "function cancel_animations(url: SceneAddress | Hash | Url, property?: string | Hash): void;",
467
+ "go\u0000FUNCTION\u0000go.delete\u0000[{\"types\":[\"hash\",\"string\",\"table\",\"url\"],\"isOptional\":true},{\"types\":[\"boolean\"],\"isOptional\":true}]->[]": "function _delete(id?: SceneGameObjectAddress | Hash | Url | (SceneGameObjectAddress | Hash | Url)[], recursive?: boolean): void;",
468
+ "go\u0000FUNCTION\u0000go.exists\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false}]->[{\"types\":[\"boolean\"],\"isOptional\":false}]": "function exists(url: SceneGameObjectAddress | Hash | Url): boolean;",
469
469
  "go\u0000FUNCTION\u0000go.get_id\u0000[{\"types\":[\"string\"],\"isOptional\":true}]->[{\"types\":[\"hash\"],\"isOptional\":false}]": "function get_id(path?: string): Hash;",
470
- "go\u0000FUNCTION\u0000go.get_parent\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"hash\",\"nil\"],\"isOptional\":false}]": "function get_parent(id?: string | Hash | Url): Hash | undefined;",
471
- "go\u0000FUNCTION\u0000go.get_position\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function get_position(id?: string | Hash | Url): Vector3;",
472
- "go\u0000FUNCTION\u0000go.get_rotation\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"quaternion\"],\"isOptional\":false}]": "function get_rotation(id?: string | Hash | Url): Quaternion;",
473
- "go\u0000FUNCTION\u0000go.get_scale\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function get_scale(id?: string | Hash | Url): Vector3;",
474
- "go\u0000FUNCTION\u0000go.get_scale_uniform\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"number\"],\"isOptional\":false}]": "function get_scale_uniform(id?: string | Hash | Url): number;",
475
- "go\u0000FUNCTION\u0000go.get_world_position\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function get_world_position(id?: string | Hash | Url): Vector3;",
476
- "go\u0000FUNCTION\u0000go.get_world_rotation\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"quaternion\"],\"isOptional\":false}]": "function get_world_rotation(id?: string | Hash | Url): Quaternion;",
477
- "go\u0000FUNCTION\u0000go.get_world_scale\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function get_world_scale(id?: string | Hash | Url): Vector3;",
478
- "go\u0000FUNCTION\u0000go.get_world_scale_uniform\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"number\"],\"isOptional\":false}]": "function get_world_scale_uniform(id?: string | Hash | Url): number;",
479
- "go\u0000FUNCTION\u0000go.get_world_transform\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"matrix4\"],\"isOptional\":false}]": "function get_world_transform(id?: string | Hash | Url): Matrix4;",
480
- "go\u0000FUNCTION\u0000go.set_parent\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true},{\"types\":[\"boolean\"],\"isOptional\":true}]->[]": "function set_parent(id?: string | Hash | Url, parent_id?: string | Hash | Url, keep_world_transform?: boolean): void;",
481
- "go\u0000FUNCTION\u0000go.set_position\u0000[{\"types\":[\"vector3\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function set_position(position: Vector3, id?: string | Hash | Url): void;",
482
- "go\u0000FUNCTION\u0000go.set_rotation\u0000[{\"types\":[\"quaternion\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function set_rotation(rotation: Quaternion, id?: string | Hash | Url): void;",
483
- "go\u0000FUNCTION\u0000go.set_scale\u0000[{\"types\":[\"number\",\"vector3\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function set_scale(scale: number | Vector3, id?: string | Hash | Url): void;",
484
- "go\u0000FUNCTION\u0000go.set_scale_xy\u0000[{\"types\":[\"number\",\"vector3\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function set_scale_xy(scale: number | Vector3, id?: string | Hash | Url): void;",
485
- "go\u0000FUNCTION\u0000go.update_world_transform\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function update_world_transform(id?: string | Hash | Url): void;",
486
- "go\u0000FUNCTION\u0000go.world_to_local_position\u0000[{\"types\":[\"vector3\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function world_to_local_position(position: Vector3, url: string | Hash | Url): Vector3;",
487
- "go\u0000FUNCTION\u0000go.world_to_local_transform\u0000[{\"types\":[\"matrix4\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false}]->[{\"types\":[\"matrix4\"],\"isOptional\":false}]": "function world_to_local_transform(transformation: Matrix4, url: string | Hash | Url): Matrix4;",
470
+ "go\u0000FUNCTION\u0000go.get_parent\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"hash\",\"nil\"],\"isOptional\":false}]": "function get_parent(id?: SceneGameObjectAddress | Hash | Url): Hash | undefined;",
471
+ "go\u0000FUNCTION\u0000go.get_position\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function get_position(id?: SceneGameObjectAddress | Hash | Url): Vector3;",
472
+ "go\u0000FUNCTION\u0000go.get_rotation\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"quaternion\"],\"isOptional\":false}]": "function get_rotation(id?: SceneGameObjectAddress | Hash | Url): Quaternion;",
473
+ "go\u0000FUNCTION\u0000go.get_scale\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function get_scale(id?: SceneGameObjectAddress | Hash | Url): Vector3;",
474
+ "go\u0000FUNCTION\u0000go.get_scale_uniform\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"number\"],\"isOptional\":false}]": "function get_scale_uniform(id?: SceneGameObjectAddress | Hash | Url): number;",
475
+ "go\u0000FUNCTION\u0000go.get_world_position\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function get_world_position(id?: SceneGameObjectAddress | Hash | Url): Vector3;",
476
+ "go\u0000FUNCTION\u0000go.get_world_rotation\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"quaternion\"],\"isOptional\":false}]": "function get_world_rotation(id?: SceneGameObjectAddress | Hash | Url): Quaternion;",
477
+ "go\u0000FUNCTION\u0000go.get_world_scale\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function get_world_scale(id?: SceneGameObjectAddress | Hash | Url): Vector3;",
478
+ "go\u0000FUNCTION\u0000go.get_world_scale_uniform\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"number\"],\"isOptional\":false}]": "function get_world_scale_uniform(id?: SceneGameObjectAddress | Hash | Url): number;",
479
+ "go\u0000FUNCTION\u0000go.get_world_transform\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"matrix4\"],\"isOptional\":false}]": "function get_world_transform(id?: SceneGameObjectAddress | Hash | Url): Matrix4;",
480
+ "go\u0000FUNCTION\u0000go.set_parent\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true},{\"types\":[\"boolean\"],\"isOptional\":true}]->[]": "function set_parent(id?: SceneGameObjectAddress | Hash | Url, parent_id?: SceneGameObjectAddress | Hash | Url, keep_world_transform?: boolean): void;",
481
+ "go\u0000FUNCTION\u0000go.set_position\u0000[{\"types\":[\"vector3\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function set_position(position: Vector3, id?: SceneGameObjectAddress | Hash | Url): void;",
482
+ "go\u0000FUNCTION\u0000go.set_rotation\u0000[{\"types\":[\"quaternion\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function set_rotation(rotation: Quaternion, id?: SceneGameObjectAddress | Hash | Url): void;",
483
+ "go\u0000FUNCTION\u0000go.set_scale\u0000[{\"types\":[\"number\",\"vector3\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function set_scale(scale: number | Vector3, id?: SceneGameObjectAddress | Hash | Url): void;",
484
+ "go\u0000FUNCTION\u0000go.set_scale_xy\u0000[{\"types\":[\"number\",\"vector3\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function set_scale_xy(scale: number | Vector3, id?: SceneGameObjectAddress | Hash | Url): void;",
485
+ "go\u0000FUNCTION\u0000go.update_world_transform\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function update_world_transform(id?: SceneGameObjectAddress | Hash | Url): void;",
486
+ "go\u0000FUNCTION\u0000go.world_to_local_position\u0000[{\"types\":[\"vector3\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function world_to_local_position(position: Vector3, url: SceneGameObjectAddress | Hash | Url): Vector3;",
487
+ "go\u0000FUNCTION\u0000go.world_to_local_transform\u0000[{\"types\":[\"matrix4\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false}]->[{\"types\":[\"matrix4\"],\"isOptional\":false}]": "function world_to_local_transform(transformation: Matrix4, url: SceneGameObjectAddress | Hash | Url): Matrix4;",
488
488
  "go\u0000FUNCTION\u0000init\u0000[{\"types\":[\"userdata\"],\"isOptional\":false}]->[]": "function init(self: Opaque<\"userdata\">): void;",
489
489
  "go\u0000FUNCTION\u0000late_update\u0000[{\"types\":[\"userdata\"],\"isOptional\":false},{\"types\":[\"number\"],\"isOptional\":false}]->[]": "function late_update(self: Opaque<\"userdata\">, dt: number): void;",
490
490
  "go\u0000FUNCTION\u0000on_input\u0000[{\"types\":[\"userdata\"],\"isOptional\":false},{\"types\":[\"hash\"],\"isOptional\":false},{\"types\":[\"table\"],\"isOptional\":false}]->[{\"types\":[\"boolean\",\"nil\"],\"isOptional\":false}]": "function on_input(self: Opaque<\"userdata\">, action_id: Hash, action: { value?: number; pressed?: boolean; released?: boolean; repeated?: boolean; x?: number; y?: number; screen_x?: number; screen_y?: number; dx?: number; dy?: number; screen_dx?: number; screen_dy?: number; gamepad?: number; gamepad_axis?: Vector3; touch?: { id?: number; pressed?: boolean; released?: boolean; tap_count?: number; x?: number; y?: number; dx?: number; dy?: number; acc_x?: number; acc_y?: number; acc_z?: number }[]; text?: string }): boolean | undefined;",
@@ -1502,29 +1502,29 @@
1502
1502
  "go\u0000CONSTANT\u0000go.PLAYBACK_ONCE_PINGPONG\u0000": "const PLAYBACK_ONCE_PINGPONG: number & { readonly __brand: \"go.PLAYBACK_ONCE_PINGPONG\" };",
1503
1503
  "go\u0000FUNCTION\u0000final\u0000[{\"types\":[\"userdata\"],\"isOptional\":false}]->[]": "function final(self: Opaque<\"userdata\">): void;",
1504
1504
  "go\u0000FUNCTION\u0000fixed_update\u0000[{\"types\":[\"userdata\"],\"isOptional\":false},{\"types\":[\"number\"],\"isOptional\":false}]->[]": "function fixed_update(self: Opaque<\"userdata\">, dt: number): void;",
1505
- "go\u0000FUNCTION\u0000go.animate\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\"],\"isOptional\":false},{\"types\":[\"go.PLAYBACK_LOOP_BACKWARD\",\"go.PLAYBACK_LOOP_FORWARD\",\"go.PLAYBACK_LOOP_PINGPONG\",\"go.PLAYBACK_ONCE_BACKWARD\",\"go.PLAYBACK_ONCE_FORWARD\",\"go.PLAYBACK_ONCE_PINGPONG\"],\"isOptional\":false},{\"types\":[\"number\",\"quaternion\",\"vector3\",\"vector4\"],\"isOptional\":false},{\"types\":[\"go.EASING_INBACK\",\"go.EASING_INBOUNCE\",\"go.EASING_INCIRC\",\"go.EASING_INCUBIC\",\"go.EASING_INELASTIC\",\"go.EASING_INEXPO\",\"go.EASING_INOUTBACK\",\"go.EASING_INOUTBOUNCE\",\"go.EASING_INOUTCIRC\",\"go.EASING_INOUTCUBIC\",\"go.EASING_INOUTELASTIC\",\"go.EASING_INOUTEXPO\",\"go.EASING_INOUTQUAD\",\"go.EASING_INOUTQUART\",\"go.EASING_INOUTQUINT\",\"go.EASING_INOUTSINE\",\"go.EASING_INQUAD\",\"go.EASING_INQUART\",\"go.EASING_INQUINT\",\"go.EASING_INSINE\",\"go.EASING_LINEAR\",\"go.EASING_OUTBACK\",\"go.EASING_OUTBOUNCE\",\"go.EASING_OUTCIRC\",\"go.EASING_OUTCUBIC\",\"go.EASING_OUTELASTIC\",\"go.EASING_OUTEXPO\",\"go.EASING_OUTINBACK\",\"go.EASING_OUTINBOUNCE\",\"go.EASING_OUTINCIRC\",\"go.EASING_OUTINCUBIC\",\"go.EASING_OUTINELASTIC\",\"go.EASING_OUTINEXPO\",\"go.EASING_OUTINQUAD\",\"go.EASING_OUTINQUART\",\"go.EASING_OUTINQUINT\",\"go.EASING_OUTINSINE\",\"go.EASING_OUTQUAD\",\"go.EASING_OUTQUART\",\"go.EASING_OUTQUINT\",\"go.EASING_OUTSINE\",\"vector\"],\"isOptional\":false},{\"types\":[\"number\"],\"isOptional\":false},{\"types\":[\"number\"],\"isOptional\":true},{\"types\":[\"function(self, url, property)\"],\"isOptional\":true}]->[]": "function animate(url: string | Hash | Url, property: string | Hash, playback: number & { readonly __brand: \"go.PLAYBACK_ONCE_FORWARD\" } | number & { readonly __brand: \"go.PLAYBACK_ONCE_BACKWARD\" } | number & { readonly __brand: \"go.PLAYBACK_ONCE_PINGPONG\" } | number & { readonly __brand: \"go.PLAYBACK_LOOP_FORWARD\" } | number & { readonly __brand: \"go.PLAYBACK_LOOP_BACKWARD\" } | number & { readonly __brand: \"go.PLAYBACK_LOOP_PINGPONG\" }, to: number | Vector3 | Vector4 | Quaternion, easing: Vector | number & { readonly __brand: \"go.EASING_INBACK\" } | number & { readonly __brand: \"go.EASING_INBOUNCE\" } | number & { readonly __brand: \"go.EASING_INCIRC\" } | number & { readonly __brand: \"go.EASING_INCUBIC\" } | number & { readonly __brand: \"go.EASING_INELASTIC\" } | number & { readonly __brand: \"go.EASING_INEXPO\" } | number & { readonly __brand: \"go.EASING_INOUTBACK\" } | number & { readonly __brand: \"go.EASING_INOUTBOUNCE\" } | number & { readonly __brand: \"go.EASING_INOUTCIRC\" } | number & { readonly __brand: \"go.EASING_INOUTCUBIC\" } | number & { readonly __brand: \"go.EASING_INOUTELASTIC\" } | number & { readonly __brand: \"go.EASING_INOUTEXPO\" } | number & { readonly __brand: \"go.EASING_INOUTQUAD\" } | number & { readonly __brand: \"go.EASING_INOUTQUART\" } | number & { readonly __brand: \"go.EASING_INOUTQUINT\" } | number & { readonly __brand: \"go.EASING_INOUTSINE\" } | number & { readonly __brand: \"go.EASING_INQUAD\" } | number & { readonly __brand: \"go.EASING_INQUART\" } | number & { readonly __brand: \"go.EASING_INQUINT\" } | number & { readonly __brand: \"go.EASING_INSINE\" } | number & { readonly __brand: \"go.EASING_LINEAR\" } | number & { readonly __brand: \"go.EASING_OUTBACK\" } | number & { readonly __brand: \"go.EASING_OUTBOUNCE\" } | number & { readonly __brand: \"go.EASING_OUTCIRC\" } | number & { readonly __brand: \"go.EASING_OUTCUBIC\" } | number & { readonly __brand: \"go.EASING_OUTELASTIC\" } | number & { readonly __brand: \"go.EASING_OUTEXPO\" } | number & { readonly __brand: \"go.EASING_OUTINBACK\" } | number & { readonly __brand: \"go.EASING_OUTINBOUNCE\" } | number & { readonly __brand: \"go.EASING_OUTINCIRC\" } | number & { readonly __brand: \"go.EASING_OUTINCUBIC\" } | number & { readonly __brand: \"go.EASING_OUTINELASTIC\" } | number & { readonly __brand: \"go.EASING_OUTINEXPO\" } | number & { readonly __brand: \"go.EASING_OUTINQUAD\" } | number & { readonly __brand: \"go.EASING_OUTINQUART\" } | number & { readonly __brand: \"go.EASING_OUTINQUINT\" } | number & { readonly __brand: \"go.EASING_OUTINSINE\" } | number & { readonly __brand: \"go.EASING_OUTQUAD\" } | number & { readonly __brand: \"go.EASING_OUTQUART\" } | number & { readonly __brand: \"go.EASING_OUTQUINT\" } | number & { readonly __brand: \"go.EASING_OUTSINE\" }, duration: number, delay?: number, complete_function?: (self: unknown, url: unknown, property: unknown) => void): void;",
1506
- "go\u0000FUNCTION\u0000go.cancel_animations\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\"],\"isOptional\":true}]->[]": "function cancel_animations(url: string | Hash | Url, property?: string | Hash): void;",
1507
- "go\u0000FUNCTION\u0000go.delete\u0000[{\"types\":[\"hash\",\"string\",\"table\",\"url\"],\"isOptional\":true},{\"types\":[\"boolean\"],\"isOptional\":true}]->[]": "function _delete(id?: string | Hash | Url | (string | Hash | Url)[], recursive?: boolean): void;",
1508
- "go\u0000FUNCTION\u0000go.exists\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false}]->[{\"types\":[\"boolean\"],\"isOptional\":false}]": "function exists(url: string | Hash | Url): boolean;",
1505
+ "go\u0000FUNCTION\u0000go.animate\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\"],\"isOptional\":false},{\"types\":[\"go.PLAYBACK_LOOP_BACKWARD\",\"go.PLAYBACK_LOOP_FORWARD\",\"go.PLAYBACK_LOOP_PINGPONG\",\"go.PLAYBACK_ONCE_BACKWARD\",\"go.PLAYBACK_ONCE_FORWARD\",\"go.PLAYBACK_ONCE_PINGPONG\"],\"isOptional\":false},{\"types\":[\"number\",\"quaternion\",\"vector3\",\"vector4\"],\"isOptional\":false},{\"types\":[\"go.EASING_INBACK\",\"go.EASING_INBOUNCE\",\"go.EASING_INCIRC\",\"go.EASING_INCUBIC\",\"go.EASING_INELASTIC\",\"go.EASING_INEXPO\",\"go.EASING_INOUTBACK\",\"go.EASING_INOUTBOUNCE\",\"go.EASING_INOUTCIRC\",\"go.EASING_INOUTCUBIC\",\"go.EASING_INOUTELASTIC\",\"go.EASING_INOUTEXPO\",\"go.EASING_INOUTQUAD\",\"go.EASING_INOUTQUART\",\"go.EASING_INOUTQUINT\",\"go.EASING_INOUTSINE\",\"go.EASING_INQUAD\",\"go.EASING_INQUART\",\"go.EASING_INQUINT\",\"go.EASING_INSINE\",\"go.EASING_LINEAR\",\"go.EASING_OUTBACK\",\"go.EASING_OUTBOUNCE\",\"go.EASING_OUTCIRC\",\"go.EASING_OUTCUBIC\",\"go.EASING_OUTELASTIC\",\"go.EASING_OUTEXPO\",\"go.EASING_OUTINBACK\",\"go.EASING_OUTINBOUNCE\",\"go.EASING_OUTINCIRC\",\"go.EASING_OUTINCUBIC\",\"go.EASING_OUTINELASTIC\",\"go.EASING_OUTINEXPO\",\"go.EASING_OUTINQUAD\",\"go.EASING_OUTINQUART\",\"go.EASING_OUTINQUINT\",\"go.EASING_OUTINSINE\",\"go.EASING_OUTQUAD\",\"go.EASING_OUTQUART\",\"go.EASING_OUTQUINT\",\"go.EASING_OUTSINE\",\"vector\"],\"isOptional\":false},{\"types\":[\"number\"],\"isOptional\":false},{\"types\":[\"number\"],\"isOptional\":true},{\"types\":[\"function(self, url, property)\"],\"isOptional\":true}]->[]": "function animate(url: SceneAddress | Hash | Url, property: string | Hash, playback: number & { readonly __brand: \"go.PLAYBACK_ONCE_FORWARD\" } | number & { readonly __brand: \"go.PLAYBACK_ONCE_BACKWARD\" } | number & { readonly __brand: \"go.PLAYBACK_ONCE_PINGPONG\" } | number & { readonly __brand: \"go.PLAYBACK_LOOP_FORWARD\" } | number & { readonly __brand: \"go.PLAYBACK_LOOP_BACKWARD\" } | number & { readonly __brand: \"go.PLAYBACK_LOOP_PINGPONG\" }, to: number | Vector3 | Vector4 | Quaternion, easing: Vector | number & { readonly __brand: \"go.EASING_INBACK\" } | number & { readonly __brand: \"go.EASING_INBOUNCE\" } | number & { readonly __brand: \"go.EASING_INCIRC\" } | number & { readonly __brand: \"go.EASING_INCUBIC\" } | number & { readonly __brand: \"go.EASING_INELASTIC\" } | number & { readonly __brand: \"go.EASING_INEXPO\" } | number & { readonly __brand: \"go.EASING_INOUTBACK\" } | number & { readonly __brand: \"go.EASING_INOUTBOUNCE\" } | number & { readonly __brand: \"go.EASING_INOUTCIRC\" } | number & { readonly __brand: \"go.EASING_INOUTCUBIC\" } | number & { readonly __brand: \"go.EASING_INOUTELASTIC\" } | number & { readonly __brand: \"go.EASING_INOUTEXPO\" } | number & { readonly __brand: \"go.EASING_INOUTQUAD\" } | number & { readonly __brand: \"go.EASING_INOUTQUART\" } | number & { readonly __brand: \"go.EASING_INOUTQUINT\" } | number & { readonly __brand: \"go.EASING_INOUTSINE\" } | number & { readonly __brand: \"go.EASING_INQUAD\" } | number & { readonly __brand: \"go.EASING_INQUART\" } | number & { readonly __brand: \"go.EASING_INQUINT\" } | number & { readonly __brand: \"go.EASING_INSINE\" } | number & { readonly __brand: \"go.EASING_LINEAR\" } | number & { readonly __brand: \"go.EASING_OUTBACK\" } | number & { readonly __brand: \"go.EASING_OUTBOUNCE\" } | number & { readonly __brand: \"go.EASING_OUTCIRC\" } | number & { readonly __brand: \"go.EASING_OUTCUBIC\" } | number & { readonly __brand: \"go.EASING_OUTELASTIC\" } | number & { readonly __brand: \"go.EASING_OUTEXPO\" } | number & { readonly __brand: \"go.EASING_OUTINBACK\" } | number & { readonly __brand: \"go.EASING_OUTINBOUNCE\" } | number & { readonly __brand: \"go.EASING_OUTINCIRC\" } | number & { readonly __brand: \"go.EASING_OUTINCUBIC\" } | number & { readonly __brand: \"go.EASING_OUTINELASTIC\" } | number & { readonly __brand: \"go.EASING_OUTINEXPO\" } | number & { readonly __brand: \"go.EASING_OUTINQUAD\" } | number & { readonly __brand: \"go.EASING_OUTINQUART\" } | number & { readonly __brand: \"go.EASING_OUTINQUINT\" } | number & { readonly __brand: \"go.EASING_OUTINSINE\" } | number & { readonly __brand: \"go.EASING_OUTQUAD\" } | number & { readonly __brand: \"go.EASING_OUTQUART\" } | number & { readonly __brand: \"go.EASING_OUTQUINT\" } | number & { readonly __brand: \"go.EASING_OUTSINE\" }, duration: number, delay?: number, complete_function?: (self: unknown, url: unknown, property: unknown) => void): void;",
1506
+ "go\u0000FUNCTION\u0000go.cancel_animations\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\"],\"isOptional\":true}]->[]": "function cancel_animations(url: SceneAddress | Hash | Url, property?: string | Hash): void;",
1507
+ "go\u0000FUNCTION\u0000go.delete\u0000[{\"types\":[\"hash\",\"string\",\"table\",\"url\"],\"isOptional\":true},{\"types\":[\"boolean\"],\"isOptional\":true}]->[]": "function _delete(id?: SceneGameObjectAddress | Hash | Url | (SceneGameObjectAddress | Hash | Url)[], recursive?: boolean): void;",
1508
+ "go\u0000FUNCTION\u0000go.exists\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false}]->[{\"types\":[\"boolean\"],\"isOptional\":false}]": "function exists(url: SceneGameObjectAddress | Hash | Url): boolean;",
1509
1509
  "go\u0000FUNCTION\u0000go.get_id\u0000[{\"types\":[\"string\"],\"isOptional\":true}]->[{\"types\":[\"hash\"],\"isOptional\":false}]": "function get_id(path?: string): Hash;",
1510
- "go\u0000FUNCTION\u0000go.get_parent\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"hash\",\"nil\"],\"isOptional\":false}]": "function get_parent(id?: string | Hash | Url): Hash | undefined;",
1511
- "go\u0000FUNCTION\u0000go.get_position\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function get_position(id?: string | Hash | Url): Vector3;",
1512
- "go\u0000FUNCTION\u0000go.get_rotation\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"quaternion\"],\"isOptional\":false}]": "function get_rotation(id?: string | Hash | Url): Quaternion;",
1513
- "go\u0000FUNCTION\u0000go.get_scale\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function get_scale(id?: string | Hash | Url): Vector3;",
1514
- "go\u0000FUNCTION\u0000go.get_scale_uniform\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"number\"],\"isOptional\":false}]": "function get_scale_uniform(id?: string | Hash | Url): number;",
1515
- "go\u0000FUNCTION\u0000go.get_world_position\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function get_world_position(id?: string | Hash | Url): Vector3;",
1516
- "go\u0000FUNCTION\u0000go.get_world_rotation\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"quaternion\"],\"isOptional\":false}]": "function get_world_rotation(id?: string | Hash | Url): Quaternion;",
1517
- "go\u0000FUNCTION\u0000go.get_world_scale\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function get_world_scale(id?: string | Hash | Url): Vector3;",
1518
- "go\u0000FUNCTION\u0000go.get_world_scale_uniform\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"number\"],\"isOptional\":false}]": "function get_world_scale_uniform(id?: string | Hash | Url): number;",
1519
- "go\u0000FUNCTION\u0000go.get_world_transform\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"matrix4\"],\"isOptional\":false}]": "function get_world_transform(id?: string | Hash | Url): Matrix4;",
1520
- "go\u0000FUNCTION\u0000go.set_parent\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true},{\"types\":[\"boolean\"],\"isOptional\":true}]->[]": "function set_parent(id?: string | Hash | Url, parent_id?: string | Hash | Url, keep_world_transform?: boolean): void;",
1521
- "go\u0000FUNCTION\u0000go.set_position\u0000[{\"types\":[\"vector3\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function set_position(position: Vector3, id?: string | Hash | Url): void;",
1522
- "go\u0000FUNCTION\u0000go.set_rotation\u0000[{\"types\":[\"quaternion\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function set_rotation(rotation: Quaternion, id?: string | Hash | Url): void;",
1523
- "go\u0000FUNCTION\u0000go.set_scale\u0000[{\"types\":[\"number\",\"vector3\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function set_scale(scale: number | Vector3, id?: string | Hash | Url): void;",
1524
- "go\u0000FUNCTION\u0000go.set_scale_xy\u0000[{\"types\":[\"number\",\"vector3\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function set_scale_xy(scale: number | Vector3, id?: string | Hash | Url): void;",
1525
- "go\u0000FUNCTION\u0000go.update_world_transform\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function update_world_transform(id?: string | Hash | Url): void;",
1526
- "go\u0000FUNCTION\u0000go.world_to_local_position\u0000[{\"types\":[\"vector3\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function world_to_local_position(position: Vector3, url: string | Hash | Url): Vector3;",
1527
- "go\u0000FUNCTION\u0000go.world_to_local_transform\u0000[{\"types\":[\"matrix4\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false}]->[{\"types\":[\"matrix4\"],\"isOptional\":false}]": "function world_to_local_transform(transformation: Matrix4, url: string | Hash | Url): Matrix4;",
1510
+ "go\u0000FUNCTION\u0000go.get_parent\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"hash\",\"nil\"],\"isOptional\":false}]": "function get_parent(id?: SceneGameObjectAddress | Hash | Url): Hash | undefined;",
1511
+ "go\u0000FUNCTION\u0000go.get_position\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function get_position(id?: SceneGameObjectAddress | Hash | Url): Vector3;",
1512
+ "go\u0000FUNCTION\u0000go.get_rotation\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"quaternion\"],\"isOptional\":false}]": "function get_rotation(id?: SceneGameObjectAddress | Hash | Url): Quaternion;",
1513
+ "go\u0000FUNCTION\u0000go.get_scale\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function get_scale(id?: SceneGameObjectAddress | Hash | Url): Vector3;",
1514
+ "go\u0000FUNCTION\u0000go.get_scale_uniform\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"number\"],\"isOptional\":false}]": "function get_scale_uniform(id?: SceneGameObjectAddress | Hash | Url): number;",
1515
+ "go\u0000FUNCTION\u0000go.get_world_position\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function get_world_position(id?: SceneGameObjectAddress | Hash | Url): Vector3;",
1516
+ "go\u0000FUNCTION\u0000go.get_world_rotation\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"quaternion\"],\"isOptional\":false}]": "function get_world_rotation(id?: SceneGameObjectAddress | Hash | Url): Quaternion;",
1517
+ "go\u0000FUNCTION\u0000go.get_world_scale\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function get_world_scale(id?: SceneGameObjectAddress | Hash | Url): Vector3;",
1518
+ "go\u0000FUNCTION\u0000go.get_world_scale_uniform\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"number\"],\"isOptional\":false}]": "function get_world_scale_uniform(id?: SceneGameObjectAddress | Hash | Url): number;",
1519
+ "go\u0000FUNCTION\u0000go.get_world_transform\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[{\"types\":[\"matrix4\"],\"isOptional\":false}]": "function get_world_transform(id?: SceneGameObjectAddress | Hash | Url): Matrix4;",
1520
+ "go\u0000FUNCTION\u0000go.set_parent\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true},{\"types\":[\"boolean\"],\"isOptional\":true}]->[]": "function set_parent(id?: SceneGameObjectAddress | Hash | Url, parent_id?: SceneGameObjectAddress | Hash | Url, keep_world_transform?: boolean): void;",
1521
+ "go\u0000FUNCTION\u0000go.set_position\u0000[{\"types\":[\"vector3\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function set_position(position: Vector3, id?: SceneGameObjectAddress | Hash | Url): void;",
1522
+ "go\u0000FUNCTION\u0000go.set_rotation\u0000[{\"types\":[\"quaternion\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function set_rotation(rotation: Quaternion, id?: SceneGameObjectAddress | Hash | Url): void;",
1523
+ "go\u0000FUNCTION\u0000go.set_scale\u0000[{\"types\":[\"number\",\"vector3\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function set_scale(scale: number | Vector3, id?: SceneGameObjectAddress | Hash | Url): void;",
1524
+ "go\u0000FUNCTION\u0000go.set_scale_xy\u0000[{\"types\":[\"number\",\"vector3\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function set_scale_xy(scale: number | Vector3, id?: SceneGameObjectAddress | Hash | Url): void;",
1525
+ "go\u0000FUNCTION\u0000go.update_world_transform\u0000[{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":true}]->[]": "function update_world_transform(id?: SceneGameObjectAddress | Hash | Url): void;",
1526
+ "go\u0000FUNCTION\u0000go.world_to_local_position\u0000[{\"types\":[\"vector3\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false}]->[{\"types\":[\"vector3\"],\"isOptional\":false}]": "function world_to_local_position(position: Vector3, url: SceneGameObjectAddress | Hash | Url): Vector3;",
1527
+ "go\u0000FUNCTION\u0000go.world_to_local_transform\u0000[{\"types\":[\"matrix4\"],\"isOptional\":false},{\"types\":[\"hash\",\"string\",\"url\"],\"isOptional\":false}]->[{\"types\":[\"matrix4\"],\"isOptional\":false}]": "function world_to_local_transform(transformation: Matrix4, url: SceneGameObjectAddress | Hash | Url): Matrix4;",
1528
1528
  "go\u0000FUNCTION\u0000init\u0000[{\"types\":[\"userdata\"],\"isOptional\":false}]->[]": "function init(self: Opaque<\"userdata\">): void;",
1529
1529
  "go\u0000FUNCTION\u0000late_update\u0000[{\"types\":[\"userdata\"],\"isOptional\":false},{\"types\":[\"number\"],\"isOptional\":false}]->[]": "function late_update(self: Opaque<\"userdata\">, dt: number): void;",
1530
1530
  "go\u0000FUNCTION\u0000on_input\u0000[{\"types\":[\"userdata\"],\"isOptional\":false},{\"types\":[\"hash\"],\"isOptional\":false},{\"types\":[\"table\"],\"isOptional\":false}]->[{\"types\":[\"boolean\",\"nil\"],\"isOptional\":false}]": "function on_input(self: Opaque<\"userdata\">, action_id: Hash, action: { value?: number; pressed?: boolean; released?: boolean; repeated?: boolean; x?: number; y?: number; screen_x?: number; screen_y?: number; dx?: number; dy?: number; screen_dx?: number; screen_dy?: number; gamepad?: number; gamepad_axis?: Vector3; touch?: { id?: number; pressed?: boolean; released?: boolean; tap_count?: number; x?: number; y?: number; dx?: number; dy?: number; acc_x?: number; acc_y?: number; acc_z?: number }[]; text?: string }): boolean | undefined;",
package/api-targets.json CHANGED
@@ -242,6 +242,63 @@
242
242
  "outFile": "zlib.d.ts"
243
243
  }
244
244
  ],
245
+ "editorModules": [
246
+ {
247
+ "namespace": "editor",
248
+ "fixture": "editor_doc.json",
249
+ "outFile": "editor.d.ts",
250
+ "mapType": "editor",
251
+ "skipFunctions": [
252
+ "command",
253
+ "http.",
254
+ "json.",
255
+ "localization.",
256
+ "pprint",
257
+ "tilemap.",
258
+ "zip.",
259
+ "zlib."
260
+ ]
261
+ },
262
+ {
263
+ "namespace": "http",
264
+ "fixture": "editor_http_doc.json",
265
+ "outFile": "editor-vm/http.d.ts",
266
+ "mapType": "editor",
267
+ "skipFunctions": ["server.local_url", "server.port", "server.route", "server.url"]
268
+ },
269
+ {
270
+ "namespace": "json",
271
+ "fixture": "editor_json_doc.json",
272
+ "outFile": "editor-vm/json.d.ts",
273
+ "mapType": "editor",
274
+ "skipFunctions": ["decode", "encode"]
275
+ },
276
+ {
277
+ "namespace": "localization",
278
+ "fixture": "editor_localization_doc.json",
279
+ "outFile": "editor-vm/localization.d.ts",
280
+ "mapType": "editor"
281
+ },
282
+ {
283
+ "namespace": "zip",
284
+ "fixture": "editor_zip_doc.json",
285
+ "outFile": "editor-vm/zip.d.ts",
286
+ "mapType": "editor",
287
+ "skipFunctions": ["METHOD.", "ON_CONFLICT.", "pack", "unpack"]
288
+ },
289
+ {
290
+ "namespace": "zlib",
291
+ "fixture": "editor_zlib_doc.json",
292
+ "outFile": "editor-vm/zlib.d.ts",
293
+ "mapType": "editor"
294
+ },
295
+ {
296
+ "namespace": "tilemap.tiles",
297
+ "fixture": "editor_tilemap_tiles_doc.json",
298
+ "outFile": "editor-vm/tilemap_tiles.d.ts",
299
+ "mapType": "editor"
300
+ }
301
+ ],
245
302
  "luaStdlib": [
246
303
  {
247
304
  "namespace": "base",
@@ -0,0 +1,56 @@
1
+ /** @noSelfInFile */
2
+ declare global {
3
+ /**
4
+ * Editor scripting documentation
5
+ */
6
+ namespace http {
7
+ /**
8
+ * Perform an HTTP request
9
+ *
10
+ * @param url - request URL
11
+ * @param opts - Additional request options, a table with the following keys:`method string`request method, defaults to `"GET"``headers table`request headers, a table with string keys and values`body string`request body`as string`response body converter, either `"string"` or `"json"`
12
+ * @returns HTTP response, a table with the following keys:`status integer`response code`headers table`response headers, a table where each key is a lower-cased string, and each value is either a string or an array of strings if the header was repeated`body string, any, nil`response body, present only when `as` option was provided, either a string or a parsed json value
13
+ */
14
+ function request(url: string, opts?: Record<string | number, unknown>): Record<string | number, unknown>;
15
+ namespace server {
16
+ /**
17
+ * Create HTTP response that will stream the content of a file defined by the path
18
+ *
19
+ * @param path - External file path, resolved against project root if relative
20
+ * @param status - HTTP status code, an integer, default 200
21
+ * @param headers - HTTP response headers, a table from lower-case header names to header values
22
+ * @returns HTTP response value, userdata
23
+ */
24
+ function external_file_response(path: string, status?: number, headers?: unknown): unknown;
25
+ /**
26
+ * Create HTTP response with a JSON value
27
+ *
28
+ * @param value - Any Lua value that may be represented as JSON
29
+ * @param status - HTTP status code, an integer, default 200
30
+ * @param headers - HTTP response headers, a table from lower-case header names to header values
31
+ * @returns HTTP response value, userdata
32
+ */
33
+ function json_response(value: unknown, status?: number, headers?: unknown): unknown;
34
+ /**
35
+ * Create HTTP response that will stream the content of a resource defined by the resource path
36
+ *
37
+ * @param resource_path - Resource path (starting with `/`)
38
+ * @param status - HTTP status code, an integer, default 200
39
+ * @param headers - HTTP response headers, a table from lower-case header names to header values
40
+ * @returns HTTP response value, userdata
41
+ */
42
+ function resource_response(resource_path: string, status?: number, headers?: unknown): unknown;
43
+ /**
44
+ * Create HTTP response
45
+ *
46
+ * @param status - HTTP status code, an integer, default 200
47
+ * @param headers - HTTP response headers, a table from lower-case header names to header values
48
+ * @param body - HTTP response body
49
+ * @returns HTTP response value, userdata
50
+ */
51
+ function response(status?: number, headers?: unknown, body?: string): unknown;
52
+ }
53
+ }
54
+ }
55
+
56
+ export {};
@@ -0,0 +1,10 @@
1
+ /** @noSelfInFile */
2
+ declare global {
3
+ /**
4
+ * Editor scripting documentation
5
+ */
6
+ namespace json {
7
+ }
8
+ }
9
+
10
+ export {};
@@ -0,0 +1,42 @@
1
+ /** @noSelfInFile */
2
+ import type { Opaque } from "../../src/core-types";
3
+
4
+ declare global {
5
+ /**
6
+ * Editor scripting documentation
7
+ */
8
+ namespace localization {
9
+ /**
10
+ * Create a message pattern that renders a list with the "and" conjunction (for example: a, b, and c) once it is stringified
11
+ *
12
+ * @param items - ] array of values; each value may be `nil`, `boolean`, `number`, `string`, or another `message` instance
13
+ * @returns a userdata value that, when stringified with `tostring()`, will produce a localized text according to the currently selected language in the editor
14
+ */
15
+ function and_list(items: unknown[]): Opaque<"message">;
16
+ /**
17
+ * Create a message pattern that concatenates values (similar to `table.concat`) and performs the actual concatenation when stringified
18
+ *
19
+ * @param items - ] array of values; each value may be `nil`, `boolean`, `number`, `string`, or another `message` instance
20
+ * @param separator - optional separator inserted between values; defaults to an empty string
21
+ * @returns a userdata value that, when stringified with `tostring()`, will produce a localized text according to the currently selected language in the editor
22
+ */
23
+ function concat(items: unknown[], separator?: boolean | number | string | Opaque<"message">): Opaque<"message">;
24
+ /**
25
+ * Create a message pattern for a localization key defined in an `.editor_localization` file; the actual localization happens when the returned value is stringified
26
+ *
27
+ * @param key - localization key defined in an `.editor_localization` file
28
+ * @param vars - optional table with variables to be substituted in the localized string that uses ICU Message Format syntax; keys must be strings; values must be either `nil`, `boolean`, `number`, `string`, or another `message` instance
29
+ * @returns a userdata value that, when stringified with `tostring()`, will produce a localized text according to the currently selected language in the editor
30
+ */
31
+ function message(key: string, vars?: Record<string | number, unknown>): Opaque<"message">;
32
+ /**
33
+ * Create a message pattern that renders a list with the "or" conjunction (for example: a, b, or c) once it is stringified
34
+ *
35
+ * @param items - ] array of values; each value may be `nil`, `boolean`, `number`, `string`, or another `message` instance
36
+ * @returns a userdata value that, when stringified with `tostring()`, will produce a localized text according to the currently selected language in the editor
37
+ */
38
+ function or_list(items: unknown[]): Opaque<"message">;
39
+ }
40
+ }
41
+
42
+ export {};
@@ -0,0 +1,80 @@
1
+ /** @noSelfInFile */
2
+ declare global {
3
+ /**
4
+ * Editor scripting documentation
5
+ */
6
+ namespace tilemap.tiles {
7
+ /**
8
+ * Remove all tiles
9
+ *
10
+ * @param tiles - unbounded 2d grid of tiles
11
+ * @returns unbounded 2d grid of tiles
12
+ */
13
+ export function clear(tiles: unknown): unknown;
14
+ /**
15
+ * Get full information from a tile at a particular coordinate
16
+ *
17
+ * @param tiles - unbounded 2d grid of tiles
18
+ * @param x - x coordinate of a tile
19
+ * @param y - y coordinate of a tile
20
+ * @returns full tile information table with the following keys:`index integer`1-indexed tile index of a tilemap's tilesource`h_flip boolean`horizontal flip`v_flip boolean`vertical flip`rotate_90 boolean`whether the tile is rotated 90 degrees clockwise
21
+ */
22
+ export function get_info(tiles: unknown, x: number, y: number): Record<string | number, unknown>;
23
+ /**
24
+ * Get a tile index at a particular coordinate
25
+ *
26
+ * @param tiles - unbounded 2d grid of tiles
27
+ * @param x - x coordinate of a tile
28
+ * @param y - y coordinate of a tile
29
+ * @returns 1-indexed tile index of a tilemap's tilesource
30
+ */
31
+ export function get_tile(tiles: unknown, x: number, y: number): number;
32
+ /**
33
+ * Create an iterator over all tiles in a tiles data structure
34
+ * When iterating using for loop, each iteration returns x, y and tile index of a tile in a tile map
35
+ *
36
+ * @param tiles - unbounded 2d grid of tiles
37
+ * @returns iterator
38
+ * @example
39
+ * ```lua
40
+ * Iterate over all tiles in a tile map:
41
+ * local layers = editor.get("/level.tilemap", "layers")
42
+ * for i = 1, #layers do
43
+ * local tiles = editor.get(layers[i], "tiles")
44
+ * for x, y, i in tilemap.tiles.iterator(tiles) do
45
+ * print(x, y, i)
46
+ * end
47
+ * end
48
+ * ```
49
+ */
50
+ export function iterator(tiles: unknown): (...args: unknown[]) => unknown;
51
+ /**
52
+ * Create a new unbounded 2d grid data structure for storing tilemap layer tiles
53
+ *
54
+ * @returns unbounded 2d grid of tiles
55
+ */
56
+ function _new(): unknown;
57
+ /**
58
+ * Remove a tile at a particular coordinate
59
+ *
60
+ * @param tiles - unbounded 2d grid of tiles
61
+ * @param x - x coordinate of a tile
62
+ * @param y - y coordinate of a tile
63
+ * @returns unbounded 2d grid of tiles
64
+ */
65
+ export function remove(tiles: unknown, x: number, y: number): unknown;
66
+ /**
67
+ * Set a tile at a particular coordinate
68
+ *
69
+ * @param tiles - unbounded 2d grid of tiles
70
+ * @param x - x coordinate of a tile
71
+ * @param y - y coordinate of a tile
72
+ * @param tile_or_info - Either 1-indexed tile index of a tilemap's tilesource or full tile information table with the following keys:`index integer`1-indexed tile index of a tilemap's tilesource`h_flip boolean`horizontal flip`v_flip boolean`vertical flip`rotate_90 boolean`whether the tile is rotated 90 degrees clockwise
73
+ * @returns unbounded 2d grid of tiles
74
+ */
75
+ export function set(tiles: unknown, x: number, y: number, tile_or_info: number | Record<string | number, unknown>): unknown;
76
+ export { _new as new };
77
+ }
78
+ }
79
+
80
+ export {};
@@ -0,0 +1,10 @@
1
+ /** @noSelfInFile */
2
+ declare global {
3
+ /**
4
+ * Editor scripting documentation
5
+ */
6
+ namespace zip {
7
+ }
8
+ }
9
+
10
+ export {};
@@ -0,0 +1,24 @@
1
+ /** @noSelfInFile */
2
+ declare global {
3
+ /**
4
+ * Editor scripting documentation
5
+ */
6
+ namespace zlib {
7
+ /**
8
+ * Deflate (compress) a buffer
9
+ *
10
+ * @param buf - buffer to deflate
11
+ * @returns deflated buffer
12
+ */
13
+ function deflate(buf: string): string;
14
+ /**
15
+ * Inflate (decompress) a buffer
16
+ *
17
+ * @param buf - buffer to inflate
18
+ * @returns inflated buffer
19
+ */
20
+ function inflate(buf: string): string;
21
+ }
22
+ }
23
+
24
+ export {};