@defold-typescript/types 0.1.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/api-targets.json +84 -0
- package/generated/b2d.d.ts +13 -0
- package/generated/buffer.d.ts +25 -0
- package/generated/builtin-messages.d.ts +42 -0
- package/generated/camera.d.ts +7 -0
- package/generated/collectionfactory.d.ts +17 -0
- package/generated/collectionproxy.d.ts +14 -0
- package/generated/crash.d.ts +31 -0
- package/generated/factory.d.ts +17 -0
- package/generated/go.d.ts +96 -0
- package/generated/graphics.d.ts +115 -0
- package/generated/gui.d.ts +245 -0
- package/generated/http.d.ts +8 -0
- package/generated/iac.d.ts +8 -0
- package/generated/iap.d.ts +16 -0
- package/generated/image.d.ts +16 -0
- package/generated/json.d.ts +11 -0
- package/generated/kinds/gui-script.d.ts +39 -0
- package/generated/kinds/render-script.d.ts +39 -0
- package/generated/kinds/script.d.ts +38 -0
- package/generated/label.d.ts +23 -0
- package/generated/liveupdate.d.ts +23 -0
- package/generated/model.d.ts +23 -0
- package/generated/msg.d.ts +12 -0
- package/generated/particlefx.d.ts +22 -0
- package/generated/physics.d.ts +47 -0
- package/generated/profiler.d.ts +28 -0
- package/generated/push.d.ts +15 -0
- package/generated/render.d.ts +55 -0
- package/generated/resource.d.ts +33 -0
- package/generated/socket.d.ts +25 -0
- package/generated/sound.d.ts +28 -0
- package/generated/sprite.d.ts +23 -0
- package/generated/sys.d.ts +37 -0
- package/generated/tilemap.d.ts +24 -0
- package/generated/timer.d.ts +12 -0
- package/generated/vmath.d.ts +63 -0
- package/generated/webview.d.ts +15 -0
- package/generated/window.d.ts +28 -0
- package/generated/zlib.d.ts +9 -0
- package/index.d.ts +63 -0
- package/package.json +46 -0
- package/scripts/doc-source.ts +100 -0
- package/scripts/fidelity-audit.ts +311 -0
- package/scripts/fidelity-baseline.json +282 -0
- package/scripts/materialize-version.ts +51 -0
- package/scripts/regen.ts +294 -0
- package/scripts/sync-api-docs.ts +375 -0
- package/src/api-doc.ts +168 -0
- package/src/core-types.ts +121 -0
- package/src/emit-dts.ts +754 -0
- package/src/emit-messages.ts +148 -0
- package/src/go-overloads.d.ts +35 -0
- package/src/index.ts +24 -0
- package/src/lifecycle.ts +81 -0
- package/src/msg-overloads.d.ts +21 -0
- package/src/publish-dts.ts +33 -0
- package/src/script-api.ts +95 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import type { Hash, Opaque, Quaternion, Url, Vector, Vector3, Vector4 } from "../src/core-types";
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
namespace gui {
|
|
6
|
+
const ADJUST_FIT: number & { readonly __brand: "gui.ADJUST_FIT" };
|
|
7
|
+
const ADJUST_STRETCH: number & { readonly __brand: "gui.ADJUST_STRETCH" };
|
|
8
|
+
const ADJUST_ZOOM: number & { readonly __brand: "gui.ADJUST_ZOOM" };
|
|
9
|
+
const ANCHOR_BOTTOM: number & { readonly __brand: "gui.ANCHOR_BOTTOM" };
|
|
10
|
+
const ANCHOR_LEFT: number & { readonly __brand: "gui.ANCHOR_LEFT" };
|
|
11
|
+
const ANCHOR_NONE: number & { readonly __brand: "gui.ANCHOR_NONE" };
|
|
12
|
+
const ANCHOR_RIGHT: number & { readonly __brand: "gui.ANCHOR_RIGHT" };
|
|
13
|
+
const ANCHOR_TOP: number & { readonly __brand: "gui.ANCHOR_TOP" };
|
|
14
|
+
const BLEND_ADD: number & { readonly __brand: "gui.BLEND_ADD" };
|
|
15
|
+
const BLEND_ADD_ALPHA: number & { readonly __brand: "gui.BLEND_ADD_ALPHA" };
|
|
16
|
+
const BLEND_ALPHA: number & { readonly __brand: "gui.BLEND_ALPHA" };
|
|
17
|
+
const BLEND_MULT: number & { readonly __brand: "gui.BLEND_MULT" };
|
|
18
|
+
const BLEND_SCREEN: number & { readonly __brand: "gui.BLEND_SCREEN" };
|
|
19
|
+
const CLIPPING_MODE_NONE: number & { readonly __brand: "gui.CLIPPING_MODE_NONE" };
|
|
20
|
+
const CLIPPING_MODE_STENCIL: number & { readonly __brand: "gui.CLIPPING_MODE_STENCIL" };
|
|
21
|
+
const EASING_INBACK: number & { readonly __brand: "gui.EASING_INBACK" };
|
|
22
|
+
const EASING_INBOUNCE: number & { readonly __brand: "gui.EASING_INBOUNCE" };
|
|
23
|
+
const EASING_INCIRC: number & { readonly __brand: "gui.EASING_INCIRC" };
|
|
24
|
+
const EASING_INCUBIC: number & { readonly __brand: "gui.EASING_INCUBIC" };
|
|
25
|
+
const EASING_INELASTIC: number & { readonly __brand: "gui.EASING_INELASTIC" };
|
|
26
|
+
const EASING_INEXPO: number & { readonly __brand: "gui.EASING_INEXPO" };
|
|
27
|
+
const EASING_INOUTBACK: number & { readonly __brand: "gui.EASING_INOUTBACK" };
|
|
28
|
+
const EASING_INOUTBOUNCE: number & { readonly __brand: "gui.EASING_INOUTBOUNCE" };
|
|
29
|
+
const EASING_INOUTCIRC: number & { readonly __brand: "gui.EASING_INOUTCIRC" };
|
|
30
|
+
const EASING_INOUTCUBIC: number & { readonly __brand: "gui.EASING_INOUTCUBIC" };
|
|
31
|
+
const EASING_INOUTELASTIC: number & { readonly __brand: "gui.EASING_INOUTELASTIC" };
|
|
32
|
+
const EASING_INOUTEXPO: number & { readonly __brand: "gui.EASING_INOUTEXPO" };
|
|
33
|
+
const EASING_INOUTQUAD: number & { readonly __brand: "gui.EASING_INOUTQUAD" };
|
|
34
|
+
const EASING_INOUTQUART: number & { readonly __brand: "gui.EASING_INOUTQUART" };
|
|
35
|
+
const EASING_INOUTQUINT: number & { readonly __brand: "gui.EASING_INOUTQUINT" };
|
|
36
|
+
const EASING_INOUTSINE: number & { readonly __brand: "gui.EASING_INOUTSINE" };
|
|
37
|
+
const EASING_INQUAD: number & { readonly __brand: "gui.EASING_INQUAD" };
|
|
38
|
+
const EASING_INQUART: number & { readonly __brand: "gui.EASING_INQUART" };
|
|
39
|
+
const EASING_INQUINT: number & { readonly __brand: "gui.EASING_INQUINT" };
|
|
40
|
+
const EASING_INSINE: number & { readonly __brand: "gui.EASING_INSINE" };
|
|
41
|
+
const EASING_LINEAR: number & { readonly __brand: "gui.EASING_LINEAR" };
|
|
42
|
+
const EASING_OUTBACK: number & { readonly __brand: "gui.EASING_OUTBACK" };
|
|
43
|
+
const EASING_OUTBOUNCE: number & { readonly __brand: "gui.EASING_OUTBOUNCE" };
|
|
44
|
+
const EASING_OUTCIRC: number & { readonly __brand: "gui.EASING_OUTCIRC" };
|
|
45
|
+
const EASING_OUTCUBIC: number & { readonly __brand: "gui.EASING_OUTCUBIC" };
|
|
46
|
+
const EASING_OUTELASTIC: number & { readonly __brand: "gui.EASING_OUTELASTIC" };
|
|
47
|
+
const EASING_OUTEXPO: number & { readonly __brand: "gui.EASING_OUTEXPO" };
|
|
48
|
+
const EASING_OUTINBACK: number & { readonly __brand: "gui.EASING_OUTINBACK" };
|
|
49
|
+
const EASING_OUTINBOUNCE: number & { readonly __brand: "gui.EASING_OUTINBOUNCE" };
|
|
50
|
+
const EASING_OUTINCIRC: number & { readonly __brand: "gui.EASING_OUTINCIRC" };
|
|
51
|
+
const EASING_OUTINCUBIC: number & { readonly __brand: "gui.EASING_OUTINCUBIC" };
|
|
52
|
+
const EASING_OUTINELASTIC: number & { readonly __brand: "gui.EASING_OUTINELASTIC" };
|
|
53
|
+
const EASING_OUTINEXPO: number & { readonly __brand: "gui.EASING_OUTINEXPO" };
|
|
54
|
+
const EASING_OUTINQUAD: number & { readonly __brand: "gui.EASING_OUTINQUAD" };
|
|
55
|
+
const EASING_OUTINQUART: number & { readonly __brand: "gui.EASING_OUTINQUART" };
|
|
56
|
+
const EASING_OUTINQUINT: number & { readonly __brand: "gui.EASING_OUTINQUINT" };
|
|
57
|
+
const EASING_OUTINSINE: number & { readonly __brand: "gui.EASING_OUTINSINE" };
|
|
58
|
+
const EASING_OUTQUAD: number & { readonly __brand: "gui.EASING_OUTQUAD" };
|
|
59
|
+
const EASING_OUTQUART: number & { readonly __brand: "gui.EASING_OUTQUART" };
|
|
60
|
+
const EASING_OUTQUINT: number & { readonly __brand: "gui.EASING_OUTQUINT" };
|
|
61
|
+
const EASING_OUTSINE: number & { readonly __brand: "gui.EASING_OUTSINE" };
|
|
62
|
+
const KEYBOARD_TYPE_DEFAULT: number & { readonly __brand: "gui.KEYBOARD_TYPE_DEFAULT" };
|
|
63
|
+
const KEYBOARD_TYPE_EMAIL: number & { readonly __brand: "gui.KEYBOARD_TYPE_EMAIL" };
|
|
64
|
+
const KEYBOARD_TYPE_NUMBER_PAD: number & { readonly __brand: "gui.KEYBOARD_TYPE_NUMBER_PAD" };
|
|
65
|
+
const KEYBOARD_TYPE_PASSWORD: number & { readonly __brand: "gui.KEYBOARD_TYPE_PASSWORD" };
|
|
66
|
+
const PIEBOUNDS_ELLIPSE: number & { readonly __brand: "gui.PIEBOUNDS_ELLIPSE" };
|
|
67
|
+
const PIEBOUNDS_RECTANGLE: number & { readonly __brand: "gui.PIEBOUNDS_RECTANGLE" };
|
|
68
|
+
const PIVOT_CENTER: number & { readonly __brand: "gui.PIVOT_CENTER" };
|
|
69
|
+
const PIVOT_E: number & { readonly __brand: "gui.PIVOT_E" };
|
|
70
|
+
const PIVOT_N: number & { readonly __brand: "gui.PIVOT_N" };
|
|
71
|
+
const PIVOT_NE: number & { readonly __brand: "gui.PIVOT_NE" };
|
|
72
|
+
const PIVOT_NW: number & { readonly __brand: "gui.PIVOT_NW" };
|
|
73
|
+
const PIVOT_S: number & { readonly __brand: "gui.PIVOT_S" };
|
|
74
|
+
const PIVOT_SE: number & { readonly __brand: "gui.PIVOT_SE" };
|
|
75
|
+
const PIVOT_SW: number & { readonly __brand: "gui.PIVOT_SW" };
|
|
76
|
+
const PIVOT_W: number & { readonly __brand: "gui.PIVOT_W" };
|
|
77
|
+
const PLAYBACK_LOOP_BACKWARD: number & { readonly __brand: "gui.PLAYBACK_LOOP_BACKWARD" };
|
|
78
|
+
const PLAYBACK_LOOP_FORWARD: number & { readonly __brand: "gui.PLAYBACK_LOOP_FORWARD" };
|
|
79
|
+
const PLAYBACK_LOOP_PINGPONG: number & { readonly __brand: "gui.PLAYBACK_LOOP_PINGPONG" };
|
|
80
|
+
const PLAYBACK_ONCE_BACKWARD: number & { readonly __brand: "gui.PLAYBACK_ONCE_BACKWARD" };
|
|
81
|
+
const PLAYBACK_ONCE_FORWARD: number & { readonly __brand: "gui.PLAYBACK_ONCE_FORWARD" };
|
|
82
|
+
const PLAYBACK_ONCE_PINGPONG: number & { readonly __brand: "gui.PLAYBACK_ONCE_PINGPONG" };
|
|
83
|
+
const PROP_COLOR: number & { readonly __brand: "gui.PROP_COLOR" };
|
|
84
|
+
const PROP_EULER: number & { readonly __brand: "gui.PROP_EULER" };
|
|
85
|
+
const PROP_FILL_ANGLE: number & { readonly __brand: "gui.PROP_FILL_ANGLE" };
|
|
86
|
+
const PROP_INNER_RADIUS: number & { readonly __brand: "gui.PROP_INNER_RADIUS" };
|
|
87
|
+
const PROP_LEADING: number & { readonly __brand: "gui.PROP_LEADING" };
|
|
88
|
+
const PROP_OUTLINE: number & { readonly __brand: "gui.PROP_OUTLINE" };
|
|
89
|
+
const PROP_POSITION: number & { readonly __brand: "gui.PROP_POSITION" };
|
|
90
|
+
const PROP_ROTATION: number & { readonly __brand: "gui.PROP_ROTATION" };
|
|
91
|
+
const PROP_SCALE: number & { readonly __brand: "gui.PROP_SCALE" };
|
|
92
|
+
const PROP_SHADOW: number & { readonly __brand: "gui.PROP_SHADOW" };
|
|
93
|
+
const PROP_SIZE: number & { readonly __brand: "gui.PROP_SIZE" };
|
|
94
|
+
const PROP_SLICE9: number & { readonly __brand: "gui.PROP_SLICE9" };
|
|
95
|
+
const PROP_TRACKING: number & { readonly __brand: "gui.PROP_TRACKING" };
|
|
96
|
+
const RESULT_DATA_ERROR: number & { readonly __brand: "gui.RESULT_DATA_ERROR" };
|
|
97
|
+
const RESULT_OUT_OF_RESOURCES: number & { readonly __brand: "gui.RESULT_OUT_OF_RESOURCES" };
|
|
98
|
+
const RESULT_TEXTURE_ALREADY_EXISTS: number & { readonly __brand: "gui.RESULT_TEXTURE_ALREADY_EXISTS" };
|
|
99
|
+
const SAFE_AREA_BOTH: number & { readonly __brand: "gui.SAFE_AREA_BOTH" };
|
|
100
|
+
const SAFE_AREA_LONG: number & { readonly __brand: "gui.SAFE_AREA_LONG" };
|
|
101
|
+
const SAFE_AREA_NONE: number & { readonly __brand: "gui.SAFE_AREA_NONE" };
|
|
102
|
+
const SAFE_AREA_SHORT: number & { readonly __brand: "gui.SAFE_AREA_SHORT" };
|
|
103
|
+
const SIZE_MODE_AUTO: number & { readonly __brand: "gui.SIZE_MODE_AUTO" };
|
|
104
|
+
const SIZE_MODE_MANUAL: number & { readonly __brand: "gui.SIZE_MODE_MANUAL" };
|
|
105
|
+
const TYPE_BOX: number & { readonly __brand: "gui.TYPE_BOX" };
|
|
106
|
+
const TYPE_CUSTOM: number & { readonly __brand: "gui.TYPE_CUSTOM" };
|
|
107
|
+
const TYPE_PARTICLEFX: number & { readonly __brand: "gui.TYPE_PARTICLEFX" };
|
|
108
|
+
const TYPE_PIE: number & { readonly __brand: "gui.TYPE_PIE" };
|
|
109
|
+
const TYPE_TEXT: number & { readonly __brand: "gui.TYPE_TEXT" };
|
|
110
|
+
function animate(node: Opaque<"node">, property: string | Opaque<"constant">, to: number | Vector3 | Vector4 | Quaternion, easing: Opaque<"constant"> | Vector, duration: number, delay?: number, complete_function?: (self: unknown, node: unknown) => void, playback?: Opaque<"constant">): void;
|
|
111
|
+
function cancel_animations(node: Opaque<"node">, property?: string | Opaque<"constant">): void;
|
|
112
|
+
function cancel_flipbook(node: Opaque<"node">): void;
|
|
113
|
+
function clone(node: Opaque<"node">): Opaque<"node">;
|
|
114
|
+
function clone_tree(node: Opaque<"node">): LuaMap<Hash, Opaque<"node">>;
|
|
115
|
+
function delete_node(node: Opaque<"node">): void;
|
|
116
|
+
function delete_texture(texture: string | Hash): void;
|
|
117
|
+
function final(self: Opaque<"userdata">): void;
|
|
118
|
+
function get(node: Opaque<"node">, property: string | Hash | Opaque<"constant">, options?: { index?: number }): void;
|
|
119
|
+
function get_adjust_mode(node: Opaque<"node">): Opaque<"constant">;
|
|
120
|
+
function get_alpha(node: Opaque<"node">): number;
|
|
121
|
+
function get_blend_mode(node: Opaque<"node">): Opaque<"constant">;
|
|
122
|
+
function get_clipping_inverted(node: Opaque<"node">): boolean;
|
|
123
|
+
function get_clipping_mode(node: Opaque<"node">): Opaque<"constant">;
|
|
124
|
+
function get_clipping_visible(node: Opaque<"node">): boolean;
|
|
125
|
+
function get_color(node: Opaque<"node">): Vector4;
|
|
126
|
+
function get_euler(node: Opaque<"node">): Vector3;
|
|
127
|
+
function get_fill_angle(node: Opaque<"node">): number;
|
|
128
|
+
function get_flipbook(node: Opaque<"node">): Hash;
|
|
129
|
+
function get_flipbook_cursor(node: Opaque<"node">): number;
|
|
130
|
+
function get_flipbook_playback_rate(node: Opaque<"node">): number;
|
|
131
|
+
function get_font(node: Opaque<"node">): Hash;
|
|
132
|
+
function get_font_resource(font_name: Hash | string): Hash;
|
|
133
|
+
function get_height(): number;
|
|
134
|
+
function get_id(node: Opaque<"node">): Hash;
|
|
135
|
+
function get_index(node: Opaque<"node">): number;
|
|
136
|
+
function get_inherit_alpha(node: Opaque<"node">): boolean;
|
|
137
|
+
function get_inner_radius(node: Opaque<"node">): number;
|
|
138
|
+
function get_layer(node: Opaque<"node">): Hash;
|
|
139
|
+
function get_layout(): Hash;
|
|
140
|
+
function get_layouts(): LuaMap<Hash, Vector3>;
|
|
141
|
+
function get_leading(node: Opaque<"node">): number;
|
|
142
|
+
function get_line_break(node: Opaque<"node">): boolean;
|
|
143
|
+
function get_material(node: Opaque<"node">): Hash;
|
|
144
|
+
function get_node(id: string | Hash): Opaque<"node">;
|
|
145
|
+
function get_outer_bounds(node: Opaque<"node">): Opaque<"constant">;
|
|
146
|
+
function get_outline(node: Opaque<"node">): Vector4;
|
|
147
|
+
function get_parent(node: Opaque<"node">): Opaque<"node"> | unknown;
|
|
148
|
+
function get_particlefx(node: Opaque<"node">): Hash;
|
|
149
|
+
function get_perimeter_vertices(node: Opaque<"node">): number;
|
|
150
|
+
function get_pivot(node: Opaque<"node">): Opaque<"constant">;
|
|
151
|
+
function get_position(node: Opaque<"node">): Vector3;
|
|
152
|
+
function get_rotation(node: Opaque<"node">): Quaternion;
|
|
153
|
+
function get_scale(node: Opaque<"node">): Vector3;
|
|
154
|
+
function get_screen_position(node: Opaque<"node">): Vector3;
|
|
155
|
+
function get_shadow(node: Opaque<"node">): Vector4;
|
|
156
|
+
function get_size(node: Opaque<"node">): Vector3;
|
|
157
|
+
function get_size_mode(node: Opaque<"node">): Opaque<"constant">;
|
|
158
|
+
function get_slice9(node: Opaque<"node">): Vector4;
|
|
159
|
+
function get_text(node: Opaque<"node">): string;
|
|
160
|
+
function get_texture(node: Opaque<"node">): Hash;
|
|
161
|
+
function get_tracking(node: Opaque<"node">): number;
|
|
162
|
+
function get_tree(node: Opaque<"node">): LuaMap<Hash, Opaque<"node">>;
|
|
163
|
+
function get_type(node: Opaque<"node">): LuaMultiReturn<[Opaque<"constant">, number | unknown]>;
|
|
164
|
+
function get_visible(node: Opaque<"node">): boolean;
|
|
165
|
+
function get_width(): number;
|
|
166
|
+
function get_xanchor(node: Opaque<"node">): Opaque<"constant">;
|
|
167
|
+
function get_yanchor(node: Opaque<"node">): Opaque<"constant">;
|
|
168
|
+
function hide_keyboard(): void;
|
|
169
|
+
function init(self: Opaque<"userdata">): void;
|
|
170
|
+
function is_enabled(node: Opaque<"node">, recursive?: boolean): boolean;
|
|
171
|
+
function move_above(node: Opaque<"node">, reference?: Opaque<"node">): void;
|
|
172
|
+
function move_below(node: Opaque<"node">, reference?: Opaque<"node">): void;
|
|
173
|
+
function new_box_node(pos: Vector3 | Vector4, size: Vector3): Opaque<"node">;
|
|
174
|
+
function new_particlefx_node(pos: Vector3 | Vector4, particlefx: Hash | string): Opaque<"node">;
|
|
175
|
+
function new_pie_node(pos: Vector3 | Vector4, size: Vector3): Opaque<"node">;
|
|
176
|
+
function new_text_node(pos: Vector3 | Vector4, text: string): Opaque<"node">;
|
|
177
|
+
function new_texture(texture_id: string | Hash, width: number, height: number, type: string | Opaque<"constant">, buffer: string, flip: boolean): LuaMultiReturn<[boolean, number]>;
|
|
178
|
+
function on_input(self: Opaque<"userdata">, action_id: Hash, action: Record<string | number, unknown>): boolean | unknown;
|
|
179
|
+
function on_message(self: Opaque<"userdata">, message_id: Hash, message: Record<string | number, unknown>): void;
|
|
180
|
+
function on_reload(self: Opaque<"userdata">): void;
|
|
181
|
+
function pick_node(node: Opaque<"node">, x: number, y: number): boolean;
|
|
182
|
+
function play_flipbook(node: Opaque<"node">, animation: string | Hash, complete_function?: (self: unknown, node: unknown) => void, play_properties?: { offset?: number; playback_rate?: number }): void;
|
|
183
|
+
function play_particlefx(node: Opaque<"node">, emitter_state_function?: (self: unknown, node: unknown, emitter: unknown, state: unknown) => void): void;
|
|
184
|
+
function reset_keyboard(): void;
|
|
185
|
+
function reset_material(node: Opaque<"node">): void;
|
|
186
|
+
function reset_nodes(): void;
|
|
187
|
+
function screen_to_local(node: Opaque<"node">, screen_position: Vector3): Vector3;
|
|
188
|
+
function set(node: Opaque<"node"> | Url, property: string | Hash | Opaque<"constant">, value: number | Vector4 | Vector3 | Quaternion, options?: { index?: number; key?: Hash }): void;
|
|
189
|
+
function set_adjust_mode(node: Opaque<"node">, adjust_mode: Opaque<"constant">): void;
|
|
190
|
+
function set_alpha(node: Opaque<"node">, alpha: number): void;
|
|
191
|
+
function set_blend_mode(node: Opaque<"node">, blend_mode: Opaque<"constant">): void;
|
|
192
|
+
function set_clipping_inverted(node: Opaque<"node">, inverted: boolean): void;
|
|
193
|
+
function set_clipping_mode(node: Opaque<"node">, clipping_mode: Opaque<"constant">): void;
|
|
194
|
+
function set_clipping_visible(node: Opaque<"node">, visible: boolean): void;
|
|
195
|
+
function set_color(node: Opaque<"node">, color: Vector3 | Vector4): void;
|
|
196
|
+
function set_enabled(node: Opaque<"node">, enabled: boolean): void;
|
|
197
|
+
function set_euler(node: Opaque<"node">, rotation: Vector3 | Vector4): void;
|
|
198
|
+
function set_fill_angle(node: Opaque<"node">, angle: number): void;
|
|
199
|
+
function set_flipbook_cursor(node: Opaque<"node">, cursor: number): void;
|
|
200
|
+
function set_flipbook_playback_rate(node: Opaque<"node">, playback_rate: number): void;
|
|
201
|
+
function set_font(node: Opaque<"node">, font: string | Hash): void;
|
|
202
|
+
function set_id(node: Opaque<"node">, id: string | Hash): void;
|
|
203
|
+
function set_inherit_alpha(node: Opaque<"node">, inherit_alpha: boolean): void;
|
|
204
|
+
function set_inner_radius(node: Opaque<"node">, radius: number): void;
|
|
205
|
+
function set_layer(node: Opaque<"node">, layer: string | Hash): void;
|
|
206
|
+
function set_layout(layout: string | Hash): boolean;
|
|
207
|
+
function set_leading(node: Opaque<"node">, leading: number): void;
|
|
208
|
+
function set_line_break(node: Opaque<"node">, line_break: boolean): void;
|
|
209
|
+
function set_material(node: Opaque<"node">, material: string | Hash): void;
|
|
210
|
+
function set_outer_bounds(node: Opaque<"node">, bounds_mode: Opaque<"constant">): void;
|
|
211
|
+
function set_outline(node: Opaque<"node">, color: Vector3 | Vector4): void;
|
|
212
|
+
function set_parent(node: Opaque<"node">, parent?: Opaque<"node">, keep_scene_transform?: boolean): void;
|
|
213
|
+
function set_particlefx(node: Opaque<"node">, particlefx: Hash | string): void;
|
|
214
|
+
function set_perimeter_vertices(node: Opaque<"node">, vertices: number): void;
|
|
215
|
+
function set_pivot(node: Opaque<"node">, pivot: Opaque<"constant">): void;
|
|
216
|
+
function set_position(node: Opaque<"node">, position: Vector3 | Vector4): void;
|
|
217
|
+
function set_render_order(order: number): void;
|
|
218
|
+
function set_rotation(node: Opaque<"node">, rotation: Quaternion | Vector4): void;
|
|
219
|
+
function set_safe_area_mode(mode: Opaque<"constant">): void;
|
|
220
|
+
function set_scale(node: Opaque<"node">, scale: Vector3 | Vector4): void;
|
|
221
|
+
function set_screen_position(node: Opaque<"node">, screen_position: Vector3): void;
|
|
222
|
+
function set_shadow(node: Opaque<"node">, color: Vector3 | Vector4): void;
|
|
223
|
+
function set_size(node: Opaque<"node">, size: Vector3 | Vector4): void;
|
|
224
|
+
function set_size_mode(node: Opaque<"node">, size_mode: Opaque<"constant">): void;
|
|
225
|
+
function set_slice9(node: Opaque<"node">, values: Vector4): void;
|
|
226
|
+
function set_text(node: Opaque<"node">, text: string | number): void;
|
|
227
|
+
function set_texture(node: Opaque<"node">, texture: string | Hash): void;
|
|
228
|
+
function set_texture_data(texture: string | Hash, width: number, height: number, type: string | Opaque<"constant">, buffer: string, flip: boolean): boolean;
|
|
229
|
+
function set_tracking(node: Opaque<"node">, tracking: number): void;
|
|
230
|
+
function set_visible(node: Opaque<"node">, visible: boolean): void;
|
|
231
|
+
function set_xanchor(node: Opaque<"node">, anchor: Opaque<"constant">): void;
|
|
232
|
+
function set_yanchor(node: Opaque<"node">, anchor: Opaque<"constant">): void;
|
|
233
|
+
function show_keyboard(type: Opaque<"constant">, autoclose: boolean): void;
|
|
234
|
+
function stop_particlefx(node: Opaque<"node">, options?: { clear?: boolean }): void;
|
|
235
|
+
function update(self: Opaque<"userdata">, dt: number): void;
|
|
236
|
+
interface properties {
|
|
237
|
+
fonts: Hash;
|
|
238
|
+
material: Hash;
|
|
239
|
+
materials: Hash;
|
|
240
|
+
textures: Hash;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
declare global {
|
|
3
|
+
namespace http {
|
|
4
|
+
function request(url: string, method: string, callback: (self: unknown, id: unknown, response: unknown) => void, headers?: Record<string | number, unknown>, post_data?: string, options?: { timeout?: number; path?: string; ignore_cache?: boolean; chunked_transfer?: boolean; report_progress?: boolean }): void;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import type { Opaque } from "../src/core-types";
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
namespace iap {
|
|
6
|
+
function acknowledge(transaction: Record<string | number, unknown>): void;
|
|
7
|
+
function buy(id: string, options: Record<string | number, unknown>): void;
|
|
8
|
+
function finish(transaction: Record<string | number, unknown>): void;
|
|
9
|
+
function get_provider_id(): Opaque<"constant">;
|
|
10
|
+
function list(ids: string[], callback: (...args: unknown[]) => unknown): void;
|
|
11
|
+
function restore(): boolean;
|
|
12
|
+
function set_listener(listener: (...args: unknown[]) => unknown): void;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import type { Opaque } from "../src/core-types";
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
namespace image {
|
|
6
|
+
const TYPE_LUMINANCE: number & { readonly __brand: "image.TYPE_LUMINANCE" };
|
|
7
|
+
const TYPE_LUMINANCE_ALPHA: number & { readonly __brand: "image.TYPE_LUMINANCE_ALPHA" };
|
|
8
|
+
const TYPE_RGB: number & { readonly __brand: "image.TYPE_RGB" };
|
|
9
|
+
const TYPE_RGBA: number & { readonly __brand: "image.TYPE_RGBA" };
|
|
10
|
+
function get_astc_header(buffer: string): { width: number; height: number; depth: number; block_size_x: number; block_size_y: number; block_size_z: number } | unknown;
|
|
11
|
+
function load(buffer: string, options?: { premultiply_alpha?: boolean; flip_vertically?: boolean }): { width: number; height: number; type: Opaque<"constant">; buffer: string } | unknown;
|
|
12
|
+
function load_buffer(buffer: string, options?: { premultiply_alpha?: boolean; flip_vertically?: boolean }): { width: number; height: number; type: Opaque<"constant">; buffer: Opaque<"buffer"> } | unknown;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
declare global {
|
|
3
|
+
namespace json {
|
|
4
|
+
const _null: unknown;
|
|
5
|
+
export function decode(json: string, options?: { decode_null_as_userdata?: boolean }): Record<string | number, unknown>;
|
|
6
|
+
export function encode(tbl: Record<string | number, unknown>, options?: { encode_empty_table_as_object?: string }): string;
|
|
7
|
+
export { _null as null };
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import "../../src/go-overloads";
|
|
2
|
+
import "../../src/msg-overloads";
|
|
3
|
+
import "../b2d";
|
|
4
|
+
import "../buffer";
|
|
5
|
+
import "../builtin-messages";
|
|
6
|
+
import "../camera";
|
|
7
|
+
import "../collectionfactory";
|
|
8
|
+
import "../collectionproxy";
|
|
9
|
+
import "../crash";
|
|
10
|
+
import "../factory";
|
|
11
|
+
import "../go";
|
|
12
|
+
import "../graphics";
|
|
13
|
+
import "../http";
|
|
14
|
+
import "../iac";
|
|
15
|
+
import "../iap";
|
|
16
|
+
import "../image";
|
|
17
|
+
import "../json";
|
|
18
|
+
import "../label";
|
|
19
|
+
import "../liveupdate";
|
|
20
|
+
import "../model";
|
|
21
|
+
import "../msg";
|
|
22
|
+
import "../particlefx";
|
|
23
|
+
import "../physics";
|
|
24
|
+
import "../profiler";
|
|
25
|
+
import "../push";
|
|
26
|
+
import "../resource";
|
|
27
|
+
import "../socket";
|
|
28
|
+
import "../sound";
|
|
29
|
+
import "../sprite";
|
|
30
|
+
import "../sys";
|
|
31
|
+
import "../tilemap";
|
|
32
|
+
import "../timer";
|
|
33
|
+
import "../vmath";
|
|
34
|
+
import "../webview";
|
|
35
|
+
import "../window";
|
|
36
|
+
import "../zlib";
|
|
37
|
+
import "../gui";
|
|
38
|
+
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import "../../src/go-overloads";
|
|
2
|
+
import "../../src/msg-overloads";
|
|
3
|
+
import "../b2d";
|
|
4
|
+
import "../buffer";
|
|
5
|
+
import "../builtin-messages";
|
|
6
|
+
import "../camera";
|
|
7
|
+
import "../collectionfactory";
|
|
8
|
+
import "../collectionproxy";
|
|
9
|
+
import "../crash";
|
|
10
|
+
import "../factory";
|
|
11
|
+
import "../go";
|
|
12
|
+
import "../graphics";
|
|
13
|
+
import "../http";
|
|
14
|
+
import "../iac";
|
|
15
|
+
import "../iap";
|
|
16
|
+
import "../image";
|
|
17
|
+
import "../json";
|
|
18
|
+
import "../label";
|
|
19
|
+
import "../liveupdate";
|
|
20
|
+
import "../model";
|
|
21
|
+
import "../msg";
|
|
22
|
+
import "../particlefx";
|
|
23
|
+
import "../physics";
|
|
24
|
+
import "../profiler";
|
|
25
|
+
import "../push";
|
|
26
|
+
import "../resource";
|
|
27
|
+
import "../socket";
|
|
28
|
+
import "../sound";
|
|
29
|
+
import "../sprite";
|
|
30
|
+
import "../sys";
|
|
31
|
+
import "../tilemap";
|
|
32
|
+
import "../timer";
|
|
33
|
+
import "../vmath";
|
|
34
|
+
import "../webview";
|
|
35
|
+
import "../window";
|
|
36
|
+
import "../zlib";
|
|
37
|
+
import "../render";
|
|
38
|
+
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import "../../src/go-overloads";
|
|
2
|
+
import "../../src/msg-overloads";
|
|
3
|
+
import "../b2d";
|
|
4
|
+
import "../buffer";
|
|
5
|
+
import "../builtin-messages";
|
|
6
|
+
import "../camera";
|
|
7
|
+
import "../collectionfactory";
|
|
8
|
+
import "../collectionproxy";
|
|
9
|
+
import "../crash";
|
|
10
|
+
import "../factory";
|
|
11
|
+
import "../go";
|
|
12
|
+
import "../graphics";
|
|
13
|
+
import "../http";
|
|
14
|
+
import "../iac";
|
|
15
|
+
import "../iap";
|
|
16
|
+
import "../image";
|
|
17
|
+
import "../json";
|
|
18
|
+
import "../label";
|
|
19
|
+
import "../liveupdate";
|
|
20
|
+
import "../model";
|
|
21
|
+
import "../msg";
|
|
22
|
+
import "../particlefx";
|
|
23
|
+
import "../physics";
|
|
24
|
+
import "../profiler";
|
|
25
|
+
import "../push";
|
|
26
|
+
import "../resource";
|
|
27
|
+
import "../socket";
|
|
28
|
+
import "../sound";
|
|
29
|
+
import "../sprite";
|
|
30
|
+
import "../sys";
|
|
31
|
+
import "../tilemap";
|
|
32
|
+
import "../timer";
|
|
33
|
+
import "../vmath";
|
|
34
|
+
import "../webview";
|
|
35
|
+
import "../window";
|
|
36
|
+
import "../zlib";
|
|
37
|
+
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import type { Hash, Url, Vector3, Vector4 } from "../src/core-types";
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
namespace label {
|
|
6
|
+
function get_text(url: string | Hash | Url): string;
|
|
7
|
+
function set_text(url: string | Hash | Url, text: string | number): void;
|
|
8
|
+
interface properties {
|
|
9
|
+
color: Vector4;
|
|
10
|
+
font: Hash;
|
|
11
|
+
leading: number;
|
|
12
|
+
line_break: boolean;
|
|
13
|
+
material: Hash;
|
|
14
|
+
outline: Vector4;
|
|
15
|
+
scale: number | Vector3;
|
|
16
|
+
shadow: Vector4;
|
|
17
|
+
size: Vector3;
|
|
18
|
+
tracking: number;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
declare global {
|
|
3
|
+
namespace liveupdate {
|
|
4
|
+
const LIVEUPDATE_BUNDLED_RESOURCE_MISMATCH: number & { readonly __brand: "liveupdate.LIVEUPDATE_BUNDLED_RESOURCE_MISMATCH" };
|
|
5
|
+
const LIVEUPDATE_ENGINE_VERSION_MISMATCH: number & { readonly __brand: "liveupdate.LIVEUPDATE_ENGINE_VERSION_MISMATCH" };
|
|
6
|
+
const LIVEUPDATE_FORMAT_ERROR: number & { readonly __brand: "liveupdate.LIVEUPDATE_FORMAT_ERROR" };
|
|
7
|
+
const LIVEUPDATE_INVAL: number & { readonly __brand: "liveupdate.LIVEUPDATE_INVAL" };
|
|
8
|
+
const LIVEUPDATE_INVALID_HEADER: number & { readonly __brand: "liveupdate.LIVEUPDATE_INVALID_HEADER" };
|
|
9
|
+
const LIVEUPDATE_INVALID_RESOURCE: number & { readonly __brand: "liveupdate.LIVEUPDATE_INVALID_RESOURCE" };
|
|
10
|
+
const LIVEUPDATE_IO_ERROR: number & { readonly __brand: "liveupdate.LIVEUPDATE_IO_ERROR" };
|
|
11
|
+
const LIVEUPDATE_MEM_ERROR: number & { readonly __brand: "liveupdate.LIVEUPDATE_MEM_ERROR" };
|
|
12
|
+
const LIVEUPDATE_OK: number & { readonly __brand: "liveupdate.LIVEUPDATE_OK" };
|
|
13
|
+
const LIVEUPDATE_SCHEME_MISMATCH: number & { readonly __brand: "liveupdate.LIVEUPDATE_SCHEME_MISMATCH" };
|
|
14
|
+
const LIVEUPDATE_SIGNATURE_MISMATCH: number & { readonly __brand: "liveupdate.LIVEUPDATE_SIGNATURE_MISMATCH" };
|
|
15
|
+
const LIVEUPDATE_UNKNOWN: number & { readonly __brand: "liveupdate.LIVEUPDATE_UNKNOWN" };
|
|
16
|
+
const LIVEUPDATE_VERSION_MISMATCH: number & { readonly __brand: "liveupdate.LIVEUPDATE_VERSION_MISMATCH" };
|
|
17
|
+
function add_mount(name: string, uri: string, priority: number, callback: (...args: unknown[]) => unknown): number;
|
|
18
|
+
function get_mounts(): Record<string | number, unknown>;
|
|
19
|
+
function remove_mount(name: string): number;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import type { Hash, Opaque, Url } from "../src/core-types";
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
namespace model {
|
|
6
|
+
function cancel(url: string | Hash | Url): void;
|
|
7
|
+
function get_aabb(url: string | Hash | Url): Record<string | number, unknown>;
|
|
8
|
+
function get_go(url: string | Hash | Url, bone_id: string | Hash): Hash;
|
|
9
|
+
function get_mesh_aabb(url: string | Hash | Url): Record<string | number, unknown>;
|
|
10
|
+
function get_mesh_enabled(url: string | Hash | Url, mesh_id: string | Hash | Url): boolean;
|
|
11
|
+
function play_anim(url: string | Hash | Url, anim_id: string | Hash, playback: Opaque<"constant">, play_properties?: { blend_duration?: number; offset?: number; playback_rate?: number }, complete_function?: (self: unknown, message_id: unknown, message: unknown, sender: unknown) => void): void;
|
|
12
|
+
function set_mesh_enabled(url: string | Hash | Url, mesh_id: string | Hash | Url, enabled: boolean): void;
|
|
13
|
+
interface properties {
|
|
14
|
+
animation: Hash;
|
|
15
|
+
cursor: number;
|
|
16
|
+
material: Hash;
|
|
17
|
+
playback_rate: number;
|
|
18
|
+
textureN: Hash;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import type { Hash, Url } from "../src/core-types";
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
namespace msg {
|
|
6
|
+
function url(): Url;
|
|
7
|
+
function url(urlstring: string): Url;
|
|
8
|
+
function url(socket?: string | Hash, path?: string | Hash, fragment?: string | Hash): Url;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import type { Hash, Url, Vector4 } from "../src/core-types";
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
namespace particlefx {
|
|
6
|
+
const EMITTER_STATE_POSTSPAWN: number & { readonly __brand: "particlefx.EMITTER_STATE_POSTSPAWN" };
|
|
7
|
+
const EMITTER_STATE_PRESPAWN: number & { readonly __brand: "particlefx.EMITTER_STATE_PRESPAWN" };
|
|
8
|
+
const EMITTER_STATE_SLEEPING: number & { readonly __brand: "particlefx.EMITTER_STATE_SLEEPING" };
|
|
9
|
+
const EMITTER_STATE_SPAWNING: number & { readonly __brand: "particlefx.EMITTER_STATE_SPAWNING" };
|
|
10
|
+
function play(url: string | Hash | Url, emitter_state_function?: (self: unknown, id: unknown, emitter: unknown, state: unknown) => void): void;
|
|
11
|
+
function reset_constant(url: string | Hash | Url, emitter: string | Hash, constant: string | Hash): void;
|
|
12
|
+
function set_constant(url: string | Hash | Url, emitter: string | Hash, constant: string | Hash, value: Vector4): void;
|
|
13
|
+
function stop(url: string | Hash | Url, options?: { clear?: boolean }): void;
|
|
14
|
+
interface properties {
|
|
15
|
+
animation: Hash;
|
|
16
|
+
image: Hash;
|
|
17
|
+
material: Hash;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import type { Hash, Url, Vector3 } from "../src/core-types";
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
namespace physics {
|
|
6
|
+
const JOINT_TYPE_FIXED: number & { readonly __brand: "physics.JOINT_TYPE_FIXED" };
|
|
7
|
+
const JOINT_TYPE_HINGE: number & { readonly __brand: "physics.JOINT_TYPE_HINGE" };
|
|
8
|
+
const JOINT_TYPE_SLIDER: number & { readonly __brand: "physics.JOINT_TYPE_SLIDER" };
|
|
9
|
+
const JOINT_TYPE_SPRING: number & { readonly __brand: "physics.JOINT_TYPE_SPRING" };
|
|
10
|
+
const JOINT_TYPE_WELD: number & { readonly __brand: "physics.JOINT_TYPE_WELD" };
|
|
11
|
+
const JOINT_TYPE_WHEEL: number & { readonly __brand: "physics.JOINT_TYPE_WHEEL" };
|
|
12
|
+
const SHAPE_TYPE_BOX: number & { readonly __brand: "physics.SHAPE_TYPE_BOX" };
|
|
13
|
+
const SHAPE_TYPE_CAPSULE: number & { readonly __brand: "physics.SHAPE_TYPE_CAPSULE" };
|
|
14
|
+
const SHAPE_TYPE_HULL: number & { readonly __brand: "physics.SHAPE_TYPE_HULL" };
|
|
15
|
+
const SHAPE_TYPE_SPHERE: number & { readonly __brand: "physics.SHAPE_TYPE_SPHERE" };
|
|
16
|
+
function create_joint(joint_type: number, collisionobject_a: string | Hash | Url, joint_id: string | Hash, position_a: Vector3, collisionobject_b: string | Hash | Url, position_b: Vector3, properties?: Record<string | number, unknown>): void;
|
|
17
|
+
function destroy_joint(collisionobject: string | Hash | Url, joint_id: string | Hash): void;
|
|
18
|
+
function get_gravity(): Vector3;
|
|
19
|
+
function get_group(url: string | Hash | Url): Hash;
|
|
20
|
+
function get_joint_properties(collisionobject: string | Hash | Url, joint_id: string | Hash): { collide_connected: boolean };
|
|
21
|
+
function get_joint_reaction_force(collisionobject: string | Hash | Url, joint_id: string | Hash): Vector3;
|
|
22
|
+
function get_joint_reaction_torque(collisionobject: string | Hash | Url, joint_id: string | Hash): number;
|
|
23
|
+
function get_maskbit(url: string | Hash | Url, group: string): boolean;
|
|
24
|
+
function get_shape(url: string | Hash | Url, shape: string | Hash): { type: number; diameter: number; dimensions: Vector3; diameter: number; height: number };
|
|
25
|
+
function raycast(from: Vector3, to: Vector3, groups: Record<string | number, unknown>, options?: { all?: boolean }): Record<string | number, unknown> | unknown;
|
|
26
|
+
function raycast_async(from: Vector3, to: Vector3, groups: Record<string | number, unknown>, request_id?: number): void;
|
|
27
|
+
function set_event_listener(callback?: (self: unknown, events: unknown) => void): void;
|
|
28
|
+
function set_gravity(gravity: Vector3): void;
|
|
29
|
+
function set_group(url: string | Hash | Url, group: string): void;
|
|
30
|
+
function set_hflip(url: string | Hash | Url, flip: boolean): void;
|
|
31
|
+
function set_joint_properties(collisionobject: string | Hash | Url, joint_id: string | Hash, properties: Record<string | number, unknown>): void;
|
|
32
|
+
function set_maskbit(url: string | Hash | Url, group: string, maskbit: boolean): void;
|
|
33
|
+
function set_shape(url: string | Hash | Url, shape: string | Hash, table: { type?: number; diameter?: number; dimensions?: Vector3; diameter?: number; height?: number }): void;
|
|
34
|
+
function set_vflip(url: string | Hash | Url, flip: boolean): void;
|
|
35
|
+
function update_mass(collisionobject: string | Hash | Url, mass: number): void;
|
|
36
|
+
function wakeup(url: string | Hash | Url): void;
|
|
37
|
+
interface properties {
|
|
38
|
+
angular_damping: number;
|
|
39
|
+
angular_velocity: Vector3;
|
|
40
|
+
linear_damping: number;
|
|
41
|
+
linear_velocity: Vector3;
|
|
42
|
+
mass: number;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import type { Opaque } from "../src/core-types";
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
namespace profiler {
|
|
6
|
+
const MODE_PAUSE: number & { readonly __brand: "profiler.MODE_PAUSE" };
|
|
7
|
+
const MODE_RECORD: number & { readonly __brand: "profiler.MODE_RECORD" };
|
|
8
|
+
const MODE_RUN: number & { readonly __brand: "profiler.MODE_RUN" };
|
|
9
|
+
const MODE_SHOW_PEAK_FRAME: number & { readonly __brand: "profiler.MODE_SHOW_PEAK_FRAME" };
|
|
10
|
+
const VIEW_MODE_FULL: number & { readonly __brand: "profiler.VIEW_MODE_FULL" };
|
|
11
|
+
const VIEW_MODE_MINIMIZED: number & { readonly __brand: "profiler.VIEW_MODE_MINIMIZED" };
|
|
12
|
+
function dump_frame(): void;
|
|
13
|
+
function enable(enabled: boolean): void;
|
|
14
|
+
function enable_ui(enabled: boolean): void;
|
|
15
|
+
function get_cpu_usage(): number;
|
|
16
|
+
function get_memory_usage(): number;
|
|
17
|
+
function log_text(text: string): void;
|
|
18
|
+
function recorded_frame_count(): number;
|
|
19
|
+
function scope_begin(name: string): void;
|
|
20
|
+
function scope_end(): void;
|
|
21
|
+
function set_ui_mode(mode: Opaque<"constant">): void;
|
|
22
|
+
function set_ui_view_mode(mode: Opaque<"constant">): void;
|
|
23
|
+
function set_ui_vsync_wait_visible(visible: boolean): void;
|
|
24
|
+
function view_recorded_frame(frame_index: Record<string | number, unknown>): void;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
declare global {
|
|
3
|
+
namespace push {
|
|
4
|
+
function cancel(id: number): void;
|
|
5
|
+
function cancel_all_issued(): void;
|
|
6
|
+
function get_all_scheduled(): Record<string | number, unknown>;
|
|
7
|
+
function get_scheduled(id: number): Record<string | number, unknown>;
|
|
8
|
+
function register(notifications: Record<string | number, unknown>, callback: (...args: unknown[]) => unknown): void;
|
|
9
|
+
function schedule(time: number, title: string, alert: string, payload: string, notification_settings: Record<string | number, unknown>): LuaMultiReturn<[number, string]>;
|
|
10
|
+
function set_badge_count(count: number): void;
|
|
11
|
+
function set_listener(listener: (...args: unknown[]) => unknown): void;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export {};
|