isaacscript-common 15.3.2 → 15.3.3
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
CHANGED
|
@@ -10724,7 +10724,14 @@ declare class ModdedElementSets extends Feature {
|
|
|
10724
10724
|
*/
|
|
10725
10725
|
export declare class ModFeature {
|
|
10726
10726
|
private mod;
|
|
10727
|
-
|
|
10727
|
+
/**
|
|
10728
|
+
* Whether or not the feature has registered its callbacks yet (and submitted its variables to the
|
|
10729
|
+
* save data manager, if any).
|
|
10730
|
+
*
|
|
10731
|
+
* This will almost always be equal to true unless you explicitly passed `false` to the second
|
|
10732
|
+
* argument of the constructor.
|
|
10733
|
+
*/
|
|
10734
|
+
initialized: boolean;
|
|
10728
10735
|
constructor(mod: ModUpgradedBase, init?: boolean);
|
|
10729
10736
|
/**
|
|
10730
10737
|
* Runs the `Mod.AddCallback` and `ModUpgraded.AddCallbackCustom` methods for all of the decorated
|
|
@@ -36,7 +36,14 @@ export declare const ADD_CALLBACK_CUSTOM_ARGS_KEY = "__addCallbackCustomArgs";
|
|
|
36
36
|
*/
|
|
37
37
|
export declare class ModFeature {
|
|
38
38
|
private mod;
|
|
39
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Whether or not the feature has registered its callbacks yet (and submitted its variables to the
|
|
41
|
+
* save data manager, if any).
|
|
42
|
+
*
|
|
43
|
+
* This will almost always be equal to true unless you explicitly passed `false` to the second
|
|
44
|
+
* argument of the constructor.
|
|
45
|
+
*/
|
|
46
|
+
initialized: boolean;
|
|
40
47
|
constructor(mod: ModUpgradedBase, init?: boolean);
|
|
41
48
|
/**
|
|
42
49
|
* Runs the `Mod.AddCallback` and `ModUpgraded.AddCallbackCustom` methods for all of the decorated
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModFeature.d.ts","sourceRoot":"","sources":["../../../src/classes/ModFeature.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,qBAAqB,sBAAsB,CAAC;AACzD,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAatE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,qBAAa,UAAU;IACrB,OAAO,CAAC,GAAG,CAAkB;
|
|
1
|
+
{"version":3,"file":"ModFeature.d.ts","sourceRoot":"","sources":["../../../src/classes/ModFeature.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,qBAAqB,sBAAsB,CAAC;AACzD,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAatE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,qBAAa,UAAU;IACrB,OAAO,CAAC,GAAG,CAAkB;IAE7B;;;;;;OAMG;IACI,WAAW,UAAS;gBAEf,GAAG,EAAE,eAAe,EAAE,IAAI,UAAO;IAQ7C;;;;;OAKG;IACI,IAAI,CAAC,IAAI,UAAO,GAAG,IAAI;IAqB9B;;;;;;OAMG;IACI,MAAM,IAAI,IAAI;CAGtB"}
|
package/package.json
CHANGED
|
@@ -61,7 +61,15 @@ type ModFeatureConstructor = TSTLClassMetatable["constructor"] & {
|
|
|
61
61
|
|
|
62
62
|
export class ModFeature {
|
|
63
63
|
private mod: ModUpgradedBase;
|
|
64
|
-
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Whether or not the feature has registered its callbacks yet (and submitted its variables to the
|
|
67
|
+
* save data manager, if any).
|
|
68
|
+
*
|
|
69
|
+
* This will almost always be equal to true unless you explicitly passed `false` to the second
|
|
70
|
+
* argument of the constructor.
|
|
71
|
+
*/
|
|
72
|
+
public initialized = false;
|
|
65
73
|
|
|
66
74
|
constructor(mod: ModUpgradedBase, init = true) {
|
|
67
75
|
this.mod = mod;
|