typed-factorio 2.5.2 → 2.6.0
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/LICENSE +21 -21
- package/README.md +38 -23
- package/common/serpent.d.ts +8 -7
- package/common/types.d.ts +28 -0
- package/package.json +17 -16
- package/prototype/generated/prototypes.d.ts +1920 -1908
- package/prototype/generated/types.d.ts +1606 -1437
- package/runtime/generated/builtin-types.d.ts +12 -12
- package/runtime/generated/classes.d.ts +3432 -3346
- package/runtime/generated/concepts.d.ts +399 -326
- package/runtime/generated/defines.d.ts +120 -120
- package/runtime/generated/events.d.ts +185 -185
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +6 -6
@@ -8,57 +8,57 @@
|
|
8
8
|
declare module "factorio:runtime" {
|
9
9
|
/**
|
10
10
|
* A floating-point number. This is a single-precision floating point number. Whilst Lua only uses double-precision numbers, when a function takes a float, the game engine will immediately convert the double-precision number to single-precision.
|
11
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
11
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/builtin-types.html#float Online documentation}
|
12
12
|
*/
|
13
13
|
export type float = number
|
14
14
|
/**
|
15
15
|
* A double-precision floating-point number. This is the same data type as all Lua numbers use.
|
16
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
16
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/builtin-types.html#double Online documentation}
|
17
17
|
*/
|
18
18
|
export type double = number
|
19
19
|
/**
|
20
20
|
* 32-bit signed integer. Possible values are -2 147 483 648 to 2 147 483 647.
|
21
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
21
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/builtin-types.html#int Online documentation}
|
22
22
|
*/
|
23
23
|
export type int = number
|
24
24
|
/**
|
25
25
|
* 8-bit signed integer. Possible values are -128 to 127.
|
26
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
26
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/builtin-types.html#int8 Online documentation}
|
27
27
|
*/
|
28
28
|
export type int8 = number
|
29
29
|
/**
|
30
30
|
* 32-bit unsigned integer. Possible values are 0 to 4 294 967 295.
|
31
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
31
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/builtin-types.html#uint Online documentation}
|
32
32
|
*/
|
33
33
|
export type uint = number
|
34
34
|
/**
|
35
35
|
* 8-bit unsigned integer. Possible values are 0 to 255.
|
36
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
36
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/builtin-types.html#uint8 Online documentation}
|
37
37
|
*/
|
38
38
|
export type uint8 = number
|
39
39
|
/**
|
40
40
|
* 16-bit unsigned integer. Possible values are 0 to 65 535.
|
41
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
41
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/builtin-types.html#uint16 Online documentation}
|
42
42
|
*/
|
43
43
|
export type uint16 = number
|
44
44
|
/**
|
45
45
|
* 64-bit unsigned integer. Possible values are 0 to 18 446 744 073 709 551 615.
|
46
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
46
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/builtin-types.html#uint64 Online documentation}
|
47
47
|
*/
|
48
48
|
export type uint64 = number
|
49
49
|
/**
|
50
50
|
* Nil is the type of the value `nil`, whose main property is to be different from any other value. It usually represents the absence of a useful value.
|
51
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
51
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/builtin-types.html#nil Online documentation}
|
52
52
|
*/
|
53
53
|
export type nil = undefined
|
54
54
|
/**
|
55
55
|
* Tables are enclosed in curly brackets, like this `{}`.
|
56
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
56
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/builtin-types.html#table Online documentation}
|
57
57
|
*/
|
58
58
|
export type table = object
|
59
59
|
/**
|
60
|
-
* Any LuaObject listed on the {@linkplain https://lua-api.factorio.com/1.1.
|
61
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
60
|
+
* Any LuaObject listed on the {@linkplain https://lua-api.factorio.com/1.1.101/classes.html Classes} page.
|
61
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/builtin-types.html#LuaObject Online documentation}
|
62
62
|
*/
|
63
63
|
export interface LuaObject {
|
64
64
|
readonly object_name: string
|