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.
- package/README.md +95 -53
- package/common/data-global.d.ts +15 -0
- package/common/serpent.d.ts +93 -0
- package/common/settings-global.d.ts +8 -0
- package/common/types.d.ts +74 -0
- package/index.d.ts +26 -0
- package/lualib/index.d.ts +2 -0
- package/{runtime → lualib}/mod-gui.d.ts +1 -0
- package/{runtime → lualib}/util.d.ts +69 -38
- package/package.json +25 -28
- package/prototype/generated/prototypes.d.ts +12821 -0
- package/prototype/generated/types.d.ts +11985 -0
- package/prototype/index.d.ts +11 -0
- package/runtime/generated/builtin-types.d.ts +59 -64
- package/runtime/generated/classes.d.ts +25770 -24456
- package/runtime/generated/concepts.d.ts +8551 -9109
- package/runtime/generated/defines.d.ts +2084 -1872
- package/runtime/generated/events.d.ts +4197 -4382
- package/runtime/generated/global-functions.d.ts +30 -28
- package/runtime/generated/global-objects.d.ts +42 -41
- package/runtime/generated/index-types.d.ts +51 -50
- package/runtime/index.d.ts +8 -16
- package/runtime/pairs.d.ts +9 -7
- package/settings/index.d.ts +10 -0
- package/settings/types.d.ts +103 -112
- package/custom-index-template.d.ts +0 -23
- package/data/types.d.ts +0 -13
- package/runtime/librariesAndFunctions.d.ts +0 -91
- package/strict-index-types.d.ts +0 -3
@@ -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
|
-
*
|
7
|
-
* @see {@link https://lua-api.factorio.com/latest/Builtin-Types.html#float Online documentation}
|
6
|
+
* @noResolution
|
8
7
|
*/
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
/**
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
type uint8 = number
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
type
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
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
|
}
|