factorio-types 1.2.61 → 1.2.63
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 +127 -14
- package/dist/concepts.d.ts +8 -6
- package/dist/datacollection.d.ts +1 -1
- package/dist/defines.d.ts +1 -1
- 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.11
|
|
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,17 +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
|
+
*
|
|
5966
5968
|
* - `trace` :: {@link boolean | runtime:boolean}? : Trace DAP messages to a `dap-trace.log` (default: false)
|
|
5967
5969
|
*
|
|
5968
5970
|
* - `tags` :: {@link Any | runtime:Any}? : Extra debug session tags, see also {@link tags | runtime:LuaDebugAdapter::tags}
|
|
5969
5971
|
*
|
|
5970
|
-
*
|
|
5972
|
+
* ---
|
|
5973
|
+
*
|
|
5974
|
+
* For mod objects that appear in debug listing, the following optional metatable methods may be used to customize their display:
|
|
5971
5975
|
*
|
|
5972
|
-
* - `__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.
|
|
5973
5977
|
*
|
|
5974
|
-
* - `__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.
|
|
5975
5979
|
*
|
|
5976
|
-
* - `__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
|
+
* ---
|
|
5977
5983
|
*
|
|
5978
5984
|
* This class also provides debug session APIs, as the global object `debugadapter` in all stages.
|
|
5979
5985
|
*/
|
|
@@ -6439,10 +6445,12 @@ interface LuaEntity extends LuaControl {
|
|
|
6439
6445
|
add_market_item(this: void, offer: Offer): void;
|
|
6440
6446
|
/**
|
|
6441
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.
|
|
6442
6450
|
* @returns [0] - The first upgraded entity - `nil` if this entity is not marked for upgrade.
|
|
6443
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.
|
|
6444
6452
|
*/
|
|
6445
|
-
apply_upgrade(this: void): LuaMultiReturn<[
|
|
6453
|
+
apply_upgrade(this: void, override_target?: EntityWithQualityID, buffer?: LuaInventory): LuaMultiReturn<[
|
|
6446
6454
|
LuaEntity | null,
|
|
6447
6455
|
LuaEntity | null
|
|
6448
6456
|
]>;
|
|
@@ -8183,6 +8191,10 @@ interface LuaEntity extends LuaControl {
|
|
|
8183
8191
|
* The entity prototype of this entity.
|
|
8184
8192
|
*/
|
|
8185
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;
|
|
8186
8198
|
/**
|
|
8187
8199
|
* The target entity for this item-request-proxy, if any.
|
|
8188
8200
|
*/
|
|
@@ -8269,6 +8281,10 @@ interface LuaEntity extends LuaControl {
|
|
|
8269
8281
|
* Useable only on entities that have requester slots.
|
|
8270
8282
|
*/
|
|
8271
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;
|
|
8272
8288
|
/**
|
|
8273
8289
|
* The quality produced when this crafting machine finishes crafting. `nil` when crafting is not in progress.
|
|
8274
8290
|
*
|
|
@@ -9854,6 +9870,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
|
|
|
9854
9870
|
readonly shot_category?: LuaAmmoCategoryPrototype;
|
|
9855
9871
|
readonly shots_per_flare?: uint32;
|
|
9856
9872
|
readonly should_ground_target?: boolean;
|
|
9873
|
+
readonly show_fluid_visualization_when_in_cursor: boolean;
|
|
9857
9874
|
readonly shuffle_resources_to_mine?: boolean;
|
|
9858
9875
|
readonly smoke?: LuaTrivialSmokePrototype;
|
|
9859
9876
|
readonly smoke_count?: uint16;
|
|
@@ -12516,7 +12533,12 @@ interface LuaGuiElement {
|
|
|
12516
12533
|
/**
|
|
12517
12534
|
* The mouse button filters for this button or sprite-button.
|
|
12518
12535
|
*/
|
|
12519
|
-
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;
|
|
12520
12542
|
/**
|
|
12521
12543
|
* The name of this element. `""` if no name was set.
|
|
12522
12544
|
* @example ```
|
|
@@ -13455,7 +13477,7 @@ interface LuaHelpers {
|
|
|
13455
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.
|
|
13456
13478
|
*
|
|
13457
13479
|
* Not available in settings and prototype stages.
|
|
13458
|
-
* @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`.
|
|
13459
13481
|
*/
|
|
13460
13482
|
recv_udp(this: void, for_player?: uint32): void;
|
|
13461
13483
|
/**
|
|
@@ -13469,7 +13491,7 @@ interface LuaHelpers {
|
|
|
13469
13491
|
* This must be enabled per-instance with `--enable-lua-udp`.
|
|
13470
13492
|
* @param port Destination port number (localhost only)
|
|
13471
13493
|
* @param data The content to send.
|
|
13472
|
-
* @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`.
|
|
13473
13495
|
*/
|
|
13474
13496
|
send_udp(this: void, port: uint16, data: LocalisedString, for_player?: uint32): void;
|
|
13475
13497
|
/**
|
|
@@ -13481,7 +13503,7 @@ interface LuaHelpers {
|
|
|
13481
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`.
|
|
13482
13504
|
* @param data The content to write to the file.
|
|
13483
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`.
|
|
13484
|
-
* @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`.
|
|
13485
13507
|
*/
|
|
13486
13508
|
write_file(this: void, filename: string, data: LocalisedString, append?: boolean, for_player?: uint32): void;
|
|
13487
13509
|
/**
|
|
@@ -15522,6 +15544,80 @@ interface LuaPermissionGroups {
|
|
|
15522
15544
|
*/
|
|
15523
15545
|
readonly valid: boolean;
|
|
15524
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
|
+
}
|
|
15525
15621
|
/**
|
|
15526
15622
|
* The runtime values of a planet
|
|
15527
15623
|
*/
|
|
@@ -15592,8 +15688,10 @@ interface LuaPlayer extends LuaControl {
|
|
|
15592
15688
|
* @param table.always_visible Defaults to `true`.
|
|
15593
15689
|
* @param table.entity The entity to pin.
|
|
15594
15690
|
* @param table.player The player to pin.
|
|
15595
|
-
* @param table.surface The surface to create the pin on.
|
|
15596
|
-
* @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.
|
|
15597
15695
|
*/
|
|
15598
15696
|
add_pin(this: void, table: {
|
|
15599
15697
|
label?: string;
|
|
@@ -15602,8 +15700,10 @@ interface LuaPlayer extends LuaControl {
|
|
|
15602
15700
|
entity?: LuaEntity;
|
|
15603
15701
|
player?: PlayerIdentification;
|
|
15604
15702
|
surface?: SurfaceIdentification;
|
|
15703
|
+
resource?: EntityID;
|
|
15704
|
+
chart_tag?: LuaCustomChartTag;
|
|
15605
15705
|
position?: MapPosition;
|
|
15606
|
-
}):
|
|
15706
|
+
}): LuaPin;
|
|
15607
15707
|
/**
|
|
15608
15708
|
* Adds the given recipe to the list of recipe notifications for this player.
|
|
15609
15709
|
* @param recipe Recipe to add.
|
|
@@ -15682,6 +15782,10 @@ interface LuaPlayer extends LuaControl {
|
|
|
15682
15782
|
* Clear any active flying texts for this player.
|
|
15683
15783
|
*/
|
|
15684
15784
|
clear_local_flying_texts(this: void): void;
|
|
15785
|
+
/**
|
|
15786
|
+
* Removes all pins from this player.
|
|
15787
|
+
*/
|
|
15788
|
+
clear_pins(this: void): void;
|
|
15685
15789
|
/**
|
|
15686
15790
|
* Clears the given recipe from the list of recipe notifications for this player.
|
|
15687
15791
|
* @param recipe Recipe to clear.
|
|
@@ -15833,6 +15937,10 @@ interface LuaPlayer extends LuaControl {
|
|
|
15833
15937
|
* @param index The index to get.
|
|
15834
15938
|
*/
|
|
15835
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[];
|
|
15836
15944
|
/**
|
|
15837
15945
|
* Gets the quick bar filter for the given slot or `nil`.
|
|
15838
15946
|
*/
|
|
@@ -16299,6 +16407,10 @@ interface LuaPlayer extends LuaControl {
|
|
|
16299
16407
|
* Set to any positive value to trigger the respawn state for this player.
|
|
16300
16408
|
*/
|
|
16301
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;
|
|
16302
16414
|
/**
|
|
16303
16415
|
* The undo and redo stack for this player.
|
|
16304
16416
|
*/
|
|
@@ -16681,6 +16793,7 @@ interface LuaPrototypes {
|
|
|
16681
16793
|
readonly max_force_distraction_distance: double;
|
|
16682
16794
|
readonly max_gate_activation_distance: double;
|
|
16683
16795
|
readonly max_inserter_reach_distance: double;
|
|
16796
|
+
readonly max_logistics_connection_distance: float;
|
|
16684
16797
|
readonly max_pipe_to_ground_distance: uint8;
|
|
16685
16798
|
readonly max_underground_belt_distance: uint8;
|
|
16686
16799
|
/**
|
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.11
|
|
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.
|
|
@@ -7261,12 +7265,10 @@ interface ModuleEffects {
|
|
|
7261
7265
|
pollution?: ModuleEffectValue;
|
|
7262
7266
|
quality?: ModuleEffectValue;
|
|
7263
7267
|
}
|
|
7264
|
-
/**
|
|
7265
|
-
*
|
|
7266
|
-
*
|
|
7267
|
-
* 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.
|
|
7268
7270
|
*/
|
|
7269
|
-
|
|
7271
|
+
'left-and-right' | 'middle' | 'button-4' | 'button-5' | 'button-6' | 'button-7' | 'button-8' | 'button-9')[];
|
|
7270
7272
|
interface NeighbourConnectable {
|
|
7271
7273
|
affected_by_direction: boolean;
|
|
7272
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.11
|
|
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.11
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
package/dist/events.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.1.
|
|
5
|
+
// Factorio version 2.1.11
|
|
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.11
|
|
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.11
|
|
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.11
|
|
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.63",
|
|
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.11",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"lua-types": "^2.13.1"
|
|
29
29
|
},
|