factorio-types 1.2.11 → 1.2.13
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 +22 -7
- package/dist/concepts.d.ts +1 -1
- 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 +18 -2
- package/dist/types.d.ts +1 -1
- 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.19
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -171,6 +171,7 @@ interface LuaAgriculturalTowerControlBehavior extends LuaGenericOnOffControlBeha
|
|
|
171
171
|
interface LuaAirbornePollutantPrototype extends LuaPrototypeBase {
|
|
172
172
|
readonly affects_evolution: boolean;
|
|
173
173
|
readonly chart_color: Color;
|
|
174
|
+
readonly localised_name_with_amount_key: string;
|
|
174
175
|
/**
|
|
175
176
|
* 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.
|
|
176
177
|
*/
|
|
@@ -5857,11 +5858,10 @@ interface LuaEntity extends LuaControl {
|
|
|
5857
5858
|
*/
|
|
5858
5859
|
get_passenger(this: void): (LuaEntity | LuaPlayer) | null;
|
|
5859
5860
|
/**
|
|
5860
|
-
* Get the entity ID
|
|
5861
|
+
* Get the entity ID at the specified position in the turret's priority list.
|
|
5861
5862
|
* @param index The index of the entry to fetch.
|
|
5862
|
-
* @returns The name of the entity prototype.
|
|
5863
5863
|
*/
|
|
5864
|
-
get_priority_target(this: void, index: uint):
|
|
5864
|
+
get_priority_target(this: void, index: uint): LuaEntityPrototype | null;
|
|
5865
5865
|
/**
|
|
5866
5866
|
* The radius of this entity.
|
|
5867
5867
|
*/
|
|
@@ -7193,7 +7193,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
|
|
|
7193
7193
|
/**
|
|
7194
7194
|
* Gets the base size of the given inventory on this entity or `nil` if the given inventory doesn't exist.
|
|
7195
7195
|
*/
|
|
7196
|
-
get_inventory_size(this: void, index: defines.inventory): uint | null;
|
|
7196
|
+
get_inventory_size(this: void, index: defines.inventory, quality?: QualityID): uint | null;
|
|
7197
7197
|
/**
|
|
7198
7198
|
* The maximum circuit wire distance for this entity. 0 if the entity doesn't support circuit wires.
|
|
7199
7199
|
*/
|
|
@@ -8176,6 +8176,10 @@ interface LuaEquipment {
|
|
|
8176
8176
|
* Type of the equipment contained in this ghost.
|
|
8177
8177
|
*/
|
|
8178
8178
|
readonly ghost_type: string;
|
|
8179
|
+
/**
|
|
8180
|
+
* Inventory size bonus.
|
|
8181
|
+
*/
|
|
8182
|
+
readonly inventory_bonus: uint;
|
|
8179
8183
|
/**
|
|
8180
8184
|
* Maximum amount of energy that can be stored in this equipment.
|
|
8181
8185
|
*/
|
|
@@ -8378,6 +8382,10 @@ interface LuaEquipmentGrid {
|
|
|
8378
8382
|
* Whether this grid's equipment movement bonus is active.
|
|
8379
8383
|
*/
|
|
8380
8384
|
inhibit_movement_bonus: boolean;
|
|
8385
|
+
/**
|
|
8386
|
+
* The total amount of inventory bonus this equipment grid gives.
|
|
8387
|
+
*/
|
|
8388
|
+
readonly inventory_bonus: uint;
|
|
8381
8389
|
/**
|
|
8382
8390
|
* The maximum amount of shields this equipment grid has.
|
|
8383
8391
|
*/
|
|
@@ -8386,6 +8394,12 @@ interface LuaEquipmentGrid {
|
|
|
8386
8394
|
* Maximum energy per tick that can be created by any solar panels in the equipment grid. Actual generated energy varies depending on the daylight levels.
|
|
8387
8395
|
*/
|
|
8388
8396
|
readonly max_solar_energy: double;
|
|
8397
|
+
/**
|
|
8398
|
+
* The total amount of movement bonus this equipment grid gives.
|
|
8399
|
+
*
|
|
8400
|
+
* Returns `0` if {@link LuaEquipmentGrid::inhibit_movement_bonus | runtime:LuaEquipmentGrid::inhibit_movement_bonus} is `false`.
|
|
8401
|
+
*/
|
|
8402
|
+
readonly movement_bonus: double;
|
|
8389
8403
|
/**
|
|
8390
8404
|
* 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.
|
|
8391
8405
|
*/
|
|
@@ -8440,6 +8454,7 @@ interface LuaEquipmentGridPrototype extends LuaPrototypeBase {
|
|
|
8440
8454
|
*/
|
|
8441
8455
|
interface LuaEquipmentPrototype extends LuaPrototypeBase {
|
|
8442
8456
|
get_energy_consumption(this: void, quality?: QualityID): double;
|
|
8457
|
+
get_inventory_bonus(this: void, quality?: QualityID): uint | null;
|
|
8443
8458
|
get_movement_bonus(this: void, quality?: QualityID): float | null;
|
|
8444
8459
|
/**
|
|
8445
8460
|
* The shield value of this equipment. 0 for non-shield equipment.
|
|
@@ -15937,7 +15952,7 @@ interface LuaSpacePlatform {
|
|
|
15937
15952
|
/**
|
|
15938
15953
|
* The space location this space platform is stopped at or `nil`.
|
|
15939
15954
|
*/
|
|
15940
|
-
readonly space_location
|
|
15955
|
+
readonly space_location?: LuaSpaceLocationPrototype;
|
|
15941
15956
|
speed: double;
|
|
15942
15957
|
/**
|
|
15943
15958
|
* The starter pack used to create this space platform.
|
|
@@ -16968,7 +16983,7 @@ interface LuaSurface {
|
|
|
16968
16983
|
/**
|
|
16969
16984
|
* Set tiles at specified locations. Can automatically correct the edges around modified tiles.
|
|
16970
16985
|
*
|
|
16971
|
-
* Placing a {@link mineable | runtime:LuaTilePrototype::mineable_properties} tile on top of a non-mineable or {@link foundation | runtime:LuaTilePrototype::is_foundation} one will turn the latter into the {@link LuaTile::hidden_tile | runtime:LuaTile::hidden_tile} for that tile. Placing a mineable
|
|
16986
|
+
* Placing a {@link mineable | runtime:LuaTilePrototype::mineable_properties} tile on top of a non-mineable or {@link foundation | runtime:LuaTilePrototype::is_foundation} one will turn the latter into the {@link LuaTile::hidden_tile | runtime:LuaTile::hidden_tile} for that tile. Placing a mineable non-foundation tile on a mineable non-foundation one or a mineable foundation tile on a mineable foundation one will not modify the hidden tile. This restriction can however be circumvented by using {@link LuaSurface::set_hidden_tile | runtime:LuaSurface::set_hidden_tile}. Placing a non-foundation tile on top of a foundation one when there already exists a hidden tile will push hidden tile to {@link double hidden | runtime:LuaTile::double_hidden_tile}, and foundation tile will turn into hidden. Placing a mineable foundation tile over a mineable non-foundation tile with hidden mineable foundation tile, the hidden tile will be replaced by previously double hidden tile and double hidden tile will be erased. Placing a non-mineable tile will erase hidden and double hidden tiles.
|
|
16972
16987
|
*
|
|
16973
16988
|
* It is recommended to call this method once for all the tiles you want to change rather than calling it individually for every tile. As the tile correction is used after every step, calling it one by one could cause the tile correction logic to redo some of the changes. Also, many small API calls are generally more performance intensive than one big one.
|
|
16974
16989
|
* @param correct_tiles If `false`, the correction logic is not applied to the changed tiles. Defaults to `true`.
|
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.19
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
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.19
|
|
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.19
|
|
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.0.
|
|
5
|
+
// Factorio version 2.0.19
|
|
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.0.
|
|
5
|
+
// Factorio version 2.0.19
|
|
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.19
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -182,6 +182,9 @@ interface AgriculturalTowerPrototype extends EntityWithOwnerPrototype {
|
|
|
182
182
|
*/
|
|
183
183
|
random_growth_offset?: double;
|
|
184
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* A type of pollution that can spread throughout the chunks of a map.
|
|
187
|
+
*/
|
|
185
188
|
interface AirbornePollutantPrototype extends Prototype {
|
|
186
189
|
affects_evolution: bool;
|
|
187
190
|
/**
|
|
@@ -190,6 +193,10 @@ interface AirbornePollutantPrototype extends Prototype {
|
|
|
190
193
|
affects_water_tint: bool;
|
|
191
194
|
chart_color: Color;
|
|
192
195
|
icon: Sprite;
|
|
196
|
+
/**
|
|
197
|
+
* The translated plural string key to use when displaying this pollution's name with an amount. See {@link Tutorial:Localisation | https://wiki.factorio.com/Tutorial:Localisation}.
|
|
198
|
+
*/
|
|
199
|
+
localised_name_with_amount?: string;
|
|
193
200
|
}
|
|
194
201
|
/**
|
|
195
202
|
* This prototype is used to make sound while playing the game. This includes the game's {@link music | https://store.steampowered.com/app/436090/Factorio__Soundtrack/}, composed by Daniel James Taylor.
|
|
@@ -1479,7 +1486,7 @@ interface CharacterPrototype extends EntityWithOwnerPrototype {
|
|
|
1479
1486
|
*/
|
|
1480
1487
|
footstep_particle_triggers?: FootstepTriggerEffectList;
|
|
1481
1488
|
/**
|
|
1482
|
-
* The search radius for a non-colliding position to move the player to if they are grounded mid-flight.
|
|
1489
|
+
* The search radius for a non-colliding position to move the player to if they are grounded mid-flight. Must be >= 0.
|
|
1483
1490
|
*/
|
|
1484
1491
|
grounded_landing_search_radius?: double;
|
|
1485
1492
|
/**
|
|
@@ -1769,6 +1776,7 @@ interface ContainerPrototype extends EntityWithOwnerPrototype {
|
|
|
1769
1776
|
* The picture displayed for this entity.
|
|
1770
1777
|
*/
|
|
1771
1778
|
picture?: Sprite;
|
|
1779
|
+
quality_affects_inventory_size?: bool;
|
|
1772
1780
|
}
|
|
1773
1781
|
/**
|
|
1774
1782
|
* A copy-paste or cut-paste tool.
|
|
@@ -4527,6 +4535,10 @@ interface ItemPrototype extends Prototype {
|
|
|
4527
4535
|
* When "automated" is set, it will force the existence of "launch to orbit automatically" checkBox in the rocket silo which will then force the silo to automatically send the item to orbit when present.
|
|
4528
4536
|
*/
|
|
4529
4537
|
send_to_orbit_mode?: SendToOrbitMode;
|
|
4538
|
+
/**
|
|
4539
|
+
* 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
|
|
4540
|
+
*/
|
|
4541
|
+
spoil_level?: uint8;
|
|
4530
4542
|
spoil_result?: ItemID;
|
|
4531
4543
|
spoil_ticks?: uint32;
|
|
4532
4544
|
/**
|
|
@@ -9709,6 +9721,10 @@ interface UtilityConstants extends PrototypeBase {
|
|
|
9709
9721
|
space_platform_relative_speed_factor: double;
|
|
9710
9722
|
space_platform_starfield_movement_vector: Vector;
|
|
9711
9723
|
spawner_evolution_factor_health_modifier: float;
|
|
9724
|
+
/**
|
|
9725
|
+
* The number of ticks to show a segmented unit's health bar after fully regenerating.
|
|
9726
|
+
*/
|
|
9727
|
+
time_to_show_full_health_bar: MapTick;
|
|
9712
9728
|
/**
|
|
9713
9729
|
* Must be >= 1.
|
|
9714
9730
|
*/
|
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.19
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "factorio-types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.13",
|
|
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.19",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"lua-types": "^2.13.1"
|
|
29
29
|
},
|