factorio-types 1.2.0 → 1.2.1
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/README.md +6 -0
- package/dist/classes.d.ts +2348 -3649
- package/dist/concepts.d.ts +2776 -3283
- package/dist/defines.d.ts +285 -285
- package/dist/events.d.ts +233 -253
- package/dist/global.d.ts +8 -8
- package/dist/prototypes.d.ts +866 -850
- package/dist/types.d.ts +1073 -991
- package/package.json +2 -2
- package/src/core.d.ts +40 -1
package/dist/global.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
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.
|
|
6
|
-
// API version
|
|
5
|
+
// Factorio version 1.1.108
|
|
6
|
+
// API version 5
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Allows registration of custom commands for the in-game console.
|
|
@@ -50,16 +50,16 @@ declare function log(this: void,
|
|
|
50
50
|
*
|
|
51
51
|
* ```
|
|
52
52
|
* local function size(t)
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
53
|
+
* local count = 0
|
|
54
|
+
* for k,v in pairs(t) do
|
|
55
|
+
* count = count + 1
|
|
56
|
+
* end
|
|
57
|
+
* return count
|
|
58
58
|
* end
|
|
59
59
|
* ```
|
|
60
60
|
*
|
|
61
61
|
* Note that `table_size()` does not work correctly for {@link LuaCustomTable | runtime:LuaCustomTable}, their size has to be determined with {@link LuaCustomTable::length_operator | runtime:LuaCustomTable::length_operator} instead.
|
|
62
62
|
*/
|
|
63
63
|
declare function table_size(this: void,
|
|
64
|
-
table:
|
|
64
|
+
table: runtime.table): uint
|
|
65
65
|
|