factorio-types 1.2.60 → 1.2.62
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 +158 -14
- package/dist/concepts.d.ts +14 -7
- package/dist/datacollection.d.ts +1 -1
- package/dist/defines.d.ts +294 -290
- package/dist/events.d.ts +1 -1
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +10 -1
- package/dist/types.d.ts +2 -2
- package/package.json +2 -2
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 2.1.
|
|
5
|
+
// Factorio version 2.1.10
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -5582,7 +5582,7 @@ interface LuaControl {
|
|
|
5582
5582
|
*
|
|
5583
5583
|
* Write supports any of the types. Read will return the `entity`, `equipment`, `equipment-grid`, `player`, `element`, `inventory`, `item` or `nil`.
|
|
5584
5584
|
*/
|
|
5585
|
-
opened?: LuaEntity | LuaItemStack | LuaEquipment | LuaEquipmentGrid | LuaPlayer | LuaGuiElement | LuaInventory | LuaLogisticNetwork |
|
|
5585
|
+
opened?: LuaEntity | LuaItemStack | LuaEquipment | LuaEquipmentGrid | LuaPlayer | LuaGuiElement | LuaInventory | LuaLogisticNetwork | defines.gui_type;
|
|
5586
5586
|
readonly opened_gui_type?: defines.gui_type;
|
|
5587
5587
|
/**
|
|
5588
5588
|
* Current item-picking state.
|
|
@@ -5963,15 +5963,23 @@ interface LuaDamagePrototype extends LuaPrototypeBase {
|
|
|
5963
5963
|
*
|
|
5964
5964
|
* - `followSymlinks` :: {@link boolean | runtime:boolean}? : Follow symlinks when emitting locations (stack traces, etc) (default: true)
|
|
5965
5965
|
*
|
|
5966
|
+
* - `hookDebugConsole` :: {@link boolean | runtime:boolean}? : Enable catching errors and breakpoints/stepping in code called from the Debug Console (Evaluate context="repl") (default: false)
|
|
5967
|
+
*
|
|
5968
|
+
* - `trace` :: {@link boolean | runtime:boolean}? : Trace DAP messages to a `dap-trace.log` (default: false)
|
|
5969
|
+
*
|
|
5966
5970
|
* - `tags` :: {@link Any | runtime:Any}? : Extra debug session tags, see also {@link tags | runtime:LuaDebugAdapter::tags}
|
|
5967
5971
|
*
|
|
5968
|
-
*
|
|
5972
|
+
* ---
|
|
5973
|
+
*
|
|
5974
|
+
* For mod objects that appear in debug listing, the following optional metatable methods may be used to customize their display:
|
|
5969
5975
|
*
|
|
5970
|
-
* - `__tostring`(`self`) -> {@link string | runtime:string} : Called when the object appears as a value.
|
|
5976
|
+
* - `__tostring`(`self`) -> {@link string | runtime:string} : Called when the object appears as a value, to format it for inline display.
|
|
5971
5977
|
*
|
|
5972
|
-
* - `__debugcounts`(`self`) -> `indexedVariables` :: {@link int32 | runtime:int32} , `namedVariables` :: {@link int32 | runtime:int32} : Called when the object appears
|
|
5978
|
+
* - `__debugcounts`(`self`) -> `indexedVariables` :: {@link int32 | runtime:int32} , `namedVariables` :: {@link int32 | runtime:int32} : Called when the object appears as a value, to estimate the size of this object's children, and enabled paged listing for large indexed objects. If either count is returned as 0, the client may skip listing that section entirely. If the indexed count is non-zero, the client may choose to request the values in pages. The Indexed count should indicate the highest index present, to properly range paged fetch windows, even if not all keys will be filled when fetched.
|
|
5973
5979
|
*
|
|
5974
|
-
* - `__debugchildren`(`self`, `filters` :: {@link DebugVariablesFilter | runtime:DebugVariablesFilter}) -> array({@link DebugVariable | runtime:DebugVariable}) : Called when the object
|
|
5980
|
+
* - `__debugchildren`(`self`, `filters` :: {@link DebugVariablesFilter | runtime:DebugVariablesFilter}) -> array({@link DebugVariable | runtime:DebugVariable}) : Called when the object is expanded to list its children. If `__debugcounts` was implemented, the client may choose to fetch Indexed and Named children sections separately, and Indexed children in 0-based pages on-demand for display. If not all values in the requested page exist (such as a key `0`), they may be omitted from output entirely. See also {@link describe_field | runtime:LuaDebugAdapter::describe_field}.
|
|
5981
|
+
*
|
|
5982
|
+
* ---
|
|
5975
5983
|
*
|
|
5976
5984
|
* This class also provides debug session APIs, as the global object `debugadapter` in all stages.
|
|
5977
5985
|
*/
|
|
@@ -6016,6 +6024,12 @@ interface LuaDeciderCombinatorControlBehavior extends LuaCombinatorControlBehavi
|
|
|
6016
6024
|
* @param index Index to insert new condition at. If not specified, appends to the end.
|
|
6017
6025
|
*/
|
|
6018
6026
|
add_condition(this: void, condition: DeciderCombinatorCondition, index?: uint32): void;
|
|
6027
|
+
/**
|
|
6028
|
+
* Adds a new else-output.
|
|
6029
|
+
* @param output New else-output to insert.
|
|
6030
|
+
* @param index Index to insert new else-output at. If not specified, appends to the end.
|
|
6031
|
+
*/
|
|
6032
|
+
add_else_output(this: void, output: DeciderCombinatorOutput, index?: uint32): void;
|
|
6019
6033
|
/**
|
|
6020
6034
|
* Adds a new output.
|
|
6021
6035
|
* @param output New output to insert.
|
|
@@ -6027,6 +6041,11 @@ interface LuaDeciderCombinatorControlBehavior extends LuaCombinatorControlBehavi
|
|
|
6027
6041
|
* @param index Index of condition to get.
|
|
6028
6042
|
*/
|
|
6029
6043
|
get_condition(this: void, index: uint32): DeciderCombinatorCondition;
|
|
6044
|
+
/**
|
|
6045
|
+
* Gets the else-output at `index`.
|
|
6046
|
+
* @param index Index of else-output to get.
|
|
6047
|
+
*/
|
|
6048
|
+
get_else_output(this: void, index: uint32): DeciderCombinatorOutput;
|
|
6030
6049
|
/**
|
|
6031
6050
|
* Gets the output at `index`.
|
|
6032
6051
|
* @param index Index of output to get.
|
|
@@ -6037,6 +6056,11 @@ interface LuaDeciderCombinatorControlBehavior extends LuaCombinatorControlBehavi
|
|
|
6037
6056
|
* @param index Index of condition to remove.
|
|
6038
6057
|
*/
|
|
6039
6058
|
remove_condition(this: void, index: uint32): void;
|
|
6059
|
+
/**
|
|
6060
|
+
* Removes the else-output at `index`.
|
|
6061
|
+
* @param index Index of else-output to remove.
|
|
6062
|
+
*/
|
|
6063
|
+
remove_else_output(this: void, index: uint32): void;
|
|
6040
6064
|
/**
|
|
6041
6065
|
* Removes the output at `index`.
|
|
6042
6066
|
* @param index Index of output to remove.
|
|
@@ -6048,6 +6072,12 @@ interface LuaDeciderCombinatorControlBehavior extends LuaCombinatorControlBehavi
|
|
|
6048
6072
|
* @param condition Data to set selected condition to.
|
|
6049
6073
|
*/
|
|
6050
6074
|
set_condition(this: void, index: uint32, condition: DeciderCombinatorCondition): void;
|
|
6075
|
+
/**
|
|
6076
|
+
* Sets the else-output at `index`.
|
|
6077
|
+
* @param index Index of else-output to modify.
|
|
6078
|
+
* @param output Data to set selected else-output to.
|
|
6079
|
+
*/
|
|
6080
|
+
set_else_output(this: void, index: uint32, output: DeciderCombinatorOutput): void;
|
|
6051
6081
|
/**
|
|
6052
6082
|
* Sets the output at `index`.
|
|
6053
6083
|
* @param index Index of output to modify.
|
|
@@ -6415,10 +6445,12 @@ interface LuaEntity extends LuaControl {
|
|
|
6415
6445
|
add_market_item(this: void, offer: Offer): void;
|
|
6416
6446
|
/**
|
|
6417
6447
|
* Upgrades this entity in place if it's marked to be upgraded.
|
|
6448
|
+
* @param override_target The override upgrade target - used instead of the entities current upgrade target if given. Note, the entity must be fast-replaceable with the override target, or it won't be upgraded.
|
|
6449
|
+
* @param buffer If provided - any items left over from the upgrade are put into this inventory.
|
|
6418
6450
|
* @returns [0] - The first upgraded entity - `nil` if this entity is not marked for upgrade.
|
|
6419
6451
|
* @returns [1] - When upgrading underground belts, the other underground belt end that was also upgraded - `nil` if this entity is not marked for upgrade.
|
|
6420
6452
|
*/
|
|
6421
|
-
apply_upgrade(this: void): LuaMultiReturn<[
|
|
6453
|
+
apply_upgrade(this: void, override_target?: EntityWithQualityID, buffer?: LuaInventory): LuaMultiReturn<[
|
|
6422
6454
|
LuaEntity | null,
|
|
6423
6455
|
LuaEntity | null
|
|
6424
6456
|
]>;
|
|
@@ -8159,6 +8191,10 @@ interface LuaEntity extends LuaControl {
|
|
|
8159
8191
|
* The entity prototype of this entity.
|
|
8160
8192
|
*/
|
|
8161
8193
|
readonly prototype: LuaEntityPrototype;
|
|
8194
|
+
/**
|
|
8195
|
+
* If this space platform hub will provide its contents to other requesting platforms.
|
|
8196
|
+
*/
|
|
8197
|
+
providing_to_other_platforms: boolean;
|
|
8162
8198
|
/**
|
|
8163
8199
|
* The target entity for this item-request-proxy, if any.
|
|
8164
8200
|
*/
|
|
@@ -8245,6 +8281,10 @@ interface LuaEntity extends LuaControl {
|
|
|
8245
8281
|
* Useable only on entities that have requester slots.
|
|
8246
8282
|
*/
|
|
8247
8283
|
request_from_buffers: boolean;
|
|
8284
|
+
/**
|
|
8285
|
+
* If this space platform hub will automatically make logistic requests for any missing construction materials.
|
|
8286
|
+
*/
|
|
8287
|
+
request_missing_construction_materials: boolean;
|
|
8248
8288
|
/**
|
|
8249
8289
|
* The quality produced when this crafting machine finishes crafting. `nil` when crafting is not in progress.
|
|
8250
8290
|
*
|
|
@@ -9830,6 +9870,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
|
|
|
9830
9870
|
readonly shot_category?: LuaAmmoCategoryPrototype;
|
|
9831
9871
|
readonly shots_per_flare?: uint32;
|
|
9832
9872
|
readonly should_ground_target?: boolean;
|
|
9873
|
+
readonly show_fluid_visualization_when_in_cursor: boolean;
|
|
9833
9874
|
readonly shuffle_resources_to_mine?: boolean;
|
|
9834
9875
|
readonly smoke?: LuaTrivialSmokePrototype;
|
|
9835
9876
|
readonly smoke_count?: uint16;
|
|
@@ -12492,7 +12533,12 @@ interface LuaGuiElement {
|
|
|
12492
12533
|
/**
|
|
12493
12534
|
* The mouse button filters for this button or sprite-button.
|
|
12494
12535
|
*/
|
|
12495
|
-
mouse_button_filter:
|
|
12536
|
+
readonly mouse_button_filter: ActiveMouseButtonFlags;
|
|
12537
|
+
/**
|
|
12538
|
+
* The mouse button filters for this button or sprite-button.
|
|
12539
|
+
* @customName mouse_button_filter
|
|
12540
|
+
*/
|
|
12541
|
+
mouse_button_filter_write: MouseButtonFlags;
|
|
12496
12542
|
/**
|
|
12497
12543
|
* The name of this element. `""` if no name was set.
|
|
12498
12544
|
* @example ```
|
|
@@ -13431,7 +13477,7 @@ interface LuaHelpers {
|
|
|
13431
13477
|
* Note: lua event is not raised immediately as the UDP packet needs to be introduced into game state by means of input actions. Please keep incoming traffic as small as possible as in case of multiplayer game with many players, all this data will have to go through the multiplayer server and be distributed to all clients.
|
|
13432
13478
|
*
|
|
13433
13479
|
* Not available in settings and prototype stages.
|
|
13434
|
-
* @param for_player If given, packets will only be read from this `player_index`. Providing `0` will only read from the server if present.
|
|
13480
|
+
* @param for_player If given, packets will only be read from this `player_index`. Providing `0` will only read from the server if present. In the main chunk of the runtime stage receiving the packet will always be skipped if `for_player` is set and not `0`.
|
|
13435
13481
|
*/
|
|
13436
13482
|
recv_udp(this: void, for_player?: uint32): void;
|
|
13437
13483
|
/**
|
|
@@ -13445,7 +13491,7 @@ interface LuaHelpers {
|
|
|
13445
13491
|
* This must be enabled per-instance with `--enable-lua-udp`.
|
|
13446
13492
|
* @param port Destination port number (localhost only)
|
|
13447
13493
|
* @param data The content to send.
|
|
13448
|
-
* @param for_player If given, the packet will only be sent from this `player_index`. Providing `0` will only send from the server if present. `for_player` cannot be used in settings and prototype stages.
|
|
13494
|
+
* @param for_player If given, the packet will only be sent from this `player_index`. Providing `0` will only send from the server if present. `for_player` cannot be used in settings and prototype stages. In the main chunk of the runtime stage sending the packet will always be skipped if `for_player` is set and not `0`.
|
|
13449
13495
|
*/
|
|
13450
13496
|
send_udp(this: void, port: uint16, data: LocalisedString, for_player?: uint32): void;
|
|
13451
13497
|
/**
|
|
@@ -13457,13 +13503,17 @@ interface LuaHelpers {
|
|
|
13457
13503
|
* @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`.
|
|
13458
13504
|
* @param data The content to write to the file.
|
|
13459
13505
|
* @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`.
|
|
13460
|
-
* @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. `for_player` cannot be used in settings and prototype stages.
|
|
13506
|
+
* @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. `for_player` cannot be used in settings and prototype stages. In the main chunk of the runtime stage writing the file will always be skipped if `for_player` is set and not `0`.
|
|
13461
13507
|
*/
|
|
13462
13508
|
write_file(this: void, filename: string, data: LocalisedString, append?: boolean, for_player?: uint32): void;
|
|
13463
13509
|
/**
|
|
13464
13510
|
* Current version of game
|
|
13465
13511
|
*/
|
|
13466
13512
|
readonly game_version: string;
|
|
13513
|
+
/**
|
|
13514
|
+
* The name of the active Instrument Mode mod, if any.
|
|
13515
|
+
*/
|
|
13516
|
+
readonly instrument_mod?: string;
|
|
13467
13517
|
/**
|
|
13468
13518
|
* 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.
|
|
13469
13519
|
*/
|
|
@@ -15494,6 +15544,80 @@ interface LuaPermissionGroups {
|
|
|
15494
15544
|
*/
|
|
15495
15545
|
readonly valid: boolean;
|
|
15496
15546
|
}
|
|
15547
|
+
/**
|
|
15548
|
+
* A pin owned by a player.
|
|
15549
|
+
*/
|
|
15550
|
+
interface LuaPin {
|
|
15551
|
+
/**
|
|
15552
|
+
* Destroys this pin.
|
|
15553
|
+
*/
|
|
15554
|
+
destroy(this: void): void;
|
|
15555
|
+
/**
|
|
15556
|
+
* The center of this pin if it can be computed.
|
|
15557
|
+
*/
|
|
15558
|
+
get_pin_center(this: void): MapPosition | null;
|
|
15559
|
+
/**
|
|
15560
|
+
* The alert positions if this pin is configured to show alert data.
|
|
15561
|
+
*/
|
|
15562
|
+
alert_positions: MapPosition[];
|
|
15563
|
+
/**
|
|
15564
|
+
* The type of alert this pin is for (if configured to be about alerts).
|
|
15565
|
+
*/
|
|
15566
|
+
alert_type?: defines.alert_type;
|
|
15567
|
+
always_visible: boolean;
|
|
15568
|
+
/**
|
|
15569
|
+
* The custom chart tag - if this pin specificaly binds to a chart tag.
|
|
15570
|
+
*
|
|
15571
|
+
* The chart tag must be on the same force as the owning player.
|
|
15572
|
+
*/
|
|
15573
|
+
chart_tag?: LuaCustomChartTag;
|
|
15574
|
+
/**
|
|
15575
|
+
* The index of this pin (unique to this player).
|
|
15576
|
+
*
|
|
15577
|
+
* Note that this index has no corelation to the position of the pin within {@link LuaPlayer::get_pins | runtime:LuaPlayer::get_pins}
|
|
15578
|
+
*/
|
|
15579
|
+
readonly index: uint32;
|
|
15580
|
+
/**
|
|
15581
|
+
* The label for this pin - if any. This will be an empty string if there is no label set.
|
|
15582
|
+
*/
|
|
15583
|
+
label: string;
|
|
15584
|
+
/**
|
|
15585
|
+
* 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.
|
|
15586
|
+
*/
|
|
15587
|
+
readonly object_name: string;
|
|
15588
|
+
/**
|
|
15589
|
+
* The player that this pin belongs to.
|
|
15590
|
+
*/
|
|
15591
|
+
readonly owner: LuaPlayer;
|
|
15592
|
+
/**
|
|
15593
|
+
* The player that this pin is bound to.
|
|
15594
|
+
*/
|
|
15595
|
+
player?: LuaPlayer;
|
|
15596
|
+
/**
|
|
15597
|
+
* The position if this pin specifically binds to a surface and position.
|
|
15598
|
+
*
|
|
15599
|
+
* If writing, and this pin was not bound to a specific surface and position, the default surface of nauvis is used.
|
|
15600
|
+
*/
|
|
15601
|
+
position?: MapPosition;
|
|
15602
|
+
/**
|
|
15603
|
+
* The radius (in tiles) that is shown in the tooltip for this pin.
|
|
15604
|
+
*/
|
|
15605
|
+
preview_distance: uint16;
|
|
15606
|
+
/**
|
|
15607
|
+
* The surface index if this pin specifically binds to a surface and position.
|
|
15608
|
+
*
|
|
15609
|
+
* If writing, and this pin was not bound to a specific surface and position, the default position of (0,0) is used.
|
|
15610
|
+
*/
|
|
15611
|
+
surface_index?: uint32;
|
|
15612
|
+
/**
|
|
15613
|
+
* The targets of this pin - if any.
|
|
15614
|
+
*/
|
|
15615
|
+
targets: LuaEntity[];
|
|
15616
|
+
/**
|
|
15617
|
+
* 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.
|
|
15618
|
+
*/
|
|
15619
|
+
readonly valid: boolean;
|
|
15620
|
+
}
|
|
15497
15621
|
/**
|
|
15498
15622
|
* The runtime values of a planet
|
|
15499
15623
|
*/
|
|
@@ -15564,8 +15688,10 @@ interface LuaPlayer extends LuaControl {
|
|
|
15564
15688
|
* @param table.always_visible Defaults to `true`.
|
|
15565
15689
|
* @param table.entity The entity to pin.
|
|
15566
15690
|
* @param table.player The player to pin.
|
|
15567
|
-
* @param table.surface The surface to create the pin on.
|
|
15568
|
-
* @param table.
|
|
15691
|
+
* @param table.surface The surface to create the pin on. Required when resource is defined.
|
|
15692
|
+
* @param table.resource The resource prototype to add an entire resource patch with.
|
|
15693
|
+
* @param table.chart_tag The tag to pin.
|
|
15694
|
+
* @param table.position Where to create the pin. Required when surface is defined or resource is defined.
|
|
15569
15695
|
*/
|
|
15570
15696
|
add_pin(this: void, table: {
|
|
15571
15697
|
label?: string;
|
|
@@ -15574,8 +15700,10 @@ interface LuaPlayer extends LuaControl {
|
|
|
15574
15700
|
entity?: LuaEntity;
|
|
15575
15701
|
player?: PlayerIdentification;
|
|
15576
15702
|
surface?: SurfaceIdentification;
|
|
15703
|
+
resource?: EntityID;
|
|
15704
|
+
chart_tag?: LuaCustomChartTag;
|
|
15577
15705
|
position?: MapPosition;
|
|
15578
|
-
}):
|
|
15706
|
+
}): LuaPin;
|
|
15579
15707
|
/**
|
|
15580
15708
|
* Adds the given recipe to the list of recipe notifications for this player.
|
|
15581
15709
|
* @param recipe Recipe to add.
|
|
@@ -15654,6 +15782,10 @@ interface LuaPlayer extends LuaControl {
|
|
|
15654
15782
|
* Clear any active flying texts for this player.
|
|
15655
15783
|
*/
|
|
15656
15784
|
clear_local_flying_texts(this: void): void;
|
|
15785
|
+
/**
|
|
15786
|
+
* Removes all pins from this player.
|
|
15787
|
+
*/
|
|
15788
|
+
clear_pins(this: void): void;
|
|
15657
15789
|
/**
|
|
15658
15790
|
* Clears the given recipe from the list of recipe notifications for this player.
|
|
15659
15791
|
* @param recipe Recipe to clear.
|
|
@@ -15805,6 +15937,10 @@ interface LuaPlayer extends LuaControl {
|
|
|
15805
15937
|
* @param index The index to get.
|
|
15806
15938
|
*/
|
|
15807
15939
|
get_infinity_inventory_filter(this: void, index: uint32): InfinityInventoryFilter | null;
|
|
15940
|
+
/**
|
|
15941
|
+
* Gets all of the pins that this player has.
|
|
15942
|
+
*/
|
|
15943
|
+
get_pins(this: void): LuaPin[];
|
|
15808
15944
|
/**
|
|
15809
15945
|
* Gets the quick bar filter for the given slot or `nil`.
|
|
15810
15946
|
*/
|
|
@@ -16130,6 +16266,10 @@ interface LuaPlayer extends LuaControl {
|
|
|
16130
16266
|
* The original location of the item in the cursor, marked with a hand. `nil` if the cursor stack is empty. When writing, the specified inventory slot must be empty and the cursor stack must not be empty.
|
|
16131
16267
|
*/
|
|
16132
16268
|
hand_location?: ItemStackLocation;
|
|
16269
|
+
/**
|
|
16270
|
+
* Set to `true` to hide prototypes in Factoriopedia if they aren't unlocked yet.
|
|
16271
|
+
*/
|
|
16272
|
+
hide_locked_prototypes_in_factoriopedia: boolean;
|
|
16133
16273
|
/**
|
|
16134
16274
|
* This player's index in {@link LuaGameScript::players | runtime:LuaGameScript::players} (unique ID). It is assigned when a player is created, and remains so (even when the player is not {@link connected | runtime:LuaPlayer::connected}) until the player is irreversibly {@link removed | runtime:on_player_removed}. Indexes of removed players can be reused.
|
|
16135
16275
|
*/
|
|
@@ -16267,6 +16407,10 @@ interface LuaPlayer extends LuaControl {
|
|
|
16267
16407
|
* Set to any positive value to trigger the respawn state for this player.
|
|
16268
16408
|
*/
|
|
16269
16409
|
ticks_to_respawn?: uint32;
|
|
16410
|
+
/**
|
|
16411
|
+
* Set to `false` to disallow leaving remote view using the toggle menu hotkey.
|
|
16412
|
+
*/
|
|
16413
|
+
toggle_menu_leaves_remote_view: boolean;
|
|
16270
16414
|
/**
|
|
16271
16415
|
* The undo and redo stack for this player.
|
|
16272
16416
|
*/
|
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 2.1.
|
|
5
|
+
// Factorio version 2.1.10
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -43,6 +43,10 @@ interface AchievementPrototypeFilterType extends BaseAchievementPrototypeFilter
|
|
|
43
43
|
*/
|
|
44
44
|
'type': string | string[];
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
|
48
|
+
*/
|
|
49
|
+
type ActiveMouseButtonFlags = Record<'left' | 'right' | 'middle' | 'button-4' | 'button-5' | 'button-6' | 'button-7' | 'button-8' | 'button-9', true>;
|
|
46
50
|
interface AddRecordData {
|
|
47
51
|
/**
|
|
48
52
|
* One of station or rail must be given.
|
|
@@ -2368,6 +2372,10 @@ interface DeciderCombinatorParameters {
|
|
|
2368
2372
|
* List of outputs.
|
|
2369
2373
|
*/
|
|
2370
2374
|
outputs: DeciderCombinatorOutput[];
|
|
2375
|
+
/**
|
|
2376
|
+
* List of else-outputs.
|
|
2377
|
+
*/
|
|
2378
|
+
else_outputs: DeciderCombinatorOutput[];
|
|
2371
2379
|
}
|
|
2372
2380
|
interface Decorative {
|
|
2373
2381
|
/**
|
|
@@ -2449,7 +2457,7 @@ interface DifficultySettings {
|
|
|
2449
2457
|
*/
|
|
2450
2458
|
spoil_time_modifier: double;
|
|
2451
2459
|
/**
|
|
2452
|
-
* A value in range [0.001,
|
|
2460
|
+
* A value in range [0.001, 100000].
|
|
2453
2461
|
*/
|
|
2454
2462
|
technology_price_multiplier: double;
|
|
2455
2463
|
}
|
|
@@ -4127,6 +4135,7 @@ interface ItemProduct {
|
|
|
4127
4135
|
extra_count_fraction?: float;
|
|
4128
4136
|
percent_spoiled?: float;
|
|
4129
4137
|
always_fresh?: boolean;
|
|
4138
|
+
reset_freshness_on_craft?: boolean;
|
|
4130
4139
|
quality_min?: QualityID;
|
|
4131
4140
|
quality_max?: QualityID;
|
|
4132
4141
|
quality_change?: int8;
|
|
@@ -7256,12 +7265,10 @@ interface ModuleEffects {
|
|
|
7256
7265
|
pollution?: ModuleEffectValue;
|
|
7257
7266
|
quality?: ModuleEffectValue;
|
|
7258
7267
|
}
|
|
7259
|
-
/**
|
|
7260
|
-
*
|
|
7261
|
-
*
|
|
7262
|
-
* To write to this, use an array{@link [string | runtime:string}] of the mouse buttons that should be possible to use with on button. The flag `"left-and-right"` can also be set, which will set `"left"` and `"right"` to `true`.
|
|
7268
|
+
type MouseButtonFlags = ('left' | 'right' | /**
|
|
7269
|
+
* Sets both `"left"` and `"right"` flags.
|
|
7263
7270
|
*/
|
|
7264
|
-
|
|
7271
|
+
'left-and-right' | 'middle' | 'button-4' | 'button-5' | 'button-6' | 'button-7' | 'button-8' | 'button-9')[];
|
|
7265
7272
|
interface NeighbourConnectable {
|
|
7266
7273
|
affected_by_direction: boolean;
|
|
7267
7274
|
neighbour_search_distance: float;
|
package/dist/datacollection.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/prototype-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.1.
|
|
5
|
+
// Factorio version 2.1.10
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
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 2.1.
|
|
5
|
+
// Factorio version 2.1.10
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
|
@@ -499,7 +499,7 @@ enum entity_status {
|
|
|
499
499
|
*/
|
|
500
500
|
destination_stop_full = 52,
|
|
501
501
|
/**
|
|
502
|
-
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
|
502
|
+
* Used by constant combinators: Combinator is turned off via switch in GUI. Also used by inserters.
|
|
503
503
|
*/
|
|
504
504
|
disabled = 60,
|
|
505
505
|
disabled_by_control_behavior = 8,
|
|
@@ -1021,294 +1021,298 @@ enum input_action {
|
|
|
1021
1021
|
activate_interrupt = 0,
|
|
1022
1022
|
activate_paste = 1,
|
|
1023
1023
|
add_decider_combinator_condition = 2,
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1024
|
+
add_decider_combinator_else_output = 3,
|
|
1025
|
+
add_decider_combinator_output = 4,
|
|
1026
|
+
add_logistic_section = 5,
|
|
1027
|
+
add_permission_group = 6,
|
|
1028
|
+
add_pin = 7,
|
|
1029
|
+
add_train_interrupt = 8,
|
|
1030
|
+
add_train_station = 9,
|
|
1031
|
+
adjust_blueprint_snapping = 10,
|
|
1032
|
+
admin_action = 11,
|
|
1033
|
+
alt_reverse_select_area = 12,
|
|
1034
|
+
alt_select_area = 13,
|
|
1035
|
+
alt_select_blueprint_entities = 14,
|
|
1036
|
+
alternative_copy = 15,
|
|
1037
|
+
begin_mining = 16,
|
|
1038
|
+
begin_mining_terrain = 17,
|
|
1039
|
+
build = 18,
|
|
1040
|
+
build_rail = 19,
|
|
1041
|
+
build_terrain = 20,
|
|
1042
|
+
cancel_craft = 21,
|
|
1043
|
+
cancel_deconstruct = 22,
|
|
1044
|
+
cancel_delete_space_platform = 23,
|
|
1045
|
+
cancel_new_blueprint = 24,
|
|
1046
|
+
cancel_research = 25,
|
|
1047
|
+
cancel_upgrade = 26,
|
|
1048
|
+
change_active_character_tab = 27,
|
|
1049
|
+
change_active_item_group_for_crafting = 28,
|
|
1050
|
+
change_active_item_group_for_filters = 29,
|
|
1051
|
+
change_active_quick_bar = 30,
|
|
1052
|
+
change_arithmetic_combinator_parameters = 31,
|
|
1053
|
+
change_entity_label = 32,
|
|
1054
|
+
change_heading_riding_state = 33,
|
|
1055
|
+
change_item_label = 34,
|
|
1056
|
+
change_logistic_point_group = 35,
|
|
1057
|
+
change_multiplayer_config = 36,
|
|
1058
|
+
change_picking_state = 37,
|
|
1059
|
+
change_programmable_speaker_alert_parameters = 38,
|
|
1060
|
+
change_programmable_speaker_circuit_parameters = 39,
|
|
1061
|
+
change_programmable_speaker_parameters = 40,
|
|
1062
|
+
change_research_condition = 41,
|
|
1063
|
+
change_riding_state = 42,
|
|
1064
|
+
change_selector_combinator_parameters = 43,
|
|
1065
|
+
change_shooting_state = 44,
|
|
1066
|
+
change_train_name = 45,
|
|
1067
|
+
change_train_station = 46,
|
|
1068
|
+
change_train_stop_station = 47,
|
|
1069
|
+
change_train_wait_condition = 48,
|
|
1070
|
+
change_train_wait_condition_data = 49,
|
|
1071
|
+
cheat = 50,
|
|
1072
|
+
clear_cursor = 51,
|
|
1073
|
+
connect_rolling_stock = 52,
|
|
1074
|
+
copy = 53,
|
|
1075
|
+
copy_entity_settings = 54,
|
|
1076
|
+
copy_large_opened_blueprint = 55,
|
|
1077
|
+
copy_large_opened_item = 56,
|
|
1078
|
+
copy_opened_blueprint = 57,
|
|
1079
|
+
copy_opened_item = 58,
|
|
1080
|
+
craft = 59,
|
|
1081
|
+
create_space_platform = 60,
|
|
1082
|
+
cursor_split = 61,
|
|
1083
|
+
cursor_transfer = 62,
|
|
1084
|
+
custom_input = 63,
|
|
1085
|
+
cycle_blueprint_book_backwards = 64,
|
|
1086
|
+
cycle_blueprint_book_forwards = 65,
|
|
1087
|
+
cycle_quality_down = 66,
|
|
1088
|
+
cycle_quality_up = 67,
|
|
1089
|
+
deconstruct = 68,
|
|
1090
|
+
delete_blueprint_library = 69,
|
|
1091
|
+
delete_blueprint_record = 70,
|
|
1092
|
+
delete_custom_tag = 71,
|
|
1093
|
+
delete_logistic_group = 72,
|
|
1094
|
+
delete_permission_group = 73,
|
|
1095
|
+
delete_space_platform = 74,
|
|
1096
|
+
destroy_item = 75,
|
|
1097
|
+
destroy_opened_item = 76,
|
|
1098
|
+
disconnect_rolling_stock = 77,
|
|
1099
|
+
drag_decider_combinator_condition = 78,
|
|
1100
|
+
drag_decider_combinator_else_output = 79,
|
|
1101
|
+
drag_decider_combinator_output = 80,
|
|
1102
|
+
drag_research_condition = 81,
|
|
1103
|
+
drag_train_schedule = 82,
|
|
1104
|
+
drag_train_schedule_interrupt = 83,
|
|
1105
|
+
drag_train_wait_condition = 84,
|
|
1106
|
+
drop_blueprint_record = 85,
|
|
1107
|
+
drop_item = 86,
|
|
1108
|
+
edit_blueprint_tool_preview = 87,
|
|
1109
|
+
edit_custom_tag = 88,
|
|
1110
|
+
edit_display_panel = 89,
|
|
1111
|
+
edit_display_panel_always_show = 90,
|
|
1112
|
+
edit_display_panel_icon = 91,
|
|
1113
|
+
edit_display_panel_parameters = 92,
|
|
1114
|
+
edit_display_panel_show_in_chart = 93,
|
|
1115
|
+
edit_display_panel_single_entry = 94,
|
|
1116
|
+
edit_interrupt = 95,
|
|
1117
|
+
edit_permission_group = 96,
|
|
1118
|
+
edit_pin = 97,
|
|
1119
|
+
export_blueprint = 98,
|
|
1120
|
+
fast_entity_split = 99,
|
|
1121
|
+
fast_entity_transfer = 100,
|
|
1122
|
+
flip_entity = 101,
|
|
1123
|
+
flush_opened_entity_fluid = 102,
|
|
1124
|
+
flush_opened_entity_specific_fluid = 103,
|
|
1125
|
+
go_to_train_station = 104,
|
|
1126
|
+
grab_blueprint_record = 105,
|
|
1127
|
+
gui_checked_state_changed = 106,
|
|
1128
|
+
gui_click = 107,
|
|
1129
|
+
gui_confirmed = 108,
|
|
1130
|
+
gui_elem_changed = 109,
|
|
1131
|
+
gui_hover = 110,
|
|
1132
|
+
gui_inventory_action = 111,
|
|
1133
|
+
gui_inventory_bar_changed = 112,
|
|
1134
|
+
gui_inventory_filter_changed = 113,
|
|
1135
|
+
gui_leave = 114,
|
|
1136
|
+
gui_location_changed = 115,
|
|
1137
|
+
gui_selected_tab_changed = 116,
|
|
1138
|
+
gui_selection_state_changed = 117,
|
|
1139
|
+
gui_switch_state_changed = 118,
|
|
1140
|
+
gui_text_changed = 119,
|
|
1141
|
+
gui_value_changed = 120,
|
|
1142
|
+
import_blueprint = 121,
|
|
1143
|
+
import_blueprint_string = 122,
|
|
1144
|
+
import_blueprints_filtered = 123,
|
|
1145
|
+
import_permissions_string = 124,
|
|
1146
|
+
instantly_create_space_platform = 125,
|
|
1147
|
+
inventory_split = 126,
|
|
1148
|
+
inventory_transfer = 127,
|
|
1149
|
+
land_at_planet = 128,
|
|
1150
|
+
launch_rocket = 129,
|
|
1151
|
+
lua_shortcut = 130,
|
|
1152
|
+
map_editor_action = 131,
|
|
1153
|
+
market_offer = 132,
|
|
1154
|
+
mod_settings_changed = 133,
|
|
1155
|
+
modify_decider_combinator_condition = 134,
|
|
1156
|
+
modify_decider_combinator_else_output = 135,
|
|
1157
|
+
modify_decider_combinator_output = 136,
|
|
1158
|
+
move_pin = 137,
|
|
1159
|
+
move_research = 138,
|
|
1160
|
+
open_achievements_gui = 139,
|
|
1161
|
+
open_blueprint_library_gui = 140,
|
|
1162
|
+
open_blueprint_record = 141,
|
|
1163
|
+
open_bonus_gui = 142,
|
|
1164
|
+
open_character_gui = 143,
|
|
1165
|
+
open_current_vehicle_gui = 144,
|
|
1166
|
+
open_equipment = 145,
|
|
1167
|
+
open_global_electric_network_gui = 146,
|
|
1168
|
+
open_gui = 147,
|
|
1169
|
+
open_item = 148,
|
|
1170
|
+
open_logistics_gui = 149,
|
|
1171
|
+
open_mod_item = 150,
|
|
1172
|
+
open_new_platform_button_from_rocket_silo = 151,
|
|
1173
|
+
open_opened_entity_grid = 152,
|
|
1174
|
+
open_parent_of_opened_item = 153,
|
|
1175
|
+
open_production_gui = 154,
|
|
1176
|
+
open_train_gui = 155,
|
|
1177
|
+
open_train_station_gui = 156,
|
|
1178
|
+
open_trains_gui = 157,
|
|
1179
|
+
parametrise_blueprint = 158,
|
|
1180
|
+
paste_entity_settings = 159,
|
|
1181
|
+
pin_alert_group = 160,
|
|
1182
|
+
pin_custom_alert = 161,
|
|
1183
|
+
pin_search_result = 162,
|
|
1184
|
+
pipette = 163,
|
|
1185
|
+
place_equipment = 164,
|
|
1186
|
+
providing_to_other_platforms = 165,
|
|
1187
|
+
quick_bar_pick_slot = 166,
|
|
1188
|
+
quick_bar_set_selected_page = 167,
|
|
1189
|
+
quick_bar_set_slot = 168,
|
|
1190
|
+
reassign_blueprint = 169,
|
|
1191
|
+
redo = 170,
|
|
1192
|
+
remote_view_entity = 171,
|
|
1193
|
+
remote_view_surface = 172,
|
|
1194
|
+
remove_cables = 173,
|
|
1195
|
+
remove_decider_combinator_condition = 174,
|
|
1196
|
+
remove_decider_combinator_else_output = 175,
|
|
1197
|
+
remove_decider_combinator_output = 176,
|
|
1198
|
+
remove_logistic_section = 177,
|
|
1199
|
+
remove_pin = 178,
|
|
1200
|
+
remove_train_interrupt = 179,
|
|
1201
|
+
remove_train_station = 180,
|
|
1202
|
+
rename_interrupt = 181,
|
|
1203
|
+
rename_space_platform = 182,
|
|
1204
|
+
reorder_logistic_section = 183,
|
|
1205
|
+
request_missing_construction_materials = 184,
|
|
1206
|
+
reset_assembling_machine = 185,
|
|
1207
|
+
reverse_select_area = 186,
|
|
1208
|
+
rotate_entity = 187,
|
|
1209
|
+
select_area = 188,
|
|
1210
|
+
select_asteroid_chunk_slot = 189,
|
|
1211
|
+
select_blueprint_entities = 190,
|
|
1212
|
+
select_entity_filter_slot = 191,
|
|
1213
|
+
select_entity_slot = 192,
|
|
1214
|
+
select_item_filter = 193,
|
|
1215
|
+
select_mapper_slot_from = 194,
|
|
1216
|
+
select_mapper_slot_to = 195,
|
|
1217
|
+
select_next_valid_gun = 196,
|
|
1218
|
+
select_tile_slot = 197,
|
|
1219
|
+
send_spidertron = 198,
|
|
1220
|
+
send_stack_to_trash = 199,
|
|
1221
|
+
send_stacks_to_trash = 200,
|
|
1222
|
+
send_train_to_pin_target = 201,
|
|
1223
|
+
set_behavior_mode = 202,
|
|
1224
|
+
set_car_weapons_control = 203,
|
|
1225
|
+
set_cheat_mode_quality = 204,
|
|
1226
|
+
set_circuit_condition = 205,
|
|
1227
|
+
set_circuit_mode_of_operation = 206,
|
|
1228
|
+
set_combinator_description = 207,
|
|
1229
|
+
set_control_behavior_input_networks = 208,
|
|
1230
|
+
set_control_behavior_output_networks = 209,
|
|
1231
|
+
set_copy_color_from_train_stop = 210,
|
|
1232
|
+
set_deconstruction_item_tile_selection_mode = 211,
|
|
1233
|
+
set_deconstruction_item_trees_and_rocks_only = 212,
|
|
1234
|
+
set_entity_color = 213,
|
|
1235
|
+
set_entity_energy_property = 214,
|
|
1236
|
+
set_equipment_energy_property = 215,
|
|
1237
|
+
set_filter = 216,
|
|
1238
|
+
set_ghost_cursor = 217,
|
|
1239
|
+
set_heat_interface_mode = 218,
|
|
1240
|
+
set_heat_interface_temperature = 219,
|
|
1241
|
+
set_infinity_container_filter_item = 220,
|
|
1242
|
+
set_infinity_container_logistic_mode = 221,
|
|
1243
|
+
set_infinity_container_remove_unfiltered_items = 222,
|
|
1244
|
+
set_infinity_pipe_filter = 223,
|
|
1245
|
+
set_inserter_max_stack_size = 224,
|
|
1246
|
+
set_inventory_bar = 225,
|
|
1247
|
+
set_lamp_always_on = 226,
|
|
1248
|
+
set_linked_container_link_i_d = 227,
|
|
1249
|
+
set_loader_belt_stack_size_override = 228,
|
|
1250
|
+
set_logistic_filter_item = 229,
|
|
1251
|
+
set_logistic_network_name = 230,
|
|
1252
|
+
set_logistic_section_active = 231,
|
|
1253
|
+
set_player_color = 232,
|
|
1254
|
+
set_pump_fluid_filter = 233,
|
|
1255
|
+
set_request_from_buffers = 234,
|
|
1256
|
+
set_research_finished_stops_game = 235,
|
|
1257
|
+
set_rocket_silo_send_to_orbit_automated_mode = 236,
|
|
1258
|
+
set_schedule_record_allow_unloading = 237,
|
|
1259
|
+
set_signal = 238,
|
|
1260
|
+
set_splitter_priority = 239,
|
|
1261
|
+
set_spoil_priority = 240,
|
|
1262
|
+
set_train_stop_priority = 241,
|
|
1263
|
+
set_train_stopped = 242,
|
|
1264
|
+
set_trains_limit = 243,
|
|
1265
|
+
set_turret_ignore_unlisted = 244,
|
|
1266
|
+
set_use_inserter_filters = 245,
|
|
1267
|
+
set_vehicle_automatic_targeting_parameters = 246,
|
|
1268
|
+
setup_assembling_machine = 247,
|
|
1269
|
+
setup_blueprint = 248,
|
|
1270
|
+
setup_single_blueprint_record = 249,
|
|
1271
|
+
spawn_item = 250,
|
|
1272
|
+
spectator_change_surface = 251,
|
|
1273
|
+
stack_split = 252,
|
|
1274
|
+
stack_transfer = 253,
|
|
1275
|
+
start_repair = 254,
|
|
1276
|
+
start_research = 255,
|
|
1277
|
+
start_walking = 256,
|
|
1278
|
+
stop_drag_build = 257,
|
|
1279
|
+
swap_asteroid_chunk_slots = 258,
|
|
1280
|
+
swap_entity_filter_slots = 259,
|
|
1281
|
+
swap_entity_slots = 260,
|
|
1282
|
+
swap_infinity_container_filter_items = 261,
|
|
1283
|
+
swap_item_filters = 262,
|
|
1284
|
+
swap_logistic_filter_items = 263,
|
|
1285
|
+
swap_mappers = 264,
|
|
1286
|
+
swap_tile_slots = 265,
|
|
1287
|
+
switch_connect_to_logistic_network = 266,
|
|
1288
|
+
switch_constant_combinator_state = 267,
|
|
1289
|
+
switch_inserter_filter_mode_state = 268,
|
|
1290
|
+
switch_loader_filter_mode = 269,
|
|
1291
|
+
switch_mining_drill_filter_mode_state = 270,
|
|
1292
|
+
switch_power_switch_state = 271,
|
|
1293
|
+
take_equipment = 272,
|
|
1294
|
+
toggle_artillery_auto_targeting = 273,
|
|
1295
|
+
toggle_blueprint_snap_to_grid = 274,
|
|
1296
|
+
toggle_deconstruction_item_entity_filter_mode = 275,
|
|
1297
|
+
toggle_deconstruction_item_tile_filter_mode = 276,
|
|
1298
|
+
toggle_driving = 277,
|
|
1299
|
+
toggle_enable_vehicle_logistics_while_moving = 278,
|
|
1300
|
+
toggle_entity_logistic_requests = 279,
|
|
1301
|
+
toggle_equipment_movement_bonus = 280,
|
|
1302
|
+
toggle_map_editor = 281,
|
|
1303
|
+
toggle_personal_logistic_requests = 282,
|
|
1304
|
+
toggle_personal_roboport = 283,
|
|
1305
|
+
toggle_selected_entity = 284,
|
|
1306
|
+
toggle_show_entity_info = 285,
|
|
1307
|
+
toggle_tall_entity_visibility = 286,
|
|
1308
|
+
trash_not_requested_items = 287,
|
|
1309
|
+
undo = 288,
|
|
1310
|
+
upgrade = 289,
|
|
1311
|
+
upgrade_opened_blueprint_by_item = 290,
|
|
1312
|
+
upgrade_opened_blueprint_by_record = 291,
|
|
1313
|
+
use_item = 292,
|
|
1314
|
+
wire_dragging = 293,
|
|
1315
|
+
write_to_console = 294
|
|
1312
1316
|
}
|
|
1313
1317
|
enum input_method {
|
|
1314
1318
|
game_controller = 1,
|
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 2.1.
|
|
5
|
+
// Factorio version 2.1.10
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
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 2.1.
|
|
5
|
+
// Factorio version 2.1.10
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/prototypes.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/prototype-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.1.
|
|
5
|
+
// Factorio version 2.1.10
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -5176,8 +5176,17 @@ interface ItemPrototype extends Prototype {
|
|
|
5176
5176
|
* Used by Inserters with spoil priority. Item with higher spoil level is considered more spoiled than item with lower spoil level regardless of progress of spoiling.
|
|
5177
5177
|
*/
|
|
5178
5178
|
spoil_level?: uint8;
|
|
5179
|
+
/**
|
|
5180
|
+
* Defines how many levels the item's quality will go up (positive integer) or down (negative integer) when spoiling.
|
|
5181
|
+
*/
|
|
5179
5182
|
spoil_quality_change?: int8;
|
|
5183
|
+
/**
|
|
5184
|
+
* The maximum quality level that can be reached when {@link spoil_quality_change | prototype:ItemPrototype::spoil_quality_change} is used.
|
|
5185
|
+
*/
|
|
5180
5186
|
spoil_quality_max?: QualityID;
|
|
5187
|
+
/**
|
|
5188
|
+
* The minimum quality level that can be reached when {@link spoil_quality_change | prototype:ItemPrototype::spoil_quality_change} is used.
|
|
5189
|
+
*/
|
|
5181
5190
|
spoil_quality_min?: QualityID;
|
|
5182
5191
|
spoil_result?: ItemID;
|
|
5183
5192
|
spoil_ticks?: uint32;
|
package/dist/types.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/prototype-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.1.
|
|
5
|
+
// Factorio version 2.1.10
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -9137,7 +9137,7 @@ interface RecipeTints {
|
|
|
9137
9137
|
*/
|
|
9138
9138
|
type RenderLayer = 'zero' | 'background-transitions' | 'under-tiles' | 'decals' | 'above-tiles' | 'ground-layer-1' | 'ground-layer-2' | 'ground-layer-3' | 'ground-layer-4' | 'ground-layer-5' | 'lower-radius-visualization' | 'radius-visualization' | 'transport-belt-integration' | 'resource' | 'building-smoke' | 'rail-stone-path-lower' | 'rail-stone-path' | 'rail-tie' | 'decorative' | 'ground-patch' | 'ground-patch-higher' | 'ground-patch-higher2' | 'rail-chain-signal-metal' | 'rail-screw' | 'rail-metal' | 'remnants' | 'floor' | 'transport-belt' | 'transport-belt-endings' | 'floor-mechanics-under-corpse' | 'corpse' | 'floor-mechanics' | 'item' | 'transport-belt-reader' | 'lower-object' | 'transport-belt-circuit-connector' | 'lower-object-above-shadow' | 'lower-object-overlay' | 'object-under' | 'object' | 'cargo-hatch' | 'higher-object-under' | 'higher-object-above' | 'train-stop-top' | 'item-in-inserter-hand' | 'above-inserters' | 'wires' | 'under-elevated' | 'elevated-rail-stone-path-lower' | 'elevated-rail-stone-path' | 'elevated-rail-tie' | 'elevated-rail-screw' | 'elevated-rail-metal' | 'elevated-lower-object' | 'elevated-object' | 'elevated-higher-object' | 'fluid-visualization' | 'wires-above' | 'entity-info-icon' | 'entity-info-icon-above' | 'explosion' | 'projectile' | 'smoke' | 'air-object' | 'air-entity-info-icon' | 'light-effect' | 'selection-box' | 'higher-selection-box' | 'collision-selection-box' | 'arrow' | 'cursor';
|
|
9139
9139
|
/**
|
|
9140
|
-
* Defines the amount of an item required to research one unit of a {@link technology | prototype:TechnologyPrototype}. The first member of the tuple is the name of a {@link
|
|
9140
|
+
* Defines the amount of an item required to research one unit of a {@link technology | prototype:TechnologyPrototype}. The first member of the tuple is the name of a {@link ItemPrototype | prototype:ItemPrototype} and the second is the amount. Amount must not be 0.
|
|
9141
9141
|
* @example ```
|
|
9142
9142
|
{"automation-science-pack", 1}
|
|
9143
9143
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "factorio-types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.62",
|
|
4
4
|
"description": "Typescript declarations for the Factorio mod API",
|
|
5
5
|
"main": "index.d.ts",
|
|
6
6
|
"repository": "https://github.com/sguest/factorio-types.git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"src/**/*.d.ts",
|
|
24
24
|
"dist/**/*.d.ts"
|
|
25
25
|
],
|
|
26
|
-
"factorioVersion": "2.1.
|
|
26
|
+
"factorioVersion": "2.1.10",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"lua-types": "^2.13.1"
|
|
29
29
|
},
|