isaacscript-common 20.11.0 → 20.11.1
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/dist/index.d.ts +7 -8
- package/dist/isaacscript-common.lua +1 -1
- package/dist/src/classes/ModFeature.d.ts +3 -5
- package/dist/src/classes/ModFeature.d.ts.map +1 -1
- package/dist/src/interfaces/CustomStageTSConfig.d.ts +4 -3
- package/dist/src/interfaces/CustomStageTSConfig.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/classes/ModFeature.ts +3 -5
- package/src/interfaces/CustomStageTSConfig.ts +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -2068,11 +2068,12 @@ export declare interface CustomStageTSConfig {
|
|
|
2068
2068
|
* Mandatory. An arbitrarily chosen prefix in the range of 101-999 that will be unique to this
|
|
2069
2069
|
* stage.
|
|
2070
2070
|
*
|
|
2071
|
-
*
|
|
2072
|
-
*
|
|
2071
|
+
* Use a value of 100 when testing locally. When publishing to the workshop or otherwise
|
|
2072
|
+
* distributing your mod, make sure that you have chosen a prefix that does not conflict with any
|
|
2073
|
+
* other mods. You can find a list of registered room variant prefixes on the IsaacScript website:
|
|
2073
2074
|
* https://isaacscript.github.io/main/custom-stages
|
|
2074
2075
|
*
|
|
2075
|
-
* @minimum
|
|
2076
|
+
* @minimum 100
|
|
2076
2077
|
* @maximum 999
|
|
2077
2078
|
*/
|
|
2078
2079
|
roomVariantPrefix: number;
|
|
@@ -11462,8 +11463,7 @@ export declare class ModFeature {
|
|
|
11462
11463
|
*/
|
|
11463
11464
|
protected shouldCallbackMethodsFire: (<T extends boolean>(vanilla: T, modCallback: T extends true ? ModCallback : ModCallbackCustom, ...callbackArgs: unknown[]) => boolean) | null;
|
|
11464
11465
|
/**
|
|
11465
|
-
* Whether or not the feature has registered its callbacks yet
|
|
11466
|
-
* save data manager, if any).
|
|
11466
|
+
* Whether or not the feature has registered its callbacks yet.
|
|
11467
11467
|
*
|
|
11468
11468
|
* This will almost always be equal to true unless you explicitly passed `false` to the second
|
|
11469
11469
|
* argument of the constructor.
|
|
@@ -11472,15 +11472,14 @@ export declare class ModFeature {
|
|
|
11472
11472
|
constructor(mod: ModUpgradedBase, init?: boolean);
|
|
11473
11473
|
/**
|
|
11474
11474
|
* Runs the `Mod.AddCallback` and `ModUpgraded.AddCallbackCustom` methods for all of the decorated
|
|
11475
|
-
* callbacks.
|
|
11475
|
+
* callbacks.
|
|
11476
11476
|
*
|
|
11477
11477
|
* @param init Optional. Whether to initialize or uninitialize. Default is true.
|
|
11478
11478
|
*/
|
|
11479
11479
|
init(init?: boolean): void;
|
|
11480
11480
|
/**
|
|
11481
11481
|
* Runs the `Mod.RemoveCallback` and `ModUpgraded.RemoveCallbackCustom` methods for all of the
|
|
11482
|
-
* decorated callbacks.
|
|
11483
|
-
* present.
|
|
11482
|
+
* decorated callbacks.
|
|
11484
11483
|
*
|
|
11485
11484
|
* This is just an alias for `ModFeature.init(false)`.
|
|
11486
11485
|
*/
|
|
@@ -48,8 +48,7 @@ export declare class ModFeature {
|
|
|
48
48
|
*/
|
|
49
49
|
protected shouldCallbackMethodsFire: (<T extends boolean>(vanilla: T, modCallback: T extends true ? ModCallback : ModCallbackCustom, ...callbackArgs: unknown[]) => boolean) | null;
|
|
50
50
|
/**
|
|
51
|
-
* Whether or not the feature has registered its callbacks yet
|
|
52
|
-
* save data manager, if any).
|
|
51
|
+
* Whether or not the feature has registered its callbacks yet.
|
|
53
52
|
*
|
|
54
53
|
* This will almost always be equal to true unless you explicitly passed `false` to the second
|
|
55
54
|
* argument of the constructor.
|
|
@@ -58,15 +57,14 @@ export declare class ModFeature {
|
|
|
58
57
|
constructor(mod: ModUpgradedBase, init?: boolean);
|
|
59
58
|
/**
|
|
60
59
|
* Runs the `Mod.AddCallback` and `ModUpgraded.AddCallbackCustom` methods for all of the decorated
|
|
61
|
-
* callbacks.
|
|
60
|
+
* callbacks.
|
|
62
61
|
*
|
|
63
62
|
* @param init Optional. Whether to initialize or uninitialize. Default is true.
|
|
64
63
|
*/
|
|
65
64
|
init(init?: boolean): void;
|
|
66
65
|
/**
|
|
67
66
|
* Runs the `Mod.RemoveCallback` and `ModUpgraded.RemoveCallbackCustom` methods for all of the
|
|
68
|
-
* decorated callbacks.
|
|
69
|
-
* present.
|
|
67
|
+
* decorated callbacks.
|
|
70
68
|
*
|
|
71
69
|
* This is just an alias for `ModFeature.init(false)`.
|
|
72
70
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModFeature.d.ts","sourceRoot":"","sources":["../../../src/classes/ModFeature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAS/D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,yBAAyB,gBAAgB,CAAC;AACvD,eAAO,MAAM,gCAAgC,sBAAsB,CAAC;AAyBpE;;;;;;;;;;;;;;;GAeG;AAEH,qBAAa,UAAU;IACrB,OAAO,CAAC,GAAG,CAAkB;IAE7B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,SAAS,CAAC,yBAAyB,EAC/B,CAAC,CAAC,CAAC,SAAS,OAAO,EACjB,OAAO,EAAE,CAAC,EACV,WAAW,EAAE,CAAC,SAAS,IAAI,GAAG,WAAW,GAAG,iBAAiB,EAC7D,GAAG,YAAY,EAAE,OAAO,EAAE,KACvB,OAAO,CAAC,GACb,IAAI,CAAQ;IAEhB
|
|
1
|
+
{"version":3,"file":"ModFeature.d.ts","sourceRoot":"","sources":["../../../src/classes/ModFeature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAS/D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,yBAAyB,gBAAgB,CAAC;AACvD,eAAO,MAAM,gCAAgC,sBAAsB,CAAC;AAyBpE;;;;;;;;;;;;;;;GAeG;AAEH,qBAAa,UAAU;IACrB,OAAO,CAAC,GAAG,CAAkB;IAE7B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,SAAS,CAAC,yBAAyB,EAC/B,CAAC,CAAC,CAAC,SAAS,OAAO,EACjB,OAAO,EAAE,CAAC,EACV,WAAW,EAAE,CAAC,SAAS,IAAI,GAAG,WAAW,GAAG,iBAAiB,EAC7D,GAAG,YAAY,EAAE,OAAO,EAAE,KACvB,OAAO,CAAC,GACb,IAAI,CAAQ;IAEhB;;;;;OAKG;IACI,WAAW,UAAS;gBAEf,GAAG,EAAE,eAAe,EAAE,IAAI,UAAO;IAQ7C;;;;;OAKG;IACI,IAAI,CAAC,IAAI,UAAO,GAAG,IAAI;IAoB9B;;;;;OAKG;IACI,MAAM,IAAI,IAAI;CAGtB"}
|
|
@@ -22,11 +22,12 @@ export interface CustomStageTSConfig {
|
|
|
22
22
|
* Mandatory. An arbitrarily chosen prefix in the range of 101-999 that will be unique to this
|
|
23
23
|
* stage.
|
|
24
24
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
25
|
+
* Use a value of 100 when testing locally. When publishing to the workshop or otherwise
|
|
26
|
+
* distributing your mod, make sure that you have chosen a prefix that does not conflict with any
|
|
27
|
+
* other mods. You can find a list of registered room variant prefixes on the IsaacScript website:
|
|
27
28
|
* https://isaacscript.github.io/main/custom-stages
|
|
28
29
|
*
|
|
29
|
-
* @minimum
|
|
30
|
+
* @minimum 100
|
|
30
31
|
* @maximum 999
|
|
31
32
|
*/
|
|
32
33
|
roomVariantPrefix: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomStageTSConfig.d.ts","sourceRoot":"","sources":["../../../src/interfaces/CustomStageTSConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO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AAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
package/package.json
CHANGED
|
@@ -90,8 +90,7 @@ export class ModFeature {
|
|
|
90
90
|
| null = null;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
|
-
* Whether or not the feature has registered its callbacks yet
|
|
94
|
-
* save data manager, if any).
|
|
93
|
+
* Whether or not the feature has registered its callbacks yet.
|
|
95
94
|
*
|
|
96
95
|
* This will almost always be equal to true unless you explicitly passed `false` to the second
|
|
97
96
|
* argument of the constructor.
|
|
@@ -108,7 +107,7 @@ export class ModFeature {
|
|
|
108
107
|
|
|
109
108
|
/**
|
|
110
109
|
* Runs the `Mod.AddCallback` and `ModUpgraded.AddCallbackCustom` methods for all of the decorated
|
|
111
|
-
* callbacks.
|
|
110
|
+
* callbacks.
|
|
112
111
|
*
|
|
113
112
|
* @param init Optional. Whether to initialize or uninitialize. Default is true.
|
|
114
113
|
*/
|
|
@@ -134,8 +133,7 @@ export class ModFeature {
|
|
|
134
133
|
|
|
135
134
|
/**
|
|
136
135
|
* Runs the `Mod.RemoveCallback` and `ModUpgraded.RemoveCallbackCustom` methods for all of the
|
|
137
|
-
* decorated callbacks.
|
|
138
|
-
* present.
|
|
136
|
+
* decorated callbacks.
|
|
139
137
|
*
|
|
140
138
|
* This is just an alias for `ModFeature.init(false)`.
|
|
141
139
|
*/
|
|
@@ -27,11 +27,12 @@ export interface CustomStageTSConfig {
|
|
|
27
27
|
* Mandatory. An arbitrarily chosen prefix in the range of 101-999 that will be unique to this
|
|
28
28
|
* stage.
|
|
29
29
|
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* Use a value of 100 when testing locally. When publishing to the workshop or otherwise
|
|
31
|
+
* distributing your mod, make sure that you have chosen a prefix that does not conflict with any
|
|
32
|
+
* other mods. You can find a list of registered room variant prefixes on the IsaacScript website:
|
|
32
33
|
* https://isaacscript.github.io/main/custom-stages
|
|
33
34
|
*
|
|
34
|
-
* @minimum
|
|
35
|
+
* @minimum 100
|
|
35
36
|
* @maximum 999
|
|
36
37
|
*/
|
|
37
38
|
roomVariantPrefix: number;
|