factorio-types 1.2.13 → 1.2.15
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 +108 -53
- package/dist/concepts.d.ts +55 -17
- package/dist/datacollection.d.ts +1 -1
- package/dist/defines.d.ts +192 -191
- package/dist/events.d.ts +23 -6
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +22 -11
- package/dist/types.d.ts +18 -5
- 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.22
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -261,6 +261,14 @@ interface LuaAssemblingMachineControlBehavior extends LuaGenericOnOffControlBeha
|
|
|
261
261
|
* The signal sent when the assembling machine is working.
|
|
262
262
|
*/
|
|
263
263
|
circuit_working_signal?: SignalID;
|
|
264
|
+
/**
|
|
265
|
+
* `true` if the read contents should include fuel (content of energy source)
|
|
266
|
+
*/
|
|
267
|
+
include_fuel: boolean;
|
|
268
|
+
/**
|
|
269
|
+
* `true` if the read contents should include items in crafting.
|
|
270
|
+
*/
|
|
271
|
+
include_in_crafting: boolean;
|
|
264
272
|
/**
|
|
265
273
|
* 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.
|
|
266
274
|
*/
|
|
@@ -290,6 +298,10 @@ interface LuaAsteroidChunkPrototype extends LuaPrototypeBase {
|
|
|
290
298
|
* Control behavior for asteroid collectors.
|
|
291
299
|
*/
|
|
292
300
|
interface LuaAsteroidCollectorControlBehavior extends LuaGenericOnOffControlBehavior {
|
|
301
|
+
/**
|
|
302
|
+
* `true` if read contents should include content of hands (items that were captured but are not yet in the asteroid collector's main inventory).
|
|
303
|
+
*/
|
|
304
|
+
include_hands: boolean;
|
|
293
305
|
/**
|
|
294
306
|
* 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.
|
|
295
307
|
*/
|
|
@@ -537,6 +549,24 @@ interface LuaBootstrap {
|
|
|
537
549
|
script.on_event(defines.events.on_built_entity,
|
|
538
550
|
function(event) game.print("Gotta go fast!") end,
|
|
539
551
|
{{filter = "name", name = "fast-inserter"}})
|
|
552
|
+
```
|
|
553
|
+
*/
|
|
554
|
+
on_event(this: void, event: defines.events.on_cargo_pod_finished_ascending, handler: ((this: void, arg0: runtime.on_cargo_pod_finished_ascending) => any) | nil, filters?: EventFilter): void;
|
|
555
|
+
/**
|
|
556
|
+
* 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.
|
|
557
|
+
* @param event The event(s) or custom-input to invoke the handler on.
|
|
558
|
+
* @param handler The handler for this event. Passing `nil` will unregister it.
|
|
559
|
+
* @param filters The filters for this event. Can only be used when registering for individual events.
|
|
560
|
+
* @example ```
|
|
561
|
+
-- Register for the on_tick event to print the current tick to console each tick
|
|
562
|
+
script.on_event(defines.events.on_tick,
|
|
563
|
+
function(event) game.print(event.tick) end)
|
|
564
|
+
```
|
|
565
|
+
* @example ```
|
|
566
|
+
-- Register for the on_built_entity event, limiting it to only be received when a `"fast-inserter"` is built
|
|
567
|
+
script.on_event(defines.events.on_built_entity,
|
|
568
|
+
function(event) game.print("Gotta go fast!") end,
|
|
569
|
+
{{filter = "name", name = "fast-inserter"}})
|
|
540
570
|
```
|
|
541
571
|
*/
|
|
542
572
|
on_event(this: void, event: defines.events.on_character_corpse_expired, handler: ((this: void, arg0: runtime.on_character_corpse_expired) => any) | nil, filters?: EventFilter): void;
|
|
@@ -4743,9 +4773,9 @@ interface LuaControl {
|
|
|
4743
4773
|
get_inventory(this: void, inventory: defines.inventory): LuaInventory | null;
|
|
4744
4774
|
/**
|
|
4745
4775
|
* Get the number of all or some items in this entity.
|
|
4746
|
-
* @param item
|
|
4776
|
+
* @param item The item to count. If not specified, count all items.
|
|
4747
4777
|
*/
|
|
4748
|
-
get_item_count(this: void, item?:
|
|
4778
|
+
get_item_count(this: void, item?: ItemFilter): uint;
|
|
4749
4779
|
/**
|
|
4750
4780
|
* Gets the main inventory for this character or player if this is a character or player.
|
|
4751
4781
|
* @returns The inventory or `nil` if this entity is not a character or player.
|
|
@@ -4815,11 +4845,11 @@ interface LuaControl {
|
|
|
4815
4845
|
*/
|
|
4816
4846
|
remove_item(this: void, items: ItemStackIdentification): uint;
|
|
4817
4847
|
/**
|
|
4818
|
-
* Sets if this
|
|
4848
|
+
* Sets if this character or player is driving. Returns if the player or character is still driving.
|
|
4819
4849
|
* @param driving True for enter-vehicle, false for leave.
|
|
4820
4850
|
* @param force If true, the player will be ejected and left at the position of the car if normal "leave" is not possible.
|
|
4821
4851
|
*/
|
|
4822
|
-
set_driving(this: void, driving:
|
|
4852
|
+
set_driving(this: void, driving: boolean, force?: boolean): void;
|
|
4823
4853
|
/**
|
|
4824
4854
|
* Create an arrow which points at this entity. This is used in the tutorial. For examples, see `control.lua` in the campaign missions.
|
|
4825
4855
|
*/
|
|
@@ -4836,9 +4866,10 @@ interface LuaControl {
|
|
|
4836
4866
|
* @param surface Surface to teleport to. If not given, will teleport to the entity's current surface. Only players, cars, and spidertrons can be teleported cross-surface.
|
|
4837
4867
|
* @param raise_teleported If true, {@link defines.events.script_raised_teleported | runtime:defines.events.script_raised_teleported} will be fired on successful entity teleportation.
|
|
4838
4868
|
* @param snap_to_grid If false the exact position given is used to instead of snapping to the normal entity grid. This only applies if the entity normally snaps to the grid.
|
|
4869
|
+
* @param build_check_type The build check type done when teleporting to the destination. Defaults to `script`. This is ignored when teleporting between surfaces.
|
|
4839
4870
|
* @returns `true` if the entity was successfully teleported.
|
|
4840
4871
|
*/
|
|
4841
|
-
teleport(this: void, position: MapPosition, surface?: SurfaceIdentification, raise_teleported?: boolean, snap_to_grid?: boolean): boolean;
|
|
4872
|
+
teleport(this: void, position: MapPosition, surface?: SurfaceIdentification, raise_teleported?: boolean, snap_to_grid?: boolean, build_check_type?: defines.build_check_type): boolean;
|
|
4842
4873
|
/**
|
|
4843
4874
|
* Select an entity, as if by hovering the mouse above it.
|
|
4844
4875
|
* @param position Position of the entity to select.
|
|
@@ -5594,7 +5625,7 @@ interface LuaEntity extends LuaControl {
|
|
|
5594
5625
|
* @param by_player If provided, the copying is done 'as' this player and {@link on_entity_settings_pasted | runtime:on_entity_settings_pasted} is triggered.
|
|
5595
5626
|
* @returns Any items removed from this entity as a result of copying the settings.
|
|
5596
5627
|
*/
|
|
5597
|
-
copy_settings(this: void, entity: LuaEntity, by_player?: PlayerIdentification):
|
|
5628
|
+
copy_settings(this: void, entity: LuaEntity, by_player?: PlayerIdentification): ItemWithQualityCounts[];
|
|
5598
5629
|
/**
|
|
5599
5630
|
* Creates the same smoke that is created when you place a building by hand.
|
|
5600
5631
|
*
|
|
@@ -6223,7 +6254,7 @@ interface LuaEntity extends LuaControl {
|
|
|
6223
6254
|
* @param quality The quality. If not provided `normal` is used.
|
|
6224
6255
|
* @returns Any items removed from this entity as a result of setting the recipe.
|
|
6225
6256
|
*/
|
|
6226
|
-
set_recipe(this: void, recipe?: RecipeID, quality?: QualityID):
|
|
6257
|
+
set_recipe(this: void, recipe?: RecipeID, quality?: QualityID): ItemWithQualityCounts[];
|
|
6227
6258
|
/**
|
|
6228
6259
|
* Revives a ghost silently, so the revival makes no sound and no smoke is created.
|
|
6229
6260
|
* @param table.raise_revive If true, and an entity ghost; {@link script_raised_revive | runtime:script_raised_revive} will be called. Else if true, and a tile ghost; {@link script_raised_set_tiles | runtime:script_raised_set_tiles} will be called.
|
|
@@ -6234,7 +6265,7 @@ interface LuaEntity extends LuaControl {
|
|
|
6234
6265
|
silent_revive(this: void, table: {
|
|
6235
6266
|
raise_revive?: boolean;
|
|
6236
6267
|
}): LuaMultiReturn<[
|
|
6237
|
-
|
|
6268
|
+
ItemWithQualityCounts[],
|
|
6238
6269
|
LuaEntity | null,
|
|
6239
6270
|
LuaEntity | null
|
|
6240
6271
|
]>;
|
|
@@ -6706,7 +6737,7 @@ interface LuaEntity extends LuaControl {
|
|
|
6706
6737
|
/**
|
|
6707
6738
|
* Items this ghost will request when revived or items this item request proxy is requesting.
|
|
6708
6739
|
*/
|
|
6709
|
-
readonly item_requests:
|
|
6740
|
+
readonly item_requests: ItemWithQualityCounts[];
|
|
6710
6741
|
/**
|
|
6711
6742
|
* The number of units killed by this turret, artillery turret, or artillery wagon.
|
|
6712
6743
|
*/
|
|
@@ -7042,7 +7073,14 @@ interface LuaEntity extends LuaControl {
|
|
|
7042
7073
|
*
|
|
7043
7074
|
* Useable only on logistic containers with the `"storage"` {@link logistic_mode | runtime:LuaEntityPrototype::logistic_mode}.
|
|
7044
7075
|
*/
|
|
7045
|
-
storage_filter?:
|
|
7076
|
+
readonly storage_filter?: ItemIDAndQualityIDPair;
|
|
7077
|
+
/**
|
|
7078
|
+
* The storage filter for this logistic storage container.
|
|
7079
|
+
*
|
|
7080
|
+
* Useable only on logistic containers with the `"storage"` {@link logistic_mode | runtime:LuaEntityPrototype::logistic_mode}.
|
|
7081
|
+
* @customName storage_filter
|
|
7082
|
+
*/
|
|
7083
|
+
storage_filter_write?: ItemWithQualityID;
|
|
7046
7084
|
/**
|
|
7047
7085
|
* Whether the entity has direction. When it is false for this entity, it will always return north direction when asked for.
|
|
7048
7086
|
*/
|
|
@@ -7328,6 +7366,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
|
|
|
7328
7366
|
* The attack result of this entity, if any.
|
|
7329
7367
|
*/
|
|
7330
7368
|
readonly attack_result?: TriggerItem[];
|
|
7369
|
+
readonly auto_setup_collision_box: boolean;
|
|
7331
7370
|
/**
|
|
7332
7371
|
* The amount of ammo that inserters automatically insert into this ammo-turret or artillery-turret.
|
|
7333
7372
|
*/
|
|
@@ -7390,7 +7429,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
|
|
|
7390
7429
|
readonly chain_shooting_cooldown_modifier?: double;
|
|
7391
7430
|
readonly character_corpse?: LuaEntityPrototype;
|
|
7392
7431
|
/**
|
|
7393
|
-
* The chunk exploration radius of this
|
|
7432
|
+
* The chunk exploration radius of this vehicle prototype.
|
|
7394
7433
|
*/
|
|
7395
7434
|
readonly chunk_exploration_radius?: double;
|
|
7396
7435
|
/**
|
|
@@ -7647,6 +7686,10 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
|
|
|
7647
7686
|
* The heat energy source prototype this entity uses, if any.
|
|
7648
7687
|
*/
|
|
7649
7688
|
readonly heat_energy_source_prototype?: LuaHeatEnergySourcePrototype;
|
|
7689
|
+
/**
|
|
7690
|
+
* The energy required to keep this entity from freezing. Zero energy means it doesn't freeze.
|
|
7691
|
+
*/
|
|
7692
|
+
readonly heating_energy: double;
|
|
7650
7693
|
/**
|
|
7651
7694
|
* The height of this spider vehicle prototype.
|
|
7652
7695
|
*/
|
|
@@ -8189,7 +8232,7 @@ interface LuaEquipment {
|
|
|
8189
8232
|
*/
|
|
8190
8233
|
readonly max_shield: double;
|
|
8191
8234
|
/**
|
|
8192
|
-
* Maximum
|
|
8235
|
+
* Maximum energy per tick crated by this equipment on the current surface. Actual generated energy varies depending on the daylight levels.
|
|
8193
8236
|
*/
|
|
8194
8237
|
readonly max_solar_power: double;
|
|
8195
8238
|
/**
|
|
@@ -8277,9 +8320,9 @@ interface LuaEquipmentGrid {
|
|
|
8277
8320
|
clear(this: void, by_player?: PlayerIdentification): void;
|
|
8278
8321
|
/**
|
|
8279
8322
|
* Get the number of all or some equipment in this grid.
|
|
8280
|
-
* @param equipment
|
|
8323
|
+
* @param equipment The equipment to count. If not specified, count all equipment.
|
|
8281
8324
|
*/
|
|
8282
|
-
count(this: void, equipment?:
|
|
8325
|
+
count(this: void, equipment?: EquipmentWithQualityID): uint;
|
|
8283
8326
|
/**
|
|
8284
8327
|
* Find equipment by name.
|
|
8285
8328
|
* @param equipment Prototype of the equipment to find.
|
|
@@ -8288,16 +8331,16 @@ interface LuaEquipmentGrid {
|
|
|
8288
8331
|
*/
|
|
8289
8332
|
find(this: void, equipment: EquipmentWithQualityID, search_ghosts?: boolean): LuaEquipment | null;
|
|
8290
8333
|
/**
|
|
8291
|
-
* Find equipment in the Equipment Grid
|
|
8334
|
+
* Find equipment in the Equipment Grid colliding with this position.
|
|
8292
8335
|
* @param position The position
|
|
8293
|
-
* @returns The found equipment, or `nil` if equipment could not be found
|
|
8336
|
+
* @returns The found equipment, or `nil` if equipment occupying the given position could not be found.
|
|
8294
8337
|
*/
|
|
8295
8338
|
get(this: void, position: EquipmentPosition): LuaEquipment | null;
|
|
8296
8339
|
/**
|
|
8297
8340
|
* Get counts of all equipment in this grid.
|
|
8298
8341
|
* @returns The counts, indexed by equipment names.
|
|
8299
8342
|
*/
|
|
8300
|
-
get_contents(this: void):
|
|
8343
|
+
get_contents(this: void): EquipmentWithQualityCounts[];
|
|
8301
8344
|
/**
|
|
8302
8345
|
* Total energy per tick generated by the equipment inside this grid.
|
|
8303
8346
|
*/
|
|
@@ -8355,7 +8398,7 @@ interface LuaEquipmentGrid {
|
|
|
8355
8398
|
* @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.
|
|
8356
8399
|
* @returns List of the equipment that has been removed.
|
|
8357
8400
|
*/
|
|
8358
|
-
take_all(this: void, by_player?: PlayerIdentification):
|
|
8401
|
+
take_all(this: void, by_player?: PlayerIdentification): ItemWithQualityCounts[];
|
|
8359
8402
|
/**
|
|
8360
8403
|
* The total energy stored in all batteries in the equipment grid.
|
|
8361
8404
|
*/
|
|
@@ -8391,7 +8434,7 @@ interface LuaEquipmentGrid {
|
|
|
8391
8434
|
*/
|
|
8392
8435
|
readonly max_shield: float;
|
|
8393
8436
|
/**
|
|
8394
|
-
* Maximum energy per tick that can be created by
|
|
8437
|
+
* Maximum energy per tick that can be created by all solar panels in the equipment grid on the current surface. Actual generated energy varies depending on the daylight levels.
|
|
8395
8438
|
*/
|
|
8396
8439
|
readonly max_solar_energy: double;
|
|
8397
8440
|
/**
|
|
@@ -8563,14 +8606,14 @@ interface LuaFlowStatistics {
|
|
|
8563
8606
|
* Use `sample_index` to access the data used to generate the statistics graphs. Each precision level contains 300 samples of data so at a precision of 1 minute, each sample contains data averaged across 60s / 300 = 0.2s = 12 ticks.
|
|
8564
8607
|
*
|
|
8565
8608
|
* All return values are normalized to be per-tick for electric networks and per-minute for all other types.
|
|
8566
|
-
* @param table.
|
|
8609
|
+
* @param table.id The prototype ID.
|
|
8567
8610
|
* @param table.category The statistics category to read from. Valid choices are `"input"`, `"output"` and `"storage"`.
|
|
8568
8611
|
* @param table.precision_index The precision to read.
|
|
8569
8612
|
* @param table.sample_index The sample index to read from within the precision range. If not provided, the entire precision range is read. Must be between 1 and 300 where 1 is the most recent sample and 300 is the oldest.
|
|
8570
8613
|
* @param table.count If true, the count of items/fluids/entities is returned instead of the per-time-frame value.
|
|
8571
8614
|
*/
|
|
8572
8615
|
get_flow_count(this: void, table: {
|
|
8573
|
-
|
|
8616
|
+
id: FlowStatisticsID;
|
|
8574
8617
|
category: string;
|
|
8575
8618
|
precision_index: defines.flow_precision_index;
|
|
8576
8619
|
sample_index?: uint16;
|
|
@@ -8578,43 +8621,43 @@ interface LuaFlowStatistics {
|
|
|
8578
8621
|
}): double;
|
|
8579
8622
|
/**
|
|
8580
8623
|
* Gets the total input count for a given prototype.
|
|
8581
|
-
* @param
|
|
8624
|
+
* @param id The prototype ID.
|
|
8582
8625
|
*/
|
|
8583
|
-
get_input_count(this: void,
|
|
8626
|
+
get_input_count(this: void, id: FlowStatisticsID): uint64 | double;
|
|
8584
8627
|
/**
|
|
8585
8628
|
* Gets the total output count for a given prototype.
|
|
8586
|
-
* @param
|
|
8629
|
+
* @param id The prototype ID.
|
|
8587
8630
|
*/
|
|
8588
|
-
get_output_count(this: void,
|
|
8631
|
+
get_output_count(this: void, id: FlowStatisticsID): uint64 | double;
|
|
8589
8632
|
/**
|
|
8590
8633
|
* Gets the total storage count for a given prototype.
|
|
8591
|
-
* @param
|
|
8634
|
+
* @param id The prototype ID.
|
|
8592
8635
|
*/
|
|
8593
|
-
get_storage_count(this: void,
|
|
8636
|
+
get_storage_count(this: void, id: FlowStatisticsID): uint64 | double;
|
|
8594
8637
|
/**
|
|
8595
8638
|
* Adds a value to this flow statistics.
|
|
8596
|
-
* @param
|
|
8639
|
+
* @param id The prototype ID.
|
|
8597
8640
|
* @param count The count: positive or negative determines if the value goes in the input or output statistics.
|
|
8598
8641
|
*/
|
|
8599
|
-
on_flow(this: void,
|
|
8642
|
+
on_flow(this: void, id: FlowStatisticsID, count: float): void;
|
|
8600
8643
|
/**
|
|
8601
8644
|
* Sets the total input count for a given prototype.
|
|
8602
|
-
* @param
|
|
8645
|
+
* @param id The prototype ID.
|
|
8603
8646
|
* @param count The new count. The type depends on the instance of the statistics.
|
|
8604
8647
|
*/
|
|
8605
|
-
set_input_count(this: void,
|
|
8648
|
+
set_input_count(this: void, id: FlowStatisticsID, count: uint64 | double): void;
|
|
8606
8649
|
/**
|
|
8607
8650
|
* Sets the total output count for a given prototype.
|
|
8608
|
-
* @param
|
|
8651
|
+
* @param id The prototype ID.
|
|
8609
8652
|
* @param count The new count. The type depends on the instance of the statistics.
|
|
8610
8653
|
*/
|
|
8611
|
-
set_output_count(this: void,
|
|
8654
|
+
set_output_count(this: void, id: FlowStatisticsID, count: uint64 | double): void;
|
|
8612
8655
|
/**
|
|
8613
8656
|
* Sets the total storage count for a given prototype.
|
|
8614
|
-
* @param
|
|
8657
|
+
* @param id The prototype ID.
|
|
8615
8658
|
* @param count The new count. The type depends on the instance of the statistics.
|
|
8616
8659
|
*/
|
|
8617
|
-
set_storage_count(this: void,
|
|
8660
|
+
set_storage_count(this: void, id: FlowStatisticsID, count: uint64 | double): void;
|
|
8618
8661
|
/**
|
|
8619
8662
|
* The force these statistics belong to. `nil` for pollution statistics.
|
|
8620
8663
|
*/
|
|
@@ -9317,6 +9360,11 @@ interface LuaForce {
|
|
|
9317
9360
|
* Number of character trash slots.
|
|
9318
9361
|
*/
|
|
9319
9362
|
character_trash_slot_count: double;
|
|
9363
|
+
circuit_network_enabled: boolean;
|
|
9364
|
+
/**
|
|
9365
|
+
* When true, cliffs will be marked for deconstruction when trying to force-build things that collide.
|
|
9366
|
+
*/
|
|
9367
|
+
cliff_deconstruction_enabled: boolean;
|
|
9320
9368
|
/**
|
|
9321
9369
|
* Effective color of this force.
|
|
9322
9370
|
*/
|
|
@@ -9364,7 +9412,7 @@ interface LuaForce {
|
|
|
9364
9412
|
/**
|
|
9365
9413
|
* All of the items that have been launched in rockets.
|
|
9366
9414
|
*/
|
|
9367
|
-
readonly items_launched:
|
|
9415
|
+
readonly items_launched: ItemWithQualityCounts[];
|
|
9368
9416
|
laboratory_productivity_bonus: double;
|
|
9369
9417
|
laboratory_speed_modifier: double;
|
|
9370
9418
|
/**
|
|
@@ -9394,6 +9442,7 @@ interface LuaForce {
|
|
|
9394
9442
|
*/
|
|
9395
9443
|
maximum_following_robot_count: uint;
|
|
9396
9444
|
mining_drill_productivity_bonus: double;
|
|
9445
|
+
mining_with_fluid: boolean;
|
|
9397
9446
|
/**
|
|
9398
9447
|
* Name of the force.
|
|
9399
9448
|
* @example ```
|
|
@@ -9419,6 +9468,8 @@ interface LuaForce {
|
|
|
9419
9468
|
* The previous research, if any.
|
|
9420
9469
|
*/
|
|
9421
9470
|
previous_research?: LuaTechnology;
|
|
9471
|
+
rail_planner_allow_elevated_rails: boolean;
|
|
9472
|
+
rail_support_on_deep_oil_ocean: boolean;
|
|
9422
9473
|
/**
|
|
9423
9474
|
* Recipes available to this force, indexed by `name`.
|
|
9424
9475
|
* @example ```
|
|
@@ -9464,6 +9515,10 @@ interface LuaForce {
|
|
|
9464
9515
|
* 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.
|
|
9465
9516
|
*/
|
|
9466
9517
|
readonly valid: boolean;
|
|
9518
|
+
/**
|
|
9519
|
+
* When true, cars/tanks that support logistics will be able to use them.
|
|
9520
|
+
*/
|
|
9521
|
+
vehicle_logistics: boolean;
|
|
9467
9522
|
worker_robots_battery_modifier: double;
|
|
9468
9523
|
worker_robots_speed_modifier: double;
|
|
9469
9524
|
worker_robots_storage_bonus: double;
|
|
@@ -11414,7 +11469,7 @@ interface LuaInventory {
|
|
|
11414
11469
|
* Get counts of all items in this inventory.
|
|
11415
11470
|
* @returns List of all items in the inventory.
|
|
11416
11471
|
*/
|
|
11417
|
-
get_contents(this: void):
|
|
11472
|
+
get_contents(this: void): ItemWithQualityCounts[];
|
|
11418
11473
|
/**
|
|
11419
11474
|
* Gets the filter for the given item stack index.
|
|
11420
11475
|
* @param index The item stack index
|
|
@@ -11811,7 +11866,7 @@ interface LuaItemCommon {
|
|
|
11811
11866
|
/**
|
|
11812
11867
|
* List of raw materials required to build this blueprint.
|
|
11813
11868
|
*/
|
|
11814
|
-
readonly cost_to_build:
|
|
11869
|
+
readonly cost_to_build: ItemWithQualityCounts[];
|
|
11815
11870
|
/**
|
|
11816
11871
|
* The custom description this item-with-tags. This is shown over the normal item description if this is set to a non-empty value.
|
|
11817
11872
|
*/
|
|
@@ -12542,7 +12597,7 @@ interface LuaLogisticNetwork {
|
|
|
12542
12597
|
* Get item counts for the entire network, similar to how {@link LuaInventory::get_contents | runtime:LuaInventory::get_contents} does.
|
|
12543
12598
|
* @returns List of all items in the network.
|
|
12544
12599
|
*/
|
|
12545
|
-
get_contents(this: void):
|
|
12600
|
+
get_contents(this: void): ItemWithQualityCounts[];
|
|
12546
12601
|
/**
|
|
12547
12602
|
* Count given or all items in the network or given members.
|
|
12548
12603
|
* @param item Item name to count. If not given, gives counts of all items in the network.
|
|
@@ -12763,13 +12818,13 @@ interface LuaLogisticPoint {
|
|
|
12763
12818
|
*/
|
|
12764
12819
|
readonly sections_count: uint;
|
|
12765
12820
|
/**
|
|
12766
|
-
* Items targeted to be dropped off into this logistic point by robots.
|
|
12821
|
+
* Items targeted to be dropped off into this logistic point by robots.
|
|
12767
12822
|
*/
|
|
12768
|
-
readonly targeted_items_deliver:
|
|
12823
|
+
readonly targeted_items_deliver: ItemWithQualityCounts[];
|
|
12769
12824
|
/**
|
|
12770
|
-
* Items targeted to be picked up from this logistic point by robots.
|
|
12825
|
+
* Items targeted to be picked up from this logistic point by robots.
|
|
12771
12826
|
*/
|
|
12772
|
-
readonly targeted_items_pickup:
|
|
12827
|
+
readonly targeted_items_pickup: ItemWithQualityCounts[];
|
|
12773
12828
|
/**
|
|
12774
12829
|
* Whether this logistic point is set to trash unrequested items.
|
|
12775
12830
|
*/
|
|
@@ -13150,7 +13205,7 @@ interface LuaPlanet {
|
|
|
13150
13205
|
*
|
|
13151
13206
|
* {@link LuaPlanet::associate_surface | runtime:LuaPlanet::associate_surface} can be used to create an association with an existing surface.
|
|
13152
13207
|
*/
|
|
13153
|
-
readonly surface
|
|
13208
|
+
readonly surface?: LuaSurface;
|
|
13154
13209
|
/**
|
|
13155
13210
|
* 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.
|
|
13156
13211
|
*/
|
|
@@ -13392,7 +13447,7 @@ interface LuaPlayer extends LuaControl {
|
|
|
13392
13447
|
* Gets the quick bar filter for the given slot or `nil`.
|
|
13393
13448
|
* @param index The slot index. 1 for the first slot of page one, 2 for slot two of page one, 11 for the first slot of page 2, etc.
|
|
13394
13449
|
*/
|
|
13395
|
-
get_quick_bar_slot(this: void, index: uint):
|
|
13450
|
+
get_quick_bar_slot(this: void, index: uint): ItemFilter | null;
|
|
13396
13451
|
/**
|
|
13397
13452
|
* If the given alert type is currently enabled.
|
|
13398
13453
|
*/
|
|
@@ -14879,7 +14934,7 @@ interface LuaRecord {
|
|
|
14879
14934
|
/**
|
|
14880
14935
|
* List of raw materials required to build this blueprint.
|
|
14881
14936
|
*/
|
|
14882
|
-
readonly cost_to_build:
|
|
14937
|
+
readonly cost_to_build: ItemWithQualityCounts[];
|
|
14883
14938
|
/**
|
|
14884
14939
|
* The default icons for a blueprint blueprint.
|
|
14885
14940
|
*/
|
|
@@ -18017,7 +18072,7 @@ interface LuaTrain {
|
|
|
18017
18072
|
* Get a mapping of the train's inventory.
|
|
18018
18073
|
* @returns List of all items in the train.
|
|
18019
18074
|
*/
|
|
18020
|
-
get_contents(this: void):
|
|
18075
|
+
get_contents(this: void): ItemWithQualityCounts[];
|
|
18021
18076
|
/**
|
|
18022
18077
|
* Gets a mapping of the train's fluid inventory.
|
|
18023
18078
|
* @returns The counts, indexed by fluid names.
|
|
@@ -18030,9 +18085,9 @@ interface LuaTrain {
|
|
|
18030
18085
|
get_fluid_count(this: void, fluid?: string): double;
|
|
18031
18086
|
/**
|
|
18032
18087
|
* Get the amount of a particular item stored in the train.
|
|
18033
|
-
* @param item
|
|
18088
|
+
* @param item If not given, counts all items.
|
|
18034
18089
|
*/
|
|
18035
|
-
get_item_count(this: void, item?:
|
|
18090
|
+
get_item_count(this: void, item?: ItemFilter): uint;
|
|
18036
18091
|
/**
|
|
18037
18092
|
* Gets a LuaRailEnd object pointing away from the train at specified end of the train
|
|
18038
18093
|
*/
|
|
@@ -18360,16 +18415,16 @@ interface LuaTransportLine {
|
|
|
18360
18415
|
* Get counts of all items on this line, similar to how {@link LuaInventory::get_contents | runtime:LuaInventory::get_contents} does.
|
|
18361
18416
|
* @returns List of all items on this line.
|
|
18362
18417
|
*/
|
|
18363
|
-
get_contents(this: void):
|
|
18418
|
+
get_contents(this: void): ItemWithQualityCounts[];
|
|
18364
18419
|
/**
|
|
18365
18420
|
* Get detailed information of items on this line, such as their position.
|
|
18366
18421
|
*/
|
|
18367
18422
|
get_detailed_contents(this: void): DetailedItemOnLine[];
|
|
18368
18423
|
/**
|
|
18369
18424
|
* Count some or all items on this line, similar to how {@link LuaInventory::get_item_count | runtime:LuaInventory::get_item_count} does.
|
|
18370
|
-
* @param item
|
|
18425
|
+
* @param item If not specified, count all items.
|
|
18371
18426
|
*/
|
|
18372
|
-
get_item_count(this: void, item?:
|
|
18427
|
+
get_item_count(this: void, item?: ItemFilter): uint;
|
|
18373
18428
|
/**
|
|
18374
18429
|
* Get a map position related to a position on a transport line.
|
|
18375
18430
|
* @param position Linear position along the transport line. Clamped to the transport line range.
|
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.22
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -1744,6 +1744,20 @@ interface EquipmentPrototypeFilterType extends BaseEquipmentPrototypeFilter {
|
|
|
1744
1744
|
*/
|
|
1745
1745
|
'type': string | string[];
|
|
1746
1746
|
}
|
|
1747
|
+
interface EquipmentWithQualityCounts {
|
|
1748
|
+
/**
|
|
1749
|
+
* Name of the equipment prototype.
|
|
1750
|
+
*/
|
|
1751
|
+
name: string;
|
|
1752
|
+
/**
|
|
1753
|
+
* The number of equipment items.
|
|
1754
|
+
*/
|
|
1755
|
+
count: uint;
|
|
1756
|
+
/**
|
|
1757
|
+
* Name of the equipment's quality prototype.
|
|
1758
|
+
*/
|
|
1759
|
+
quality: string;
|
|
1760
|
+
}
|
|
1747
1761
|
/**
|
|
1748
1762
|
* An equipment prototype with optional quality specification.
|
|
1749
1763
|
*/
|
|
@@ -1783,6 +1797,22 @@ interface EventData {
|
|
|
1783
1797
|
* Filters are always used as an array of filters of a specific type. Every filter can only be used with its corresponding event, and different types of event filters can not be mixed.
|
|
1784
1798
|
*/
|
|
1785
1799
|
type EventFilter = (LuaPrePlatformMinedEntityEventFilter | LuaRobotMinedEntityEventFilter | LuaEntityMarkedForUpgradeEventFilter | LuaPreGhostUpgradedEventFilter | LuaPlatformMinedEntityEventFilter | LuaScriptRaisedDestroyEventFilter | LuaPlayerBuiltEntityEventFilter | LuaPlatformBuiltEntityEventFilter | LuaPreGhostDeconstructedEventFilter | LuaEntityClonedEventFilter | LuaScriptRaisedTeleportedEventFilter | LuaEntityDeconstructionCancelledEventFilter | LuaRobotBuiltEntityEventFilter | LuaScriptRaisedBuiltEventFilter | LuaPrePlayerMinedEntityEventFilter | LuaPlayerRepairedEntityEventFilter | LuaUpgradeCancelledEventFilter | LuaSectorScannedEventFilter | LuaPostEntityDiedEventFilter | LuaEntityMarkedForDeconstructionEventFilter | LuaPlayerMinedEntityEventFilter | LuaEntityDamagedEventFilter | LuaScriptRaisedReviveEventFilter | LuaEntityDiedEventFilter | LuaPreRobotMinedEntityEventFilter)[];
|
|
1800
|
+
/**
|
|
1801
|
+
* Identifies a statistics prototype, depending on the statistics type.
|
|
1802
|
+
*/
|
|
1803
|
+
type FlowStatisticsID = /**
|
|
1804
|
+
* Used with item production statistics.
|
|
1805
|
+
*/
|
|
1806
|
+
ItemWithQualityID | /**
|
|
1807
|
+
* Used with fluid production statistics.
|
|
1808
|
+
*/
|
|
1809
|
+
FluidID | /**
|
|
1810
|
+
* Used with electric network, entity build count, and kill count statistics.
|
|
1811
|
+
*/
|
|
1812
|
+
EntityWithQualityID | /**
|
|
1813
|
+
* Used with pollution statistics.
|
|
1814
|
+
*/
|
|
1815
|
+
EntityID;
|
|
1786
1816
|
interface Fluid {
|
|
1787
1817
|
/**
|
|
1788
1818
|
* Fluid prototype name of the fluid.
|
|
@@ -2096,7 +2126,7 @@ interface GameViewSettings {
|
|
|
2096
2126
|
*/
|
|
2097
2127
|
show_entity_tooltip: boolean;
|
|
2098
2128
|
/**
|
|
2099
|
-
*
|
|
2129
|
+
* Shows or hides the mouse and keyboard/controller button hints in the bottom left corner if they are enabled in the interface settings.
|
|
2100
2130
|
*/
|
|
2101
2131
|
show_hotkey_suggestions: boolean;
|
|
2102
2132
|
/**
|
|
@@ -2127,6 +2157,10 @@ interface GameViewSettings {
|
|
|
2127
2157
|
* Shows or hides the buttons row.
|
|
2128
2158
|
*/
|
|
2129
2159
|
show_side_menu: boolean;
|
|
2160
|
+
/**
|
|
2161
|
+
* Shows or hides the surface list while in Remote View.
|
|
2162
|
+
*/
|
|
2163
|
+
show_surface_list: boolean;
|
|
2130
2164
|
/**
|
|
2131
2165
|
* Shows or hides the tool window with the weapons and armor.
|
|
2132
2166
|
*/
|
|
@@ -2450,20 +2484,6 @@ interface InventoryPosition {
|
|
|
2450
2484
|
count?: ItemCountType;
|
|
2451
2485
|
}
|
|
2452
2486
|
type ItemCountType = uint;
|
|
2453
|
-
interface ItemCountWithQuality {
|
|
2454
|
-
/**
|
|
2455
|
-
* The name of the item prototype.
|
|
2456
|
-
*/
|
|
2457
|
-
name: string;
|
|
2458
|
-
/**
|
|
2459
|
-
* The number of items.
|
|
2460
|
-
*/
|
|
2461
|
-
count: uint;
|
|
2462
|
-
/**
|
|
2463
|
-
* The quality level of the items.
|
|
2464
|
-
*/
|
|
2465
|
-
quality: QualityID;
|
|
2466
|
-
}
|
|
2467
2487
|
/**
|
|
2468
2488
|
* An item filter may be specified in two ways, either as a string which is an item prototype name or as a table.
|
|
2469
2489
|
*/
|
|
@@ -2900,6 +2920,20 @@ interface ItemStackLocation {
|
|
|
2900
2920
|
inventory: defines.inventory;
|
|
2901
2921
|
slot: uint;
|
|
2902
2922
|
}
|
|
2923
|
+
interface ItemWithQualityCounts {
|
|
2924
|
+
/**
|
|
2925
|
+
* Name of the item prototype.
|
|
2926
|
+
*/
|
|
2927
|
+
name: string;
|
|
2928
|
+
/**
|
|
2929
|
+
* The number of items.
|
|
2930
|
+
*/
|
|
2931
|
+
count: uint;
|
|
2932
|
+
/**
|
|
2933
|
+
* Name of the item's quality prototype.
|
|
2934
|
+
*/
|
|
2935
|
+
quality: string;
|
|
2936
|
+
}
|
|
2903
2937
|
/**
|
|
2904
2938
|
* An item prototype with optional quality specification. Can be specified in one of four ways.
|
|
2905
2939
|
*/
|
|
@@ -5541,7 +5575,7 @@ interface PipeConnectionDefinition {
|
|
|
5541
5575
|
/**
|
|
5542
5576
|
* Only supplied if `connection_type` is `"linked"`.
|
|
5543
5577
|
*/
|
|
5544
|
-
linked_connection_id?:
|
|
5578
|
+
linked_connection_id?: uint;
|
|
5545
5579
|
}
|
|
5546
5580
|
interface PlaceAsTileResult {
|
|
5547
5581
|
/**
|
|
@@ -6473,6 +6507,10 @@ interface SelectedPrototypeData {
|
|
|
6473
6507
|
* The `name` of the prototype. E.g. `"tree-05"`.
|
|
6474
6508
|
*/
|
|
6475
6509
|
name: string;
|
|
6510
|
+
/**
|
|
6511
|
+
* The `name` of the quality prototype if any. E.g. `"normal"`.
|
|
6512
|
+
*/
|
|
6513
|
+
quality?: string;
|
|
6476
6514
|
}
|
|
6477
6515
|
/**
|
|
6478
6516
|
* A set of flags on a selection tool that define how entities and tiles are selected. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
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.22
|
|
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.22
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
|
@@ -661,196 +661,197 @@ enum events {
|
|
|
661
661
|
on_built_entity = 6,
|
|
662
662
|
on_cancelled_deconstruction = 7,
|
|
663
663
|
on_cancelled_upgrade = 8,
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
664
|
+
on_cargo_pod_finished_ascending = 9,
|
|
665
|
+
on_character_corpse_expired = 10,
|
|
666
|
+
on_chart_tag_added = 11,
|
|
667
|
+
on_chart_tag_modified = 12,
|
|
668
|
+
on_chart_tag_removed = 13,
|
|
669
|
+
on_chunk_charted = 14,
|
|
670
|
+
on_chunk_deleted = 15,
|
|
671
|
+
on_chunk_generated = 16,
|
|
672
|
+
on_combat_robot_expired = 17,
|
|
673
|
+
on_console_chat = 18,
|
|
674
|
+
on_console_command = 19,
|
|
675
|
+
on_cutscene_cancelled = 20,
|
|
676
|
+
on_cutscene_finished = 21,
|
|
677
|
+
on_cutscene_started = 22,
|
|
678
|
+
on_cutscene_waypoint_reached = 23,
|
|
679
|
+
on_entity_cloned = 24,
|
|
680
|
+
on_entity_color_changed = 25,
|
|
681
|
+
on_entity_damaged = 26,
|
|
682
|
+
on_entity_died = 27,
|
|
683
|
+
on_entity_logistic_slot_changed = 28,
|
|
684
|
+
on_entity_renamed = 29,
|
|
685
|
+
on_entity_settings_pasted = 30,
|
|
686
|
+
on_entity_spawned = 31,
|
|
687
|
+
on_equipment_inserted = 32,
|
|
688
|
+
on_equipment_removed = 33,
|
|
689
|
+
on_force_cease_fire_changed = 34,
|
|
690
|
+
on_force_created = 35,
|
|
691
|
+
on_force_friends_changed = 36,
|
|
692
|
+
on_force_reset = 37,
|
|
693
|
+
on_forces_merged = 38,
|
|
694
|
+
on_forces_merging = 39,
|
|
695
|
+
on_game_created_from_scenario = 40,
|
|
696
|
+
on_gui_checked_state_changed = 41,
|
|
697
|
+
on_gui_click = 42,
|
|
698
|
+
on_gui_closed = 43,
|
|
699
|
+
on_gui_confirmed = 44,
|
|
700
|
+
on_gui_elem_changed = 45,
|
|
701
|
+
on_gui_hover = 46,
|
|
702
|
+
on_gui_leave = 47,
|
|
703
|
+
on_gui_location_changed = 48,
|
|
704
|
+
on_gui_opened = 49,
|
|
705
|
+
on_gui_selected_tab_changed = 50,
|
|
706
|
+
on_gui_selection_state_changed = 51,
|
|
707
|
+
on_gui_switch_state_changed = 52,
|
|
708
|
+
on_gui_text_changed = 53,
|
|
709
|
+
on_gui_value_changed = 54,
|
|
710
|
+
on_land_mine_armed = 55,
|
|
711
|
+
on_lua_shortcut = 56,
|
|
712
|
+
on_marked_for_deconstruction = 57,
|
|
713
|
+
on_marked_for_upgrade = 58,
|
|
714
|
+
on_market_item_purchased = 59,
|
|
715
|
+
on_mod_item_opened = 60,
|
|
716
|
+
on_object_destroyed = 61,
|
|
717
|
+
on_permission_group_added = 62,
|
|
718
|
+
on_permission_group_deleted = 63,
|
|
719
|
+
on_permission_group_edited = 64,
|
|
720
|
+
on_permission_string_imported = 65,
|
|
721
|
+
on_picked_up_item = 66,
|
|
722
|
+
on_player_alt_reverse_selected_area = 67,
|
|
723
|
+
on_player_alt_selected_area = 68,
|
|
724
|
+
on_player_ammo_inventory_changed = 69,
|
|
725
|
+
on_player_armor_inventory_changed = 70,
|
|
726
|
+
on_player_banned = 71,
|
|
727
|
+
on_player_built_tile = 72,
|
|
728
|
+
on_player_cancelled_crafting = 73,
|
|
729
|
+
on_player_changed_force = 74,
|
|
730
|
+
on_player_changed_position = 75,
|
|
731
|
+
on_player_changed_surface = 76,
|
|
732
|
+
on_player_cheat_mode_disabled = 77,
|
|
733
|
+
on_player_cheat_mode_enabled = 78,
|
|
734
|
+
on_player_clicked_gps_tag = 79,
|
|
735
|
+
on_player_configured_blueprint = 80,
|
|
736
|
+
on_player_controller_changed = 81,
|
|
737
|
+
on_player_crafted_item = 82,
|
|
738
|
+
on_player_created = 83,
|
|
739
|
+
on_player_cursor_stack_changed = 84,
|
|
740
|
+
on_player_deconstructed_area = 85,
|
|
741
|
+
on_player_demoted = 86,
|
|
742
|
+
on_player_died = 87,
|
|
743
|
+
on_player_display_density_scale_changed = 88,
|
|
744
|
+
on_player_display_resolution_changed = 89,
|
|
745
|
+
on_player_display_scale_changed = 90,
|
|
746
|
+
on_player_driving_changed_state = 91,
|
|
747
|
+
on_player_dropped_item = 92,
|
|
748
|
+
on_player_fast_transferred = 93,
|
|
749
|
+
on_player_flipped_entity = 94,
|
|
750
|
+
on_player_flushed_fluid = 95,
|
|
751
|
+
on_player_gun_inventory_changed = 96,
|
|
752
|
+
on_player_input_method_changed = 97,
|
|
753
|
+
on_player_joined_game = 98,
|
|
754
|
+
on_player_kicked = 99,
|
|
755
|
+
on_player_left_game = 100,
|
|
756
|
+
on_player_locale_changed = 101,
|
|
757
|
+
on_player_main_inventory_changed = 102,
|
|
758
|
+
on_player_mined_entity = 103,
|
|
759
|
+
on_player_mined_item = 104,
|
|
760
|
+
on_player_mined_tile = 105,
|
|
761
|
+
on_player_muted = 106,
|
|
762
|
+
on_player_pipette = 107,
|
|
763
|
+
on_player_placed_equipment = 108,
|
|
764
|
+
on_player_promoted = 109,
|
|
765
|
+
on_player_removed = 110,
|
|
766
|
+
on_player_removed_equipment = 111,
|
|
767
|
+
on_player_repaired_entity = 112,
|
|
768
|
+
on_player_respawned = 113,
|
|
769
|
+
on_player_reverse_selected_area = 114,
|
|
770
|
+
on_player_rotated_entity = 115,
|
|
771
|
+
on_player_selected_area = 116,
|
|
772
|
+
on_player_set_quick_bar_slot = 117,
|
|
773
|
+
on_player_setup_blueprint = 118,
|
|
774
|
+
on_player_toggled_alt_mode = 119,
|
|
775
|
+
on_player_toggled_map_editor = 120,
|
|
776
|
+
on_player_trash_inventory_changed = 121,
|
|
777
|
+
on_player_unbanned = 122,
|
|
778
|
+
on_player_unmuted = 123,
|
|
779
|
+
on_player_used_capsule = 124,
|
|
780
|
+
on_player_used_spidertron_remote = 125,
|
|
781
|
+
on_post_entity_died = 126,
|
|
782
|
+
on_pre_build = 127,
|
|
783
|
+
on_pre_chunk_deleted = 128,
|
|
784
|
+
on_pre_entity_settings_pasted = 129,
|
|
785
|
+
on_pre_ghost_deconstructed = 130,
|
|
786
|
+
on_pre_ghost_upgraded = 131,
|
|
787
|
+
on_pre_permission_group_deleted = 132,
|
|
788
|
+
on_pre_permission_string_imported = 133,
|
|
789
|
+
on_pre_player_crafted_item = 134,
|
|
790
|
+
on_pre_player_died = 135,
|
|
791
|
+
on_pre_player_left_game = 136,
|
|
792
|
+
on_pre_player_mined_item = 137,
|
|
793
|
+
on_pre_player_removed = 138,
|
|
794
|
+
on_pre_player_toggled_map_editor = 139,
|
|
795
|
+
on_pre_robot_exploded_cliff = 140,
|
|
796
|
+
on_pre_scenario_finished = 141,
|
|
797
|
+
on_pre_script_inventory_resized = 142,
|
|
798
|
+
on_pre_surface_cleared = 143,
|
|
799
|
+
on_pre_surface_deleted = 144,
|
|
800
|
+
on_redo_applied = 145,
|
|
801
|
+
on_research_cancelled = 146,
|
|
802
|
+
on_research_finished = 147,
|
|
803
|
+
on_research_moved = 148,
|
|
804
|
+
on_research_reversed = 149,
|
|
805
|
+
on_research_started = 150,
|
|
806
|
+
on_resource_depleted = 151,
|
|
807
|
+
on_robot_built_entity = 152,
|
|
808
|
+
on_robot_built_tile = 153,
|
|
809
|
+
on_robot_exploded_cliff = 154,
|
|
810
|
+
on_robot_mined = 155,
|
|
811
|
+
on_robot_mined_entity = 156,
|
|
812
|
+
on_robot_mined_tile = 157,
|
|
813
|
+
on_robot_pre_mined = 158,
|
|
814
|
+
on_rocket_launch_ordered = 159,
|
|
815
|
+
on_rocket_launched = 160,
|
|
816
|
+
on_runtime_mod_setting_changed = 161,
|
|
817
|
+
on_script_inventory_resized = 162,
|
|
818
|
+
on_script_path_request_finished = 163,
|
|
819
|
+
on_script_trigger_effect = 164,
|
|
820
|
+
on_sector_scanned = 165,
|
|
821
|
+
on_segment_entity_created = 166,
|
|
822
|
+
on_selected_entity_changed = 167,
|
|
823
|
+
on_space_platform_built_entity = 168,
|
|
824
|
+
on_space_platform_built_tile = 169,
|
|
825
|
+
on_space_platform_changed_state = 170,
|
|
826
|
+
on_space_platform_mined_entity = 171,
|
|
827
|
+
on_space_platform_mined_item = 172,
|
|
828
|
+
on_space_platform_mined_tile = 173,
|
|
829
|
+
on_space_platform_pre_mined = 174,
|
|
830
|
+
on_spider_command_completed = 175,
|
|
831
|
+
on_string_translated = 176,
|
|
832
|
+
on_surface_cleared = 177,
|
|
833
|
+
on_surface_created = 178,
|
|
834
|
+
on_surface_deleted = 179,
|
|
835
|
+
on_surface_imported = 180,
|
|
836
|
+
on_surface_renamed = 181,
|
|
837
|
+
on_technology_effects_reset = 182,
|
|
838
|
+
on_tick = 183,
|
|
839
|
+
on_train_changed_state = 184,
|
|
840
|
+
on_train_created = 185,
|
|
841
|
+
on_train_schedule_changed = 186,
|
|
842
|
+
on_trigger_created_entity = 187,
|
|
843
|
+
on_trigger_fired_artillery = 188,
|
|
844
|
+
on_undo_applied = 189,
|
|
845
|
+
on_unit_added_to_group = 190,
|
|
846
|
+
on_unit_group_created = 191,
|
|
847
|
+
on_unit_group_finished_gathering = 192,
|
|
848
|
+
on_unit_removed_from_group = 193,
|
|
849
|
+
on_worker_robot_expired = 194,
|
|
850
|
+
script_raised_built = 195,
|
|
851
|
+
script_raised_destroy = 196,
|
|
852
|
+
script_raised_revive = 197,
|
|
853
|
+
script_raised_set_tiles = 198,
|
|
854
|
+
script_raised_teleported = 199
|
|
854
855
|
}
|
|
855
856
|
enum flow_precision_index {
|
|
856
857
|
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.22
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -224,6 +224,27 @@ interface on_cancelled_upgrade {
|
|
|
224
224
|
*/
|
|
225
225
|
tick: uint;
|
|
226
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* Called when a cargo pod departs a surface.
|
|
229
|
+
*/
|
|
230
|
+
interface on_cargo_pod_finished_ascending {
|
|
231
|
+
/**
|
|
232
|
+
* True for pods spawned on a rocket. This event triggers for platform and modded pods as well, but only when true will the pod count towards rocket launch statistics and trigger 'rocket-launched' achievement with objective_condition.
|
|
233
|
+
*/
|
|
234
|
+
launched_by_rocket: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* Identifier of the event
|
|
237
|
+
*/
|
|
238
|
+
name: defines.events;
|
|
239
|
+
/**
|
|
240
|
+
* The player that is riding the rocket, if any.
|
|
241
|
+
*/
|
|
242
|
+
player_index?: uint;
|
|
243
|
+
/**
|
|
244
|
+
* Tick the event was generated.
|
|
245
|
+
*/
|
|
246
|
+
tick: uint;
|
|
247
|
+
}
|
|
227
248
|
/**
|
|
228
249
|
* Called when a character corpse expires due to timeout or all of the items being removed from it.
|
|
229
250
|
*
|
|
@@ -3632,17 +3653,13 @@ interface on_rocket_launch_ordered {
|
|
|
3632
3653
|
tick: uint;
|
|
3633
3654
|
}
|
|
3634
3655
|
/**
|
|
3635
|
-
* Called when
|
|
3656
|
+
* Called when a rocket finishes ascending. (Triggers listening for finished rocket launch past 2.0 have been moved to 'on_cargo_pod_finished_ascending' as rocket and cargo pod are two separate entities)
|
|
3636
3657
|
*/
|
|
3637
3658
|
interface on_rocket_launched {
|
|
3638
3659
|
/**
|
|
3639
3660
|
* Identifier of the event
|
|
3640
3661
|
*/
|
|
3641
3662
|
name: defines.events;
|
|
3642
|
-
/**
|
|
3643
|
-
* The player that is riding the rocket, if any.
|
|
3644
|
-
*/
|
|
3645
|
-
player_index?: uint;
|
|
3646
3663
|
rocket: LuaEntity;
|
|
3647
3664
|
rocket_silo?: LuaEntity;
|
|
3648
3665
|
/**
|
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.22
|
|
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.22
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -703,7 +703,10 @@ interface ArtilleryTurretPrototype extends EntityWithOwnerPrototype {
|
|
|
703
703
|
* Must be > 0.
|
|
704
704
|
*/
|
|
705
705
|
ammo_stack_limit: ItemCountType;
|
|
706
|
-
|
|
706
|
+
/**
|
|
707
|
+
* Must be > 0.
|
|
708
|
+
*/
|
|
709
|
+
automated_ammo_count?: ItemCountType;
|
|
707
710
|
base_picture?: Animation4Way;
|
|
708
711
|
base_picture_render_layer?: RenderLayer;
|
|
709
712
|
base_picture_secondary_draw_order?: uint8;
|
|
@@ -760,6 +763,10 @@ interface ArtilleryWagonPrototype extends RollingStockPrototype {
|
|
|
760
763
|
* Must be > 0.
|
|
761
764
|
*/
|
|
762
765
|
ammo_stack_limit: ItemCountType;
|
|
766
|
+
/**
|
|
767
|
+
* Must be > 0.
|
|
768
|
+
*/
|
|
769
|
+
automated_ammo_count?: ItemCountType;
|
|
763
770
|
/**
|
|
764
771
|
* Only loaded if `cannon_barrel_recoil_shiftings` is loaded.
|
|
765
772
|
*/
|
|
@@ -1818,6 +1825,10 @@ interface CorpsePrototype extends EntityPrototype {
|
|
|
1818
1825
|
animation_overlay_final_render_layer?: RenderLayer;
|
|
1819
1826
|
animation_overlay_render_layer?: RenderLayer;
|
|
1820
1827
|
animation_render_layer?: RenderLayer;
|
|
1828
|
+
/**
|
|
1829
|
+
* If true, and the collision box is unset, this will take the collision box of the first entity that uses this corpse.
|
|
1830
|
+
*/
|
|
1831
|
+
auto_setup_collision_box?: bool;
|
|
1821
1832
|
decay_animation?: RotatedAnimationVariations;
|
|
1822
1833
|
decay_frame_transition_duration?: float;
|
|
1823
1834
|
/**
|
|
@@ -4223,6 +4234,10 @@ interface InfinityContainerPrototype extends LogisticContainerPrototype {
|
|
|
4223
4234
|
* The way this chest interacts with the logistic network.
|
|
4224
4235
|
*/
|
|
4225
4236
|
logistic_mode?: 'active-provider' | 'passive-provider' | 'requester' | 'storage' | 'buffer';
|
|
4237
|
+
/**
|
|
4238
|
+
* When true, items created inside the infinity chest will not start to spoil until they have been removed from the chest.
|
|
4239
|
+
*/
|
|
4240
|
+
preserve_contents_when_created?: bool;
|
|
4226
4241
|
/**
|
|
4227
4242
|
* Whether the "no network" icon should be rendered on this entity if the entity is not within a logistics network.
|
|
4228
4243
|
*/
|
|
@@ -5881,12 +5896,11 @@ interface ProduceAchievementPrototype extends AchievementPrototype {
|
|
|
5881
5896
|
item_product = "pistol"
|
|
5882
5897
|
```
|
|
5883
5898
|
*/
|
|
5884
|
-
item_product?:
|
|
5899
|
+
item_product?: ItemIDFilter;
|
|
5885
5900
|
/**
|
|
5886
5901
|
* If this is false, the player carries over their statistics from this achievement through all their saves.
|
|
5887
5902
|
*/
|
|
5888
5903
|
limited_to_one_game: bool;
|
|
5889
|
-
quality?: QualityID;
|
|
5890
5904
|
}
|
|
5891
5905
|
/**
|
|
5892
5906
|
* This prototype is used for receiving an achievement when the player crafts a specified item a certain amount, in an hour.
|
|
@@ -5916,7 +5930,7 @@ interface ProducePerHourAchievementPrototype extends AchievementPrototype {
|
|
|
5916
5930
|
item_product = "landfill"
|
|
5917
5931
|
```
|
|
5918
5932
|
*/
|
|
5919
|
-
item_product?:
|
|
5933
|
+
item_product?: ItemIDFilter;
|
|
5920
5934
|
}
|
|
5921
5935
|
/**
|
|
5922
5936
|
* A {@link programmable speaker | https://wiki.factorio.com/Programmable_speaker}.
|
|
@@ -7544,8 +7558,8 @@ interface ShootAchievementPrototype extends AchievementPrototype {
|
|
|
7544
7558
|
technology_to_unlock = "construction-robotics",
|
|
7545
7559
|
item_to_spawn = "deconstruction-planner",
|
|
7546
7560
|
style = "red",
|
|
7547
|
-
icon = "__base__/graphics/icons/shortcut-toolbar/mip/new-deconstruction-planner-
|
|
7548
|
-
icon_size =
|
|
7561
|
+
icon = "__base__/graphics/icons/shortcut-toolbar/mip/new-deconstruction-planner-x56.png",
|
|
7562
|
+
icon_size = 56,
|
|
7549
7563
|
small_icon = "__base__/graphics/icons/shortcut-toolbar/mip/new-deconstruction-planner-x24.png",
|
|
7550
7564
|
small_icon_size = 24
|
|
7551
7565
|
}
|
|
@@ -8148,7 +8162,6 @@ interface SpiderVehiclePrototype extends VehiclePrototype {
|
|
|
8148
8162
|
* chain_shooting_cooldown_modifier is intended to be in the range of 0 to 1. This means that setting chain_shooting_cooldown_modifier to 0 reduces the remaining shooting cooldown to 0 while a chain_shooting_cooldown_modifier of 1 does not affect the remaining shooting cooldown at all.
|
|
8149
8163
|
*/
|
|
8150
8164
|
chain_shooting_cooldown_modifier: float;
|
|
8151
|
-
chunk_exploration_radius: uint32;
|
|
8152
8165
|
energy_source: BurnerEnergySource | VoidEnergySource;
|
|
8153
8166
|
graphics_set?: SpiderVehicleGraphicsSet;
|
|
8154
8167
|
/**
|
|
@@ -9681,9 +9694,6 @@ interface UtilityConstants extends PrototypeBase {
|
|
|
9681
9694
|
* Silently clamped to be between 0 and 1.
|
|
9682
9695
|
*/
|
|
9683
9696
|
moving_sound_count_reduction_rate: float;
|
|
9684
|
-
music_transition_fade_in_ticks: uint32;
|
|
9685
|
-
music_transition_fade_out_ticks: uint32;
|
|
9686
|
-
music_transition_pause_ticks: uint32;
|
|
9687
9697
|
/**
|
|
9688
9698
|
* The table with `name = "default"` must exist and be the first member of the array.
|
|
9689
9699
|
*/
|
|
@@ -10434,6 +10444,7 @@ interface VehiclePrototype extends EntityWithOwnerPrototype {
|
|
|
10434
10444
|
* Must be positive. There is no functional difference between the two ways to set braking power/force.
|
|
10435
10445
|
*/
|
|
10436
10446
|
braking_power: Energy | double;
|
|
10447
|
+
chunk_exploration_radius?: uint32;
|
|
10437
10448
|
crash_trigger?: TriggerEffect;
|
|
10438
10449
|
/**
|
|
10439
10450
|
* Name of a {@link DeliverCategory | prototype:DeliverCategory}.
|
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.22
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -1333,6 +1333,7 @@ interface AreaTriggerItem extends TriggerItem {
|
|
|
1333
1333
|
collision_mode?: 'distance-from-collision-box' | 'distance-from-center';
|
|
1334
1334
|
radius: double;
|
|
1335
1335
|
show_in_tooltip?: bool;
|
|
1336
|
+
target_enemies?: bool;
|
|
1336
1337
|
target_entities?: bool;
|
|
1337
1338
|
trigger_from_target?: bool;
|
|
1338
1339
|
type: 'area';
|
|
@@ -3099,8 +3100,7 @@ interface CraftFluidTechnologyTrigger {
|
|
|
3099
3100
|
}
|
|
3100
3101
|
interface CraftItemTechnologyTrigger {
|
|
3101
3102
|
count?: ItemCountType;
|
|
3102
|
-
item:
|
|
3103
|
-
item_quality?: QualityID;
|
|
3103
|
+
item: ItemIDFilter;
|
|
3104
3104
|
type: 'craft-item';
|
|
3105
3105
|
}
|
|
3106
3106
|
interface CraftItemTipTrigger extends CountBasedTipTrigger {
|
|
@@ -4908,6 +4908,7 @@ interface GameViewSettings {
|
|
|
4908
4908
|
show_research_info?: bool;
|
|
4909
4909
|
show_shortcut_bar?: bool;
|
|
4910
4910
|
show_side_menu?: bool;
|
|
4911
|
+
show_surface_list?: bool;
|
|
4911
4912
|
show_tool_bar?: bool;
|
|
4912
4913
|
update_entity_selection?: bool;
|
|
4913
4914
|
}
|
|
@@ -6274,6 +6275,7 @@ interface MinableProperties {
|
|
|
6274
6275
|
* The amount of fluid that is used up when this object is mined. If this is > 0, this object cannot be mined by hand.
|
|
6275
6276
|
*/
|
|
6276
6277
|
fluid_amount?: FluidAmount;
|
|
6278
|
+
include_in_show_counts?: bool;
|
|
6277
6279
|
/**
|
|
6278
6280
|
* Name of a {@link ParticlePrototype | prototype:ParticlePrototype}. Which set of particles to use.
|
|
6279
6281
|
*/
|
|
@@ -9226,6 +9228,16 @@ interface SpaceTileEffectParameters {
|
|
|
9226
9228
|
zoom_factor?: float;
|
|
9227
9229
|
zoom_offset?: float;
|
|
9228
9230
|
}
|
|
9231
|
+
interface SpacingItem {
|
|
9232
|
+
/**
|
|
9233
|
+
* The index of the row or column after which to insert `spacing`.
|
|
9234
|
+
*/
|
|
9235
|
+
index: uint32;
|
|
9236
|
+
/**
|
|
9237
|
+
* The spacing in scaled pixels between columns `column` and `column + 1`.
|
|
9238
|
+
*/
|
|
9239
|
+
spacing: int32;
|
|
9240
|
+
}
|
|
9229
9241
|
/**
|
|
9230
9242
|
* The definition of a evolution and probability weights for a {@link spawnable unit | prototype:UnitSpawnDefinition} for a {@link EnemySpawnerPrototype | prototype:EnemySpawnerPrototype}.
|
|
9231
9243
|
*
|
|
@@ -10196,7 +10208,7 @@ interface TableStyleSpecification extends BaseStyleSpecification {
|
|
|
10196
10208
|
default_row_graphical_set?: ElementImageSet;
|
|
10197
10209
|
even_row_graphical_set?: ElementImageSet;
|
|
10198
10210
|
horizontal_line_color?: Color;
|
|
10199
|
-
horizontal_spacing?: int32;
|
|
10211
|
+
horizontal_spacing?: int32 | SpacingItem[];
|
|
10200
10212
|
hovered_graphical_set?: ElementImageSet;
|
|
10201
10213
|
hovered_row_color?: Color;
|
|
10202
10214
|
inactive_column_ordering_ascending_button_style?: ButtonStyleSpecification;
|
|
@@ -10211,7 +10223,7 @@ interface TableStyleSpecification extends BaseStyleSpecification {
|
|
|
10211
10223
|
top_cell_padding?: int16;
|
|
10212
10224
|
type: 'table_style';
|
|
10213
10225
|
vertical_line_color?: Color;
|
|
10214
|
-
vertical_spacing?: int32;
|
|
10226
|
+
vertical_spacing?: int32 | SpacingItem[];
|
|
10215
10227
|
wide_as_column_count?: bool;
|
|
10216
10228
|
}
|
|
10217
10229
|
/**
|
|
@@ -10230,6 +10242,7 @@ interface TechnologySlotStyleSpecification extends ButtonStyleSpecificationBase
|
|
|
10230
10242
|
default_background_shadow?: ElementImageSet;
|
|
10231
10243
|
default_ingredients_background?: ElementImageSet;
|
|
10232
10244
|
disabled_ingredients_background?: ElementImageSet;
|
|
10245
|
+
drag_handle_style?: EmptyWidgetStyleSpecification;
|
|
10233
10246
|
highlighted_graphical_set?: ElementImageSet;
|
|
10234
10247
|
highlighted_ingredients_background?: ElementImageSet;
|
|
10235
10248
|
hovered_ingredients_background?: ElementImageSet;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "factorio-types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.15",
|
|
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.22",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"lua-types": "^2.13.1"
|
|
29
29
|
},
|