typed-factorio 0.11.1 → 0.13.2
Sign up to get free protection for your applications and to get access to all the features.
- package/Changelog.md +15 -0
- package/generated/builtin-types.d.ts +11 -9
- package/generated/classes.d.ts +2134 -2115
- package/generated/concepts.d.ts +135 -119
- package/generated/defines.d.ts +102 -100
- package/generated/events.d.ts +176 -174
- package/generated/global-objects.d.ts +9 -7
- package/package.json +23 -21
@@ -1,51 +1,53 @@
|
|
1
|
+
// This is an auto-generated file. Do not edit directly!
|
2
|
+
|
1
3
|
/** @noSelfInFile */
|
2
4
|
|
3
5
|
/**
|
4
6
|
* This is the main object, through which most of the API is accessed. It is, however, not available inside handlers
|
5
7
|
* registered with {@link LuaBootstrap.on_load LuaBootstrap::on_load}.
|
6
8
|
*
|
7
|
-
* {@link https://lua-api.factorio.com/
|
9
|
+
* {@link https://lua-api.factorio.com/latest/ View documentation}
|
8
10
|
*/
|
9
11
|
declare const game: LuaGameScript
|
10
12
|
|
11
13
|
/**
|
12
14
|
* Provides an interface for registering event handlers.
|
13
15
|
*
|
14
|
-
* {@link https://lua-api.factorio.com/
|
16
|
+
* {@link https://lua-api.factorio.com/latest/ View documentation}
|
15
17
|
*/
|
16
18
|
declare const script: LuaBootstrap
|
17
19
|
|
18
20
|
/**
|
19
21
|
* Allows inter-mod communication by way of providing a repository of interfaces that is shared by all mods.
|
20
22
|
*
|
21
|
-
* {@link https://lua-api.factorio.com/
|
23
|
+
* {@link https://lua-api.factorio.com/latest/ View documentation}
|
22
24
|
*/
|
23
25
|
declare const remote: LuaRemote
|
24
26
|
|
25
27
|
/**
|
26
28
|
* Allows registering custom commands for the in-game console accessible via the grave key.
|
27
29
|
*
|
28
|
-
* {@link https://lua-api.factorio.com/
|
30
|
+
* {@link https://lua-api.factorio.com/latest/ View documentation}
|
29
31
|
*/
|
30
32
|
declare const commands: LuaCommandProcessor
|
31
33
|
|
32
34
|
/**
|
33
35
|
* Allows reading the current mod settings.
|
34
36
|
*
|
35
|
-
* {@link https://lua-api.factorio.com/
|
37
|
+
* {@link https://lua-api.factorio.com/latest/ View documentation}
|
36
38
|
*/
|
37
39
|
declare const settings: LuaSettings
|
38
40
|
|
39
41
|
/**
|
40
42
|
* Allows printing messages to the calling RCON instance if any.
|
41
43
|
*
|
42
|
-
* {@link https://lua-api.factorio.com/
|
44
|
+
* {@link https://lua-api.factorio.com/latest/ View documentation}
|
43
45
|
*/
|
44
46
|
declare const rcon: LuaRCON
|
45
47
|
|
46
48
|
/**
|
47
49
|
* Allows rendering of geometric shapes, text and sprites in the game world.
|
48
50
|
*
|
49
|
-
* {@link https://lua-api.factorio.com/
|
51
|
+
* {@link https://lua-api.factorio.com/latest/ View documentation}
|
50
52
|
*/
|
51
53
|
declare const rendering: LuaRendering
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "typed-factorio",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.13.2",
|
4
4
|
"description": "Featureful typescript definitions for the the Factorio modding lua api.",
|
5
5
|
"keywords": [
|
6
6
|
"factorio",
|
@@ -15,7 +15,7 @@
|
|
15
15
|
],
|
16
16
|
"homepage": "https://github.com/GlassBricks/typed-factorio#readme",
|
17
17
|
"scripts": {
|
18
|
-
"gen": "ts-node generator/index.ts",
|
18
|
+
"gen": "ts-node -P generator/tsconfig.json generator/index.ts",
|
19
19
|
"generate": "yarn run gen --in ./generatorSrc --out ./generated --warn-as-error",
|
20
20
|
"generate:dev": "yarn run gen --in ./generatorSrc --out ./generated --no-format",
|
21
21
|
"clean": "rimraf generated",
|
@@ -26,31 +26,33 @@
|
|
26
26
|
"prepublishOnly": "yarn run check",
|
27
27
|
"download-latest-runtime-api": "ts-node ./scripts/downloadLatest.ts"
|
28
28
|
},
|
29
|
-
"
|
30
|
-
"lua-types": "^2.
|
29
|
+
"peerDependencies": {
|
30
|
+
"lua-types": "^2.11.0",
|
31
31
|
"typescript-to-lua": "^1.0.0"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
34
|
-
"@types/jest": "^
|
35
|
-
"@types/node": "^16.
|
36
|
-
"@types/prettier": "^2.
|
37
|
-
"@typescript-eslint/eslint-plugin": "^
|
38
|
-
"@typescript-eslint/parser": "^
|
39
|
-
"chalk": "^
|
34
|
+
"@types/jest": "^27.0.3",
|
35
|
+
"@types/node": "^16.11.12",
|
36
|
+
"@types/prettier": "^2.4.2",
|
37
|
+
"@typescript-eslint/eslint-plugin": "^5.6.0",
|
38
|
+
"@typescript-eslint/parser": "^5.6.0",
|
39
|
+
"chalk": "^3.0.0",
|
40
40
|
"commander": "^8.3.0",
|
41
|
-
"eslint": "^
|
41
|
+
"eslint": "^8.4.1",
|
42
42
|
"eslint-config-prettier": "^8.3.0",
|
43
43
|
"eslint-config-standard": "^16.0.3",
|
44
|
-
"eslint-import-resolver-typescript": "^2.
|
45
|
-
"eslint-plugin-import": "^2.
|
44
|
+
"eslint-import-resolver-typescript": "^2.5.0",
|
45
|
+
"eslint-plugin-import": "^2.25.3",
|
46
46
|
"eslint-plugin-node": "^11.1.0",
|
47
|
-
"eslint-plugin-prettier": "^
|
48
|
-
"eslint-plugin-promise": "^5.
|
49
|
-
"jest": "^27.
|
50
|
-
"
|
51
|
-
"prettier
|
52
|
-
"
|
53
|
-
"ts-
|
54
|
-
"
|
47
|
+
"eslint-plugin-prettier": "^4.0.0",
|
48
|
+
"eslint-plugin-promise": "^5.2.0",
|
49
|
+
"jest": "^27.4.3",
|
50
|
+
"lua-types": "^2.11.0",
|
51
|
+
"prettier": "^2.5.1",
|
52
|
+
"prettier-plugin-jsdoc": "^0.3.30",
|
53
|
+
"ts-jest": "^27.1.0",
|
54
|
+
"ts-node": "^10.4.0",
|
55
|
+
"typescript": "4.5.2",
|
56
|
+
"typescript-to-lua": "^1.2.0"
|
55
57
|
}
|
56
58
|
}
|