typed-factorio 1.16.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,11 @@
1
+ // This file declares globals for the factorio prototype stage.
2
+
3
+ /// <reference path="../index.d.ts" />
4
+ /// <reference path="../common/settings-global.d.ts" />
5
+ /// <reference path="../common/data-global.d.ts" />
6
+
7
+ /** @noResolution */
8
+ declare module "factorio:common" {
9
+ import { PrototypeMap } from "factorio:prototype"
10
+ export interface GlobalPrototypeMap extends PrototypeMap {}
11
+ }
@@ -3,69 +3,64 @@
3
3
  /** @noSelfInFile */
4
4
 
5
5
  /**
6
- * 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.
7
- * @see {@link https://lua-api.factorio.com/latest/Builtin-Types.html#float Online documentation}
6
+ * @noResolution
8
7
  */
9
- type float = number
10
-
11
- /**
12
- * A double-precision floating-point number. This is the same data type as all Lua numbers use.
13
- * @see {@link https://lua-api.factorio.com/latest/Builtin-Types.html#double Online documentation}
14
- */
15
- type double = number
16
-
17
- /**
18
- * 32-bit signed integer. Possible values are -2'147'483'648 to 2'147'483'647.
19
- * @see {@link https://lua-api.factorio.com/latest/Builtin-Types.html#int Online documentation}
20
- */
21
- type int = number
22
-
23
- /**
24
- * 8-bit signed integer. Possible values are -128 to 127.
25
- * @see {@link https://lua-api.factorio.com/latest/Builtin-Types.html#int8 Online documentation}
26
- */
27
- type int8 = number
28
-
29
- /**
30
- * 32-bit unsigned integer. Possible values are 0 to 4'294'967'295.
31
- * @see {@link https://lua-api.factorio.com/latest/Builtin-Types.html#uint Online documentation}
32
- */
33
- type uint = number
34
-
35
- /**
36
- * 8-bit unsigned integer. Possible values are 0 to 255.
37
- * @see {@link https://lua-api.factorio.com/latest/Builtin-Types.html#uint8 Online documentation}
38
- */
39
- type uint8 = number
40
-
41
- /**
42
- * 16-bit unsigned integer. Possible values are 0 to 65535.
43
- * @see {@link https://lua-api.factorio.com/latest/Builtin-Types.html#uint16 Online documentation}
44
- */
45
- type uint16 = number
46
-
47
- /**
48
- * 64-bit unsigned integer. Possible values are 0 to 18'446'744'073'709'551'615.
49
- * @see {@link https://lua-api.factorio.com/latest/Builtin-Types.html#uint64 Online documentation}
50
- */
51
- type uint64 = number
52
-
53
- /**
54
- * 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.
55
- * @see {@link https://lua-api.factorio.com/latest/Builtin-Types.html#nil Online documentation}
56
- */
57
- type nil = undefined
58
-
59
- /**
60
- * Tables are enclosed in curly brackets, like this `{}`.
61
- * @see {@link https://lua-api.factorio.com/latest/Builtin-Types.html#table Online documentation}
62
- */
63
- type table = object
64
-
65
- /**
66
- * Any LuaObject listed on the {@linkplain https://lua-api.factorio.com/latest/Classes.html Classes} page.
67
- * @see {@link https://lua-api.factorio.com/latest/Builtin-Types.html#LuaObject Online documentation}
68
- */
69
- interface LuaObject {
70
- readonly object_name: string
8
+ declare module "factorio:runtime" {
9
+ /**
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.89/builtin-types.html#float Online documentation}
12
+ */
13
+ export type float = number
14
+ /**
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.89/builtin-types.html#double Online documentation}
17
+ */
18
+ export type double = number
19
+ /**
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.89/builtin-types.html#int Online documentation}
22
+ */
23
+ export type int = number
24
+ /**
25
+ * 8-bit signed integer. Possible values are -128 to 127.
26
+ * @see {@link https://lua-api.factorio.com/1.1.89/builtin-types.html#int8 Online documentation}
27
+ */
28
+ export type int8 = number
29
+ /**
30
+ * 32-bit unsigned integer. Possible values are 0 to 4'294'967'295.
31
+ * @see {@link https://lua-api.factorio.com/1.1.89/builtin-types.html#uint Online documentation}
32
+ */
33
+ export type uint = number
34
+ /**
35
+ * 8-bit unsigned integer. Possible values are 0 to 255.
36
+ * @see {@link https://lua-api.factorio.com/1.1.89/builtin-types.html#uint8 Online documentation}
37
+ */
38
+ export type uint8 = number
39
+ /**
40
+ * 16-bit unsigned integer. Possible values are 0 to 65535.
41
+ * @see {@link https://lua-api.factorio.com/1.1.89/builtin-types.html#uint16 Online documentation}
42
+ */
43
+ export type uint16 = number
44
+ /**
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.89/builtin-types.html#uint64 Online documentation}
47
+ */
48
+ export type uint64 = number
49
+ /**
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.89/builtin-types.html#nil Online documentation}
52
+ */
53
+ export type nil = undefined
54
+ /**
55
+ * Tables are enclosed in curly brackets, like this `{}`.
56
+ * @see {@link https://lua-api.factorio.com/1.1.89/builtin-types.html#table Online documentation}
57
+ */
58
+ export type table = object
59
+ /**
60
+ * Any LuaObject listed on the {@linkplain https://lua-api.factorio.com/1.1.89/classes.html Classes} page.
61
+ * @see {@link https://lua-api.factorio.com/1.1.89/builtin-types.html#LuaObject Online documentation}
62
+ */
63
+ export interface LuaObject {
64
+ readonly object_name: string
65
+ }
71
66
  }