isaacscript-common 21.2.0 → 21.3.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.
Files changed (105) hide show
  1. package/dist/index.d.ts +174 -88
  2. package/dist/isaacscript-common.lua +529 -448
  3. package/dist/src/arrays/cachedEnumValues.d.ts +24 -0
  4. package/dist/src/arrays/cachedEnumValues.d.ts.map +1 -0
  5. package/dist/src/arrays/cachedEnumValues.lua +46 -0
  6. package/dist/src/callbackClasses.d.ts +1 -0
  7. package/dist/src/callbackClasses.d.ts.map +1 -1
  8. package/dist/src/callbackClasses.lua +5 -0
  9. package/dist/src/callbacks.d.ts +66 -65
  10. package/dist/src/callbacks.d.ts.map +1 -1
  11. package/dist/src/callbacks.lua +1 -0
  12. package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
  13. package/dist/src/classes/callbacks/PostItemDischarge.lua +3 -4
  14. package/dist/src/classes/callbacks/PostKeyboardPressed.d.ts +14 -0
  15. package/dist/src/classes/callbacks/PostKeyboardPressed.d.ts.map +1 -0
  16. package/dist/src/classes/callbacks/PostKeyboardPressed.lua +49 -0
  17. package/dist/src/classes/callbacks/PostPlayerChangeHealth.d.ts.map +1 -1
  18. package/dist/src/classes/callbacks/PostPlayerChangeHealth.lua +3 -5
  19. package/dist/src/classes/callbacks/PostPlayerChangeStat.d.ts.map +1 -1
  20. package/dist/src/classes/callbacks/PostPlayerChangeStat.lua +3 -5
  21. package/dist/src/classes/callbacks/PostTransformation.d.ts.map +1 -1
  22. package/dist/src/classes/callbacks/PostTransformation.lua +3 -5
  23. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.lua +3 -4
  24. package/dist/src/classes/features/other/CustomStages.d.ts.map +1 -1
  25. package/dist/src/classes/features/other/DebugDisplay.d.ts +91 -19
  26. package/dist/src/classes/features/other/DebugDisplay.d.ts.map +1 -1
  27. package/dist/src/classes/features/other/DebugDisplay.lua +42 -38
  28. package/dist/src/classes/features/other/DeployJSONRoom.d.ts.map +1 -1
  29. package/dist/src/classes/features/other/DeployJSONRoom.lua +3 -5
  30. package/dist/src/classes/features/other/ExtraConsoleCommands.d.ts.map +1 -1
  31. package/dist/src/classes/features/other/ExtraConsoleCommands.lua +0 -1
  32. package/dist/src/classes/features/other/ModdedElementSets.d.ts.map +1 -1
  33. package/dist/src/classes/features/other/ModdedElementSets.lua +9 -7
  34. package/dist/src/classes/features/other/customStages/streakText.d.ts.map +1 -1
  35. package/dist/src/classes/features/other/customStages/streakText.lua +3 -4
  36. package/dist/src/classes/features/other/extraConsoleCommands/commands.d.ts.map +1 -1
  37. package/dist/src/classes/features/other/extraConsoleCommands/commands.lua +5 -7
  38. package/dist/src/enums/ModCallbackCustom.d.ts +74 -65
  39. package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
  40. package/dist/src/enums/ModCallbackCustom.lua +67 -65
  41. package/dist/src/functions/doors.d.ts.map +1 -1
  42. package/dist/src/functions/doors.lua +5 -6
  43. package/dist/src/functions/input.d.ts.map +1 -1
  44. package/dist/src/functions/input.lua +4 -6
  45. package/dist/src/functions/level.d.ts.map +1 -1
  46. package/dist/src/functions/level.lua +3 -5
  47. package/dist/src/functions/pills.d.ts.map +1 -1
  48. package/dist/src/functions/pills.lua +3 -5
  49. package/dist/src/functions/playerHealth.d.ts.map +1 -1
  50. package/dist/src/functions/playerHealth.lua +3 -4
  51. package/dist/src/functions/players.d.ts.map +1 -1
  52. package/dist/src/functions/players.lua +6 -7
  53. package/dist/src/functions/pocketItems.d.ts.map +1 -1
  54. package/dist/src/functions/pocketItems.lua +3 -5
  55. package/dist/src/functions/roomData.d.ts +1 -1
  56. package/dist/src/functions/roomData.d.ts.map +1 -1
  57. package/dist/src/functions/roomData.lua +3 -6
  58. package/dist/src/functions/roomShapeWalls.lua +3 -3
  59. package/dist/src/functions/serialization.lua +3 -6
  60. package/dist/src/functions/sound.d.ts.map +1 -1
  61. package/dist/src/functions/sound.lua +3 -3
  62. package/dist/src/functions/transformations.d.ts.map +1 -1
  63. package/dist/src/functions/transformations.lua +4 -5
  64. package/dist/src/index.d.ts +1 -0
  65. package/dist/src/index.d.ts.map +1 -1
  66. package/dist/src/interfaces/CustomStageTSConfig.d.ts +8 -7
  67. package/dist/src/interfaces/CustomStageTSConfig.d.ts.map +1 -1
  68. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +5 -1
  69. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
  70. package/dist/src/patchErrorFunctions.lua +3 -3
  71. package/package.json +2 -2
  72. package/src/arrays/cachedEnumValues.ts +75 -0
  73. package/src/callbackClasses.ts +1 -0
  74. package/src/callbacks.ts +1 -0
  75. package/src/classes/ModFeature.ts +4 -1
  76. package/src/classes/callbacks/PostItemDischarge.ts +2 -2
  77. package/src/classes/callbacks/PostKeyboardPressed.ts +52 -0
  78. package/src/classes/callbacks/PostPlayerChangeHealth.ts +2 -2
  79. package/src/classes/callbacks/PostPlayerChangeStat.ts +2 -2
  80. package/src/classes/callbacks/PostTransformation.ts +2 -2
  81. package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +2 -2
  82. package/src/classes/features/other/CustomStages.ts +1 -1
  83. package/src/classes/features/other/DebugDisplay.ts +120 -39
  84. package/src/classes/features/other/DeployJSONRoom.ts +2 -3
  85. package/src/classes/features/other/ExtraConsoleCommands.ts +2 -1
  86. package/src/classes/features/other/ModdedElementSets.ts +10 -6
  87. package/src/classes/features/other/customStages/streakText.ts +2 -2
  88. package/src/classes/features/other/extraConsoleCommands/commands.ts +6 -7
  89. package/src/enums/ModCallbackCustom.ts +10 -0
  90. package/src/functions/doors.ts +7 -4
  91. package/src/functions/input.ts +3 -5
  92. package/src/functions/level.ts +2 -3
  93. package/src/functions/pills.ts +2 -4
  94. package/src/functions/playerHealth.ts +2 -2
  95. package/src/functions/players.ts +7 -6
  96. package/src/functions/pocketItems.ts +2 -3
  97. package/src/functions/roomData.ts +3 -8
  98. package/src/functions/roomShapeWalls.ts +2 -2
  99. package/src/functions/serialization.ts +4 -4
  100. package/src/functions/sound.ts +2 -1
  101. package/src/functions/transformations.ts +3 -4
  102. package/src/index.ts +1 -0
  103. package/src/interfaces/CustomStageTSConfig.ts +8 -7
  104. package/src/interfaces/private/AddCallbackParametersCustom.ts +6 -0
  105. package/src/patchErrorFunctions.ts +1 -9
@@ -186,112 +186,184 @@ export declare class DebugDisplay extends Feature {
186
186
  * Toggles the debug display for players, which will draw text on the screen next to each player.
187
187
  *
188
188
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
189
+ *
190
+ * @param force Optional. A boolean that represents the value to force the display to. For
191
+ * example, you can specify true to always make the display turn on, regardless of
192
+ * whether or not it is already on.
189
193
  */
190
- togglePlayerDisplay(): void;
194
+ togglePlayerDisplay(force?: boolean): void;
191
195
  /**
192
196
  * Toggles the debug display for tears, which will draw text on the screen next to each tear.
193
197
  *
194
- * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
198
+ * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`. *
199
+ *
200
+ * @param force Optional. A boolean that represents the value to force the display to. For
201
+ * example, you can specify true to always make the display turn on, regardless of
202
+ * whether or not it is already on.
195
203
  */
196
- toggleTearDisplay(): void;
204
+ toggleTearDisplay(force?: boolean): void;
197
205
  /**
198
206
  * Toggles the debug display for familiars, which will draw text on the screen next to each
199
207
  * familiar.
200
208
  *
201
209
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
210
+ *
211
+ * @param force Optional. A boolean that represents the value to force the display to. For
212
+ * example, you can specify true to always make the display turn on, regardless of
213
+ * whether or not it is already on.
202
214
  */
203
- toggleFamiliarDisplay(): void;
215
+ toggleFamiliarDisplay(force?: boolean): void;
204
216
  /**
205
217
  * Toggles the debug display for bombs, which will draw text on the screen next to each bomb.
206
218
  *
207
219
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
220
+ *
221
+ * @param force Optional. A boolean that represents the value to force the display to. For
222
+ * example, you can specify true to always make the display turn on, regardless of
223
+ * whether or not it is already on.
208
224
  */
209
- toggleBombDisplay(): void;
225
+ toggleBombDisplay(force?: boolean): void;
210
226
  /**
211
227
  * Toggles the debug display for pickups, which will draw text on the screen next to each pickup.
212
228
  *
213
229
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
230
+ *
231
+ * @param force Optional. A boolean that represents the value to force the display to. For
232
+ * example, you can specify true to always make the display turn on, regardless of
233
+ * whether or not it is already on.
214
234
  */
215
- togglePickupDisplay(): void;
235
+ togglePickupDisplay(force?: boolean): void;
216
236
  /**
217
237
  * Toggles the debug display for slots, which will draw text on the screen next to each slot.
218
238
  *
219
239
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
240
+ *
241
+ * @param force Optional. A boolean that represents the value to force the display to. For
242
+ * example, you can specify true to always make the display turn on, regardless of
243
+ * whether or not it is already on.
220
244
  */
221
- toggleSlotDisplay(): void;
245
+ toggleSlotDisplay(force?: boolean): void;
222
246
  /**
223
247
  * Toggles the debug display for lasers, which will draw text on the screen next to each laser.
224
248
  *
225
249
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
250
+ *
251
+ * @param force Optional. A boolean that represents the value to force the display to. For
252
+ * example, you can specify true to always make the display turn on, regardless of
253
+ * whether or not it is already on.
226
254
  */
227
- toggleLaserDisplay(): void;
255
+ toggleLaserDisplay(force?: boolean): void;
228
256
  /**
229
257
  * Toggles the debug display for knives, which will draw text on the screen next to each knife.
230
258
  *
231
259
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
260
+ *
261
+ * @param force Optional. A boolean that represents the value to force the display to. For
262
+ * example, you can specify true to always make the display turn on, regardless of
263
+ * whether or not it is already on.
232
264
  */
233
- toggleKnifeDisplay(): void;
265
+ toggleKnifeDisplay(force?: boolean): void;
234
266
  /**
235
267
  * Toggles the debug display for projectiles, which will draw text on the screen next to each
236
268
  * projectile.
237
269
  *
238
270
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
271
+ *
272
+ * @param force Optional. A boolean that represents the value to force the display to. For
273
+ * example, you can specify true to always make the display turn on, regardless of
274
+ * whether or not it is already on.
239
275
  */
240
- toggleProjectileDisplay(): void;
276
+ toggleProjectileDisplay(force?: boolean): void;
241
277
  /**
242
278
  * Toggles the debug display for effects, which will draw text on the screen next to each effect.
243
279
  *
244
280
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
281
+ *
282
+ * @param force Optional. A boolean that represents the value to force the display to. For
283
+ * example, you can specify true to always make the display turn on, regardless of
284
+ * whether or not it is already on.
245
285
  */
246
- toggleEffectDisplay(): void;
286
+ toggleEffectDisplay(force?: boolean): void;
247
287
  /**
248
288
  * Toggles the debug display for NPCs, which will draw text on the screen next to each NPC.
249
289
  *
250
290
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
291
+ *
292
+ * @param force Optional. A boolean that represents the value to force the display to. For
293
+ * example, you can specify true to always make the display turn on, regardless of
294
+ * whether or not it is already on.
251
295
  */
252
- toggleNPCDisplay(): void;
296
+ toggleNPCDisplay(force?: boolean): void;
253
297
  /**
254
298
  * Toggles the debug display for rocks, which will draw text on the screen next to each rock.
255
299
  *
256
300
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
301
+ *
302
+ * @param force Optional. A boolean that represents the value to force the display to. For
303
+ * example, you can specify true to always make the display turn on, regardless of
304
+ * whether or not it is already on.
257
305
  */
258
- toggleRockDisplay(): void;
306
+ toggleRockDisplay(force?: boolean): void;
259
307
  /**
260
308
  * Toggles the debug display for pits, which will draw text on the screen next to each pit.
261
309
  *
262
310
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
311
+ *
312
+ * @param force Optional. A boolean that represents the value to force the display to. For
313
+ * example, you can specify true to always make the display turn on, regardless of
314
+ * whether or not it is already on.
263
315
  */
264
- togglePitDisplay(): void;
316
+ togglePitDisplay(force?: boolean): void;
265
317
  /**
266
318
  * Toggles the debug display for spikes, which will draw text on the screen next to each spike.
267
319
  *
268
320
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
321
+ *
322
+ * @param force Optional. A boolean that represents the value to force the display to. For
323
+ * example, you can specify true to always make the display turn on, regardless of
324
+ * whether or not it is already on.
269
325
  */
270
- toggleSpikesDisplay(): void;
326
+ toggleSpikesDisplay(force?: boolean): void;
271
327
  /**
272
328
  * Toggles the debug display for TNT, which will draw text on the screen next to each TNT.
273
329
  *
274
330
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
331
+ *
332
+ * @param force Optional. A boolean that represents the value to force the display to. For
333
+ * example, you can specify true to always make the display turn on, regardless of
334
+ * whether or not it is already on.
275
335
  */
276
- toggleTNTDisplay(): void;
336
+ toggleTNTDisplay(force?: boolean): void;
277
337
  /**
278
338
  * Toggles the debug display for poops, which will draw text on the screen next to each poop.
279
339
  *
280
340
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
341
+ *
342
+ * @param force Optional. A boolean that represents the value to force the display to. For
343
+ * example, you can specify true to always make the display turn on, regardless of
344
+ * whether or not it is already on.
281
345
  */
282
- togglePoopDisplay(): void;
346
+ togglePoopDisplay(force?: boolean): void;
283
347
  /**
284
348
  * Toggles the debug display for doors, which will draw text on the screen next to each door.
285
349
  *
286
350
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
351
+ *
352
+ * @param force Optional. A boolean that represents the value to force the display to. For
353
+ * example, you can specify true to always make the display turn on, regardless of
354
+ * whether or not it is already on.
287
355
  */
288
- toggleDoorDisplay(): void;
356
+ toggleDoorDisplay(force?: boolean): void;
289
357
  /**
290
358
  * Toggles the debug display for pressure plates, which will draw text on the screen next to each
291
359
  * pressure plate.
292
360
  *
293
361
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
362
+ *
363
+ * @param force Optional. A boolean that represents the value to force the display to. For
364
+ * example, you can specify true to always make the display turn on, regardless of
365
+ * whether or not it is already on.
294
366
  */
295
- togglePressurePlateDisplay(): void;
367
+ togglePressurePlateDisplay(force?: boolean): void;
296
368
  }
297
369
  //# sourceMappingURL=DebugDisplay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DebugDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/DebugDisplay.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAoBhD,qBAAa,YAAa,SAAQ,OAAO;IACvC,OAAO,CAAC,GAAG,CAAuB;IAElC,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,IAAI,CAA0B;IACtC,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,IAAI,CAA0B;IACtC,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,IAAI,CAA0B;IACtC,OAAO,CAAC,KAAK,CAA2B;IACxC,OAAO,CAAC,KAAK,CAA2B;IACxC,OAAO,CAAC,UAAU,CAAgC;IAClD,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,GAAG,CAAyB;IAEpC,OAAO,CAAC,IAAI,CAA0B;IACtC,OAAO,CAAC,GAAG,CAAyB;IACpC,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,GAAG,CAAyB;IACpC,OAAO,CAAC,IAAI,CAA0B;IACtC,OAAO,CAAC,IAAI,CAA0B;IACtC,OAAO,CAAC,aAAa,CAAmC;IAaxD;;;;;;OAMG;IAEI,gBAAgB,CACrB,YAAY,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,MAAM,GAC7C,IAAI;IAIP;;;;;;OAMG;IAEI,cAAc,CAAC,YAAY,EAAE,CAAC,IA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gBAAgB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;IAI9C;;;;;;;;OAQG;IAEI,iBAAiB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;IAI/C;;;;;;;;OAQG;IAEI,iBAAiB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;IAI/C;;;;;;;;;OASG;IAEI,0BAA0B,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;CAGzD"}
@@ -126,67 +126,71 @@ end
126
126
  function DebugDisplay.prototype.setPressurePlateDisplay(self, textCallback)
127
127
  self.pressurePlate.textCallback = textCallback
128
128
  end
129
- function DebugDisplay.prototype.toggleFeature(self, feature, featureName)
130
- if feature.initialized then
129
+ function DebugDisplay.prototype.toggleFeature(self, feature, featureName, force)
130
+ local shouldInit = not feature.initialized
131
+ if force ~= nil then
132
+ shouldInit = force
133
+ end
134
+ if shouldInit then
131
135
  self.mod:uninitFeature(feature)
132
136
  else
133
137
  self.mod:initFeature(feature)
134
138
  end
135
139
  printEnabled(nil, feature.initialized, featureName .. " display")
136
140
  end
137
- function DebugDisplay.prototype.togglePlayerDisplay(self)
138
- self:toggleFeature(self.player, "player")
141
+ function DebugDisplay.prototype.togglePlayerDisplay(self, force)
142
+ self:toggleFeature(self.player, "player", force)
139
143
  end
140
- function DebugDisplay.prototype.toggleTearDisplay(self)
141
- self:toggleFeature(self.tear, "tear")
144
+ function DebugDisplay.prototype.toggleTearDisplay(self, force)
145
+ self:toggleFeature(self.tear, "tear", force)
142
146
  end
143
- function DebugDisplay.prototype.toggleFamiliarDisplay(self)
144
- self:toggleFeature(self.familiar, "familiar")
147
+ function DebugDisplay.prototype.toggleFamiliarDisplay(self, force)
148
+ self:toggleFeature(self.familiar, "familiar", force)
145
149
  end
146
- function DebugDisplay.prototype.toggleBombDisplay(self)
147
- self:toggleFeature(self.bomb, "bomb")
150
+ function DebugDisplay.prototype.toggleBombDisplay(self, force)
151
+ self:toggleFeature(self.bomb, "bomb", force)
148
152
  end
149
- function DebugDisplay.prototype.togglePickupDisplay(self)
150
- self:toggleFeature(self.pickup, "pickup")
153
+ function DebugDisplay.prototype.togglePickupDisplay(self, force)
154
+ self:toggleFeature(self.pickup, "pickup", force)
151
155
  end
152
- function DebugDisplay.prototype.toggleSlotDisplay(self)
153
- self:toggleFeature(self.slot, "slot")
156
+ function DebugDisplay.prototype.toggleSlotDisplay(self, force)
157
+ self:toggleFeature(self.slot, "slot", force)
154
158
  end
155
- function DebugDisplay.prototype.toggleLaserDisplay(self)
156
- self:toggleFeature(self.laser, "laser")
159
+ function DebugDisplay.prototype.toggleLaserDisplay(self, force)
160
+ self:toggleFeature(self.laser, "laser", force)
157
161
  end
158
- function DebugDisplay.prototype.toggleKnifeDisplay(self)
159
- self:toggleFeature(self.knife, "knife")
162
+ function DebugDisplay.prototype.toggleKnifeDisplay(self, force)
163
+ self:toggleFeature(self.knife, "knife", force)
160
164
  end
161
- function DebugDisplay.prototype.toggleProjectileDisplay(self)
162
- self:toggleFeature(self.projectile, "projectile")
165
+ function DebugDisplay.prototype.toggleProjectileDisplay(self, force)
166
+ self:toggleFeature(self.projectile, "projectile", force)
163
167
  end
164
- function DebugDisplay.prototype.toggleEffectDisplay(self)
165
- self:toggleFeature(self.effect, "effect")
168
+ function DebugDisplay.prototype.toggleEffectDisplay(self, force)
169
+ self:toggleFeature(self.effect, "effect", force)
166
170
  end
167
- function DebugDisplay.prototype.toggleNPCDisplay(self)
168
- self:toggleFeature(self.npc, "NPC")
171
+ function DebugDisplay.prototype.toggleNPCDisplay(self, force)
172
+ self:toggleFeature(self.npc, "NPC", force)
169
173
  end
170
- function DebugDisplay.prototype.toggleRockDisplay(self)
171
- self:toggleFeature(self.rock, "rock")
174
+ function DebugDisplay.prototype.toggleRockDisplay(self, force)
175
+ self:toggleFeature(self.rock, "rock", force)
172
176
  end
173
- function DebugDisplay.prototype.togglePitDisplay(self)
174
- self:toggleFeature(self.pit, "pit")
177
+ function DebugDisplay.prototype.togglePitDisplay(self, force)
178
+ self:toggleFeature(self.pit, "pit", force)
175
179
  end
176
- function DebugDisplay.prototype.toggleSpikesDisplay(self)
177
- self:toggleFeature(self.spikes, "spikes")
180
+ function DebugDisplay.prototype.toggleSpikesDisplay(self, force)
181
+ self:toggleFeature(self.spikes, "spikes", force)
178
182
  end
179
- function DebugDisplay.prototype.toggleTNTDisplay(self)
180
- self:toggleFeature(self.tnt, "tnt")
183
+ function DebugDisplay.prototype.toggleTNTDisplay(self, force)
184
+ self:toggleFeature(self.tnt, "tnt", force)
181
185
  end
182
- function DebugDisplay.prototype.togglePoopDisplay(self)
183
- self:toggleFeature(self.poop, "poop")
186
+ function DebugDisplay.prototype.togglePoopDisplay(self, force)
187
+ self:toggleFeature(self.poop, "poop", force)
184
188
  end
185
- function DebugDisplay.prototype.toggleDoorDisplay(self)
186
- self:toggleFeature(self.door, "door")
189
+ function DebugDisplay.prototype.toggleDoorDisplay(self, force)
190
+ self:toggleFeature(self.door, "door", force)
187
191
  end
188
- function DebugDisplay.prototype.togglePressurePlateDisplay(self)
189
- self:toggleFeature(self.pressurePlate, "pressure plate")
192
+ function DebugDisplay.prototype.togglePressurePlateDisplay(self, force)
193
+ self:toggleFeature(self.pressurePlate, "pressure plate", force)
190
194
  end
191
195
  __TS__Decorate({Exported}, DebugDisplay.prototype, "setPlayerDisplay", true)
192
196
  __TS__Decorate({Exported}, DebugDisplay.prototype, "setTearDisplay", true)
@@ -1 +1 @@
1
- {"version":3,"file":"DeployJSONRoom.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/DeployJSONRoom.ts"],"names":[],"mappings":";;AA8BA,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAE7D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAShD,qBAAa,cAAe,SAAQ,OAAO;IACzC,OAAO,CAAC,wBAAwB,CAA2B;IAC3D,OAAO,CAAC,gBAAgB,CAAmB;IAkB3C,OAAO,CAAC,gBAAgB;IAgGxB,OAAO,CAAC,4BAA4B;IAyCpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IAEI,cAAc,CACnB,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,EACvC,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,OAAO,UAAQ,GACd,IAAI;CAwBR"}
1
+ {"version":3,"file":"DeployJSONRoom.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/DeployJSONRoom.ts"],"names":[],"mappings":";;AA8BA,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAE7D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,cAAe,SAAQ,OAAO;IACzC,OAAO,CAAC,wBAAwB,CAA2B;IAC3D,OAAO,CAAC,gBAAgB,CAAmB;IAkB3C,OAAO,CAAC,gBAAgB;IAgGxB,OAAO,CAAC,4BAA4B;IAyCpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IAEI,cAAc,CACnB,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,EACvC,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,OAAO,UAAQ,GACd,IAAI;CAwBR"}
@@ -12,10 +12,11 @@ local EntityCollisionClass = ____isaac_2Dtypescript_2Ddefinitions.EntityCollisio
12
12
  local EntityGridCollisionClass = ____isaac_2Dtypescript_2Ddefinitions.EntityGridCollisionClass
13
13
  local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
14
14
  local GridEntityType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityType
15
- local GridEntityXMLType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityXMLType
16
15
  local PickupVariant = ____isaac_2Dtypescript_2Ddefinitions.PickupVariant
17
16
  local PitfallVariant = ____isaac_2Dtypescript_2Ddefinitions.PitfallVariant
18
17
  local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
18
+ local ____cachedEnumValues = require("src.arrays.cachedEnumValues")
19
+ local GRID_ENTITY_XML_TYPE_VALUES = ____cachedEnumValues.GRID_ENTITY_XML_TYPE_VALUES
19
20
  local ____cachedClasses = require("src.core.cachedClasses")
20
21
  local game = ____cachedClasses.game
21
22
  local ____decorators = require("src.decorators")
@@ -27,8 +28,6 @@ local emptyRoom = ____emptyRoom.emptyRoom
27
28
  local ____entities = require("src.functions.entities")
28
29
  local getEntityIDFromConstituents = ____entities.getEntityIDFromConstituents
29
30
  local spawnWithSeed = ____entities.spawnWithSeed
30
- local ____enums = require("src.functions.enums")
31
- local getEnumValues = ____enums.getEnumValues
32
31
  local ____gridEntities = require("src.functions.gridEntities")
33
32
  local convertXMLGridEntityType = ____gridEntities.convertXMLGridEntityType
34
33
  local getGridEntities = ____gridEntities.getGridEntities
@@ -183,8 +182,7 @@ function getPitFrame(self, L, R, U, D, UL, UR, DL, DR)
183
182
  end
184
183
  return F
185
184
  end
186
- local gridEntityXMLTypes = getEnumValues(nil, GridEntityXMLType)
187
- local GRID_ENTITY_XML_TYPE_SET = __TS__New(ReadonlySet, gridEntityXMLTypes)
185
+ local GRID_ENTITY_XML_TYPE_SET = __TS__New(ReadonlySet, GRID_ENTITY_XML_TYPE_VALUES)
188
186
  ____exports.DeployJSONRoom = __TS__Class()
189
187
  local DeployJSONRoom = ____exports.DeployJSONRoom
190
188
  DeployJSONRoom.name = "DeployJSONRoom"
@@ -1 +1 @@
1
- {"version":3,"file":"ExtraConsoleCommands.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/ExtraConsoleCommands.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAIhD,qBAAa,oBAAqB,SAAQ,OAAO;IAI/C,OAAO,CAAC,kBAAkB,CAA+C;IA0DzE,OAAO,CAAC,UAAU,CAKhB;IAIF,OAAO,CAAC,mBAAmB,CAIzB;IAIF,OAAO,CAAC,sBAAsB,CAI5B;IAIF,OAAO,CAAC,kBAAkB,CAIxB;IAIF,OAAO,CAAC,mBAAmB,CAIzB;IAGF,OAAO,CAAC,aAAa,CAkDnB;IAGF,OAAO,CAAC,UAAU,CAUhB;IAGF,OAAO,CAAC,YAAY,CAIlB;IAGF,OAAO,CAAC,mBAAmB,CAYzB;IAEF;;;;;;;;;;OAUG;IAEI,iBAAiB,CACtB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GACxC,IAAI;IAgBP;;;;;;;;OAQG;IAEI,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;CASvD"}
1
+ {"version":3,"file":"ExtraConsoleCommands.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/ExtraConsoleCommands.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAIhD,qBAAa,oBAAqB,SAAQ,OAAO;IAI/C,OAAO,CAAC,kBAAkB,CAA+C;IA0DzE,OAAO,CAAC,UAAU,CAKhB;IAIF,OAAO,CAAC,mBAAmB,CAIzB;IAIF,OAAO,CAAC,sBAAsB,CAI5B;IAIF,OAAO,CAAC,kBAAkB,CAIxB;IAIF,OAAO,CAAC,mBAAmB,CAIzB;IAGF,OAAO,CAAC,aAAa,CAkDnB;IAGF,OAAO,CAAC,UAAU,CAWhB;IAGF,OAAO,CAAC,YAAY,CAIlB;IAGF,OAAO,CAAC,mBAAmB,CAYzB;IAEF;;;;;;;;;;OAUG;IAEI,iBAAiB,CACtB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GACxC,IAAI;IAgBP;;;;;;;;OAQG;IAEI,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;CASvD"}
@@ -102,7 +102,6 @@ function ExtraConsoleCommands.prototype.____constructor(self)
102
102
  self.executeCmd = function(____, command, params)
103
103
  local resultTuple = getMapPartialMatch(nil, command, self.commandFunctionMap)
104
104
  if resultTuple == nil then
105
- print("That is an invalid console command.")
106
105
  return
107
106
  end
108
107
  local commandName, commandFunction = table.unpack(resultTuple)
@@ -1 +1 @@
1
- {"version":3,"file":"ModdedElementSets.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/ModdedElementSets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,WAAW,EACZ,MAAM,8BAA8B,CAAC;AAiCtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AA2BhD,qBAAa,iBAAkB,SAAQ,OAAO;IAC5C,OAAO,CAAC,wBAAwB,CAAyB;IACzD,OAAO,CAAC,sBAAsB,CAA8B;IAE5D,OAAO,CAAC,4BAA4B,CAAyB;IAC7D,OAAO,CAAC,0BAA0B,CAA8B;IAEhE,OAAO,CAAC,2BAA2B,CAAyB;IAC5D,OAAO,CAAC,yBAAyB,CAA8B;IAE/D,OAAO,CAAC,oBAAoB,CAAqB;IACjD,OAAO,CAAC,kBAAkB,CAA0B;IAEpD,OAAO,CAAC,wBAAwB,CAAqB;IACrD,OAAO,CAAC,sBAAsB,CAA0B;IAExD,OAAO,CAAC,uBAAuB,CAAqB;IACpD,OAAO,CAAC,qBAAqB,CAA0B;IAEvD,OAAO,CAAC,iBAAiB,CAAkB;IAC3C,OAAO,CAAC,eAAe,CAAuB;IAE9C,OAAO,CAAC,qBAAqB,CAAkB;IAC/C,OAAO,CAAC,mBAAmB,CAAuB;IAElD,OAAO,CAAC,oBAAoB,CAAkB;IAC9C,OAAO,CAAC,kBAAkB,CAAuB;IAEjD,OAAO,CAAC,wBAAwB,CAG5B;IAEJ,OAAO,CAAC,8BAA8B,CAGlC;IAEJ,OAAO,CAAC,0BAA0B,CAA0C;IAE5E,OAAO,CAAC,yBAAyB,CAA8B;IAC/D,OAAO,CAAC,kCAAkC,CAA8B;IAC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;;;;OAOG;IAEI,oBAAoB,IAAI,WAAW,CAAC,WAAW,CAAC;CAIxD"}
@@ -15,6 +15,10 @@ local ItemConfigCardType = ____isaac_2Dtypescript_2Ddefinitions.ItemConfigCardTy
15
15
  local ItemConfigTag = ____isaac_2Dtypescript_2Ddefinitions.ItemConfigTag
16
16
  local PlayerForm = ____isaac_2Dtypescript_2Ddefinitions.PlayerForm
17
17
  local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
18
+ local ____cachedEnumValues = require("src.arrays.cachedEnumValues")
19
+ local CACHE_FLAG_VALUES = ____cachedEnumValues.CACHE_FLAG_VALUES
20
+ local ITEM_CONFIG_CARD_TYPE_VALUES = ____cachedEnumValues.ITEM_CONFIG_CARD_TYPE_VALUES
21
+ local ITEM_CONFIG_TAG_VALUES = ____cachedEnumValues.ITEM_CONFIG_TAG_VALUES
18
22
  local ____cachedClasses = require("src.core.cachedClasses")
19
23
  local itemConfig = ____cachedClasses.itemConfig
20
24
  local ____constants = require("src.core.constants")
@@ -34,8 +38,6 @@ local isHiddenCollectible = ____collectibles.isHiddenCollectible
34
38
  local isPassiveCollectible = ____collectibles.isPassiveCollectible
35
39
  local ____collectibleTag = require("src.functions.collectibleTag")
36
40
  local collectibleHasTag = ____collectibleTag.collectibleHasTag
37
- local ____enums = require("src.functions.enums")
38
- local getEnumValues = ____enums.getEnumValues
39
41
  local ____flag = require("src.functions.flag")
40
42
  local getFlagName = ____flag.getFlagName
41
43
  local ____rng = require("src.functions.rng")
@@ -223,14 +225,14 @@ function ModdedElementSets.prototype.lazyInitTagToCollectibleTypesMap(self)
223
225
  if self.tagToCollectibleTypesMap.size > 0 then
224
226
  return
225
227
  end
226
- for ____, itemConfigTag in ipairs(getEnumValues(nil, ItemConfigTag)) do
228
+ for ____, itemConfigTag in ipairs(ITEM_CONFIG_TAG_VALUES) do
227
229
  self.tagToCollectibleTypesMap:set(
228
230
  itemConfigTag,
229
231
  __TS__New(Set)
230
232
  )
231
233
  end
232
234
  for ____, collectibleType in ipairs(self:getCollectibleArray()) do
233
- for ____, itemConfigTag in ipairs(getEnumValues(nil, ItemConfigTag)) do
235
+ for ____, itemConfigTag in ipairs(ITEM_CONFIG_TAG_VALUES) do
234
236
  do
235
237
  if not collectibleHasTag(nil, collectibleType, itemConfigTag) then
236
238
  goto __continue44
@@ -250,7 +252,7 @@ function ModdedElementSets.prototype.lazyInitCacheFlagToCollectibleTypesMap(self
250
252
  if self.cacheFlagToCollectibleTypesMap.size > 0 then
251
253
  return
252
254
  end
253
- for ____, cacheFlag in ipairs(getEnumValues(nil, CacheFlag)) do
255
+ for ____, cacheFlag in ipairs(CACHE_FLAG_VALUES) do
254
256
  local collectiblesSet = __TS__New(Set)
255
257
  for ____, collectibleType in ipairs(self:getCollectibleArray()) do
256
258
  if collectibleHasCacheFlag(nil, collectibleType, cacheFlag) then
@@ -264,7 +266,7 @@ function ModdedElementSets.prototype.lazyInitCacheFlagToTrinketTypesMap(self)
264
266
  if self.cacheFlagToTrinketTypesMap.size > 0 then
265
267
  return
266
268
  end
267
- for ____, cacheFlag in ipairs(getEnumValues(nil, CacheFlag)) do
269
+ for ____, cacheFlag in ipairs(CACHE_FLAG_VALUES) do
268
270
  local trinketsSet = __TS__New(Set)
269
271
  for ____, trinketType in ipairs(self.moddedElementDetection:getTrinketTypes()) do
270
272
  if trinketHasCacheFlag(nil, trinketType, cacheFlag) then
@@ -330,7 +332,7 @@ function ModdedElementSets.prototype.lazyInitCardTypes(self)
330
332
  if self.itemConfigCardTypeToCardTypeMap.size > 0 then
331
333
  return
332
334
  end
333
- for ____, itemConfigCardType in ipairs(getEnumValues(nil, ItemConfigCardType)) do
335
+ for ____, itemConfigCardType in ipairs(ITEM_CONFIG_CARD_TYPE_VALUES) do
334
336
  self.itemConfigCardTypeToCardTypeMap:set(
335
337
  itemConfigCardType,
336
338
  __TS__New(Set)
@@ -1 +1 @@
1
- {"version":3,"file":"streakText.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/customStages/streakText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAG7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAMhF,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AA0EzE,UAAU,cAAc;IACtB,GAAG,EAAE;QACH,iDAAiD;QACjD,UAAU,EAAE,OAAO,CAAC;QAEpB,oFAAoF;QACpF,oCAAoC,EAAE,GAAG,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;QAEhE,+BAA+B,EAAE,GAAG,GAAG,IAAI,CAAC;QAE5C,aAAa,EAAE;YACb,SAAS,EAAE,iBAAiB,CAAC;YAC7B,KAAK,EAAE,GAAG,CAAC;YACX,UAAU,EAAE,OAAO,CAAC;SACrB,CAAC;QAEF,gBAAgB,EAAE;YAChB,SAAS,EAAE,iBAAiB,CAAC;YAC7B,KAAK,EAAE,GAAG,CAAC;YACX,UAAU,EAAE,OAAO,CAAC;SACrB,CAAC;KACH,CAAC;CACH;AAGD,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,cAAc,GAAG,IAAI,CAS5D;AA0FD,wBAAgB,yBAAyB,CACvC,CAAC,EAAE,cAAc,EACjB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,MAAM,GACjB,IAAI,CAiBN;AA2ED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,cAAc,GAAG,IAAI,CAW1D"}
1
+ {"version":3,"file":"streakText.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/customStages/streakText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAI7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAKhF,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AA0EzE,UAAU,cAAc;IACtB,GAAG,EAAE;QACH,iDAAiD;QACjD,UAAU,EAAE,OAAO,CAAC;QAEpB,oFAAoF;QACpF,oCAAoC,EAAE,GAAG,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;QAEhE,+BAA+B,EAAE,GAAG,GAAG,IAAI,CAAC;QAE5C,aAAa,EAAE;YACb,SAAS,EAAE,iBAAiB,CAAC;YAC7B,KAAK,EAAE,GAAG,CAAC;YACX,UAAU,EAAE,OAAO,CAAC;SACrB,CAAC;QAEF,gBAAgB,EAAE;YAChB,SAAS,EAAE,iBAAiB,CAAC;YAC7B,KAAK,EAAE,GAAG,CAAC;YACX,UAAU,EAAE,OAAO,CAAC;SACrB,CAAC;KACH,CAAC;CACH;AAGD,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,cAAc,GAAG,IAAI,CAS5D;AA0FD,wBAAgB,yBAAyB,CACvC,CAAC,EAAE,cAAc,EACjB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,MAAM,GACjB,IAAI,CAiBN;AA2ED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,cAAc,GAAG,IAAI,CAW1D"}
@@ -4,7 +4,8 @@ local ____exports = {}
4
4
  local checkEndTopStreakText, trackMapInputPressed, checkStartBottomStreakText, checkEndBottomStreakText, renderStreakText, UI_STREAK_ANIMATION_END_FRAMES, TEXT_STAY_FRAME, TEXT_OUT_FRAME, STREAK_TEXT_BOTTOM_Y_OFFSET, NUM_RENDER_FRAMES_MAP_HELD_BEFORE_STREAK_TEXT, TEXT_IN_ADJUSTMENTS, TEXT_OUT_ADJUSTMENTS, TEXT_IN_SCALES, TEXT_OUT_SCALES
5
5
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
6
6
  local ButtonAction = ____isaac_2Dtypescript_2Ddefinitions.ButtonAction
7
- local ControllerIndex = ____isaac_2Dtypescript_2Ddefinitions.ControllerIndex
7
+ local ____cachedEnumValues = require("src.arrays.cachedEnumValues")
8
+ local CONTROLLER_INDEX_VALUES = ____cachedEnumValues.CONTROLLER_INDEX_VALUES
8
9
  local ____cachedClasses = require("src.core.cachedClasses")
9
10
  local fonts = ____cachedClasses.fonts
10
11
  local game = ____cachedClasses.game
@@ -13,8 +14,6 @@ local KColorDefault = ____constants.KColorDefault
13
14
  local VectorOne = ____constants.VectorOne
14
15
  local ____UIStreakAnimation = require("src.enums.private.UIStreakAnimation")
15
16
  local UIStreakAnimation = ____UIStreakAnimation.UIStreakAnimation
16
- local ____enums = require("src.functions.enums")
17
- local getEnumValues = ____enums.getEnumValues
18
17
  local ____ui = require("src.functions.ui")
19
18
  local getScreenBottomCenterPos = ____ui.getScreenBottomCenterPos
20
19
  local getScreenTopCenterPos = ____ui.getScreenTopCenterPos
@@ -30,7 +29,7 @@ function checkEndTopStreakText(self, v)
30
29
  end
31
30
  end
32
31
  function trackMapInputPressed(self, v)
33
- for ____, controllerIndex in ipairs(getEnumValues(nil, ControllerIndex)) do
32
+ for ____, controllerIndex in ipairs(CONTROLLER_INDEX_VALUES) do
34
33
  local gameFrameCount = game:GetFrameCount()
35
34
  local oldPushedMapFrame = v.run.controllerIndexPushingMapRenderFrame:get(controllerIndex)
36
35
  local isPushingMap = Input.IsActionPressed(ButtonAction.MAP, controllerIndex)
@@ -1 +1 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/extraConsoleCommands/commands.ts"],"names":[],"mappings":"AAqIA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,gEAAgE;AAChE,wBAAgB,MAAM,IAAI,IAAI,CAK7B;AAED,sEAAsE;AACtE,wBAAgB,OAAO,IAAI,IAAI,CAkB9B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,+CAA+C;AAC/C,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED,4CAA4C;AAC5C,wBAAgB,KAAK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,IAAI,IAAI,CAG9B;AAED,sFAAsF;AACtF,wBAAgB,MAAM,IAAI,IAAI,CAQ7B;AAED,wFAAwF;AACxF,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BzC"}
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/extraConsoleCommands/commands.ts"],"names":[],"mappings":"AAuIA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,gEAAgE;AAChE,wBAAgB,MAAM,IAAI,IAAI,CAK7B;AAED,sEAAsE;AACtE,wBAAgB,OAAO,IAAI,IAAI,CAkB9B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,+CAA+C;AAC/C,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED,4CAA4C;AAC5C,wBAAgB,KAAK,IAAI,IAAI,CAG5B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAcjD;AAED,2CAA2C;AAC3C,wBAAgB,EAAE,IAAI,IAAI,CAEzB;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAczC;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAc1C;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE/C;AAED,wCAAwC;AACxC,wBAAgB,IAAI,IAAI,IAAI,CAE3B;AAED,kEAAkE;AAClE,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED,iDAAiD;AACjD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GAAG,IAAI,CAyBrD;AAED,6DAA6D;AAC7D,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BvD;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAyBjD;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAsB1C;AAED,4CAA4C;AAC5C,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,+CAA+C;AAC/C,wBAAgB,YAAY,IAAI,IAAI,CAInC;AAED,yDAAyD;AACzD,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAkB1C;AAED,wCAAwC;AACxC,wBAAgB,KAAK,IAAI,IAAI,CAE5B;AAED,6CAA6C;AAC7C,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED,qDAAqD;AACrD,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED,yDAAyD;AACzD,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED,8CAA8C;AAC9C,wBAAgB,OAAO,IAAI,IAAI,CAG9B;AAED,sFAAsF;AACtF,wBAAgB,MAAM,IAAI,IAAI,CAQ7B;AAED,wFAAwF;AACxF,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BzC"}
@@ -11,12 +11,14 @@ local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
11
11
  local Direction = ____isaac_2Dtypescript_2Ddefinitions.Direction
12
12
  local DisplayFlag = ____isaac_2Dtypescript_2Ddefinitions.DisplayFlag
13
13
  local GameStateFlag = ____isaac_2Dtypescript_2Ddefinitions.GameStateFlag
14
- local GridEntityType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityType
15
14
  local GridRoom = ____isaac_2Dtypescript_2Ddefinitions.GridRoom
16
15
  local LevelStage = ____isaac_2Dtypescript_2Ddefinitions.LevelStage
17
16
  local PillColor = ____isaac_2Dtypescript_2Ddefinitions.PillColor
18
17
  local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
19
18
  local StageType = ____isaac_2Dtypescript_2Ddefinitions.StageType
19
+ local ____cachedEnumValues = require("src.arrays.cachedEnumValues")
20
+ local ACTIVE_SLOT_VALUES = ____cachedEnumValues.ACTIVE_SLOT_VALUES
21
+ local GRID_ENTITY_TYPE_VALUES = ____cachedEnumValues.GRID_ENTITY_TYPE_VALUES
20
22
  local ____cachedClasses = require("src.core.cachedClasses")
21
23
  local game = ____cachedClasses.game
22
24
  local sfxManager = ____cachedClasses.sfxManager
@@ -50,8 +52,6 @@ local ____deepCopyTests = require("src.functions.deepCopyTests")
50
52
  local runDeepCopyTests = ____deepCopyTests.runDeepCopyTests
51
53
  local ____entitiesSpecific = require("src.functions.entitiesSpecific")
52
54
  local getNPCs = ____entitiesSpecific.getNPCs
53
- local ____enums = require("src.functions.enums")
54
- local getEnumValues = ____enums.getEnumValues
55
55
  local ____flag = require("src.functions.flag")
56
56
  local addFlag = ____flag.addFlag
57
57
  local ____gridEntities = require("src.functions.gridEntities")
@@ -662,7 +662,6 @@ function ____exports.grid2(self)
662
662
  end
663
663
  --- Spawns every grid entity, starting at the top-left-most tile.
664
664
  function ____exports.gridEntities(self)
665
- local gridEntityTypes = getEnumValues(nil, GridEntityType)
666
665
  local gridEntityTypeIndex = -1
667
666
  do
668
667
  local y = 0
@@ -671,7 +670,7 @@ function ____exports.gridEntities(self)
671
670
  local x = 0
672
671
  while x <= 12 do
673
672
  gridEntityTypeIndex = gridEntityTypeIndex + 1
674
- local gridEntityType = gridEntityTypes[gridEntityTypeIndex + 1]
673
+ local gridEntityType = GRID_ENTITY_TYPE_VALUES[gridEntityTypeIndex + 1]
675
674
  if gridEntityType == nil then
676
675
  return
677
676
  end
@@ -1008,8 +1007,7 @@ function ____exports.setCharges(self, params)
1008
1007
  print("The provided slot number is invalid: " .. tostring(activeSlotString))
1009
1008
  return
1010
1009
  end
1011
- local activeSlots = getEnumValues(nil, ActiveSlot)
1012
- if not __TS__ArrayIncludes(activeSlots, activeSlot) then
1010
+ if not __TS__ArrayIncludes(ACTIVE_SLOT_VALUES, activeSlot) then
1013
1011
  print("The provided slot number is invalid: " .. tostring(activeSlot))
1014
1012
  return
1015
1013
  end