isaacscript-common 33.4.1 → 33.5.0

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.
@@ -4193,6 +4193,17 @@ declare class ExtraConsoleCommands extends Feature {
4193
4193
  * `ISCFeature.EXTRA_CONSOLE_COMMANDS`.
4194
4194
  */
4195
4195
  removeConsoleCommand(commandName: string): void;
4196
+ /**
4197
+ * Helper function to remove all custom console commands.
4198
+ *
4199
+ * The standard library comes with [many existing console commands](ExtraConsoleCommandsList) that
4200
+ * are useful for debugging. If you want to disable all of them after this feature has already
4201
+ * been initialized, use this function.
4202
+ *
4203
+ * In order to use this function, you must upgrade your mod with
4204
+ * `ISCFeature.EXTRA_CONSOLE_COMMANDS`.
4205
+ */
4206
+ removeAllConsoleCommands(): void;
4196
4207
  }
4197
4208
 
4198
4209
  /**
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 33.4.1
3
+ isaacscript-common 33.5.0
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -50749,6 +50749,10 @@ function ExtraConsoleCommands.prototype.removeConsoleCommand(self, commandName)
50749
50749
  self.commandFunctionMap:delete(commandName)
50750
50750
  end
50751
50751
  __TS__DecorateLegacy({Exported}, ExtraConsoleCommands.prototype, "removeConsoleCommand", true)
50752
+ function ExtraConsoleCommands.prototype.removeAllConsoleCommands(self)
50753
+ self.commandFunctionMap:clear()
50754
+ end
50755
+ __TS__DecorateLegacy({Exported}, ExtraConsoleCommands.prototype, "removeAllConsoleCommands", true)
50752
50756
  return ____exports
50753
50757
  end,
50754
50758
  ["src.classes.features.other.FadeInRemover"] = function(...)
@@ -48,5 +48,16 @@ export declare class ExtraConsoleCommands extends Feature {
48
48
  * `ISCFeature.EXTRA_CONSOLE_COMMANDS`.
49
49
  */
50
50
  removeConsoleCommand(commandName: string): void;
51
+ /**
52
+ * Helper function to remove all custom console commands.
53
+ *
54
+ * The standard library comes with [many existing console commands](ExtraConsoleCommandsList) that
55
+ * are useful for debugging. If you want to disable all of them after this feature has already
56
+ * been initialized, use this function.
57
+ *
58
+ * In order to use this function, you must upgrade your mod with
59
+ * `ISCFeature.EXTRA_CONSOLE_COMMANDS`.
60
+ */
61
+ removeAllConsoleCommands(): void;
51
62
  }
52
63
  //# sourceMappingURL=ExtraConsoleCommands.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExtraConsoleCommands.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/ExtraConsoleCommands.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAShD;;;;;;;;;;GAUG;AACH,qBAAa,oBAAqB,SAAQ,OAAO;IAI/C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAU;IAExC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAG/B;IAoEJ,OAAO,CAAC,QAAQ,CAAC,UAAU,CAKzB;IAIF,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAIlC;IAIF,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAIrC;IAIF,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAIjC;IAIF,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAIlC;IAGF,OAAO,CAAC,QAAQ,CAAC,aAAa,CAkD5B;IAGF,OAAO,CAAC,QAAQ,CAAC,UAAU,CAWzB;IAGF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAI3B;IAGF,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAYlC;IAEF;;;;;;;;;;;;OAYG;IAEI,iBAAiB,CACtB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GACxC,IAAI;IA4BP;;;;;;;;;;OAUG;IAEI,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;CAoBvD"}
1
+ {"version":3,"file":"ExtraConsoleCommands.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/ExtraConsoleCommands.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAShD;;;;;;;;;;GAUG;AACH,qBAAa,oBAAqB,SAAQ,OAAO;IAI/C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAU;IAExC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAG/B;IAoEJ,OAAO,CAAC,QAAQ,CAAC,UAAU,CAKzB;IAIF,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAIlC;IAIF,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAIrC;IAIF,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAIjC;IAIF,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAIlC;IAGF,OAAO,CAAC,QAAQ,CAAC,aAAa,CAkD5B;IAGF,OAAO,CAAC,QAAQ,CAAC,UAAU,CAWzB;IAGF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAI3B;IAGF,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAYlC;IAEF;;;;;;;;;;;;OAYG;IAEI,iBAAiB,CACtB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GACxC,IAAI;IA4BP;;;;;;;;;;OAUG;IAEI,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAqBtD;;;;;;;;;OASG;IAEI,wBAAwB,IAAI,IAAI;CAGxC"}
@@ -179,4 +179,8 @@ function ExtraConsoleCommands.prototype.removeConsoleCommand(self, commandName)
179
179
  self.commandFunctionMap:delete(commandName)
180
180
  end
181
181
  __TS__DecorateLegacy({Exported}, ExtraConsoleCommands.prototype, "removeConsoleCommand", true)
182
+ function ExtraConsoleCommands.prototype.removeAllConsoleCommands(self)
183
+ self.commandFunctionMap:clear()
184
+ end
185
+ __TS__DecorateLegacy({Exported}, ExtraConsoleCommands.prototype, "removeAllConsoleCommands", true)
182
186
  return ____exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "33.4.1",
3
+ "version": "33.5.0",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -314,4 +314,19 @@ export class ExtraConsoleCommands extends Feature {
314
314
 
315
315
  this.commandFunctionMap.delete(commandName);
316
316
  }
317
+
318
+ /**
319
+ * Helper function to remove all custom console commands.
320
+ *
321
+ * The standard library comes with [many existing console commands](ExtraConsoleCommandsList) that
322
+ * are useful for debugging. If you want to disable all of them after this feature has already
323
+ * been initialized, use this function.
324
+ *
325
+ * In order to use this function, you must upgrade your mod with
326
+ * `ISCFeature.EXTRA_CONSOLE_COMMANDS`.
327
+ */
328
+ @Exported
329
+ public removeAllConsoleCommands(): void {
330
+ this.commandFunctionMap.clear();
331
+ }
317
332
  }