factorio-types 1.2.41 → 1.2.43
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 +91 -11
- package/dist/concepts.d.ts +64 -38
- package/dist/datacollection.d.ts +1 -1
- package/dist/defines.d.ts +13 -12
- package/dist/events.d.ts +30 -5
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +44 -28
- package/dist/types.d.ts +20 -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.0.
|
|
5
|
+
// Factorio version 2.0.60
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -3903,6 +3903,24 @@ interface LuaBootstrap {
|
|
|
3903
3903
|
script.on_event(defines.events.on_built_entity,
|
|
3904
3904
|
function(event) game.print("Gotta go fast!") end,
|
|
3905
3905
|
{{filter = "name", name = "fast-inserter"}})
|
|
3906
|
+
```
|
|
3907
|
+
*/
|
|
3908
|
+
on_event(this: void, event: defines.events.on_udp_packet_received, handler: ((this: void, arg0: runtime.on_udp_packet_received) => any) | nil, filters?: EventFilter): void;
|
|
3909
|
+
/**
|
|
3910
|
+
* Register a handler to run on the specified event(s). Each mod can only register once for every event, as any additional registration will overwrite the previous one. This holds true even if different filters are used for subsequent registrations.
|
|
3911
|
+
* @param event The event(s) or custom-input to invoke the handler on.
|
|
3912
|
+
* @param handler The handler for this event. Passing `nil` will unregister it.
|
|
3913
|
+
* @param filters The filters for this event. Can only be used when registering for individual events.
|
|
3914
|
+
* @example ```
|
|
3915
|
+
-- Register for the on_tick event to print the current tick to console each tick
|
|
3916
|
+
script.on_event(defines.events.on_tick,
|
|
3917
|
+
function(event) game.print(event.tick) end)
|
|
3918
|
+
```
|
|
3919
|
+
* @example ```
|
|
3920
|
+
-- Register for the on_built_entity event, limiting it to only be received when a `"fast-inserter"` is built
|
|
3921
|
+
script.on_event(defines.events.on_built_entity,
|
|
3922
|
+
function(event) game.print("Gotta go fast!") end,
|
|
3923
|
+
{{filter = "name", name = "fast-inserter"}})
|
|
3906
3924
|
```
|
|
3907
3925
|
*/
|
|
3908
3926
|
on_event(this: void, event: defines.events.on_undo_applied, handler: ((this: void, arg0: runtime.on_undo_applied) => any) | nil, filters?: EventFilter): void;
|
|
@@ -6808,6 +6826,16 @@ interface LuaEntity extends LuaControl {
|
|
|
6808
6826
|
* Note: Some entities (Corpse, FireFlame, Roboport, RollingStock, dying entities) need to remain active and will ignore writes.
|
|
6809
6827
|
*/
|
|
6810
6828
|
disabled_by_script: boolean;
|
|
6829
|
+
display_panel_always_show: boolean;
|
|
6830
|
+
/**
|
|
6831
|
+
* Icon visible on the display panel. Can be written only when it is not set by control behavior.
|
|
6832
|
+
*/
|
|
6833
|
+
display_panel_icon: SignalID;
|
|
6834
|
+
display_panel_show_in_chart: boolean;
|
|
6835
|
+
/**
|
|
6836
|
+
* Text visible on the display panel. Can be written only when it is not set by control behavior.
|
|
6837
|
+
*/
|
|
6838
|
+
display_panel_text: LocalisedString;
|
|
6811
6839
|
/**
|
|
6812
6840
|
* Gives a draw data of the given entity if it supports such data.
|
|
6813
6841
|
*/
|
|
@@ -7587,7 +7615,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
|
|
|
7587
7615
|
*/
|
|
7588
7616
|
get_fluid_capacity(this: void, quality?: QualityID): double;
|
|
7589
7617
|
/**
|
|
7590
|
-
* The fluid usage of this generator or fusion reactor prototype.
|
|
7618
|
+
* The fluid usage of this generator, fusion generator or fusion reactor prototype.
|
|
7591
7619
|
*/
|
|
7592
7620
|
get_fluid_usage_per_tick(this: void, quality?: QualityID): double | null;
|
|
7593
7621
|
/**
|
|
@@ -8237,7 +8265,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
|
|
|
8237
8265
|
/**
|
|
8238
8266
|
* Items that when placed will produce this entity, if any. Construction bots will choose the first item in the list to build this entity.
|
|
8239
8267
|
*/
|
|
8240
|
-
readonly items_to_place_this?:
|
|
8268
|
+
readonly items_to_place_this?: ItemWithCount[];
|
|
8241
8269
|
readonly joint_distance?: double;
|
|
8242
8270
|
/**
|
|
8243
8271
|
* The item prototype names that are the inputs of this lab prototype.
|
|
@@ -8665,6 +8693,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
|
|
|
8665
8693
|
* If this drill uses force productivity bonus
|
|
8666
8694
|
*/
|
|
8667
8695
|
readonly uses_force_mining_productivity_bonus?: boolean;
|
|
8696
|
+
readonly uses_inserter_stack_size_bonus?: boolean;
|
|
8668
8697
|
/**
|
|
8669
8698
|
* 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.
|
|
8670
8699
|
*/
|
|
@@ -8898,7 +8927,7 @@ interface LuaEquipmentGrid {
|
|
|
8898
8927
|
position?: EquipmentPosition;
|
|
8899
8928
|
equipment?: LuaEquipment;
|
|
8900
8929
|
by_player?: PlayerIdentification;
|
|
8901
|
-
}):
|
|
8930
|
+
}): ItemWithCount | null;
|
|
8902
8931
|
/**
|
|
8903
8932
|
* Remove all equipment from the grid.
|
|
8904
8933
|
* @param by_player If provided, the action is done 'as' this player and {@link on_player_removed_equipment | runtime:on_player_removed_equipment} is triggered.
|
|
@@ -8935,6 +8964,10 @@ interface LuaEquipmentGrid {
|
|
|
8935
8964
|
* The total amount of inventory bonus this equipment grid gives.
|
|
8936
8965
|
*/
|
|
8937
8966
|
readonly inventory_bonus: uint;
|
|
8967
|
+
/**
|
|
8968
|
+
* The item stack that this equipment grid is owned by.
|
|
8969
|
+
*/
|
|
8970
|
+
readonly itemstack_owner?: LuaItemStack;
|
|
8938
8971
|
/**
|
|
8939
8972
|
* The maximum amount of shields this equipment grid has.
|
|
8940
8973
|
*/
|
|
@@ -11381,6 +11414,10 @@ interface LuaGuiElementAddParamsChooseElemButton extends BaseLuaGuiElementAddPar
|
|
|
11381
11414
|
* If type is `"achievement"` - the default value for the button.
|
|
11382
11415
|
*/
|
|
11383
11416
|
'achievement'?: string;
|
|
11417
|
+
/**
|
|
11418
|
+
* If type is `"asteroid-chunk"` - the default value for the button.
|
|
11419
|
+
*/
|
|
11420
|
+
'asteroid-chunk'?: string;
|
|
11384
11421
|
/**
|
|
11385
11422
|
* If type is `"decorative"` - the default value for the button.
|
|
11386
11423
|
*/
|
|
@@ -11437,6 +11474,10 @@ interface LuaGuiElementAddParamsChooseElemButton extends BaseLuaGuiElementAddPar
|
|
|
11437
11474
|
* If type is `"signal"` - the default value for the button.
|
|
11438
11475
|
*/
|
|
11439
11476
|
'signal'?: SignalID;
|
|
11477
|
+
/**
|
|
11478
|
+
* If type is `"space-location"` - the default value for the button.
|
|
11479
|
+
*/
|
|
11480
|
+
'space-location'?: string;
|
|
11440
11481
|
/**
|
|
11441
11482
|
* If type is `"technology"` - the default value for the button.
|
|
11442
11483
|
*/
|
|
@@ -11946,11 +11987,33 @@ interface LuaHelpers {
|
|
|
11946
11987
|
* Not available in settings and prototype stages.
|
|
11947
11988
|
*/
|
|
11948
11989
|
parse_map_exchange_string(this: void, map_exchange_string: string): MapExchangeStringData;
|
|
11990
|
+
/**
|
|
11991
|
+
* Dispatch {@link defines.events.on_udp_packet_received | runtime:defines.events.on_udp_packet_received} events for any new packets received by the specified player or the server.
|
|
11992
|
+
*
|
|
11993
|
+
* This must be enabled per-instance with `--enable-lua-udp`.
|
|
11994
|
+
*
|
|
11995
|
+
* Udp socket when enabled requests 256KB of receive buffer from the operating system. If there is more data than this between two subsequent calls of this method, data will be lost. That also applies to periods when the game is paused or is being saved as in those case the game update is not happening.
|
|
11996
|
+
*
|
|
11997
|
+
* 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.
|
|
11998
|
+
*
|
|
11999
|
+
* Not available in settings and prototype stages.
|
|
12000
|
+
* @param for_player If given, packets will only be read from this `player_index`. Providing `0` will only read from the server if present.
|
|
12001
|
+
*/
|
|
12002
|
+
recv_udp(this: void, for_player?: uint): void;
|
|
11949
12003
|
/**
|
|
11950
12004
|
* 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 LuaHelpers::write_file | runtime:LuaHelpers::write_file}.
|
|
11951
12005
|
* @param path The path to the file or directory to remove, relative to `script-output`.
|
|
11952
12006
|
*/
|
|
11953
12007
|
remove_path(this: void, path: string): void;
|
|
12008
|
+
/**
|
|
12009
|
+
* Send data to a UDP port on localhost for a specified player, if enabled.
|
|
12010
|
+
*
|
|
12011
|
+
* This must be enabled per-instance with `--enable-lua-udp`.
|
|
12012
|
+
* @param port Destination port number (localhost only)
|
|
12013
|
+
* @param data The content to send.
|
|
12014
|
+
* @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.
|
|
12015
|
+
*/
|
|
12016
|
+
send_udp(this: void, port: uint16, data: LocalisedString, for_player?: uint): void;
|
|
11954
12017
|
/**
|
|
11955
12018
|
* Convert a table to a JSON string
|
|
11956
12019
|
*/
|
|
@@ -14161,6 +14224,12 @@ interface LuaPlayer extends LuaControl {
|
|
|
14161
14224
|
/**
|
|
14162
14225
|
* Invokes the "smart pipette" action on the player as if the user pressed it.
|
|
14163
14226
|
* @param allow_ghost Defaults to false.
|
|
14227
|
+
* @returns Whether the smart pipette found something to put into the cursor.
|
|
14228
|
+
*/
|
|
14229
|
+
pipette(this: void, id: PipetteID, quality?: QualityID, allow_ghost?: boolean): boolean;
|
|
14230
|
+
/**
|
|
14231
|
+
* Invokes the "smart pipette" action on the player as if the user pressed it. This method is deprecated in favor of {@link LuaPlayer::pipette | runtime:LuaPlayer::pipette} and should not be used.
|
|
14232
|
+
* @param allow_ghost Defaults to false.
|
|
14164
14233
|
* @returns Whether the smart pipette found something to place.
|
|
14165
14234
|
*/
|
|
14166
14235
|
pipette_entity(this: void, entity: EntityWithQualityID, allow_ghost?: boolean): boolean;
|
|
@@ -16974,8 +17043,8 @@ interface LuaSpacePlatform {
|
|
|
16974
17043
|
* If no filters are given, returns all asteroid chunks in the search area. If multiple filters are specified, returns only asteroid chunks matching every given filter. If no area and no position are given, the entire surface is searched.
|
|
16975
17044
|
* @param table.invert If the filters should be inverted.
|
|
16976
17045
|
* @example ```
|
|
16977
|
-
game.
|
|
16978
|
-
game.
|
|
17046
|
+
game.forces.player.platforms[1].find_asteroid_chunks_filtered{area = {{-10, -10}, {10, 10}}, name = "carbonic-asteroid"} -- gets all asteroids with the given name in the rectangle
|
|
17047
|
+
game.forces.player.platforms[1].find_asteroid_chunks_filtered{area = {{-10, -10}, {10, 10}}, limit = 5} -- gets the first 5 asteroid chunks in the rectangle
|
|
16979
17048
|
```
|
|
16980
17049
|
*/
|
|
16981
17050
|
find_asteroid_chunks_filtered(this: void, table: {
|
|
@@ -18366,7 +18435,7 @@ interface LuaSurface {
|
|
|
18366
18435
|
*/
|
|
18367
18436
|
wind_speed: double;
|
|
18368
18437
|
}
|
|
18369
|
-
type LuaSurfaceCreateEntityParams = BaseLuaSurfaceCreateEntityParams | LuaSurfaceCreateEntityParamsArtilleryFlare | LuaSurfaceCreateEntityParamsArtilleryProjectile | LuaSurfaceCreateEntityParamsAssemblingMachine | LuaSurfaceCreateEntityParamsBeam | LuaSurfaceCreateEntityParamsCharacterCorpse | LuaSurfaceCreateEntityParamsCliff | LuaSurfaceCreateEntityParamsContainer | LuaSurfaceCreateEntityParamsElectricPole | LuaSurfaceCreateEntityParamsEntityGhost | LuaSurfaceCreateEntityParamsFire | LuaSurfaceCreateEntityParamsHighlightBox | LuaSurfaceCreateEntityParamsInserter | LuaSurfaceCreateEntityParamsItemEntity | LuaSurfaceCreateEntityParamsItemRequestProxy | LuaSurfaceCreateEntityParamsLamp | LuaSurfaceCreateEntityParamsLoader | LuaSurfaceCreateEntityParamsLoader1x1 | LuaSurfaceCreateEntityParamsLocomotive | LuaSurfaceCreateEntityParamsLogisticContainer | LuaSurfaceCreateEntityParamsParticle | LuaSurfaceCreateEntityParamsPlant | LuaSurfaceCreateEntityParamsProgrammableSpeaker | LuaSurfaceCreateEntityParamsProjectile | LuaSurfaceCreateEntityParamsProjectile | LuaSurfaceCreateEntityParamsRailChainSignal | LuaSurfaceCreateEntityParamsRailSignal | LuaSurfaceCreateEntityParamsResource | LuaSurfaceCreateEntityParamsRollingStock | LuaSurfaceCreateEntityParamsSimpleEntityWithForce | LuaSurfaceCreateEntityParamsSimpleEntityWithOwner | LuaSurfaceCreateEntityParamsSpeechBubble | LuaSurfaceCreateEntityParamsStream | LuaSurfaceCreateEntityParamsTileGhost | LuaSurfaceCreateEntityParamsUndergroundBelt;
|
|
18438
|
+
type LuaSurfaceCreateEntityParams = BaseLuaSurfaceCreateEntityParams | LuaSurfaceCreateEntityParamsArtilleryFlare | LuaSurfaceCreateEntityParamsArtilleryProjectile | LuaSurfaceCreateEntityParamsAssemblingMachine | LuaSurfaceCreateEntityParamsBeam | LuaSurfaceCreateEntityParamsCharacterCorpse | LuaSurfaceCreateEntityParamsCliff | LuaSurfaceCreateEntityParamsContainer | LuaSurfaceCreateEntityParamsDisplayPanel | LuaSurfaceCreateEntityParamsElectricPole | LuaSurfaceCreateEntityParamsEntityGhost | LuaSurfaceCreateEntityParamsFire | LuaSurfaceCreateEntityParamsHighlightBox | LuaSurfaceCreateEntityParamsInserter | LuaSurfaceCreateEntityParamsItemEntity | LuaSurfaceCreateEntityParamsItemRequestProxy | LuaSurfaceCreateEntityParamsLamp | LuaSurfaceCreateEntityParamsLoader | LuaSurfaceCreateEntityParamsLoader1x1 | LuaSurfaceCreateEntityParamsLocomotive | LuaSurfaceCreateEntityParamsLogisticContainer | LuaSurfaceCreateEntityParamsParticle | LuaSurfaceCreateEntityParamsPlant | LuaSurfaceCreateEntityParamsProgrammableSpeaker | LuaSurfaceCreateEntityParamsProjectile | LuaSurfaceCreateEntityParamsProjectile | LuaSurfaceCreateEntityParamsRailChainSignal | LuaSurfaceCreateEntityParamsRailSignal | LuaSurfaceCreateEntityParamsResource | LuaSurfaceCreateEntityParamsRollingStock | LuaSurfaceCreateEntityParamsSimpleEntityWithForce | LuaSurfaceCreateEntityParamsSimpleEntityWithOwner | LuaSurfaceCreateEntityParamsSpeechBubble | LuaSurfaceCreateEntityParamsStream | LuaSurfaceCreateEntityParamsTileGhost | LuaSurfaceCreateEntityParamsUndergroundBelt;
|
|
18370
18439
|
interface BaseLuaSurfaceCreateEntityParams {
|
|
18371
18440
|
/**
|
|
18372
18441
|
* Cause entity / force. The entity or force that triggered the chain of events that led to this entity being created. Used for beams, projectiles, stickers, etc. so that the damage receiver can know which entity or force to retaliate against.
|
|
@@ -18530,6 +18599,16 @@ interface LuaSurfaceCreateEntityParamsContainer extends BaseLuaSurfaceCreateEnti
|
|
|
18530
18599
|
*/
|
|
18531
18600
|
'bar'?: uint;
|
|
18532
18601
|
}
|
|
18602
|
+
/**
|
|
18603
|
+
*
|
|
18604
|
+
* Applies to variant case `display-panel`
|
|
18605
|
+
*/
|
|
18606
|
+
interface LuaSurfaceCreateEntityParamsDisplayPanel extends BaseLuaSurfaceCreateEntityParams {
|
|
18607
|
+
'always_show'?: boolean;
|
|
18608
|
+
'icon'?: SignalID;
|
|
18609
|
+
'show_in_chart'?: boolean;
|
|
18610
|
+
'text'?: LocalisedString;
|
|
18611
|
+
}
|
|
18533
18612
|
/**
|
|
18534
18613
|
*
|
|
18535
18614
|
* Applies to variant case `electric-pole`
|
|
@@ -18604,9 +18683,9 @@ interface LuaSurfaceCreateEntityParamsInserter extends BaseLuaSurfaceCreateEntit
|
|
|
18604
18683
|
*/
|
|
18605
18684
|
interface LuaSurfaceCreateEntityParamsItemEntity extends BaseLuaSurfaceCreateEntityParams {
|
|
18606
18685
|
/**
|
|
18607
|
-
* The stack of items to create.
|
|
18686
|
+
* The stack of items to create. Either the name of an item, which will create a full stack, or a detailed item stack definition.
|
|
18608
18687
|
*/
|
|
18609
|
-
'stack':
|
|
18688
|
+
'stack': string | ItemStackDefinition;
|
|
18610
18689
|
}
|
|
18611
18690
|
/**
|
|
18612
18691
|
*
|
|
@@ -19176,7 +19255,7 @@ interface LuaTilePrototype extends LuaPrototypeBase {
|
|
|
19176
19255
|
/**
|
|
19177
19256
|
* Items that when placed will produce this tile, if any. Construction bots will choose the first item in the list to build this tile.
|
|
19178
19257
|
*/
|
|
19179
|
-
readonly items_to_place_this?:
|
|
19258
|
+
readonly items_to_place_this?: ItemWithCount[];
|
|
19180
19259
|
readonly layer: uint;
|
|
19181
19260
|
readonly map_color: Color;
|
|
19182
19261
|
readonly max_health: float;
|
|
@@ -19210,7 +19289,6 @@ interface LuaTilePrototype extends LuaPrototypeBase {
|
|
|
19210
19289
|
* 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.
|
|
19211
19290
|
*/
|
|
19212
19291
|
readonly object_name: string;
|
|
19213
|
-
readonly placeable_by?: SimpleItemStack[];
|
|
19214
19292
|
readonly scorch_mark_color?: Color;
|
|
19215
19293
|
readonly thawed_variant?: LuaTilePrototype;
|
|
19216
19294
|
readonly trigger_effect?: TriggerEffectItem[];
|
|
@@ -19729,6 +19807,8 @@ interface LuaTurretControlBehavior extends LuaGenericOnOffControlBehavior {
|
|
|
19729
19807
|
}
|
|
19730
19808
|
/**
|
|
19731
19809
|
* The undo queue for a player. The term `item_index` refers to the index of an undo item in the queue, while `action_index` refers to the index of one of the individual actions that make up an undo item.
|
|
19810
|
+
*
|
|
19811
|
+
* Items are added to the undo queue through player actions and Lua methods that emulate player actions like {@link LuaEntity::order_upgrade | runtime:LuaEntity::order_upgrade}.
|
|
19732
19812
|
*/
|
|
19733
19813
|
interface LuaUndoRedoStack {
|
|
19734
19814
|
/**
|
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.0.
|
|
5
|
+
// Factorio version 2.0.60
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -1093,6 +1093,10 @@ interface ConfigurationChangedData {
|
|
|
1093
1093
|
* `true` when mod prototype migrations have been applied since the last time this save was loaded.
|
|
1094
1094
|
*/
|
|
1095
1095
|
migration_applied: boolean;
|
|
1096
|
+
/**
|
|
1097
|
+
* Dictionary of prototype changes due to {@link migrations | runtime:migrations}. The inner dictionary maps the old prototype name to the new prototype name. The new name will be an empty string if the prototype was removed. Entries are omitted if the old and new prototype name are the same.
|
|
1098
|
+
*/
|
|
1099
|
+
migrations: LuaTable<IDType, Record<string, string>>;
|
|
1096
1100
|
}
|
|
1097
1101
|
interface CraftingQueueItem {
|
|
1098
1102
|
/**
|
|
@@ -2542,6 +2546,10 @@ interface HeatSetting {
|
|
|
2542
2546
|
*/
|
|
2543
2547
|
mode?: 'at-least' | 'at-most' | 'exactly' | 'add' | 'remove';
|
|
2544
2548
|
}
|
|
2549
|
+
/**
|
|
2550
|
+
* All base prototype types.
|
|
2551
|
+
*/
|
|
2552
|
+
type IDType = 'custom-input' | 'equipment-grid' | 'entity' | 'particle' | 'item' | 'collision-layer' | 'airborne-pollutant' | 'tile' | 'decorative' | 'recipe-category' | 'item-group' | 'item-subgroup' | 'recipe' | 'fluid' | 'ammo-category' | 'fuel-category' | 'resource-category' | 'technology' | 'noise-function' | 'noise-expression' | 'autoplace-control' | 'equipment' | 'damage-type' | 'virtual-signal' | 'achievement' | 'module-category' | 'equipment-category' | 'mod-setting' | 'trivial-smoke' | 'asteroid-chunk' | 'quality' | 'surface-property' | 'procession-layer-inheritance-group' | 'procession' | 'space-location' | 'space-connection' | 'active-trigger' | 'shortcut' | 'burner-usage' | 'surface' | 'mod-data' | 'custom-event';
|
|
2545
2553
|
/**
|
|
2546
2554
|
* A single filter used by an infinity-filters instance.
|
|
2547
2555
|
*/
|
|
@@ -2620,6 +2628,10 @@ interface IngredientFluid extends BaseIngredient {
|
|
|
2620
2628
|
* The minimum fluid temperature required.
|
|
2621
2629
|
*/
|
|
2622
2630
|
'minimum_temperature'?: float;
|
|
2631
|
+
/**
|
|
2632
|
+
* When minimum and maximum temperature are the same, this property will be present instead of the other two.
|
|
2633
|
+
*/
|
|
2634
|
+
'temperature'?: float;
|
|
2623
2635
|
}
|
|
2624
2636
|
interface InserterCircuitConditions {
|
|
2625
2637
|
circuit?: CircuitCondition;
|
|
@@ -3132,14 +3144,45 @@ interface ItemStackDefinition {
|
|
|
3132
3144
|
spoil_percent?: double;
|
|
3133
3145
|
}
|
|
3134
3146
|
/**
|
|
3135
|
-
* An item may be specified in one of
|
|
3147
|
+
* An item may be specified in one of three ways.
|
|
3148
|
+
* @example ```
|
|
3149
|
+
-- All of these lines specify an item stack of one iron plate
|
|
3150
|
+
{name="iron-plate"}
|
|
3151
|
+
{name="iron-plate", count=1}
|
|
3152
|
+
{name="iron-plate", count=1, quality="normal"}
|
|
3153
|
+
```
|
|
3154
|
+
* @example ```
|
|
3155
|
+
-- This is a stack of 47 copper plates
|
|
3156
|
+
{name="copper-plate", count=47}
|
|
3157
|
+
```
|
|
3158
|
+
* @example ```
|
|
3159
|
+
--These are both full stacks of iron plates (for iron-plate, a full stack is 100 plates)
|
|
3160
|
+
"iron-plate"
|
|
3161
|
+
{name="iron-plate", count=100}
|
|
3162
|
+
```
|
|
3163
|
+
*/
|
|
3164
|
+
type ItemStackIdentification = /**
|
|
3165
|
+
* The name of the item, which represents a full stack of that item.
|
|
3136
3166
|
*/
|
|
3137
|
-
|
|
3167
|
+
string | /**
|
|
3168
|
+
* The detailed definition of an item stack.
|
|
3169
|
+
*/
|
|
3170
|
+
ItemStackDefinition | LuaItemStack;
|
|
3138
3171
|
type ItemStackIndex = uint16;
|
|
3139
3172
|
interface ItemStackLocation {
|
|
3140
3173
|
inventory: defines.inventory;
|
|
3141
3174
|
slot: uint;
|
|
3142
3175
|
}
|
|
3176
|
+
interface ItemWithCount {
|
|
3177
|
+
/**
|
|
3178
|
+
* Name of the item prototype.
|
|
3179
|
+
*/
|
|
3180
|
+
name: string;
|
|
3181
|
+
/**
|
|
3182
|
+
* The number of items.
|
|
3183
|
+
*/
|
|
3184
|
+
count: ItemCountType;
|
|
3185
|
+
}
|
|
3143
3186
|
interface ItemWithQualityCounts {
|
|
3144
3187
|
/**
|
|
3145
3188
|
* Name of the item prototype.
|
|
@@ -3148,7 +3191,7 @@ interface ItemWithQualityCounts {
|
|
|
3148
3191
|
/**
|
|
3149
3192
|
* The number of items.
|
|
3150
3193
|
*/
|
|
3151
|
-
count:
|
|
3194
|
+
count: ItemCountType;
|
|
3152
3195
|
/**
|
|
3153
3196
|
* Name of the item's quality prototype.
|
|
3154
3197
|
*/
|
|
@@ -3173,7 +3216,7 @@ ItemIDAndQualityIDPair;
|
|
|
3173
3216
|
/**
|
|
3174
3217
|
* The internal name of a game control (key binding).
|
|
3175
3218
|
*/
|
|
3176
|
-
type LinkedGameControl = 'move-up' | 'move-down' | 'move-left' | 'move-right' | 'open-character-gui' | 'open-gui' | 'confirm-gui' | 'toggle-free-cursor' | 'mine' | 'build' | 'build-ghost' | 'super-forced-build' | 'clear-cursor' | 'pipette' | 'rotate' | 'reverse-rotate' | 'flip-horizontal' | 'flip-vertical' | 'pick-items' | 'drop-cursor' | 'show-info' | 'shoot-enemy' | 'shoot-selected' | 'next-weapon' | 'toggle-driving' | 'zoom-in' | 'zoom-out' | 'use-item' | 'alternative-use-item' | 'toggle-console' | 'copy-entity-settings' | 'paste-entity-settings' | 'controller-gui-logistics-tab' | 'controller-gui-character-tab' | 'controller-gui-crafting-tab' | 'toggle-rail-layer' | 'select-for-blueprint' | 'select-for-cancel-deconstruct' | 'select-for-super-forced-deconstruct' | 'reverse-select' | 'alt-reverse-select' | 'deselect' | 'cycle-blueprint-forwards' | 'cycle-blueprint-backwards' | 'focus-search' | 'larger-terrain-building-area' | 'smaller-terrain-building-area' | 'remove-pole-cables' | 'build-with-obstacle-avoidance' | 'add-station' | 'add-temporary-station' | 'rename-all' | 'fast-wait-condition' | 'drag-map' | 'move-tag' | 'place-in-chat' | 'place-ping' | 'pin' | 'activate-tooltip' | 'next-surface' | 'previous-surface' | 'cycle-quality-up' | 'cycle-quality-down' | 'craft' | 'craft-5' | 'craft-all' | 'cancel-craft' | 'cancel-craft-5' | 'cancel-craft-all' | 'pick-item' | 'stack-transfer' | 'inventory-transfer' | 'fast-entity-transfer' | 'cursor-split' | 'stack-split' | 'inventory-split' | 'fast-entity-split' | 'toggle-filter' | 'open-item' | 'copy-inventory-filter' | 'paste-inventory-filter' | 'show-quick-panel' | 'next-quick-panel-page' | 'previous-quick-panel-page' | 'next-quick-panel-tab' | 'previous-quick-panel-tab' | 'rotate-active-quick-bars' | 'next-active-quick-bar' | 'previous-active-quick-bar' | 'quick-bar-button-1' | 'quick-bar-button-2' | 'quick-bar-button-3' | 'quick-bar-button-4' | 'quick-bar-button-5' | 'quick-bar-button-6' | 'quick-bar-button-7' | 'quick-bar-button-8' | 'quick-bar-button-9' | 'quick-bar-button-10' | 'quick-bar-button-1-secondary' | 'quick-bar-button-2-secondary' | 'quick-bar-button-3-secondary' | 'quick-bar-button-4-secondary' | 'quick-bar-button-5-secondary' | 'quick-bar-button-6-secondary' | 'quick-bar-button-7-secondary' | 'quick-bar-button-8-secondary' | 'quick-bar-button-9-secondary' | 'quick-bar-button-10-secondary' | 'action-bar-select-page-1' | 'action-bar-select-page-2' | 'action-bar-select-page-3' | 'action-bar-select-page-4' | 'action-bar-select-page-5' | 'action-bar-select-page-6' | 'action-bar-select-page-7' | 'action-bar-select-page-8' | 'action-bar-select-page-9' | 'action-bar-select-page-10' | 'copy' | 'cut' | 'paste' | 'cycle-clipboard-forwards' | 'cycle-clipboard-backwards' | 'undo' | 'redo' | 'toggle-menu' | 'toggle-map' | 'close-menu' | 'open-technology-gui' | 'production-statistics' | 'logistic-networks' | 'toggle-blueprint-library' | 'open-trains-gui' | 'open-factoriopedia' | 'back' | 'forward' | 'pause-game' | 'confirm-message' | 'previous-
|
|
3219
|
+
type LinkedGameControl = 'move-up' | 'move-down' | 'move-left' | 'move-right' | 'alternative-gui-move-up' | 'alternative-gui-move-down' | 'alternative-gui-move-left' | 'alternative-gui-move-right' | 'open-character-gui' | 'open-gui' | 'confirm-gui' | 'toggle-free-cursor' | 'mine' | 'build' | 'build-ghost' | 'super-forced-build' | 'clear-cursor' | 'pipette' | 'rotate' | 'reverse-rotate' | 'flip-horizontal' | 'flip-vertical' | 'pick-items' | 'drop-cursor' | 'show-info' | 'shoot-enemy' | 'shoot-selected' | 'next-weapon' | 'toggle-driving' | 'zoom-in' | 'zoom-out' | 'use-item' | 'alternative-use-item' | 'toggle-console' | 'copy-entity-settings' | 'paste-entity-settings' | 'controller-gui-logistics-tab' | 'controller-gui-character-tab' | 'controller-gui-crafting-tab' | 'toggle-rail-layer' | 'select-for-blueprint' | 'select-for-cancel-deconstruct' | 'select-for-super-forced-deconstruct' | 'reverse-select' | 'alt-reverse-select' | 'deselect' | 'cycle-blueprint-forwards' | 'cycle-blueprint-backwards' | 'focus-search' | 'larger-terrain-building-area' | 'smaller-terrain-building-area' | 'remove-pole-cables' | 'build-with-obstacle-avoidance' | 'add-station' | 'add-temporary-station' | 'rename-all' | 'fast-wait-condition' | 'drag-map' | 'move-tag' | 'place-in-chat' | 'place-ping' | 'pin' | 'activate-tooltip' | 'next-surface' | 'previous-surface' | 'cycle-quality-up' | 'cycle-quality-down' | 'scroll-tooltip-up' | 'scroll-tooltip-down' | 'craft' | 'craft-5' | 'craft-all' | 'cancel-craft' | 'cancel-craft-5' | 'cancel-craft-all' | 'pick-item' | 'stack-transfer' | 'inventory-transfer' | 'fast-entity-transfer' | 'cursor-split' | 'stack-split' | 'inventory-split' | 'fast-entity-split' | 'toggle-filter' | 'open-item' | 'copy-inventory-filter' | 'paste-inventory-filter' | 'show-quick-panel' | 'next-quick-panel-page' | 'previous-quick-panel-page' | 'next-quick-panel-tab' | 'previous-quick-panel-tab' | 'rotate-active-quick-bars' | 'next-active-quick-bar' | 'previous-active-quick-bar' | 'quick-bar-button-1' | 'quick-bar-button-2' | 'quick-bar-button-3' | 'quick-bar-button-4' | 'quick-bar-button-5' | 'quick-bar-button-6' | 'quick-bar-button-7' | 'quick-bar-button-8' | 'quick-bar-button-9' | 'quick-bar-button-10' | 'quick-bar-button-1-secondary' | 'quick-bar-button-2-secondary' | 'quick-bar-button-3-secondary' | 'quick-bar-button-4-secondary' | 'quick-bar-button-5-secondary' | 'quick-bar-button-6-secondary' | 'quick-bar-button-7-secondary' | 'quick-bar-button-8-secondary' | 'quick-bar-button-9-secondary' | 'quick-bar-button-10-secondary' | 'action-bar-select-page-1' | 'action-bar-select-page-2' | 'action-bar-select-page-3' | 'action-bar-select-page-4' | 'action-bar-select-page-5' | 'action-bar-select-page-6' | 'action-bar-select-page-7' | 'action-bar-select-page-8' | 'action-bar-select-page-9' | 'action-bar-select-page-10' | 'copy' | 'cut' | 'paste' | 'cycle-clipboard-forwards' | 'cycle-clipboard-backwards' | 'undo' | 'redo' | 'toggle-menu' | 'toggle-map' | 'close-menu' | 'open-technology-gui' | 'production-statistics' | 'logistic-networks' | 'toggle-blueprint-library' | 'open-trains-gui' | 'open-factoriopedia' | 'back' | 'forward' | 'pause-game' | 'confirm-message' | 'previous-mod' | 'connect-train' | 'disconnect-train' | 'submit-feedback' | 'editor-next-variation' | 'editor-previous-variation' | 'editor-clone-item' | 'editor-delete-item' | 'editor-toggle-pause' | 'editor-tick-once' | 'editor-speed-up' | 'editor-speed-down' | 'editor-reset-speed' | 'editor-set-clone-brush-source' | 'editor-set-clone-brush-destination' | 'editor-switch-to-surface' | 'editor-remove-scripting-object' | 'debug-toggle-atlas-gui' | 'debug-toggle-gui-visibility' | 'debug-toggle-debug-settings' | 'debug-toggle-basic' | 'debug-reset-zoom' | 'debug-reset-zoom-2x' | 'toggle-gui-debug' | 'toggle-gui-style-view' | 'toggle-gui-shadows' | 'toggle-gui-glows' | 'open-prototypes-gui' | 'open-prototype-explorer-gui' | 'increase-ui-scale' | 'decrease-ui-scale' | 'reset-ui-scale' | 'slash-editor' | 'toggle-entity' | 'next-player-in-replay' | 'move-blueprint-absolute-grid-up' | 'move-blueprint-absolute-grid-down' | 'move-blueprint-absolute-grid-left' | 'move-blueprint-absolute-grid-right' | 'move-blueprint-entities-up' | 'move-blueprint-entities-down' | 'move-blueprint-entities-left' | 'move-blueprint-entities-right' | 'play-next-track' | 'play-previous-track' | 'pause-resume-music' | /**
|
|
3177
3220
|
* Indicates no linked game control.
|
|
3178
3221
|
*/
|
|
3179
3222
|
'';
|
|
@@ -5849,6 +5892,7 @@ interface PipeConnectionDefinition {
|
|
|
5849
5892
|
*/
|
|
5850
5893
|
linked_connection_id?: uint;
|
|
5851
5894
|
}
|
|
5895
|
+
type PipetteID = LuaEntityPrototype | LuaEquipmentPrototype | LuaFluidPrototype | LuaItemPrototype | LuaRecipePrototype | LuaSpaceLocationPrototype | LuaTilePrototype | LuaVirtualSignalPrototype;
|
|
5852
5896
|
interface PlaceAsTileResult {
|
|
5853
5897
|
/**
|
|
5854
5898
|
* The tile prototype.
|
|
@@ -6833,7 +6877,7 @@ interface SelectedPrototypeData {
|
|
|
6833
6877
|
/**
|
|
6834
6878
|
* E.g. `"entity"`.
|
|
6835
6879
|
*/
|
|
6836
|
-
base_type:
|
|
6880
|
+
base_type: IDType;
|
|
6837
6881
|
/**
|
|
6838
6882
|
* The `type` of the prototype. E.g. `"tree"`.
|
|
6839
6883
|
*/
|
|
@@ -7071,31 +7115,6 @@ interface SignalIDBase {
|
|
|
7071
7115
|
name?: string;
|
|
7072
7116
|
}
|
|
7073
7117
|
type SignalIDType = 'item' | 'fluid' | 'virtual' | 'entity' | 'recipe' | 'space-location' | 'asteroid-chunk' | 'quality';
|
|
7074
|
-
/**
|
|
7075
|
-
* An item stack may be specified in one of two ways.
|
|
7076
|
-
* @example ```
|
|
7077
|
-
-- All of these lines specify an item stack of one iron plate
|
|
7078
|
-
{name="iron-plate"}
|
|
7079
|
-
{name="iron-plate", count=1}
|
|
7080
|
-
{name="iron-plate", count=1, quality="normal"}
|
|
7081
|
-
```
|
|
7082
|
-
* @example ```
|
|
7083
|
-
-- This is a stack of 47 copper plates
|
|
7084
|
-
{name="copper-plate", count=47}
|
|
7085
|
-
```
|
|
7086
|
-
* @example ```
|
|
7087
|
-
--These are both full stacks of iron plates (for iron-plate, a full stack is 100 plates)
|
|
7088
|
-
"iron-plate"
|
|
7089
|
-
{name="iron-plate", count=100}
|
|
7090
|
-
```
|
|
7091
|
-
*/
|
|
7092
|
-
type SimpleItemStack = /**
|
|
7093
|
-
* The name of the item, which represents a full stack of that item.
|
|
7094
|
-
*/
|
|
7095
|
-
string | /**
|
|
7096
|
-
* The detailed definition of an item stack.
|
|
7097
|
-
*/
|
|
7098
|
-
ItemStackDefinition;
|
|
7099
7118
|
type SimulationWidgetType = 'signal-id' | 'signal-id-base' | 'signal-or-number' | 'simple-slot' | 'simple-item-slot' | 'recipe-slot' | 'quickbar-slot' | 'logistics-button' | 'logistics-button-space' | 'text-button-localised-substring' | 'text-button' | 'text-button-substring' | 'inventory-limit-slot-button' | 'train-schedule-action-button' | 'choose-button' | 'textfield' | 'item-group-tab' | 'drop-down' | 'check-box' | 'switch' | 'label';
|
|
7100
7119
|
interface SmokeSource {
|
|
7101
7120
|
name: string;
|
|
@@ -7120,7 +7139,7 @@ interface SmokeSource {
|
|
|
7120
7139
|
vertical_speed_slowdown: float;
|
|
7121
7140
|
}
|
|
7122
7141
|
/**
|
|
7123
|
-
* It can be either the name of a {@link SoundPrototype | prototype:SoundPrototype} defined in the data stage, or a path in the form `"type/name"`. The latter option can be sorted into
|
|
7142
|
+
* It can be either the name of a {@link SoundPrototype | prototype:SoundPrototype} defined in the data stage, or a path in the form `"type/name"`. The latter option can be sorted into four categories.
|
|
7124
7143
|
*
|
|
7125
7144
|
* The validity of a SoundPath can be verified at runtime using {@link LuaHelpers::is_valid_sound_path | runtime:LuaHelpers::is_valid_sound_path}.
|
|
7126
7145
|
* The utility and ambient types each contain general use sound prototypes defined by the game itself.
|
|
@@ -7136,12 +7155,19 @@ interface SmokeSource {
|
|
|
7136
7155
|
* - `"tile-build-large"` - Uses {@link TilePrototype::build_sound | prototype:TilePrototype::build_sound}
|
|
7137
7156
|
* The following types can be combined with any entity name as long as its prototype defines the corresponding sound.
|
|
7138
7157
|
*
|
|
7139
|
-
* - `"entity-build"` - Uses {@link
|
|
7140
|
-
* - `"entity-mined"` - Uses {@link
|
|
7141
|
-
* - `"entity-mining"` - Uses {@link
|
|
7158
|
+
* - `"entity-build"` - Uses {@link EntityPrototype::build_sound | prototype:EntityPrototype::build_sound}. Example: `"entity-build/wooden-chest"`
|
|
7159
|
+
* - `"entity-mined"` - Uses {@link EntityPrototype::mined_sound | prototype:EntityPrototype::mined_sound}
|
|
7160
|
+
* - `"entity-mining"` - Uses {@link EntityPrototype::mining_sound | prototype:EntityPrototype::mining_sound}
|
|
7142
7161
|
* - `"entity-rotated"` - Uses {@link EntityPrototype::rotated_sound | prototype:EntityPrototype::rotated_sound}
|
|
7143
|
-
* - `"entity-open"` - Uses {@link
|
|
7144
|
-
* - `"entity-close"` - Uses {@link
|
|
7162
|
+
* - `"entity-open"` - Uses {@link EntityPrototype::open_sound | prototype:EntityPrototype::open_sound}
|
|
7163
|
+
* - `"entity-close"` - Uses {@link EntityPrototype::close_sound | prototype:EntityPrototype::close_sound}
|
|
7164
|
+
* The following types can be combined with any item name as long as its prototype defines the corresponding sound.
|
|
7165
|
+
*
|
|
7166
|
+
* - `"item-open"` - Uses {@link ItemPrototype::open_sound | prototype:ItemPrototype::open_sound}. Example: `"item-open/modular-armor"`
|
|
7167
|
+
* - `"item-close"` - Uses {@link ItemPrototype::close_sound | prototype:ItemPrototype::close_sound}
|
|
7168
|
+
* - `"item-pick"` - Uses {@link ItemPrototype::pick_sound | prototype:ItemPrototype::pick_sound}. Example: `"item-pick/transport-belt"`
|
|
7169
|
+
* - `"item-drop"` - Uses {@link ItemPrototype::drop_sound | prototype:ItemPrototype::drop_sound}
|
|
7170
|
+
* - `"item-move"` - Uses {@link ItemPrototype::inventory_move_sound | prototype:ItemPrototype::inventory_move_sound}
|
|
7145
7171
|
*/
|
|
7146
7172
|
type SoundPath = string;
|
|
7147
7173
|
/**
|
|
@@ -8404,7 +8430,7 @@ interface WorkerRobotOrder {
|
|
|
8404
8430
|
/**
|
|
8405
8431
|
* The item to place if relevant.
|
|
8406
8432
|
*/
|
|
8407
|
-
item_to_place?:
|
|
8433
|
+
item_to_place?: ItemWithQualityCounts;
|
|
8408
8434
|
/**
|
|
8409
8435
|
* The secondary target of the upgrade order.
|
|
8410
8436
|
*/
|
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.0.
|
|
5
|
+
// Factorio version 2.0.60
|
|
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.0.
|
|
5
|
+
// Factorio version 2.0.60
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
|
@@ -880,17 +880,18 @@ enum events {
|
|
|
880
880
|
on_train_schedule_changed = 191,
|
|
881
881
|
on_trigger_created_entity = 192,
|
|
882
882
|
on_trigger_fired_artillery = 193,
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
883
|
+
on_udp_packet_received = 194,
|
|
884
|
+
on_undo_applied = 195,
|
|
885
|
+
on_unit_added_to_group = 196,
|
|
886
|
+
on_unit_group_created = 197,
|
|
887
|
+
on_unit_group_finished_gathering = 198,
|
|
888
|
+
on_unit_removed_from_group = 199,
|
|
889
|
+
on_worker_robot_expired = 200,
|
|
890
|
+
script_raised_built = 201,
|
|
891
|
+
script_raised_destroy = 202,
|
|
892
|
+
script_raised_revive = 203,
|
|
893
|
+
script_raised_set_tiles = 204,
|
|
894
|
+
script_raised_teleported = 205
|
|
894
895
|
}
|
|
895
896
|
enum flow_precision_index {
|
|
896
897
|
fifty_hours = 5,
|
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.0.
|
|
5
|
+
// Factorio version 2.0.60
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -1626,7 +1626,7 @@ interface on_permission_string_imported {
|
|
|
1626
1626
|
* Called when a player picks up an item.
|
|
1627
1627
|
*/
|
|
1628
1628
|
interface on_picked_up_item {
|
|
1629
|
-
item_stack:
|
|
1629
|
+
item_stack: ItemWithCount;
|
|
1630
1630
|
/**
|
|
1631
1631
|
* Identifier of the event
|
|
1632
1632
|
*/
|
|
@@ -2470,7 +2470,7 @@ interface on_player_mined_item {
|
|
|
2470
2470
|
/**
|
|
2471
2471
|
* The item given to the player
|
|
2472
2472
|
*/
|
|
2473
|
-
item_stack:
|
|
2473
|
+
item_stack: ItemWithQualityCounts;
|
|
2474
2474
|
/**
|
|
2475
2475
|
* Identifier of the event
|
|
2476
2476
|
*/
|
|
@@ -3658,7 +3658,7 @@ interface on_robot_mined {
|
|
|
3658
3658
|
/**
|
|
3659
3659
|
* The entity the robot just picked up.
|
|
3660
3660
|
*/
|
|
3661
|
-
item_stack:
|
|
3661
|
+
item_stack: ItemWithCount;
|
|
3662
3662
|
/**
|
|
3663
3663
|
* Identifier of the event
|
|
3664
3664
|
*/
|
|
@@ -4086,7 +4086,7 @@ interface on_space_platform_mined_item {
|
|
|
4086
4086
|
/**
|
|
4087
4087
|
* The entity the platform just picked up.
|
|
4088
4088
|
*/
|
|
4089
|
-
item_stack:
|
|
4089
|
+
item_stack: ItemWithCount;
|
|
4090
4090
|
/**
|
|
4091
4091
|
* Identifier of the event
|
|
4092
4092
|
*/
|
|
@@ -4386,6 +4386,31 @@ interface on_trigger_fired_artillery {
|
|
|
4386
4386
|
*/
|
|
4387
4387
|
tick: uint;
|
|
4388
4388
|
}
|
|
4389
|
+
/**
|
|
4390
|
+
* Called when new packets are processed by {@link LuaHelpers::recv_udp | runtime:LuaHelpers::recv_udp}.
|
|
4391
|
+
*/
|
|
4392
|
+
interface on_udp_packet_received {
|
|
4393
|
+
/**
|
|
4394
|
+
* Identifier of the event
|
|
4395
|
+
*/
|
|
4396
|
+
name: defines.events;
|
|
4397
|
+
/**
|
|
4398
|
+
* The packet data
|
|
4399
|
+
*/
|
|
4400
|
+
payload: string;
|
|
4401
|
+
/**
|
|
4402
|
+
* The player index whose instance received this packet, or 0 if received on the server
|
|
4403
|
+
*/
|
|
4404
|
+
player_index: uint;
|
|
4405
|
+
/**
|
|
4406
|
+
* The source port the packet was received from
|
|
4407
|
+
*/
|
|
4408
|
+
source_port: uint16;
|
|
4409
|
+
/**
|
|
4410
|
+
* Tick the event was generated.
|
|
4411
|
+
*/
|
|
4412
|
+
tick: uint;
|
|
4413
|
+
}
|
|
4389
4414
|
/**
|
|
4390
4415
|
* Called when the player triggers "undo".
|
|
4391
4416
|
*/
|
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.0.
|
|
5
|
+
// Factorio version 2.0.60
|
|
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.0.
|
|
5
|
+
// Factorio version 2.0.60
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -106,7 +106,7 @@ interface AchievementPrototype extends Prototype {
|
|
|
106
106
|
/**
|
|
107
107
|
* Path to the icon file.
|
|
108
108
|
*
|
|
109
|
-
*
|
|
109
|
+
* Only loaded, and mandatory if `icons` is not defined.
|
|
110
110
|
*/
|
|
111
111
|
icon?: FileName;
|
|
112
112
|
/**
|
|
@@ -893,7 +893,7 @@ interface AsteroidChunkPrototype extends Prototype {
|
|
|
893
893
|
/**
|
|
894
894
|
* Path to the icon file.
|
|
895
895
|
*
|
|
896
|
-
*
|
|
896
|
+
* Only loaded, and mandatory if `icons` is not defined.
|
|
897
897
|
*/
|
|
898
898
|
icon?: FileName;
|
|
899
899
|
/**
|
|
@@ -3811,7 +3811,7 @@ interface FluidPrototype extends Prototype {
|
|
|
3811
3811
|
/**
|
|
3812
3812
|
* Path to the icon file.
|
|
3813
3813
|
*
|
|
3814
|
-
*
|
|
3814
|
+
* Only loaded, and mandatory if `icons` is not defined.
|
|
3815
3815
|
*/
|
|
3816
3816
|
icon?: FileName;
|
|
3817
3817
|
/**
|
|
@@ -4540,6 +4540,10 @@ interface InserterPrototype extends EntityWithOwnerPrototype {
|
|
|
4540
4540
|
* Whether the inserter should be able to fish {@link fish | https://wiki.factorio.com/Raw_fish}.
|
|
4541
4541
|
*/
|
|
4542
4542
|
use_easter_egg?: boolean;
|
|
4543
|
+
/**
|
|
4544
|
+
* When set to false, then relevant value of inserter stack size bonus ({@link LuaForce::inserter_stack_size_bonus | runtime:LuaForce::inserter_stack_size_bonus} or {@link LuaForce::bulk_inserter_capacity_bonus | runtime:LuaForce::bulk_inserter_capacity_bonus}) will not affect inserter stack size.
|
|
4545
|
+
*/
|
|
4546
|
+
uses_inserter_stack_size_bonus?: boolean;
|
|
4543
4547
|
/**
|
|
4544
4548
|
* Inserter will wait until its hand is full.
|
|
4545
4549
|
*/
|
|
@@ -4595,7 +4599,7 @@ interface ItemGroup extends Prototype {
|
|
|
4595
4599
|
/**
|
|
4596
4600
|
* Path to the icon that is shown to represent this item group.
|
|
4597
4601
|
*
|
|
4598
|
-
*
|
|
4602
|
+
* Only loaded, and mandatory if `icons` is not defined.
|
|
4599
4603
|
*/
|
|
4600
4604
|
icon?: FileName;
|
|
4601
4605
|
/**
|
|
@@ -4709,7 +4713,7 @@ interface ItemPrototype extends Prototype {
|
|
|
4709
4713
|
/**
|
|
4710
4714
|
* Path to the icon file.
|
|
4711
4715
|
*
|
|
4712
|
-
*
|
|
4716
|
+
* Only loaded, and mandatory if `icons` is not defined.
|
|
4713
4717
|
*/
|
|
4714
4718
|
icon?: FileName;
|
|
4715
4719
|
/**
|
|
@@ -6261,6 +6265,10 @@ interface ProjectilePrototype extends EntityPrototype {
|
|
|
6261
6265
|
turning_speed_increases_exponentially_with_projectile_speed?: boolean;
|
|
6262
6266
|
}
|
|
6263
6267
|
interface Prototype extends PrototypeBase {
|
|
6268
|
+
/**
|
|
6269
|
+
* Allows to add extra description items to the tooltip and factoriopedia.
|
|
6270
|
+
*/
|
|
6271
|
+
custom_tooltip_fields?: CustomTooltipField[];
|
|
6264
6272
|
/**
|
|
6265
6273
|
* The ID type corresponding to the prototype that inherits from this.
|
|
6266
6274
|
*
|
|
@@ -6454,7 +6462,7 @@ interface QualityPrototype extends Prototype {
|
|
|
6454
6462
|
/**
|
|
6455
6463
|
* Path to the icon file.
|
|
6456
6464
|
*
|
|
6457
|
-
*
|
|
6465
|
+
* Only loaded, and mandatory if `icons` is not defined.
|
|
6458
6466
|
*/
|
|
6459
6467
|
icon?: FileName;
|
|
6460
6468
|
/**
|
|
@@ -6827,7 +6835,7 @@ interface RecipeCategory extends Prototype {
|
|
|
6827
6835
|
category = "smelting",
|
|
6828
6836
|
energy_required = 3.5,
|
|
6829
6837
|
ingredients = {{type = "item", name = "iron-ore", amount = 1}},
|
|
6830
|
-
results = {{type="item", name="iron-plate", amount=1}}
|
|
6838
|
+
results = {{type = "item", name = "iron-plate", amount = 1}}
|
|
6831
6839
|
}
|
|
6832
6840
|
```
|
|
6833
6841
|
* @example ```
|
|
@@ -6843,15 +6851,15 @@ interface RecipeCategory extends Prototype {
|
|
|
6843
6851
|
icon_size = 32,
|
|
6844
6852
|
ingredients =
|
|
6845
6853
|
{
|
|
6846
|
-
{type="item", name="coal", amount=10},
|
|
6847
|
-
{type="fluid", name="heavy-oil", amount=25},
|
|
6848
|
-
{type="fluid", name="steam", amount=50}
|
|
6854
|
+
{type = "item", name = "coal", amount = 10},
|
|
6855
|
+
{type = "fluid", name = "heavy-oil", amount = 25},
|
|
6856
|
+
{type = "fluid", name = "steam", amount = 50}
|
|
6849
6857
|
},
|
|
6850
6858
|
results=
|
|
6851
6859
|
{
|
|
6852
|
-
{type="fluid", name="heavy-oil", amount=35},
|
|
6853
|
-
{type="fluid", name="light-oil", amount=15},
|
|
6854
|
-
{type="fluid", name="petroleum-gas", amount=20}
|
|
6860
|
+
{type = "fluid", name = "heavy-oil", amount = 35},
|
|
6861
|
+
{type = "fluid", name = "light-oil", amount = 15},
|
|
6862
|
+
{type = "fluid", name = "petroleum-gas", amount = 20}
|
|
6855
6863
|
},
|
|
6856
6864
|
allow_decomposition = false
|
|
6857
6865
|
}
|
|
@@ -6946,6 +6954,8 @@ interface RecipePrototype extends Prototype {
|
|
|
6946
6954
|
/**
|
|
6947
6955
|
* If given, this determines the recipe's icon. Otherwise, the icon of `main_product` or the singular product is used.
|
|
6948
6956
|
*
|
|
6957
|
+
* Only loaded if `icons` is not defined.
|
|
6958
|
+
*
|
|
6949
6959
|
* Mandatory if `icons` is not defined for a recipe with more than one product and no `main_product`, or no product.
|
|
6950
6960
|
* @example ```
|
|
6951
6961
|
icon = "__base__/graphics/icons/fluid/heavy-oil.png"
|
|
@@ -6980,8 +6990,8 @@ interface RecipePrototype extends Prototype {
|
|
|
6980
6990
|
-- Recipe with fluids
|
|
6981
6991
|
ingredients =
|
|
6982
6992
|
{
|
|
6983
|
-
{type="fluid", name="water", amount=50},
|
|
6984
|
-
{type="fluid", name="crude-oil", amount=100}
|
|
6993
|
+
{type = "fluid", name = "water", amount = 50},
|
|
6994
|
+
{type = "fluid", name = "crude-oil", amount = 100}
|
|
6985
6995
|
}
|
|
6986
6996
|
```
|
|
6987
6997
|
*/
|
|
@@ -7019,16 +7029,16 @@ interface RecipePrototype extends Prototype {
|
|
|
7019
7029
|
* @example ```
|
|
7020
7030
|
results =
|
|
7021
7031
|
{
|
|
7022
|
-
{type="fluid", name="heavy-oil", amount=3},
|
|
7023
|
-
{type="fluid", name="light-oil", amount=3},
|
|
7024
|
-
{type="fluid", name="petroleum-gas", amount=4}
|
|
7032
|
+
{type = "fluid", name= "heavy-oil", amount = 3},
|
|
7033
|
+
{type = "fluid", name= "light-oil", amount = 3},
|
|
7034
|
+
{type = "fluid", name= "petroleum-gas", amount = 4}
|
|
7025
7035
|
}
|
|
7026
7036
|
```
|
|
7027
7037
|
* @example ```
|
|
7028
7038
|
results =
|
|
7029
7039
|
{
|
|
7030
|
-
{type = "item", name = "iron-
|
|
7031
|
-
{type = "item", name = "
|
|
7040
|
+
{type = "item", name = "iron-plate", amount = 9},
|
|
7041
|
+
{type = "item", name = "copper-plate", amount = 1}
|
|
7032
7042
|
}
|
|
7033
7043
|
```
|
|
7034
7044
|
* @example ```
|
|
@@ -7991,7 +8001,7 @@ interface ShortcutPrototype extends Prototype {
|
|
|
7991
8001
|
/**
|
|
7992
8002
|
* Path to the icon file.
|
|
7993
8003
|
*
|
|
7994
|
-
*
|
|
8004
|
+
* Only loaded, and mandatory if `icons` is not defined.
|
|
7995
8005
|
*/
|
|
7996
8006
|
icon?: FileName;
|
|
7997
8007
|
/**
|
|
@@ -8017,7 +8027,7 @@ interface ShortcutPrototype extends Prototype {
|
|
|
8017
8027
|
/**
|
|
8018
8028
|
* Path to the icon file. Used in the shortcut selection popup.
|
|
8019
8029
|
*
|
|
8020
|
-
*
|
|
8030
|
+
* Only loaded, and mandatory if `small_icons` is not defined.
|
|
8021
8031
|
*/
|
|
8022
8032
|
small_icon?: FileName;
|
|
8023
8033
|
/**
|
|
@@ -8340,7 +8350,7 @@ interface SpaceConnectionPrototype extends Prototype {
|
|
|
8340
8350
|
/**
|
|
8341
8351
|
* Path to the icon file.
|
|
8342
8352
|
*
|
|
8343
|
-
*
|
|
8353
|
+
* Only loaded, and mandatory if `icons` is not defined.
|
|
8344
8354
|
*/
|
|
8345
8355
|
icon?: FileName;
|
|
8346
8356
|
/**
|
|
@@ -8354,6 +8364,8 @@ interface SpaceConnectionPrototype extends Prototype {
|
|
|
8354
8364
|
*/
|
|
8355
8365
|
icons?: IconData[];
|
|
8356
8366
|
/**
|
|
8367
|
+
* Length of the space connection in km.
|
|
8368
|
+
*
|
|
8357
8369
|
* Cannot be 0.
|
|
8358
8370
|
*/
|
|
8359
8371
|
length?: uint32;
|
|
@@ -8388,7 +8400,7 @@ interface SpaceLocationPrototype extends Prototype {
|
|
|
8388
8400
|
/**
|
|
8389
8401
|
* Path to the icon file.
|
|
8390
8402
|
*
|
|
8391
|
-
*
|
|
8403
|
+
* Only loaded, and mandatory if `icons` is not defined.
|
|
8392
8404
|
*/
|
|
8393
8405
|
icon?: FileName;
|
|
8394
8406
|
/**
|
|
@@ -9024,7 +9036,7 @@ interface SurfacePrototype extends Prototype {
|
|
|
9024
9036
|
/**
|
|
9025
9037
|
* Path to the icon file.
|
|
9026
9038
|
*
|
|
9027
|
-
*
|
|
9039
|
+
* Only loaded, and mandatory if `icons` is not defined.
|
|
9028
9040
|
*/
|
|
9029
9041
|
icon?: FileName;
|
|
9030
9042
|
/**
|
|
@@ -9086,7 +9098,7 @@ interface TechnologyPrototype extends Prototype {
|
|
|
9086
9098
|
/**
|
|
9087
9099
|
* Path to the icon file.
|
|
9088
9100
|
*
|
|
9089
|
-
*
|
|
9101
|
+
* Only loaded, and mandatory if `icons` is not defined.
|
|
9090
9102
|
*/
|
|
9091
9103
|
icon?: FileName;
|
|
9092
9104
|
/**
|
|
@@ -10154,6 +10166,10 @@ interface UtilityConstants extends PrototypeBase {
|
|
|
10154
10166
|
maximum_recipe_overload_multiplier: uint32;
|
|
10155
10167
|
medium_area_size: float;
|
|
10156
10168
|
medium_blueprint_area_size: float;
|
|
10169
|
+
/**
|
|
10170
|
+
* If not set, defaults to 'true' when modded and 'false' when vanilla.
|
|
10171
|
+
*/
|
|
10172
|
+
merge_bonus_gui_production_bonuses?: boolean;
|
|
10157
10173
|
minimap_slot_clicked_tint: Color;
|
|
10158
10174
|
minimap_slot_hovered_tint: Color;
|
|
10159
10175
|
minimum_recipe_overload_multiplier: uint32;
|
|
@@ -11011,7 +11027,7 @@ interface VirtualSignalPrototype extends Prototype {
|
|
|
11011
11027
|
/**
|
|
11012
11028
|
* Path to the icon file that is used to represent this virtual signal.
|
|
11013
11029
|
*
|
|
11014
|
-
*
|
|
11030
|
+
* Only loaded, and mandatory if `icons` is not defined.
|
|
11015
11031
|
*/
|
|
11016
11032
|
icon?: FileName;
|
|
11017
11033
|
/**
|
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.0.
|
|
5
|
+
// Factorio version 2.0.60
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -3435,6 +3435,24 @@ type CursorBoxType = /**
|
|
|
3435
3435
|
* Green by default.
|
|
3436
3436
|
*/
|
|
3437
3437
|
'blueprint-snap-rectangle' | 'spidertron-remote-selected' | 'spidertron-remote-to-be-selected';
|
|
3438
|
+
/**
|
|
3439
|
+
* Allows to add extra description items to the tooltip.
|
|
3440
|
+
*/
|
|
3441
|
+
interface CustomTooltipField {
|
|
3442
|
+
name: LocalisedString;
|
|
3443
|
+
/**
|
|
3444
|
+
* Ordering within all description items (modded and unmodded). Items with smaller order values are shown above items with larger values.
|
|
3445
|
+
*/
|
|
3446
|
+
order?: uint8;
|
|
3447
|
+
quality_header?: string;
|
|
3448
|
+
/**
|
|
3449
|
+
* Custom values per quality level. If a value is not provided for a specific quality, {@link CustomTooltipField::value | prototype:CustomTooltipField::value} will be used instead.
|
|
3450
|
+
*/
|
|
3451
|
+
quality_values?: LuaTable<QualityID, LocalisedString>;
|
|
3452
|
+
show_in_factoriopedia?: boolean;
|
|
3453
|
+
show_in_tooltip?: boolean;
|
|
3454
|
+
value: LocalisedString;
|
|
3455
|
+
}
|
|
3438
3456
|
/**
|
|
3439
3457
|
* Used by {@link BaseAttackParameters | prototype:BaseAttackParameters} to play a sound during the attack.
|
|
3440
3458
|
*/
|
|
@@ -5956,7 +5974,7 @@ interface LinkedBeltStructure {
|
|
|
5956
5974
|
/**
|
|
5957
5975
|
* The internal name of a game control (key binding).
|
|
5958
5976
|
*/
|
|
5959
|
-
type LinkedGameControl = 'move-up' | 'move-down' | 'move-left' | 'move-right' | 'open-character-gui' | 'open-gui' | 'confirm-gui' | 'toggle-free-cursor' | 'mine' | 'build' | 'build-ghost' | 'super-forced-build' | 'clear-cursor' | 'pipette' | 'rotate' | 'reverse-rotate' | 'flip-horizontal' | 'flip-vertical' | 'pick-items' | 'drop-cursor' | 'show-info' | 'shoot-enemy' | 'shoot-selected' | 'next-weapon' | 'toggle-driving' | 'zoom-in' | 'zoom-out' | 'use-item' | 'alternative-use-item' | 'toggle-console' | 'copy-entity-settings' | 'paste-entity-settings' | 'controller-gui-logistics-tab' | 'controller-gui-character-tab' | 'controller-gui-crafting-tab' | 'toggle-rail-layer' | 'select-for-blueprint' | 'select-for-cancel-deconstruct' | 'select-for-super-forced-deconstruct' | 'reverse-select' | 'alt-reverse-select' | 'deselect' | 'cycle-blueprint-forwards' | 'cycle-blueprint-backwards' | 'focus-search' | 'larger-terrain-building-area' | 'smaller-terrain-building-area' | 'remove-pole-cables' | 'build-with-obstacle-avoidance' | 'add-station' | 'add-temporary-station' | 'rename-all' | 'fast-wait-condition' | 'drag-map' | 'move-tag' | 'place-in-chat' | 'place-ping' | 'pin' | 'activate-tooltip' | 'next-surface' | 'previous-surface' | 'cycle-quality-up' | 'cycle-quality-down' | 'craft' | 'craft-5' | 'craft-all' | 'cancel-craft' | 'cancel-craft-5' | 'cancel-craft-all' | 'pick-item' | 'stack-transfer' | 'inventory-transfer' | 'fast-entity-transfer' | 'cursor-split' | 'stack-split' | 'inventory-split' | 'fast-entity-split' | 'toggle-filter' | 'open-item' | 'copy-inventory-filter' | 'paste-inventory-filter' | 'show-quick-panel' | 'next-quick-panel-page' | 'previous-quick-panel-page' | 'next-quick-panel-tab' | 'previous-quick-panel-tab' | 'rotate-active-quick-bars' | 'next-active-quick-bar' | 'previous-active-quick-bar' | 'quick-bar-button-1' | 'quick-bar-button-2' | 'quick-bar-button-3' | 'quick-bar-button-4' | 'quick-bar-button-5' | 'quick-bar-button-6' | 'quick-bar-button-7' | 'quick-bar-button-8' | 'quick-bar-button-9' | 'quick-bar-button-10' | 'quick-bar-button-1-secondary' | 'quick-bar-button-2-secondary' | 'quick-bar-button-3-secondary' | 'quick-bar-button-4-secondary' | 'quick-bar-button-5-secondary' | 'quick-bar-button-6-secondary' | 'quick-bar-button-7-secondary' | 'quick-bar-button-8-secondary' | 'quick-bar-button-9-secondary' | 'quick-bar-button-10-secondary' | 'action-bar-select-page-1' | 'action-bar-select-page-2' | 'action-bar-select-page-3' | 'action-bar-select-page-4' | 'action-bar-select-page-5' | 'action-bar-select-page-6' | 'action-bar-select-page-7' | 'action-bar-select-page-8' | 'action-bar-select-page-9' | 'action-bar-select-page-10' | 'copy' | 'cut' | 'paste' | 'cycle-clipboard-forwards' | 'cycle-clipboard-backwards' | 'undo' | 'redo' | 'toggle-menu' | 'toggle-map' | 'close-menu' | 'open-technology-gui' | 'production-statistics' | 'logistic-networks' | 'toggle-blueprint-library' | 'open-trains-gui' | 'open-factoriopedia' | 'back' | 'forward' | 'pause-game' | 'confirm-message' | 'previous-
|
|
5977
|
+
type LinkedGameControl = 'move-up' | 'move-down' | 'move-left' | 'move-right' | 'alternative-gui-move-up' | 'alternative-gui-move-down' | 'alternative-gui-move-left' | 'alternative-gui-move-right' | 'open-character-gui' | 'open-gui' | 'confirm-gui' | 'toggle-free-cursor' | 'mine' | 'build' | 'build-ghost' | 'super-forced-build' | 'clear-cursor' | 'pipette' | 'rotate' | 'reverse-rotate' | 'flip-horizontal' | 'flip-vertical' | 'pick-items' | 'drop-cursor' | 'show-info' | 'shoot-enemy' | 'shoot-selected' | 'next-weapon' | 'toggle-driving' | 'zoom-in' | 'zoom-out' | 'use-item' | 'alternative-use-item' | 'toggle-console' | 'copy-entity-settings' | 'paste-entity-settings' | 'controller-gui-logistics-tab' | 'controller-gui-character-tab' | 'controller-gui-crafting-tab' | 'toggle-rail-layer' | 'select-for-blueprint' | 'select-for-cancel-deconstruct' | 'select-for-super-forced-deconstruct' | 'reverse-select' | 'alt-reverse-select' | 'deselect' | 'cycle-blueprint-forwards' | 'cycle-blueprint-backwards' | 'focus-search' | 'larger-terrain-building-area' | 'smaller-terrain-building-area' | 'remove-pole-cables' | 'build-with-obstacle-avoidance' | 'add-station' | 'add-temporary-station' | 'rename-all' | 'fast-wait-condition' | 'drag-map' | 'move-tag' | 'place-in-chat' | 'place-ping' | 'pin' | 'activate-tooltip' | 'next-surface' | 'previous-surface' | 'cycle-quality-up' | 'cycle-quality-down' | 'scroll-tooltip-up' | 'scroll-tooltip-down' | 'craft' | 'craft-5' | 'craft-all' | 'cancel-craft' | 'cancel-craft-5' | 'cancel-craft-all' | 'pick-item' | 'stack-transfer' | 'inventory-transfer' | 'fast-entity-transfer' | 'cursor-split' | 'stack-split' | 'inventory-split' | 'fast-entity-split' | 'toggle-filter' | 'open-item' | 'copy-inventory-filter' | 'paste-inventory-filter' | 'show-quick-panel' | 'next-quick-panel-page' | 'previous-quick-panel-page' | 'next-quick-panel-tab' | 'previous-quick-panel-tab' | 'rotate-active-quick-bars' | 'next-active-quick-bar' | 'previous-active-quick-bar' | 'quick-bar-button-1' | 'quick-bar-button-2' | 'quick-bar-button-3' | 'quick-bar-button-4' | 'quick-bar-button-5' | 'quick-bar-button-6' | 'quick-bar-button-7' | 'quick-bar-button-8' | 'quick-bar-button-9' | 'quick-bar-button-10' | 'quick-bar-button-1-secondary' | 'quick-bar-button-2-secondary' | 'quick-bar-button-3-secondary' | 'quick-bar-button-4-secondary' | 'quick-bar-button-5-secondary' | 'quick-bar-button-6-secondary' | 'quick-bar-button-7-secondary' | 'quick-bar-button-8-secondary' | 'quick-bar-button-9-secondary' | 'quick-bar-button-10-secondary' | 'action-bar-select-page-1' | 'action-bar-select-page-2' | 'action-bar-select-page-3' | 'action-bar-select-page-4' | 'action-bar-select-page-5' | 'action-bar-select-page-6' | 'action-bar-select-page-7' | 'action-bar-select-page-8' | 'action-bar-select-page-9' | 'action-bar-select-page-10' | 'copy' | 'cut' | 'paste' | 'cycle-clipboard-forwards' | 'cycle-clipboard-backwards' | 'undo' | 'redo' | 'toggle-menu' | 'toggle-map' | 'close-menu' | 'open-technology-gui' | 'production-statistics' | 'logistic-networks' | 'toggle-blueprint-library' | 'open-trains-gui' | 'open-factoriopedia' | 'back' | 'forward' | 'pause-game' | 'confirm-message' | 'previous-mod' | 'connect-train' | 'disconnect-train' | 'submit-feedback' | 'editor-next-variation' | 'editor-previous-variation' | 'editor-clone-item' | 'editor-delete-item' | 'editor-toggle-pause' | 'editor-tick-once' | 'editor-speed-up' | 'editor-speed-down' | 'editor-reset-speed' | 'editor-set-clone-brush-source' | 'editor-set-clone-brush-destination' | 'editor-switch-to-surface' | 'editor-remove-scripting-object' | 'debug-toggle-atlas-gui' | 'debug-toggle-gui-visibility' | 'debug-toggle-debug-settings' | 'debug-toggle-basic' | 'debug-reset-zoom' | 'debug-reset-zoom-2x' | 'toggle-gui-debug' | 'toggle-gui-style-view' | 'toggle-gui-shadows' | 'toggle-gui-glows' | 'open-prototypes-gui' | 'open-prototype-explorer-gui' | 'increase-ui-scale' | 'decrease-ui-scale' | 'reset-ui-scale' | 'slash-editor' | 'toggle-entity' | 'next-player-in-replay' | 'move-blueprint-absolute-grid-up' | 'move-blueprint-absolute-grid-down' | 'move-blueprint-absolute-grid-left' | 'move-blueprint-absolute-grid-right' | 'move-blueprint-entities-up' | 'move-blueprint-entities-down' | 'move-blueprint-entities-left' | 'move-blueprint-entities-right' | 'play-next-track' | 'play-previous-track' | 'pause-resume-music' | /**
|
|
5960
5978
|
* Indicates no linked game control.
|
|
5961
5979
|
*/
|
|
5962
5980
|
'';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "factorio-types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.43",
|
|
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.0.
|
|
26
|
+
"factorioVersion": "2.0.60",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"lua-types": "^2.13.1"
|
|
29
29
|
},
|