factorio-types 0.0.16 → 0.0.17
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 +228 -220
- package/dist/concepts.d.ts +15 -15
- package/dist/defines.d.ts +1 -1
- package/dist/events.d.ts +1 -1
- package/dist/global.d.ts +1 -1
- package/package.json +1 -1
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 1.1.
|
|
5
|
+
// Factorio version 1.1.47
|
|
6
6
|
// API version 1
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1601,9 +1601,9 @@ interface ItemStackLocation {
|
|
|
1601
1601
|
* Localised strings are a way to support translation of in-game text. It is an array where the first element is the key and the remaining elements are parameters that will be substituted for placeholders in the template designated by the key.
|
|
1602
1602
|
* The key identifies the string template. For example, `"gui-alert-tooltip.attack"` (for the template `"__1__
|
|
1603
1603
|
* objects are being damaged"`; see the file `data/core/locale/en.cfg`).
|
|
1604
|
-
* The template can contain placeholders such as `__1__` or `__2__`. These will be replaced by the respective parameter in the LocalisedString. The parameters themselves can be other localised strings, which will be processed recursively in the same fashion. Localised strings
|
|
1604
|
+
* The template can contain placeholders such as `__1__` or `__2__`. These will be replaced by the respective parameter in the LocalisedString. The parameters themselves can be other localised strings, which will be processed recursively in the same fashion. Localised strings can not be recursed deeper than 20 levels and can not have more than 20 parameters.
|
|
1605
1605
|
* As a special case, when the key is just the empty string, all the parameters will be concatenated (after processing, if any are localised strings). If there is only one parameter, it will be used as is.
|
|
1606
|
-
* Furthermore, when an API function expects a localised string, it will also accept a regular string (i.e. not a table) which will not be translated,
|
|
1606
|
+
* Furthermore, when an API function expects a localised string, it will also accept a regular string (i.e. not a table) which will not be translated, as well as a number or boolean, which will be converted to their textual representation.
|
|
1607
1607
|
* @example
|
|
1608
1608
|
* In the English translation, this will print `"No ammo"`; in the Czech translation, it will print `"Bez munice"`:
|
|
1609
1609
|
* ```
|
|
@@ -1651,6 +1651,18 @@ interface LogisticFilter {
|
|
|
1651
1651
|
'name': string
|
|
1652
1652
|
}
|
|
1653
1653
|
|
|
1654
|
+
/**
|
|
1655
|
+
* @param name - The item. `nil` clears the filter.
|
|
1656
|
+
*/
|
|
1657
|
+
interface LogisticParameters {
|
|
1658
|
+
'max'?: number
|
|
1659
|
+
'min'?: number
|
|
1660
|
+
/**
|
|
1661
|
+
* The item. `nil` clears the filter.
|
|
1662
|
+
*/
|
|
1663
|
+
'name'?: string
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1654
1666
|
/**
|
|
1655
1667
|
* @param count_max - Maximum amount of loot to drop.
|
|
1656
1668
|
* @param count_min - Minimum amount of loot to drop.
|
|
@@ -2405,18 +2417,6 @@ interface PathfinderWaypoint {
|
|
|
2405
2417
|
'position': Position
|
|
2406
2418
|
}
|
|
2407
2419
|
|
|
2408
|
-
/**
|
|
2409
|
-
* @param name - The item. `nil` clears the filter.
|
|
2410
|
-
*/
|
|
2411
|
-
interface PersonalLogisticParameters {
|
|
2412
|
-
'max'?: number
|
|
2413
|
-
'min'?: number
|
|
2414
|
-
/**
|
|
2415
|
-
* The item. `nil` clears the filter.
|
|
2416
|
-
*/
|
|
2417
|
-
'name'?: string
|
|
2418
|
-
}
|
|
2419
|
-
|
|
2420
2420
|
/**
|
|
2421
2421
|
* @param result - The tile prototype.
|
|
2422
2422
|
*/
|
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 1.1.
|
|
5
|
+
// Factorio version 1.1.47
|
|
6
6
|
// API version 1
|
|
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 1.1.
|
|
5
|
+
// Factorio version 1.1.47
|
|
6
6
|
// API version 1
|
|
7
7
|
|
|
8
8
|
/**
|
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 1.1.
|
|
5
|
+
// Factorio version 1.1.47
|
|
6
6
|
// API version 1
|
|
7
7
|
|
|
8
8
|
/**
|