typed-factorio 2.6.0 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -21
- package/common/types.d.ts +9 -7
- package/package.json +1 -1
- package/prototype/generated/prototypes.d.ts +1852 -1750
- package/prototype/generated/types.d.ts +1627 -1431
- package/runtime/generated/builtin-types.d.ts +12 -12
- package/runtime/generated/classes.d.ts +3673 -3520
- package/runtime/generated/concepts.d.ts +676 -563
- package/runtime/generated/defines.d.ts +125 -120
- package/runtime/generated/events.d.ts +187 -187
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +6 -6
package/LICENSE
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2021 Benjamin Ye
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2021 Benjamin Ye
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/common/types.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/** @noResolution */
|
2
2
|
declare module "factorio:common" {
|
3
3
|
import { ModSetting } from "factorio:runtime"
|
4
|
-
import {
|
4
|
+
import { Data } from "factorio:prototype"
|
5
5
|
import { PrototypeMap as SettingsPrototypeMap } from "factorio:settings"
|
6
6
|
/**
|
7
7
|
* A type map of type name -> prototype type.
|
@@ -16,21 +16,23 @@ declare module "factorio:common" {
|
|
16
16
|
readonly name: string
|
17
17
|
}
|
18
18
|
|
19
|
+
/**
|
20
|
+
* See {@link Data} for documentation.
|
21
|
+
*/
|
19
22
|
export interface DataGlobal<M = GlobalPrototypeMap> {
|
20
23
|
/**
|
21
24
|
* A table of the already added prototypes.
|
22
25
|
* Indexed by prototype type, then by prototype name.
|
23
26
|
*/
|
24
27
|
readonly raw: {
|
25
|
-
readonly [
|
26
|
-
readonly [name in string]?: M[
|
28
|
+
readonly [type in keyof M]: {
|
29
|
+
readonly [name in string]?: M[type]
|
27
30
|
}
|
28
31
|
}
|
29
32
|
|
30
|
-
/**
|
31
|
-
* Add additional prototypes.
|
32
|
-
*/
|
33
33
|
extend<P extends AnyPrototype<M>>(prototypes: readonly P[]): void
|
34
|
+
|
35
|
+
is_demo: boolean
|
34
36
|
}
|
35
37
|
|
36
38
|
export interface SettingsGlobal {
|
@@ -57,7 +59,7 @@ declare module "factorio:common" {
|
|
57
59
|
* data.extend(...)
|
58
60
|
* ```
|
59
61
|
*/
|
60
|
-
export type PrototypeData =
|
62
|
+
export type PrototypeData = Data
|
61
63
|
|
62
64
|
/**
|
63
65
|
* Represents a `data` global variable for the settings stage.
|