xray16 1.6.0 → 1.6.2
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/package.json +12 -6
- package/xray16.d.ts +30852 -0
- package/types/index.d.ts +0 -55
- package/types/internal.d.ts +0 -6
- package/types/xr_ai/xr_action.d.ts +0 -1803
- package/types/xr_ai/xr_alife.d.ts +0 -1872
- package/types/xr_ai/xr_enemy_evaluation.d.ts +0 -134
- package/types/xr_ai/xr_goap.d.ts +0 -1118
- package/types/xr_ai/xr_graph.d.ts +0 -135
- package/types/xr_ai/xr_memory.d.ts +0 -384
- package/types/xr_lib/xr_animation.d.ts +0 -252
- package/types/xr_lib/xr_bitwise.d.ts +0 -44
- package/types/xr_lib/xr_color.d.ts +0 -142
- package/types/xr_lib/xr_debug.d.ts +0 -183
- package/types/xr_lib/xr_dialog.d.ts +0 -132
- package/types/xr_lib/xr_flags.d.ts +0 -592
- package/types/xr_lib/xr_fs.d.ts +0 -617
- package/types/xr_lib/xr_game.d.ts +0 -362
- package/types/xr_lib/xr_hit.d.ts +0 -127
- package/types/xr_lib/xr_ini.d.ts +0 -475
- package/types/xr_lib/xr_level.d.ts +0 -797
- package/types/xr_lib/xr_luabind.d.ts +0 -90
- package/types/xr_lib/xr_map.d.ts +0 -194
- package/types/xr_lib/xr_math.d.ts +0 -871
- package/types/xr_lib/xr_multiplayer.d.ts +0 -1081
- package/types/xr_lib/xr_profile.d.ts +0 -272
- package/types/xr_lib/xr_properties.d.ts +0 -612
- package/types/xr_lib/xr_relation.d.ts +0 -231
- package/types/xr_lib/xr_render.d.ts +0 -167
- package/types/xr_lib/xr_save.d.ts +0 -835
- package/types/xr_lib/xr_sound.d.ts +0 -517
- package/types/xr_lib/xr_stats.ts +0 -51
- package/types/xr_lib/xr_task.d.ts +0 -390
- package/types/xr_lib/xr_time.d.ts +0 -177
- package/types/xr_lib/xr_type.d.ts +0 -70
- package/types/xr_object/client/xr_anomaly.d.ts +0 -70
- package/types/xr_object/client/xr_artefact.d.ts +0 -153
- package/types/xr_object/client/xr_client_object.d.ts +0 -207
- package/types/xr_object/client/xr_creature.d.ts +0 -243
- package/types/xr_object/client/xr_item.d.ts +0 -370
- package/types/xr_object/client/xr_level.d.ts +0 -755
- package/types/xr_object/client/xr_physic.d.ts +0 -644
- package/types/xr_object/client/xr_zone.d.ts +0 -85
- package/types/xr_object/script/xr_script_interface.d.ts +0 -1142
- package/types/xr_object/script/xr_script_object.d.ts +0 -5702
- package/types/xr_object/script/xr_script_trade.d.ts +0 -51
- package/types/xr_object/server/xr_server_object.d.ts +0 -1488
- package/types/xr_ui/xr_ui_asset.d.ts +0 -364
- package/types/xr_ui/xr_ui_core.d.ts +0 -426
- package/types/xr_ui/xr_ui_event.d.ts +0 -1449
- package/types/xr_ui/xr_ui_interface.d.ts +0 -2449
- package/types/xr_ui/xr_ui_menu.d.ts +0 -401
- package/types/xrf_plugin.d.ts +0 -111
|
@@ -1,612 +0,0 @@
|
|
|
1
|
-
import type { Nullable } from "../internal";
|
|
2
|
-
|
|
3
|
-
declare module "xray16" {
|
|
4
|
-
/**
|
|
5
|
-
* Named integer token used by editor property lists.
|
|
6
|
-
*
|
|
7
|
-
* @source C++ class token
|
|
8
|
-
* @customConstructor token
|
|
9
|
-
* @group xr_properties
|
|
10
|
-
*/
|
|
11
|
-
export class token {
|
|
12
|
-
/**
|
|
13
|
-
* Numeric value stored for this token.
|
|
14
|
-
*/
|
|
15
|
-
public id: i32;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Display name used in editor lists.
|
|
19
|
-
*/
|
|
20
|
-
public name: string;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Engine-created token.
|
|
24
|
-
*/
|
|
25
|
-
private constructor();
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Ordered list of string tokens for runtime-selectable editor values.
|
|
30
|
-
*
|
|
31
|
-
* @source C++ class rtoken_list
|
|
32
|
-
* @customConstructor rtoken_list
|
|
33
|
-
* @group xr_properties
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* Used by editor property rows that need a list of strings computed at runtime.
|
|
37
|
-
*/
|
|
38
|
-
export class rtoken_list {
|
|
39
|
-
/**
|
|
40
|
-
* Create an empty token list.
|
|
41
|
-
*/
|
|
42
|
-
public constructor();
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Remove token by zero-based index.
|
|
46
|
-
*
|
|
47
|
-
* @remarks
|
|
48
|
-
* Out-of-range indexes are ignored.
|
|
49
|
-
*
|
|
50
|
-
* @param index - Token index.
|
|
51
|
-
*/
|
|
52
|
-
public remove(index: u32): void;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Get token text by zero-based index.
|
|
56
|
-
*
|
|
57
|
-
* @param index - Token index.
|
|
58
|
-
* @returns Token text, or `null` from native code when index is out of range.
|
|
59
|
-
*/
|
|
60
|
-
public get(index: u32): Nullable<string>;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Get number of tokens in the list.
|
|
64
|
-
*
|
|
65
|
-
* @returns Token count.
|
|
66
|
-
*/
|
|
67
|
-
public count(): u32;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Append a token.
|
|
71
|
-
*
|
|
72
|
-
* @param token - Token text.
|
|
73
|
-
*/
|
|
74
|
-
public add(token: string): void;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Remove all tokens.
|
|
78
|
-
*/
|
|
79
|
-
public clear(): void;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Name-to-id token list for editor dropdown values.
|
|
84
|
-
*
|
|
85
|
-
* @source C++ class token_list
|
|
86
|
-
* @customConstructor token_list
|
|
87
|
-
* @group xr_properties
|
|
88
|
-
*
|
|
89
|
-
* @remarks
|
|
90
|
-
* The native list keeps a trailing sentinel entry for editor APIs; script code only works with named entries.
|
|
91
|
-
*/
|
|
92
|
-
export class token_list {
|
|
93
|
-
/**
|
|
94
|
-
* Create an empty token list.
|
|
95
|
-
*/
|
|
96
|
-
public constructor();
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Remove token by text.
|
|
100
|
-
*
|
|
101
|
-
* @remarks
|
|
102
|
-
* Missing tokens are logged and otherwise ignored.
|
|
103
|
-
*
|
|
104
|
-
* @param token - Token text.
|
|
105
|
-
*/
|
|
106
|
-
public remove(token: string): void;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Find numeric id for a token.
|
|
110
|
-
*
|
|
111
|
-
* @remarks
|
|
112
|
-
* The token must exist. Native code verifies the lookup result.
|
|
113
|
-
*
|
|
114
|
-
* @param token - Token text.
|
|
115
|
-
* @returns Token id.
|
|
116
|
-
*/
|
|
117
|
-
public id(token: string): i32;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Find token text by numeric id.
|
|
121
|
-
*
|
|
122
|
-
* @remarks
|
|
123
|
-
* The id must exist. Native code verifies the lookup result.
|
|
124
|
-
*
|
|
125
|
-
* @param id - Token id.
|
|
126
|
-
* @returns Token text.
|
|
127
|
-
*/
|
|
128
|
-
public name(id: i32): string;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Add a token/id pair.
|
|
132
|
-
*
|
|
133
|
-
* @remarks
|
|
134
|
-
* Both token text and id must be unique in the list.
|
|
135
|
-
*
|
|
136
|
-
* @param token - Token text.
|
|
137
|
-
* @param id - Numeric token id.
|
|
138
|
-
*/
|
|
139
|
-
public add(token: string, id: i32): void;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Remove all tokens.
|
|
143
|
-
*/
|
|
144
|
-
public clear(): void;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Helper for building editor property rows for spawned objects.
|
|
149
|
-
*
|
|
150
|
-
* @source C++ class properties_list_helper
|
|
151
|
-
* @customConstructor properties_list_helper
|
|
152
|
-
* @group xr_properties
|
|
153
|
-
*
|
|
154
|
-
* @remarks
|
|
155
|
-
* This is an editor bridge. Most methods require a real editor property item list and a server object that owns
|
|
156
|
-
* the wrapped field; they are not useful in ordinary gameplay scripts.
|
|
157
|
-
*/
|
|
158
|
-
export class properties_list_helper extends EngineBinding {
|
|
159
|
-
/**
|
|
160
|
-
* Create a 3-axis angle property.
|
|
161
|
-
*
|
|
162
|
-
* @remarks
|
|
163
|
-
* Bound object field must be an `Fvector`.
|
|
164
|
-
*
|
|
165
|
-
* @returns Engine property value handle.
|
|
166
|
-
*/
|
|
167
|
-
public create_vangle(): unknown;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Create an angle property.
|
|
171
|
-
*
|
|
172
|
-
* @remarks
|
|
173
|
-
* Bound object field must be a float.
|
|
174
|
-
*
|
|
175
|
-
* @returns Engine property value handle.
|
|
176
|
-
*/
|
|
177
|
-
public create_angle(): unknown;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Create a time property.
|
|
181
|
-
*
|
|
182
|
-
* @remarks
|
|
183
|
-
* Bound object field must be a float.
|
|
184
|
-
*
|
|
185
|
-
* @returns Engine property value handle.
|
|
186
|
-
*/
|
|
187
|
-
public create_time(): unknown;
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Create a color property.
|
|
191
|
-
*
|
|
192
|
-
* @remarks
|
|
193
|
-
* Bound object field must be a 32-bit color value.
|
|
194
|
-
*
|
|
195
|
-
* @returns Engine property value handle.
|
|
196
|
-
*/
|
|
197
|
-
public create_color(): unknown;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Create a vector color property.
|
|
201
|
-
*
|
|
202
|
-
* @remarks
|
|
203
|
-
* Bound object field must be an `Fvector`.
|
|
204
|
-
*
|
|
205
|
-
* @returns Engine property value handle.
|
|
206
|
-
*/
|
|
207
|
-
public create_vcolor(): unknown;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Create a float color property.
|
|
211
|
-
*
|
|
212
|
-
* @remarks
|
|
213
|
-
* Bound object field must be an `Fcolor`.
|
|
214
|
-
*
|
|
215
|
-
* @returns Engine property value handle.
|
|
216
|
-
*/
|
|
217
|
-
public create_fcolor(): unknown;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Create a runtime token list property.
|
|
221
|
-
*
|
|
222
|
-
* @remarks
|
|
223
|
-
* Requires an `rtoken_list`; keep it alive while the editor property uses it.
|
|
224
|
-
*
|
|
225
|
-
* @returns Engine property value handle.
|
|
226
|
-
*/
|
|
227
|
-
public create_list(): unknown;
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Create an 8-bit token property.
|
|
231
|
-
*
|
|
232
|
-
* @remarks
|
|
233
|
-
* Requires a `token_list`; ids must fit into an unsigned 8-bit value.
|
|
234
|
-
*
|
|
235
|
-
* @returns Engine property value handle.
|
|
236
|
-
*/
|
|
237
|
-
public create_token8(): unknown;
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* Create a 16-bit token property.
|
|
241
|
-
*
|
|
242
|
-
* @remarks
|
|
243
|
-
* Requires a `token_list`; ids must fit into an unsigned 16-bit value.
|
|
244
|
-
*
|
|
245
|
-
* @returns Engine property value handle.
|
|
246
|
-
*/
|
|
247
|
-
public create_token16(): unknown;
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* Create a 32-bit token property.
|
|
251
|
-
*
|
|
252
|
-
* @remarks
|
|
253
|
-
* Requires a `token_list`; ids are stored as unsigned 32-bit values.
|
|
254
|
-
*
|
|
255
|
-
* @returns Engine property value handle.
|
|
256
|
-
*/
|
|
257
|
-
public create_token32(): unknown;
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* Create an 8-bit flag property.
|
|
261
|
-
*
|
|
262
|
-
* @remarks
|
|
263
|
-
* Binds individual bit toggles to an unsigned 8-bit integer field.
|
|
264
|
-
*
|
|
265
|
-
* @returns Engine property value handle.
|
|
266
|
-
*/
|
|
267
|
-
public create_flag8(): unknown;
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Create a 16-bit flag property.
|
|
271
|
-
*
|
|
272
|
-
* @remarks
|
|
273
|
-
* Binds individual bit toggles to an unsigned 16-bit integer field.
|
|
274
|
-
*
|
|
275
|
-
* @returns Engine property value handle.
|
|
276
|
-
*/
|
|
277
|
-
public create_flag16(): unknown;
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Create a 32-bit flag property.
|
|
281
|
-
*
|
|
282
|
-
* @remarks
|
|
283
|
-
* Binds individual bit toggles to an unsigned 32-bit integer field.
|
|
284
|
-
*
|
|
285
|
-
* @returns Engine property value handle.
|
|
286
|
-
*/
|
|
287
|
-
public create_flag32(): unknown;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Create a vector property.
|
|
291
|
-
*
|
|
292
|
-
* @remarks
|
|
293
|
-
* Bound object field must be an `Fvector`.
|
|
294
|
-
*
|
|
295
|
-
* @returns Engine property value handle.
|
|
296
|
-
*/
|
|
297
|
-
public create_vector(): unknown;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Create a boolean property bound to an object field.
|
|
301
|
-
*
|
|
302
|
-
* @remarks
|
|
303
|
-
* The native helper wraps `value[id]` and attaches the wrapper to `object`, so `object` must be a server object.
|
|
304
|
-
*
|
|
305
|
-
* @param items - Property item list to append to.
|
|
306
|
-
* @param path - Property path or caption.
|
|
307
|
-
* @param object - Spawn object owning the property.
|
|
308
|
-
* @param value - Property storage descriptor.
|
|
309
|
-
* @param id - Field identifier used by the editor bridge.
|
|
310
|
-
* @returns Whether the property was created.
|
|
311
|
-
*/
|
|
312
|
-
public create_bool(
|
|
313
|
-
items: LuaTable<number>,
|
|
314
|
-
path: string,
|
|
315
|
-
object: cse_abstract,
|
|
316
|
-
value: unknown,
|
|
317
|
-
id: number | string
|
|
318
|
-
): boolean;
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* Create a float property.
|
|
322
|
-
*
|
|
323
|
-
* @remarks
|
|
324
|
-
* Bound object field must be a float. Native overloads may also carry min/max/default editor values.
|
|
325
|
-
*
|
|
326
|
-
* @returns Engine property value handle.
|
|
327
|
-
*/
|
|
328
|
-
public create_float(): unknown;
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* Create an unsigned 8-bit integer property.
|
|
332
|
-
*
|
|
333
|
-
* @remarks
|
|
334
|
-
* Bound object field must fit into an unsigned 8-bit value.
|
|
335
|
-
*
|
|
336
|
-
* @returns Engine property value handle.
|
|
337
|
-
*/
|
|
338
|
-
public create_u8(): unknown;
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* Create an unsigned 16-bit integer property.
|
|
342
|
-
*
|
|
343
|
-
* @remarks
|
|
344
|
-
* Bound object field must fit into an unsigned 16-bit value.
|
|
345
|
-
*
|
|
346
|
-
* @returns Engine property value handle.
|
|
347
|
-
*/
|
|
348
|
-
public create_u16(): unknown;
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* Create an unsigned 32-bit integer property.
|
|
352
|
-
*
|
|
353
|
-
* @remarks
|
|
354
|
-
* Bound object field must fit into an unsigned 32-bit value.
|
|
355
|
-
*
|
|
356
|
-
* @returns Engine property value handle.
|
|
357
|
-
*/
|
|
358
|
-
public create_u32(): unknown;
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
* Create a signed 32-bit integer property.
|
|
362
|
-
*
|
|
363
|
-
* @remarks
|
|
364
|
-
* Bound object field must fit into a signed 32-bit value.
|
|
365
|
-
*
|
|
366
|
-
* @returns Engine property value handle.
|
|
367
|
-
*/
|
|
368
|
-
public create_s32(): unknown;
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* Create a signed 16-bit integer property.
|
|
372
|
-
*
|
|
373
|
-
* @remarks
|
|
374
|
-
* Bound object field must fit into a signed 16-bit value.
|
|
375
|
-
*
|
|
376
|
-
* @returns Engine property value handle.
|
|
377
|
-
*/
|
|
378
|
-
public create_s16(): unknown;
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* Create an asset/object chooser property.
|
|
382
|
-
*
|
|
383
|
-
* @remarks
|
|
384
|
-
* Requires a chooser mode and a string-like field that receives the selected section, asset, or path.
|
|
385
|
-
*
|
|
386
|
-
* @returns Engine property value handle.
|
|
387
|
-
*/
|
|
388
|
-
public create_choose(): unknown;
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Create a button property.
|
|
392
|
-
*
|
|
393
|
-
* @remarks
|
|
394
|
-
* Editor-only command row. Use it to expose an action callback, not persistent object data.
|
|
395
|
-
*
|
|
396
|
-
* @returns Engine property value handle.
|
|
397
|
-
*/
|
|
398
|
-
public create_button(): unknown;
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* Create a custom canvas property.
|
|
402
|
-
*
|
|
403
|
-
* @remarks
|
|
404
|
-
* Editor-only drawing surface for custom property UI.
|
|
405
|
-
*
|
|
406
|
-
* @returns Engine property value handle.
|
|
407
|
-
*/
|
|
408
|
-
public create_canvas(): unknown;
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* Create a read-only caption row.
|
|
412
|
-
*
|
|
413
|
-
* @remarks
|
|
414
|
-
* Editor-only label row used to group or explain nearby properties.
|
|
415
|
-
*
|
|
416
|
-
* @returns Engine property value handle.
|
|
417
|
-
*/
|
|
418
|
-
public create_caption(): unknown;
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* Callback used after editing a float property.
|
|
422
|
-
*
|
|
423
|
-
* @remarks
|
|
424
|
-
* Editor bridge callback. Native code passes the edited value through an output argument.
|
|
425
|
-
*
|
|
426
|
-
* @returns Engine callback result.
|
|
427
|
-
*/
|
|
428
|
-
public float_on_after_edit(): unknown;
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* Callback used before editing a float property.
|
|
432
|
-
*
|
|
433
|
-
* @remarks
|
|
434
|
-
* Editor bridge callback. Native code passes the current value through an output argument.
|
|
435
|
-
*
|
|
436
|
-
* @returns Engine callback result.
|
|
437
|
-
*/
|
|
438
|
-
public float_on_before_edit(): unknown;
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* Callback used after editing an object name.
|
|
442
|
-
*
|
|
443
|
-
* @remarks
|
|
444
|
-
* Editor bridge callback. Native code passes the edited name through an output argument.
|
|
445
|
-
*
|
|
446
|
-
* @returns Engine callback result.
|
|
447
|
-
*/
|
|
448
|
-
public name_after_edit(): unknown;
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Callback used before editing an object name.
|
|
452
|
-
*
|
|
453
|
-
* @remarks
|
|
454
|
-
* Editor bridge callback. Native code passes the current name through an output argument.
|
|
455
|
-
*
|
|
456
|
-
* @returns Engine callback result.
|
|
457
|
-
*/
|
|
458
|
-
public name_before_edit(): unknown;
|
|
459
|
-
|
|
460
|
-
/**
|
|
461
|
-
* Callback used before editing a vector property.
|
|
462
|
-
*
|
|
463
|
-
* @remarks
|
|
464
|
-
* Editor bridge callback for vector rows, usually used to prepare a value before the editor opens.
|
|
465
|
-
*
|
|
466
|
-
* @returns Engine callback result.
|
|
467
|
-
*/
|
|
468
|
-
public vector_on_before_edit(): unknown;
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* Callback used after editing a vector property.
|
|
472
|
-
*
|
|
473
|
-
* @remarks
|
|
474
|
-
* Editor bridge callback for vector rows, usually used to accept or normalize the edited value.
|
|
475
|
-
*
|
|
476
|
-
* @returns Engine callback result.
|
|
477
|
-
*/
|
|
478
|
-
public vector_on_after_edit(): unknown;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Global editor properties helper.
|
|
483
|
-
*
|
|
484
|
-
* @source C++ class properties_helper
|
|
485
|
-
* @customConstructor properties_helper
|
|
486
|
-
* @group xr_properties
|
|
487
|
-
*
|
|
488
|
-
* @remarks
|
|
489
|
-
* Only available when the editor property helper library is loaded. Outside that context the native accessor logs
|
|
490
|
-
* an error and returns no usable helper.
|
|
491
|
-
*/
|
|
492
|
-
export class properties_helper extends properties_list_helper {}
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* Base editor property value wrapper.
|
|
496
|
-
*
|
|
497
|
-
* @source C++ class prop_value
|
|
498
|
-
* @customConstructor prop_value
|
|
499
|
-
* @group xr_properties
|
|
500
|
-
*
|
|
501
|
-
* @remarks
|
|
502
|
-
* These helpers are downcasts to concrete editor property value types. Use only when the property was created as
|
|
503
|
-
* that matching kind.
|
|
504
|
-
*/
|
|
505
|
-
export class prop_value {
|
|
506
|
-
/**
|
|
507
|
-
* Treat this property value as a 16-bit token value.
|
|
508
|
-
*
|
|
509
|
-
* @remarks
|
|
510
|
-
* Use only for properties originally created as 16-bit token values.
|
|
511
|
-
*
|
|
512
|
-
* @returns Engine property value handle.
|
|
513
|
-
*/
|
|
514
|
-
public token16_value(): unknown;
|
|
515
|
-
|
|
516
|
-
/**
|
|
517
|
-
* Treat this property value as a 32-bit flag value.
|
|
518
|
-
*
|
|
519
|
-
* @remarks
|
|
520
|
-
* Use only for properties originally created as 32-bit flag values.
|
|
521
|
-
*
|
|
522
|
-
* @returns Engine property value handle.
|
|
523
|
-
*/
|
|
524
|
-
public flag32_value(): unknown;
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* Treat this property value as text.
|
|
528
|
-
*
|
|
529
|
-
* @remarks
|
|
530
|
-
* Use only for properties originally created as text values.
|
|
531
|
-
*
|
|
532
|
-
* @returns Engine property value handle.
|
|
533
|
-
*/
|
|
534
|
-
public text_value(): unknown;
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* Treat this property value as a boolean.
|
|
538
|
-
*
|
|
539
|
-
* @remarks
|
|
540
|
-
* Use only for properties originally created as boolean values.
|
|
541
|
-
*
|
|
542
|
-
* @returns Engine property value handle.
|
|
543
|
-
*/
|
|
544
|
-
public bool_value(): unknown;
|
|
545
|
-
|
|
546
|
-
/**
|
|
547
|
-
* Treat this property value as an unsigned 16-bit integer.
|
|
548
|
-
*
|
|
549
|
-
* @remarks
|
|
550
|
-
* Use only for properties originally created as unsigned 16-bit values.
|
|
551
|
-
*
|
|
552
|
-
* @returns Engine property value handle.
|
|
553
|
-
*/
|
|
554
|
-
public u16_value(): unknown;
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* Treat this property value as a signed 16-bit integer.
|
|
558
|
-
*
|
|
559
|
-
* @remarks
|
|
560
|
-
* Use only for properties originally created as signed 16-bit values.
|
|
561
|
-
*
|
|
562
|
-
* @returns Engine property value handle.
|
|
563
|
-
*/
|
|
564
|
-
public s16_value(): unknown;
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* Treat this property value as a button.
|
|
568
|
-
*
|
|
569
|
-
* @remarks
|
|
570
|
-
* Use only for properties originally created as button rows.
|
|
571
|
-
*
|
|
572
|
-
* @returns Engine property value handle.
|
|
573
|
-
*/
|
|
574
|
-
public button_value(): unknown;
|
|
575
|
-
|
|
576
|
-
/**
|
|
577
|
-
* Treat this property value as a caption.
|
|
578
|
-
*
|
|
579
|
-
* @remarks
|
|
580
|
-
* Use only for properties originally created as caption rows.
|
|
581
|
-
*
|
|
582
|
-
* @returns Engine property value handle.
|
|
583
|
-
*/
|
|
584
|
-
public caption_value(): unknown;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
* Texture atlas entry exposed by UI texture metadata.
|
|
589
|
-
*
|
|
590
|
-
* @source C++ class TEX_INFO
|
|
591
|
-
* @customConstructor TEX_INFO
|
|
592
|
-
* @group xr_properties
|
|
593
|
-
*
|
|
594
|
-
* @remarks
|
|
595
|
-
* Metadata is borrowed from the engine UI texture atlas; use it for inspection, not ownership.
|
|
596
|
-
*/
|
|
597
|
-
export class TEX_INFO {
|
|
598
|
-
/**
|
|
599
|
-
* Get rectangle occupied by this texture in the atlas.
|
|
600
|
-
*
|
|
601
|
-
* @returns Texture rectangle.
|
|
602
|
-
*/
|
|
603
|
-
public get_rect(): Frect;
|
|
604
|
-
|
|
605
|
-
/**
|
|
606
|
-
* Get source texture file name.
|
|
607
|
-
*
|
|
608
|
-
* @returns Texture file name.
|
|
609
|
-
*/
|
|
610
|
-
public get_file_name(): string;
|
|
611
|
-
}
|
|
612
|
-
}
|