xray16 1.0.12 → 1.0.14

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xray16",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "author": "Neloreck",
5
5
  "repository": "https://github.com/stalker-xrts/xray-16-types",
6
6
  "private": false,
@@ -55,7 +55,7 @@ declare module "xray16" {
55
55
 
56
56
  public spawn_id(value: u32): u16;
57
57
 
58
- public story_object(value: u32): cse_alife_object;
58
+ public story_object(value: u32): cse_alife_object | null;
59
59
 
60
60
  /**
61
61
  * @returns alife server-client switch distance
@@ -135,12 +135,17 @@ declare module "xray16" {
135
135
  /**
136
136
  * @group xr_game
137
137
  */
138
- export function set_start_position(position: vector): void;
138
+ export function set_start_position(this: void, position: vector): void;
139
139
 
140
140
  /**
141
141
  * @group xr_game
142
142
  */
143
- export function set_start_game_vertex_id(gvid: i32): void;
143
+ export function set_start_direction(this: void, direction: vector): void;
144
+
145
+ /**
146
+ * @group xr_game
147
+ */
148
+ export function set_start_game_vertex_id(this: void, gvid: i32): void;
144
149
 
145
150
  /**
146
151
  * @group xr_game
@@ -78,7 +78,7 @@ declare module "xray16" {
78
78
  local_animation: boolean
79
79
  ): void;
80
80
 
81
- public action(): entity_action;
81
+ public action(): entity_action | null;
82
82
 
83
83
  public action_count(): u32;
84
84