factorio-types 0.0.21 → 0.0.22
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/dist/classes.d.ts +163 -19
- package/dist/concepts.d.ts +1 -1
- package/dist/defines.d.ts +1 -1
- package/dist/events.d.ts +4 -6
- package/dist/global.d.ts +1 -1
- package/package.json +1 -1
package/dist/classes.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.57
|
|
6
6
|
// API version 2
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1498,22 +1498,22 @@ interface LuaCustomInputPrototype {
|
|
|
1498
1498
|
readonly consuming: string
|
|
1499
1499
|
|
|
1500
1500
|
/**
|
|
1501
|
-
*
|
|
1501
|
+
* Whether this custom input is enabled. Disabled custom inputs exist but are not used by the game.
|
|
1502
1502
|
*/
|
|
1503
1503
|
readonly enabled: boolean
|
|
1504
1504
|
|
|
1505
1505
|
/**
|
|
1506
|
-
*
|
|
1506
|
+
* Whether this custom input is enabled while using the cutscene controller.
|
|
1507
1507
|
*/
|
|
1508
1508
|
readonly enabled_while_in_cutscene: boolean
|
|
1509
1509
|
|
|
1510
1510
|
/**
|
|
1511
|
-
*
|
|
1511
|
+
* Whether this custom input is enabled while using the spectator controller.
|
|
1512
1512
|
*/
|
|
1513
1513
|
readonly enabled_while_spectating: boolean
|
|
1514
1514
|
|
|
1515
1515
|
/**
|
|
1516
|
-
*
|
|
1516
|
+
* Whether this custom input will include the selected prototype (if any) when triggered.
|
|
1517
1517
|
*/
|
|
1518
1518
|
readonly include_selected_prototype: boolean
|
|
1519
1519
|
|
|
@@ -2380,7 +2380,7 @@ interface LuaEntity extends LuaControl {
|
|
|
2380
2380
|
is_connected_to_electric_network(this: void): void
|
|
2381
2381
|
|
|
2382
2382
|
/**
|
|
2383
|
-
* Returns whether a craft is currently in process. It does not indicate whether progress is currently being made, but whether
|
|
2383
|
+
* Returns whether a craft is currently in process. It does not indicate whether progress is currently being made, but whether a crafting process has been started in this machine.
|
|
2384
2384
|
* @remarks
|
|
2385
2385
|
* Applies to subclasses: CraftingMachine
|
|
2386
2386
|
*
|
|
@@ -3582,6 +3582,14 @@ interface LuaEntity extends LuaControl {
|
|
|
3582
3582
|
*/
|
|
3583
3583
|
readonly pump_rail_target?: LuaEntity
|
|
3584
3584
|
|
|
3585
|
+
/**
|
|
3586
|
+
* The current radar scan progress, as a number in range [0, 1].
|
|
3587
|
+
* @remarks
|
|
3588
|
+
* Applies to subclasses: Radar
|
|
3589
|
+
*
|
|
3590
|
+
*/
|
|
3591
|
+
readonly radar_scan_progress: number
|
|
3592
|
+
|
|
3585
3593
|
/**
|
|
3586
3594
|
* When locked; the recipe in this assembling machine can't be changed by the player.
|
|
3587
3595
|
* @remarks
|
|
@@ -4122,6 +4130,11 @@ interface LuaEntityPrototype {
|
|
|
4122
4130
|
*/
|
|
4123
4131
|
readonly burner_prototype?: LuaBurnerPrototype
|
|
4124
4132
|
|
|
4133
|
+
/**
|
|
4134
|
+
* If this generator prototype burns fluid.
|
|
4135
|
+
*/
|
|
4136
|
+
readonly burns_fluid: boolean
|
|
4137
|
+
|
|
4125
4138
|
readonly call_for_help_radius: number
|
|
4126
4139
|
|
|
4127
4140
|
/**
|
|
@@ -4261,6 +4274,11 @@ interface LuaEntityPrototype {
|
|
|
4261
4274
|
*/
|
|
4262
4275
|
readonly default_collision_mask_with_flags: CollisionMaskWithFlags
|
|
4263
4276
|
|
|
4277
|
+
/**
|
|
4278
|
+
* If this generator prototype destroys non fuel fluids.
|
|
4279
|
+
*/
|
|
4280
|
+
readonly destroy_non_fuel_fluid: boolean
|
|
4281
|
+
|
|
4264
4282
|
/**
|
|
4265
4283
|
* The distraction cooldown of this unit prototype or `nil`.
|
|
4266
4284
|
*/
|
|
@@ -4453,6 +4471,11 @@ interface LuaEntityPrototype {
|
|
|
4453
4471
|
*/
|
|
4454
4472
|
readonly healing_per_tick: number
|
|
4455
4473
|
|
|
4474
|
+
/**
|
|
4475
|
+
* The heat buffer prototype this entity uses or `nil`.
|
|
4476
|
+
*/
|
|
4477
|
+
readonly heat_buffer_prototype?: LuaHeatBufferPrototype
|
|
4478
|
+
|
|
4456
4479
|
/**
|
|
4457
4480
|
* The heat energy source prototype this entity uses or `nil`.
|
|
4458
4481
|
*/
|
|
@@ -4564,6 +4587,14 @@ interface LuaEntityPrototype {
|
|
|
4564
4587
|
*/
|
|
4565
4588
|
readonly logistic_mode?: string
|
|
4566
4589
|
|
|
4590
|
+
/**
|
|
4591
|
+
* The logistic parameters for this roboport. or `nil`.
|
|
4592
|
+
* @remarks
|
|
4593
|
+
* Both the `charging_station_shift` and `stationing_offset` vectors are tables with `x` and `y` keys instead of an array.
|
|
4594
|
+
*
|
|
4595
|
+
*/
|
|
4596
|
+
readonly logistic_parameters?: { charge_approach_distance: number, charging_distance: number, charging_energy: number, charging_station_count: number, charging_station_shift: Vector, charging_threshold_distance: number, construction_radius: number, logistic_radius: number, logistics_connection_distance: number, robot_limit: number, robot_vertical_acceleration: number, robots_shrink_when_entering_and_exiting: boolean, spawn_and_station_height: number, spawn_and_station_shadow_height_offset: number, stationing_offset: Vector }
|
|
4597
|
+
|
|
4567
4598
|
/**
|
|
4568
4599
|
* The logistic radius for this roboport prototype or `nil`.
|
|
4569
4600
|
*/
|
|
@@ -4651,6 +4682,11 @@ interface LuaEntityPrototype {
|
|
|
4651
4682
|
*/
|
|
4652
4683
|
readonly max_polyphony?: number
|
|
4653
4684
|
|
|
4685
|
+
/**
|
|
4686
|
+
* The default maximum power output of this generator prototype or `nil`.
|
|
4687
|
+
*/
|
|
4688
|
+
readonly max_power_output?: number
|
|
4689
|
+
|
|
4654
4690
|
/**
|
|
4655
4691
|
* The maximum pursue distance of this unit prototype or `nil`.
|
|
4656
4692
|
*/
|
|
@@ -4894,6 +4930,11 @@ interface LuaEntityPrototype {
|
|
|
4894
4930
|
*/
|
|
4895
4931
|
readonly running_speed: number
|
|
4896
4932
|
|
|
4933
|
+
/**
|
|
4934
|
+
* If this generator prototype scales fluid usage.
|
|
4935
|
+
*/
|
|
4936
|
+
readonly scale_fluid_usage: boolean
|
|
4937
|
+
|
|
4897
4938
|
/**
|
|
4898
4939
|
* The secondary bounding box used for collision checking, or `nil` if it doesn't have one. This is only used in rails and rail remnants.
|
|
4899
4940
|
*/
|
|
@@ -7145,8 +7186,8 @@ interface LuaGameScript {
|
|
|
7145
7186
|
players?: Array<LuaPlayer | string>): void
|
|
7146
7187
|
|
|
7147
7188
|
/**
|
|
7148
|
-
* Remove file or directory
|
|
7149
|
-
* @param path -
|
|
7189
|
+
* Remove a file or directory in the `script-output` folder, located in the game's {@link user data directory | https://wiki.factorio.com/User_data_directory}. Can be used to remove files created by {@link LuaGameScript::write_file | LuaGameScript::write_file}.
|
|
7190
|
+
* @param path - The path to the file or directory to remove, relative to `script-output`.
|
|
7150
7191
|
*/
|
|
7151
7192
|
remove_path(this: void,
|
|
7152
7193
|
path: string): void
|
|
@@ -7220,7 +7261,7 @@ interface LuaGameScript {
|
|
|
7220
7261
|
data: Table): void
|
|
7221
7262
|
|
|
7222
7263
|
/**
|
|
7223
|
-
* Take a screenshot and save it to
|
|
7264
|
+
* Take a screenshot of the game and save it to the `script-output` folder, located in the game's {@link user data directory | https://wiki.factorio.com/User_data_directory}. The name of the image file can be specified via the `path` parameter.
|
|
7224
7265
|
* @remarks
|
|
7225
7266
|
* If Factorio is running headless, this function will do nothing.
|
|
7226
7267
|
*
|
|
@@ -7229,7 +7270,7 @@ interface LuaGameScript {
|
|
|
7229
7270
|
* @param table.by_player - If defined, the screenshot will only be taken for this player.
|
|
7230
7271
|
* @param table.daytime - Overrides the current surface daytime for the duration of screenshot rendering.
|
|
7231
7272
|
* @param table.force_render - Screenshot requests are processed in between game update and render. The game may skip rendering (ie. drop frames) if the previous frame has not finished rendering or the game simulation starts to fall below 60 updates per second. If `force_render` is set to `true`, the game won't drop frames and process the screenshot request at the end of the update in which the request was created. This is not honored on multiplayer clients that are catching up to server. Defaults to `false`.
|
|
7232
|
-
* @param table.path - The
|
|
7273
|
+
* @param table.path - The name of the image file. It should include a file extension indicating the desired format. Supports `.png`, `.jpg` /`.jpeg`, `.tga` and `.bmp`. Providing a directory path (ex. `"save/here/screenshot.png"`) will create the necessary folder structure in `script-output`. Defaults to `"screenshot.png"`.
|
|
7233
7274
|
* @param table.player - The player to focus on. Defaults to the local player.
|
|
7234
7275
|
* @param table.position - If defined, the screenshot will be centered on this position. Otherwise, the screenshot will center on `player`.
|
|
7235
7276
|
* @param table.quality - The `.jpg` render quality as a percentage (from 0% to 100% inclusive), if used. A lower value means a more compressed image. Defaults to `80`.
|
|
@@ -7262,10 +7303,10 @@ interface LuaGameScript {
|
|
|
7262
7303
|
}): void
|
|
7263
7304
|
|
|
7264
7305
|
/**
|
|
7265
|
-
* Take a screenshot of the technology screen and save it to
|
|
7306
|
+
* Take a screenshot of the technology screen and save it to the `script-output` folder, located in the game's {@link user data directory | https://wiki.factorio.com/User_data_directory}. The name of the image file can be specified via the `path` parameter.
|
|
7266
7307
|
* @param table.by_player - If given, the screenshot will only be taken for this player.
|
|
7267
7308
|
* @param table.force - The force whose technology to screenshot. If not given, the `"player`" force is used.
|
|
7268
|
-
* @param table.path - The
|
|
7309
|
+
* @param table.path - The name of the image file. It should include a file extension indicating the desired format. Supports `.png`, `.jpg` /`.jpeg`, `.tga` and `.bmp`. Providing a directory path (ex. `"save/here/screenshot.png"`) will create the necessary folder structure in `script-output`. Defaults to `"technology-screenshot.png"`.
|
|
7269
7310
|
* @param table.quality - The `.jpg` render quality as a percentage (from 0% to 100% inclusive), if used. A lower value means a more compressed image. Defaults to `80`.
|
|
7270
7311
|
* @param table.selected_technology - The technology to highlight.
|
|
7271
7312
|
* @param table.skip_disabled - If `true`, disabled technologies will be skipped. Their successors will be attached to the disabled technology's parents. Defaults to `false`.
|
|
@@ -7295,11 +7336,11 @@ interface LuaGameScript {
|
|
|
7295
7336
|
player: PlayerIdentification): void
|
|
7296
7337
|
|
|
7297
7338
|
/**
|
|
7298
|
-
* Write a
|
|
7299
|
-
* @param append -
|
|
7300
|
-
* @param data -
|
|
7301
|
-
* @param filename -
|
|
7302
|
-
* @param for_player - If given, the file will only be written for this player_index
|
|
7339
|
+
* Write a file to the `script-output` folder, located in the game's {@link user data directory | https://wiki.factorio.com/User_data_directory}. The name and file extension of the file can be specified via the `filename` parameter.
|
|
7340
|
+
* @param append - If `true`, `data` will be appended to the end of the file. Defaults to `false`, which will overwrite any pre-existing file with the new `data`.
|
|
7341
|
+
* @param data - The content to write to the file.
|
|
7342
|
+
* @param filename - The name of the file. Providing a directory path (ex. `"save/here/example.txt"`) will create the necessary folder structure in `script-output`.
|
|
7343
|
+
* @param for_player - If given, the file will only be written for this `player_index`. Providing `0` will only write to the server's output if present.
|
|
7303
7344
|
*/
|
|
7304
7345
|
write_file(this: void,
|
|
7305
7346
|
filename: string,
|
|
@@ -8664,7 +8705,7 @@ interface LuaGuiElement {
|
|
|
8664
8705
|
word_wrap: boolean
|
|
8665
8706
|
|
|
8666
8707
|
/**
|
|
8667
|
-
* The zoom this camera or minimap is using.
|
|
8708
|
+
* The zoom this camera or minimap is using. This value must be positive.
|
|
8668
8709
|
*/
|
|
8669
8710
|
zoom: number
|
|
8670
8711
|
|
|
@@ -8678,6 +8719,43 @@ interface LuaGuiElement {
|
|
|
8678
8719
|
|
|
8679
8720
|
}
|
|
8680
8721
|
|
|
8722
|
+
/**
|
|
8723
|
+
* Prototype of a heat buffer.
|
|
8724
|
+
*/
|
|
8725
|
+
interface LuaHeatBufferPrototype {
|
|
8726
|
+
/**
|
|
8727
|
+
* All methods and properties that this object supports.
|
|
8728
|
+
*/
|
|
8729
|
+
help(this: void): void
|
|
8730
|
+
|
|
8731
|
+
readonly connections: HeatConnection[]
|
|
8732
|
+
|
|
8733
|
+
readonly default_temperature: number
|
|
8734
|
+
|
|
8735
|
+
readonly max_temperature: number
|
|
8736
|
+
|
|
8737
|
+
readonly max_transfer: number
|
|
8738
|
+
|
|
8739
|
+
readonly min_temperature_gradient: number
|
|
8740
|
+
|
|
8741
|
+
readonly min_working_temperature: number
|
|
8742
|
+
|
|
8743
|
+
readonly minimum_glow_temperature: number
|
|
8744
|
+
|
|
8745
|
+
/**
|
|
8746
|
+
* The class name of this object. Available even when `valid` is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
|
|
8747
|
+
*/
|
|
8748
|
+
readonly object_name: string
|
|
8749
|
+
|
|
8750
|
+
readonly specific_heat: number
|
|
8751
|
+
|
|
8752
|
+
/**
|
|
8753
|
+
* Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be `false`. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
|
|
8754
|
+
*/
|
|
8755
|
+
readonly valid: boolean
|
|
8756
|
+
|
|
8757
|
+
}
|
|
8758
|
+
|
|
8681
8759
|
/**
|
|
8682
8760
|
* Prototype of a heat energy source.
|
|
8683
8761
|
*/
|
|
@@ -8693,6 +8771,8 @@ interface LuaHeatEnergySourcePrototype {
|
|
|
8693
8771
|
|
|
8694
8772
|
readonly emissions: number
|
|
8695
8773
|
|
|
8774
|
+
readonly heat_buffer_prototype: LuaHeatBufferPrototype
|
|
8775
|
+
|
|
8696
8776
|
readonly max_temperature: number
|
|
8697
8777
|
|
|
8698
8778
|
readonly max_transfer: number
|
|
@@ -9414,6 +9494,70 @@ interface LuaItemPrototype {
|
|
|
9414
9494
|
*/
|
|
9415
9495
|
readonly resistances: {[key: string]: Resistance}
|
|
9416
9496
|
|
|
9497
|
+
/**
|
|
9498
|
+
* The reverse entity filter mode used by this selection tool.
|
|
9499
|
+
* @remarks
|
|
9500
|
+
* Applies to subclasses: SelectionTool
|
|
9501
|
+
*
|
|
9502
|
+
*/
|
|
9503
|
+
readonly reverse_alt_entity_filter_mode: string
|
|
9504
|
+
|
|
9505
|
+
/**
|
|
9506
|
+
* The reverse entity filters used by this selection tool indexed by entity name.
|
|
9507
|
+
* @remarks
|
|
9508
|
+
* Applies to subclasses: SelectionTool
|
|
9509
|
+
*
|
|
9510
|
+
*/
|
|
9511
|
+
readonly reverse_entity_filters: {[key: string]: LuaEntityPrototype}
|
|
9512
|
+
|
|
9513
|
+
/**
|
|
9514
|
+
* The reverse entity type filters used by this selection tool indexed by entity type.
|
|
9515
|
+
* @remarks
|
|
9516
|
+
* The boolean value is meaningless and is used to allow easy lookup if a type exists in the dictionary.
|
|
9517
|
+
* Applies to subclasses: SelectionTool
|
|
9518
|
+
*
|
|
9519
|
+
*/
|
|
9520
|
+
readonly reverse_entity_type_filters: {[key: string]: boolean}
|
|
9521
|
+
|
|
9522
|
+
/**
|
|
9523
|
+
* The color used when doing reverse selection with this selection tool prototype.
|
|
9524
|
+
* @remarks
|
|
9525
|
+
* Applies to subclasses: SelectionTool
|
|
9526
|
+
*
|
|
9527
|
+
*/
|
|
9528
|
+
readonly reverse_selection_border_color: Color
|
|
9529
|
+
|
|
9530
|
+
/**
|
|
9531
|
+
* @remarks
|
|
9532
|
+
* Applies to subclasses: SelectionTool
|
|
9533
|
+
*
|
|
9534
|
+
*/
|
|
9535
|
+
readonly reverse_selection_cursor_box_type: string
|
|
9536
|
+
|
|
9537
|
+
/**
|
|
9538
|
+
* Flags that affect which entities will be selected during reverse selection.
|
|
9539
|
+
* @remarks
|
|
9540
|
+
* Applies to subclasses: SelectionTool
|
|
9541
|
+
*
|
|
9542
|
+
*/
|
|
9543
|
+
readonly reverse_selection_mode_flags: SelectionModeFlags
|
|
9544
|
+
|
|
9545
|
+
/**
|
|
9546
|
+
* The reverse tile filter mode used by this selection tool.
|
|
9547
|
+
* @remarks
|
|
9548
|
+
* Applies to subclasses: SelectionTool
|
|
9549
|
+
*
|
|
9550
|
+
*/
|
|
9551
|
+
readonly reverse_tile_filter_mode: string
|
|
9552
|
+
|
|
9553
|
+
/**
|
|
9554
|
+
* The reverse tile filters used by this selection tool indexed by tile name.
|
|
9555
|
+
* @remarks
|
|
9556
|
+
* Applies to subclasses: SelectionTool
|
|
9557
|
+
*
|
|
9558
|
+
*/
|
|
9559
|
+
readonly reverse_tile_filters: {[key: string]: LuaTilePrototype}
|
|
9560
|
+
|
|
9417
9561
|
/**
|
|
9418
9562
|
* The results from launching this item in a rocket.
|
|
9419
9563
|
*/
|
|
@@ -15113,7 +15257,7 @@ interface LuaSurface {
|
|
|
15113
15257
|
id: number): void
|
|
15114
15258
|
|
|
15115
15259
|
/**
|
|
15116
|
-
* Generates a path with the specified constraints (as an array of {@link PathfinderWaypoints | PathfinderWaypoint}) using the unit pathfinding algorithm. This path can be used to emulate pathing behavior by script for non-unit entities. If you want to command actual units to move, use
|
|
15260
|
+
* Generates a path with the specified constraints (as an array of {@link PathfinderWaypoints | PathfinderWaypoint}) using the unit pathfinding algorithm. This path can be used to emulate pathing behavior by script for non-unit entities, such as vehicles. If you want to command actual units (such as biters or spitters) to move, use {@link LuaEntity::set_command | LuaEntity::set_command} instead.
|
|
15117
15261
|
*
|
|
15118
15262
|
* The resulting path is ultimately returned asynchronously via {@link on_script_path_request_finished | on_script_path_request_finished}.
|
|
15119
15263
|
* @param table.bounding_box - The dimensions of the object that's supposed to travel the path.
|
package/dist/concepts.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.57
|
|
6
6
|
// API version 2
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/defines.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.57
|
|
6
6
|
// API version 2
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
package/dist/events.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.57
|
|
6
6
|
// API version 2
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -38,7 +38,7 @@ interface CustomInputEvent extends event {
|
|
|
38
38
|
*/
|
|
39
39
|
player_index: number
|
|
40
40
|
/**
|
|
41
|
-
* Information about the prototype that is selected when the custom input is used. `nil` if none is selected.
|
|
41
|
+
* Information about the prototype that is selected when the custom input is used. Needs to be enabled on the custom input's prototype. `nil` if none is selected.
|
|
42
42
|
*/
|
|
43
43
|
selected_prototype?: SelectedPrototypeData
|
|
44
44
|
}
|
|
@@ -338,11 +338,9 @@ interface on_entity_damaged extends event {
|
|
|
338
338
|
original_damage_amount: number
|
|
339
339
|
}
|
|
340
340
|
/**
|
|
341
|
-
* Called after an entity is destroyed that has been registered with {@link LuaBootstrap::register_on_entity_destroyed | LuaBootstrap::register_on_entity_destroyed}
|
|
342
|
-
*
|
|
343
|
-
* at the end of the next tick.
|
|
341
|
+
* Called after an entity is destroyed that has been registered with {@link LuaBootstrap::register_on_entity_destroyed | LuaBootstrap::register_on_entity_destroyed}.
|
|
344
342
|
* @remarks
|
|
345
|
-
* Depending on when a given entity is destroyed, this event will be fired at the end of the current tick or
|
|
343
|
+
* Depending on when a given entity is destroyed, this event will be fired at the end of the current tick or at the end of the next tick.
|
|
346
344
|
*
|
|
347
345
|
*/
|
|
348
346
|
interface on_entity_destroyed extends event {
|
package/dist/global.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.57
|
|
6
6
|
// API version 2
|
|
7
7
|
|
|
8
8
|
/**
|