xray16 1.0.15 → 1.0.17
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 +1 -1
- package/types/xr_lib/xr_ini.d.ts +12 -0
- package/types/xr_lib/xr_save.d.ts +2 -2
- package/types/xr_lib/xr_task.d.ts +1 -1
- package/types/xr_object/client/xr_physic.d.ts +2 -2
- package/types/xr_object/script/xr_script_object.d.ts +16 -6
- package/types/xr_object/server/xr_server_object.d.ts +5 -5
- package/types/xr_ui/xr_ui_interface.d.ts +1 -1
package/package.json
CHANGED
package/types/xr_lib/xr_ini.d.ts
CHANGED
|
@@ -76,6 +76,18 @@ declare module "xray16" {
|
|
|
76
76
|
|
|
77
77
|
public r_string_wq(section: string, field: string): string;
|
|
78
78
|
|
|
79
|
+
/**
|
|
80
|
+
* @param section - ini file section
|
|
81
|
+
* @param field - ini section field
|
|
82
|
+
* @returns if quoted, parsed string data inside quotes including spaces, else is same data as with r_string
|
|
83
|
+
*/
|
|
84
|
+
public r_string_wb(section: string, field: string): string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @param section - ini file section
|
|
88
|
+
* @param field - ini section field
|
|
89
|
+
* @returns raw string from ltx file without spaces in it
|
|
90
|
+
*/
|
|
79
91
|
public r_string(section: string, field: string): string;
|
|
80
92
|
|
|
81
93
|
/**
|
|
@@ -65,7 +65,7 @@ declare module "xray16" {
|
|
|
65
65
|
|
|
66
66
|
public r_seek(value: u32): void;
|
|
67
67
|
|
|
68
|
-
public r_stringZ<T extends string>(): T;
|
|
68
|
+
public r_stringZ<T extends string = string>(): T;
|
|
69
69
|
|
|
70
70
|
public r_tell(): u32;
|
|
71
71
|
|
|
@@ -166,7 +166,7 @@ declare module "xray16" {
|
|
|
166
166
|
|
|
167
167
|
public r_bool(): boolean;
|
|
168
168
|
|
|
169
|
-
public r_stringZ<T extends string>(): T;
|
|
169
|
+
public r_stringZ<T extends string = string>(): T;
|
|
170
170
|
|
|
171
171
|
public r_float<T extends f32>(value?: T): T;
|
|
172
172
|
|
|
@@ -39,7 +39,7 @@ declare module "xray16" {
|
|
|
39
39
|
|
|
40
40
|
public set_icon_name(icon_name: string): void;
|
|
41
41
|
|
|
42
|
-
public get_icon_name<T extends string>(): T | null;
|
|
42
|
+
public get_icon_name<T extends string = string>(): T | null;
|
|
43
43
|
|
|
44
44
|
public set_description(description: string): void;
|
|
45
45
|
|
|
@@ -35,7 +35,7 @@ declare module "xray16" {
|
|
|
35
35
|
* @group xr_physic
|
|
36
36
|
*/
|
|
37
37
|
export class particles_object {
|
|
38
|
-
public constructor(
|
|
38
|
+
public constructor(name: string);
|
|
39
39
|
|
|
40
40
|
public pause_path(value: boolean): void;
|
|
41
41
|
|
|
@@ -47,7 +47,7 @@ declare module "xray16" {
|
|
|
47
47
|
|
|
48
48
|
public load_path(path: string): void;
|
|
49
49
|
|
|
50
|
-
public start_path(
|
|
50
|
+
public start_path(is_looped: boolean): void;
|
|
51
51
|
|
|
52
52
|
public stop(): void;
|
|
53
53
|
|
|
@@ -322,9 +322,9 @@ declare module "xray16" {
|
|
|
322
322
|
|
|
323
323
|
public change_team(team_id: u8, squad_id: u8, group_id: u8): void;
|
|
324
324
|
|
|
325
|
-
public character_icon<T extends string>(): T;
|
|
325
|
+
public character_icon<T extends string = string>(): T;
|
|
326
326
|
|
|
327
|
-
public character_name<T extends string>(): T;
|
|
327
|
+
public character_name<T extends string = string>(): T;
|
|
328
328
|
|
|
329
329
|
public character_rank(): i32;
|
|
330
330
|
|
|
@@ -400,7 +400,7 @@ declare module "xray16" {
|
|
|
400
400
|
*/
|
|
401
401
|
public get_script_name(): string;
|
|
402
402
|
|
|
403
|
-
public get_visual_name<T extends string>(): T;
|
|
403
|
+
public get_visual_name<T extends string = string>(): T;
|
|
404
404
|
|
|
405
405
|
public has_info(value: string): boolean;
|
|
406
406
|
|
|
@@ -532,7 +532,7 @@ declare module "xray16" {
|
|
|
532
532
|
|
|
533
533
|
public sniper_update_rate(value: boolean): void;
|
|
534
534
|
|
|
535
|
-
public spawn_ini(): ini_file;
|
|
535
|
+
public spawn_ini(): ini_file | null;
|
|
536
536
|
|
|
537
537
|
public special_danger_move(): boolean;
|
|
538
538
|
|
|
@@ -967,7 +967,17 @@ declare module "xray16" {
|
|
|
967
967
|
type?: Maybe<i32>
|
|
968
968
|
): void;
|
|
969
969
|
|
|
970
|
-
|
|
970
|
+
/**
|
|
971
|
+
* @param position - target position to check
|
|
972
|
+
* @returns if target position is accessible by the object
|
|
973
|
+
*/
|
|
974
|
+
public accessible(position: vector): boolean;
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* @param vertexId - target vertex ID to check
|
|
978
|
+
* @returns if target vertex is accessible by the object
|
|
979
|
+
*/
|
|
980
|
+
public accessible(vertexId: u32): boolean;
|
|
971
981
|
|
|
972
982
|
public accuracy(): f32;
|
|
973
983
|
|
|
@@ -1070,7 +1080,7 @@ declare module "xray16" {
|
|
|
1070
1080
|
/**
|
|
1071
1081
|
* @returns object community like `monolith`, `stalker` or `zombied`
|
|
1072
1082
|
*/
|
|
1073
|
-
public character_community<T extends string>(): T;
|
|
1083
|
+
public character_community<T extends string = string>(): T;
|
|
1074
1084
|
|
|
1075
1085
|
public external_sound_stop(): void;
|
|
1076
1086
|
|
|
@@ -127,13 +127,13 @@ declare module "xray16" {
|
|
|
127
127
|
|
|
128
128
|
public constructor(section: string);
|
|
129
129
|
|
|
130
|
-
public name<T extends string>(): T;
|
|
130
|
+
public name<T extends string = string>(): T;
|
|
131
131
|
|
|
132
132
|
public clsid(): TXR_class_id;
|
|
133
133
|
|
|
134
|
-
public spawn_ini(): ini_file;
|
|
134
|
+
public spawn_ini(): ini_file | null;
|
|
135
135
|
|
|
136
|
-
public section_name<T extends string>(): T;
|
|
136
|
+
public section_name<T extends string = string>(): T;
|
|
137
137
|
|
|
138
138
|
public UPDATE_Read(packet: net_packet): void;
|
|
139
139
|
|
|
@@ -316,7 +316,7 @@ declare module "xray16" {
|
|
|
316
316
|
/**
|
|
317
317
|
* @returns object community like `monolith`, `stalker` or `zombied`
|
|
318
318
|
*/
|
|
319
|
-
public community<T extends string>(): T;
|
|
319
|
+
public community<T extends string = string>(): T;
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
/**
|
|
@@ -698,7 +698,7 @@ declare module "xray16" {
|
|
|
698
698
|
* @group xr_object_server
|
|
699
699
|
*/
|
|
700
700
|
export class cse_smart_cover extends cse_alife_dynamic_object {
|
|
701
|
-
public description<T extends string>(): T | null;
|
|
701
|
+
public description<T extends string = string>(): T | null;
|
|
702
702
|
|
|
703
703
|
public set_available_loopholes(object: unknown): void;
|
|
704
704
|
|
|
@@ -386,7 +386,7 @@ declare module "xray16" {
|
|
|
386
386
|
export class CUIMapList extends CUIWindow {
|
|
387
387
|
public ClearList(): void;
|
|
388
388
|
|
|
389
|
-
public GetCommandLine<T extends string>(value: string): T;
|
|
389
|
+
public GetCommandLine<T extends string = string>(value: string): T;
|
|
390
390
|
|
|
391
391
|
public GetCurGameType(): TXR_GAME_TYPE;
|
|
392
392
|
|