typed-factorio 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/Changelog.md +5 -1
- package/generated/classes.d.ts +70 -3
- package/generated/concepts.d.ts +10 -6
- package/package.json +3 -2
package/Changelog.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# v1.3.0
|
2
|
+
|
3
|
+
- Updated to factorio version 1.1.61
|
4
|
+
|
1
5
|
# v1.2.0
|
2
6
|
|
3
7
|
- Updated to factorio version 1.1.60
|
@@ -8,7 +12,7 @@
|
|
8
12
|
|
9
13
|
# v1.0.0
|
10
14
|
|
11
|
-
- This project now has all the features that was originally planned, and can now guarantee reasonable backwards compatibility for future releases.
|
15
|
+
- This project now has all the features that was originally planned, and can now guarantee reasonable backwards compatibility for future releases.
|
12
16
|
- Updated to factorio version 1.1.57
|
13
17
|
|
14
18
|
# v0.20.0
|
package/generated/classes.d.ts
CHANGED
@@ -1423,7 +1423,7 @@ interface LuaControl {
|
|
1423
1423
|
*
|
1424
1424
|
* {@link https://lua-api.factorio.com/latest/LuaControl.html#LuaControl.crafting_queue_progress View documentation}
|
1425
1425
|
*/
|
1426
|
-
|
1426
|
+
crafting_queue_progress: double
|
1427
1427
|
/**
|
1428
1428
|
* Current walking state.
|
1429
1429
|
*
|
@@ -7611,6 +7611,12 @@ interface LuaEntityPrototype {
|
|
7611
7611
|
* {@link https://lua-api.factorio.com/latest/LuaEntityPrototype.html#LuaEntityPrototype.guns View documentation}
|
7612
7612
|
*/
|
7613
7613
|
readonly guns: Record<string, LuaItemPrototype> | undefined
|
7614
|
+
/**
|
7615
|
+
* A vector of the gun prototypes this prototype uses, or `nil`.
|
7616
|
+
*
|
7617
|
+
* {@link https://lua-api.factorio.com/latest/LuaEntityPrototype.html#LuaEntityPrototype.indexed_guns View documentation}
|
7618
|
+
*/
|
7619
|
+
readonly indexed_guns: LuaItemPrototype[] | undefined
|
7614
7620
|
/**
|
7615
7621
|
* The default speed of this flying robot, rolling stock or unit, `nil` if not one of these.
|
7616
7622
|
*
|
@@ -9052,6 +9058,12 @@ interface BaseEntityPrototype {
|
|
9052
9058
|
* {@link https://lua-api.factorio.com/latest/LuaEntityPrototype.html#LuaEntityPrototype.guns View documentation}
|
9053
9059
|
*/
|
9054
9060
|
readonly guns: Record<string, LuaItemPrototype> | undefined
|
9061
|
+
/**
|
9062
|
+
* A vector of the gun prototypes this prototype uses, or `nil`.
|
9063
|
+
*
|
9064
|
+
* {@link https://lua-api.factorio.com/latest/LuaEntityPrototype.html#LuaEntityPrototype.indexed_guns View documentation}
|
9065
|
+
*/
|
9066
|
+
readonly indexed_guns: LuaItemPrototype[] | undefined
|
9055
9067
|
/**
|
9056
9068
|
* The default speed of this flying robot, rolling stock or unit, `nil` if not one of these.
|
9057
9069
|
*
|
@@ -23483,9 +23495,22 @@ interface LuaSurface {
|
|
23483
23495
|
*/
|
23484
23496
|
readonly radius?: double
|
23485
23497
|
readonly name?: string | readonly string[]
|
23498
|
+
readonly force?: ForceIdentification | readonly ForceIdentification[]
|
23486
23499
|
readonly limit?: uint
|
23487
23500
|
readonly has_hidden_tile?: boolean
|
23501
|
+
/**
|
23502
|
+
* Can be further filtered by supplying a `force` filter.
|
23503
|
+
*/
|
23504
|
+
readonly has_tile_ghost?: boolean
|
23505
|
+
/**
|
23506
|
+
* Can be further filtered by supplying a `force` filter.
|
23507
|
+
*/
|
23508
|
+
readonly to_be_deconstructed?: boolean
|
23488
23509
|
readonly collision_mask?: CollisionMaskLayer | readonly CollisionMaskLayer[]
|
23510
|
+
/**
|
23511
|
+
* Whether the filters should be inverted.
|
23512
|
+
*/
|
23513
|
+
readonly invert?: boolean
|
23489
23514
|
}): LuaTile[]
|
23490
23515
|
/**
|
23491
23516
|
* Count entities of given type or name in a given area. Works just like {@link LuaSurface#find_entities_filtered LuaSurface::find_entities_filtered}, except this only returns the count. As it doesn't construct all the wrapper objects, this is more efficient if one is only interested in the number of entities.
|
@@ -23513,7 +23538,7 @@ interface LuaSurface {
|
|
23513
23538
|
readonly limit?: uint
|
23514
23539
|
readonly is_military_target?: boolean
|
23515
23540
|
/**
|
23516
|
-
*
|
23541
|
+
* Whether the filters should be inverted.
|
23517
23542
|
*/
|
23518
23543
|
readonly invert?: boolean
|
23519
23544
|
}): uint
|
@@ -23535,9 +23560,22 @@ interface LuaSurface {
|
|
23535
23560
|
*/
|
23536
23561
|
readonly radius?: double
|
23537
23562
|
readonly name?: string | readonly string[]
|
23563
|
+
readonly force?: ForceIdentification | readonly ForceIdentification[]
|
23538
23564
|
readonly limit?: uint
|
23539
23565
|
readonly has_hidden_tile?: boolean
|
23566
|
+
/**
|
23567
|
+
* Can be further filtered by supplying a `force` filter.
|
23568
|
+
*/
|
23569
|
+
readonly has_tile_ghost?: boolean
|
23570
|
+
/**
|
23571
|
+
* Can be further filtered by supplying a `force` filter.
|
23572
|
+
*/
|
23573
|
+
readonly to_be_deconstructed?: boolean
|
23540
23574
|
readonly collision_mask?: CollisionMaskLayer | readonly CollisionMaskLayer[]
|
23575
|
+
/**
|
23576
|
+
* If the filters should be inverted.
|
23577
|
+
*/
|
23578
|
+
readonly invert?: boolean
|
23541
23579
|
}): uint
|
23542
23580
|
/**
|
23543
23581
|
* Find a non-colliding position within a given radius.
|
@@ -24086,6 +24124,13 @@ interface LuaSurface {
|
|
24086
24124
|
readonly area?: BoundingBox
|
24087
24125
|
readonly position?: TilePosition
|
24088
24126
|
readonly name?: string | readonly string[] | LuaDecorativePrototype | readonly LuaDecorativePrototype[]
|
24127
|
+
readonly collision_mask?: CollisionMaskLayer | readonly CollisionMaskLayer[]
|
24128
|
+
readonly from_layer?: string
|
24129
|
+
readonly to_layer?: string
|
24130
|
+
/**
|
24131
|
+
* Soft decoratives can be drawn over rails.
|
24132
|
+
*/
|
24133
|
+
readonly exclude_soft?: boolean
|
24089
24134
|
readonly limit?: uint
|
24090
24135
|
/**
|
24091
24136
|
* If the filters should be inverted.
|
@@ -24122,6 +24167,13 @@ interface LuaSurface {
|
|
24122
24167
|
readonly area?: BoundingBox
|
24123
24168
|
readonly position?: TilePosition
|
24124
24169
|
readonly name?: string | readonly string[] | LuaDecorativePrototype | readonly LuaDecorativePrototype[]
|
24170
|
+
readonly collision_mask?: CollisionMaskLayer | readonly CollisionMaskLayer[]
|
24171
|
+
readonly from_layer?: string
|
24172
|
+
readonly to_layer?: string
|
24173
|
+
/**
|
24174
|
+
* Soft decoratives can be drawn over rails.
|
24175
|
+
*/
|
24176
|
+
readonly exclude_soft?: boolean
|
24125
24177
|
readonly limit?: uint
|
24126
24178
|
/**
|
24127
24179
|
* If the filters should be inverted.
|
@@ -24925,8 +24977,9 @@ interface LuaTile {
|
|
24925
24977
|
* Is this tile marked for deconstruction?
|
24926
24978
|
*
|
24927
24979
|
* {@link https://lua-api.factorio.com/latest/LuaTile.html#LuaTile.to_be_deconstructed View documentation}
|
24980
|
+
* @param force The force who did the deconstruction order.
|
24928
24981
|
*/
|
24929
|
-
to_be_deconstructed(): boolean
|
24982
|
+
to_be_deconstructed(force?: ForceIdentification): boolean
|
24930
24983
|
/**
|
24931
24984
|
* Orders deconstruction of this tile by the given force.
|
24932
24985
|
*
|
@@ -24952,6 +25005,20 @@ interface LuaTile {
|
|
24952
25005
|
* @param player The player to set the last_user to if any.
|
24953
25006
|
*/
|
24954
25007
|
cancel_deconstruction(force: ForceIdentification, player?: PlayerIdentification): void
|
25008
|
+
/**
|
25009
|
+
* Does this tile have any tile ghosts on it.
|
25010
|
+
*
|
25011
|
+
* {@link https://lua-api.factorio.com/latest/LuaTile.html#LuaTile.has_tile_ghost View documentation}
|
25012
|
+
* @param force Check for tile ghosts of this force.
|
25013
|
+
*/
|
25014
|
+
has_tile_ghost(force?: ForceIdentification): boolean
|
25015
|
+
/**
|
25016
|
+
* Gets all tile ghosts on this tile.
|
25017
|
+
*
|
25018
|
+
* {@link https://lua-api.factorio.com/latest/LuaTile.html#LuaTile.get_tile_ghosts View documentation}
|
25019
|
+
* @param force Get tile ghosts of this force.
|
25020
|
+
*/
|
25021
|
+
get_tile_ghosts(force?: ForceIdentification): LuaTile[]
|
24955
25022
|
/**
|
24956
25023
|
* Prototype name of this tile. E.g. `"sand-3"` or `"grass-2"`.
|
24957
25024
|
*
|
package/generated/concepts.d.ts
CHANGED
@@ -385,6 +385,10 @@ interface CraftingQueueItem {
|
|
385
385
|
* The amount of items being crafted.
|
386
386
|
*/
|
387
387
|
readonly count: uint
|
388
|
+
/**
|
389
|
+
* The item is a prerequisite for another item in the queue.
|
390
|
+
*/
|
391
|
+
readonly prerequisite: boolean
|
388
392
|
}
|
389
393
|
|
390
394
|
interface Alert {
|
@@ -4169,9 +4173,9 @@ interface CollisionMaskDecorativePrototypeFilter extends BaseDecorativePrototype
|
|
4169
4173
|
readonly filter: "collision-mask"
|
4170
4174
|
readonly mask: CollisionMask | CollisionMaskWithFlags
|
4171
4175
|
/**
|
4172
|
-
* How to filter: `"collides"` or `"
|
4176
|
+
* How to filter: `"collides"`, `"layers-equals"`, `"contains-any"` or `"contains-all"`
|
4173
4177
|
*/
|
4174
|
-
readonly mask_mode: "collides" | "layers-equals"
|
4178
|
+
readonly mask_mode: "collides" | "layers-equals" | "contains-any" | "contains-all"
|
4175
4179
|
}
|
4176
4180
|
|
4177
4181
|
interface DecalDecorativePrototypeFilter extends BaseDecorativePrototypeFilter {
|
@@ -4405,9 +4409,9 @@ interface CollisionMaskTilePrototypeFilter extends BaseTilePrototypeFilter {
|
|
4405
4409
|
readonly filter: "collision-mask"
|
4406
4410
|
readonly mask: CollisionMask | CollisionMaskWithFlags
|
4407
4411
|
/**
|
4408
|
-
* How to filter: `"collides"` or `"
|
4412
|
+
* How to filter: `"collides"`, `"layers-equals"`, `"contains-any"` or `"contains-all"`
|
4409
4413
|
*/
|
4410
|
-
readonly mask_mode: "collides" | "layers-equals"
|
4414
|
+
readonly mask_mode: "collides" | "layers-equals" | "contains-any" | "contains-all"
|
4411
4415
|
}
|
4412
4416
|
|
4413
4417
|
interface WalkingSpeedModifierTilePrototypeFilter extends BaseTilePrototypeFilter {
|
@@ -4781,9 +4785,9 @@ interface CollisionMaskEntityPrototypeFilter extends BaseEntityPrototypeFilter {
|
|
4781
4785
|
readonly filter: "collision-mask"
|
4782
4786
|
readonly mask: CollisionMask | CollisionMaskWithFlags
|
4783
4787
|
/**
|
4784
|
-
* How to filter: `"collides"` or `"
|
4788
|
+
* How to filter: `"collides"`, `"layers-equals"`, `"contains-any"` or `"contains-all"`
|
4785
4789
|
*/
|
4786
|
-
readonly mask_mode: "collides" | "layers-equals"
|
4790
|
+
readonly mask_mode: "collides" | "layers-equals" | "contains-any" | "contains-all"
|
4787
4791
|
}
|
4788
4792
|
|
4789
4793
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "typed-factorio",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.3.0",
|
4
4
|
"description": "Featureful typescript definitions for the the Factorio modding lua api.",
|
5
5
|
"keywords": [
|
6
6
|
"factorio",
|
@@ -22,7 +22,8 @@
|
|
22
22
|
"lint": "eslint .",
|
23
23
|
"check": "yarn run lint && yarn run test",
|
24
24
|
"prepublishOnly": "yarn run check",
|
25
|
-
"download-latest-runtime-api": "ts-node ./scripts/downloadLatest.ts"
|
25
|
+
"download-latest-runtime-api": "ts-node ./scripts/downloadLatest.ts",
|
26
|
+
"next-version": "yarn run download-latest-runtime-api && yarn run clean && yarn test && yarn version --minor"
|
26
27
|
},
|
27
28
|
"peerDependencies": {
|
28
29
|
"lua-types": "^2.11.0",
|