isaacscript-common 76.2.0 → 77.0.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 (144) hide show
  1. package/dist/classes/features/callbackLogic/CustomGridEntities.d.ts +8 -0
  2. package/dist/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
  3. package/dist/classes/features/callbackLogic/GameReorderedCallbacks.d.ts +6 -0
  4. package/dist/classes/features/callbackLogic/GameReorderedCallbacks.d.ts.map +1 -1
  5. package/dist/classes/features/other/CharacterHealthConversion.d.ts +2 -0
  6. package/dist/classes/features/other/CharacterHealthConversion.d.ts.map +1 -1
  7. package/dist/classes/features/other/CharacterStats.d.ts +2 -0
  8. package/dist/classes/features/other/CharacterStats.d.ts.map +1 -1
  9. package/dist/classes/features/other/CollectibleItemPoolType.d.ts +2 -0
  10. package/dist/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
  11. package/dist/classes/features/other/CustomHotkeys.d.ts +4 -0
  12. package/dist/classes/features/other/CustomHotkeys.d.ts.map +1 -1
  13. package/dist/classes/features/other/CustomItemPools.d.ts +2 -0
  14. package/dist/classes/features/other/CustomItemPools.d.ts.map +1 -1
  15. package/dist/classes/features/other/CustomPickups.d.ts +1 -0
  16. package/dist/classes/features/other/CustomPickups.d.ts.map +1 -1
  17. package/dist/classes/features/other/CustomStages.d.ts +3 -0
  18. package/dist/classes/features/other/CustomStages.d.ts.map +1 -1
  19. package/dist/classes/features/other/DebugDisplay.d.ts +54 -0
  20. package/dist/classes/features/other/DebugDisplay.d.ts.map +1 -1
  21. package/dist/classes/features/other/DeployJSONRoom.d.ts +1 -0
  22. package/dist/classes/features/other/DeployJSONRoom.d.ts.map +1 -1
  23. package/dist/classes/features/other/DisableInputs.d.ts +9 -0
  24. package/dist/classes/features/other/DisableInputs.d.ts.map +1 -1
  25. package/dist/classes/features/other/EdenStartingStatsHealth.d.ts +6 -0
  26. package/dist/classes/features/other/EdenStartingStatsHealth.d.ts.map +1 -1
  27. package/dist/classes/features/other/ExtraConsoleCommands.d.ts +6 -0
  28. package/dist/classes/features/other/ExtraConsoleCommands.d.ts.map +1 -1
  29. package/dist/classes/features/other/FadeInRemover.d.ts +4 -0
  30. package/dist/classes/features/other/FadeInRemover.d.ts.map +1 -1
  31. package/dist/classes/features/other/FastReset.d.ts +4 -0
  32. package/dist/classes/features/other/FastReset.d.ts.map +1 -1
  33. package/dist/classes/features/other/FlyingDetection.d.ts +2 -0
  34. package/dist/classes/features/other/FlyingDetection.d.ts.map +1 -1
  35. package/dist/classes/features/other/FlyingDetection.lua +2 -3
  36. package/dist/classes/features/other/ForgottenSwitch.d.ts +2 -0
  37. package/dist/classes/features/other/ForgottenSwitch.d.ts.map +1 -1
  38. package/dist/classes/features/other/ItemPoolDetection.d.ts +7 -1
  39. package/dist/classes/features/other/ItemPoolDetection.d.ts.map +1 -1
  40. package/dist/classes/features/other/ModdedElementDetection.d.ts +32 -0
  41. package/dist/classes/features/other/ModdedElementDetection.d.ts.map +1 -1
  42. package/dist/classes/features/other/ModdedElementSets.d.ts +88 -20
  43. package/dist/classes/features/other/ModdedElementSets.d.ts.map +1 -1
  44. package/dist/classes/features/other/ModdedElementSets.lua +75 -86
  45. package/dist/classes/features/other/NoSirenSteal.d.ts +1 -0
  46. package/dist/classes/features/other/NoSirenSteal.d.ts.map +1 -1
  47. package/dist/classes/features/other/Pause.d.ts +10 -0
  48. package/dist/classes/features/other/Pause.d.ts.map +1 -1
  49. package/dist/classes/features/other/PersistentEntities.d.ts +2 -0
  50. package/dist/classes/features/other/PersistentEntities.d.ts.map +1 -1
  51. package/dist/classes/features/other/PlayerCollectibleTracking.d.ts +3 -0
  52. package/dist/classes/features/other/PlayerCollectibleTracking.d.ts.map +1 -1
  53. package/dist/classes/features/other/PonyDetection.d.ts +4 -0
  54. package/dist/classes/features/other/PonyDetection.d.ts.map +1 -1
  55. package/dist/classes/features/other/PreventChildEntities.d.ts +2 -0
  56. package/dist/classes/features/other/PreventChildEntities.d.ts.map +1 -1
  57. package/dist/classes/features/other/RoomClearFrame.d.ts +19 -0
  58. package/dist/classes/features/other/RoomClearFrame.d.ts.map +1 -1
  59. package/dist/classes/features/other/RoomClearFrame.lua +8 -2
  60. package/dist/classes/features/other/RoomHistory.d.ts +17 -1
  61. package/dist/classes/features/other/RoomHistory.d.ts.map +1 -1
  62. package/dist/classes/features/other/RunInNFrames.d.ts +9 -2
  63. package/dist/classes/features/other/RunInNFrames.d.ts.map +1 -1
  64. package/dist/classes/features/other/RunNextRun.d.ts +2 -0
  65. package/dist/classes/features/other/RunNextRun.d.ts.map +1 -1
  66. package/dist/classes/features/other/SaveDataManager.d.ts +21 -0
  67. package/dist/classes/features/other/SaveDataManager.d.ts.map +1 -1
  68. package/dist/classes/features/other/SpawnRockAltRewards.d.ts +1 -0
  69. package/dist/classes/features/other/SpawnRockAltRewards.d.ts.map +1 -1
  70. package/dist/classes/features/other/StageHistory.d.ts +3 -0
  71. package/dist/classes/features/other/StageHistory.d.ts.map +1 -1
  72. package/dist/classes/features/other/StartAmbush.d.ts +2 -0
  73. package/dist/classes/features/other/StartAmbush.d.ts.map +1 -1
  74. package/dist/classes/features/other/TaintedLazarusPlayers.d.ts +2 -0
  75. package/dist/classes/features/other/TaintedLazarusPlayers.d.ts.map +1 -1
  76. package/dist/classes/features/other/UnlockAchievementsDetection.d.ts +2 -0
  77. package/dist/classes/features/other/UnlockAchievementsDetection.d.ts.map +1 -1
  78. package/dist/classes/private/CustomCallback.d.ts +0 -1
  79. package/dist/classes/private/CustomCallback.d.ts.map +1 -1
  80. package/dist/classes/private/CustomCallback.lua +0 -19
  81. package/dist/functions/array.d.ts +3 -3
  82. package/dist/functions/array.d.ts.map +1 -1
  83. package/dist/functions/array.lua +34 -28
  84. package/dist/functions/cards.lua +3 -3
  85. package/dist/functions/collectibles.d.ts +2 -2
  86. package/dist/functions/collectibles.d.ts.map +1 -1
  87. package/dist/functions/collectibles.lua +4 -5
  88. package/dist/functions/pills.d.ts +3 -3
  89. package/dist/functions/pills.d.ts.map +1 -1
  90. package/dist/functions/playerTrinkets.d.ts +1 -1
  91. package/dist/functions/playerTrinkets.d.ts.map +1 -1
  92. package/dist/functions/players.d.ts.map +1 -1
  93. package/dist/functions/players.lua +7 -7
  94. package/dist/index.rollup.d.ts +354 -34
  95. package/dist/isaacscript-common.lua +490 -510
  96. package/dist/sets/{itemConfigCardTypesForCardsSet.d.ts → itemConfigCardTypesForCards.d.ts} +2 -2
  97. package/dist/sets/itemConfigCardTypesForCards.d.ts.map +1 -0
  98. package/dist/sets/{itemConfigCardTypesForCardsSet.lua → itemConfigCardTypesForCards.lua} +1 -1
  99. package/package.json +1 -1
  100. package/src/classes/features/callbackLogic/CustomGridEntities.ts +8 -0
  101. package/src/classes/features/callbackLogic/GameReorderedCallbacks.ts +6 -0
  102. package/src/classes/features/other/CharacterHealthConversion.ts +2 -0
  103. package/src/classes/features/other/CharacterStats.ts +2 -0
  104. package/src/classes/features/other/CollectibleItemPoolType.ts +2 -0
  105. package/src/classes/features/other/CustomHotkeys.ts +4 -0
  106. package/src/classes/features/other/CustomItemPools.ts +2 -0
  107. package/src/classes/features/other/CustomPickups.ts +1 -0
  108. package/src/classes/features/other/CustomStages.ts +3 -0
  109. package/src/classes/features/other/DebugDisplay.ts +54 -0
  110. package/src/classes/features/other/DeployJSONRoom.ts +1 -0
  111. package/src/classes/features/other/DisableInputs.ts +9 -0
  112. package/src/classes/features/other/EdenStartingStatsHealth.ts +6 -0
  113. package/src/classes/features/other/ExtraConsoleCommands.ts +6 -0
  114. package/src/classes/features/other/FadeInRemover.ts +4 -0
  115. package/src/classes/features/other/FastReset.ts +4 -0
  116. package/src/classes/features/other/FlyingDetection.ts +2 -0
  117. package/src/classes/features/other/ForgottenSwitch.ts +2 -0
  118. package/src/classes/features/other/ItemPoolDetection.ts +7 -1
  119. package/src/classes/features/other/ModdedElementDetection.ts +32 -0
  120. package/src/classes/features/other/ModdedElementSets.ts +174 -121
  121. package/src/classes/features/other/NoSirenSteal.ts +1 -0
  122. package/src/classes/features/other/Pause.ts +10 -0
  123. package/src/classes/features/other/PersistentEntities.ts +2 -0
  124. package/src/classes/features/other/PlayerCollectibleTracking.ts +3 -0
  125. package/src/classes/features/other/PonyDetection.ts +4 -0
  126. package/src/classes/features/other/PreventChildEntities.ts +2 -0
  127. package/src/classes/features/other/RoomClearFrame.ts +27 -1
  128. package/src/classes/features/other/RoomHistory.ts +17 -1
  129. package/src/classes/features/other/RunInNFrames.ts +9 -2
  130. package/src/classes/features/other/RunNextRun.ts +2 -0
  131. package/src/classes/features/other/SaveDataManager.ts +21 -0
  132. package/src/classes/features/other/SpawnRockAltRewards.ts +1 -0
  133. package/src/classes/features/other/StageHistory.ts +3 -0
  134. package/src/classes/features/other/StartAmbush.ts +2 -0
  135. package/src/classes/features/other/TaintedLazarusPlayers.ts +2 -0
  136. package/src/classes/features/other/UnlockAchievementsDetection.ts +2 -0
  137. package/src/classes/private/CustomCallback.ts +0 -15
  138. package/src/functions/array.ts +12 -5
  139. package/src/functions/cards.ts +2 -2
  140. package/src/functions/collectibles.ts +7 -7
  141. package/src/functions/pills.ts +3 -3
  142. package/src/functions/playerTrinkets.ts +3 -1
  143. package/src/sets/{itemConfigCardTypesForCardsSet.ts → itemConfigCardTypesForCards.ts} +3 -1
  144. package/dist/sets/itemConfigCardTypesForCardsSet.d.ts.map +0 -1
@@ -4,7 +4,6 @@ local __TS__Class = ____lualib.__TS__Class
4
4
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
5
5
  local Set = ____lualib.Set
6
6
  local Map = ____lualib.Map
7
- local __TS__Iterator = ____lualib.__TS__Iterator
8
7
  local __TS__DecorateLegacy = ____lualib.__TS__DecorateLegacy
9
8
  local ____exports = {}
10
9
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
@@ -33,6 +32,9 @@ local ____decorators = require("decorators")
33
32
  local Exported = ____decorators.Exported
34
33
  local ____ISCFeature = require("enums.ISCFeature")
35
34
  local ISCFeature = ____ISCFeature.ISCFeature
35
+ local ____array = require("functions.array")
36
+ local arrayRemove = ____array.arrayRemove
37
+ local getRandomArrayElement = ____array.getRandomArrayElement
36
38
  local ____cards = require("functions.cards")
37
39
  local getItemConfigCardType = ____cards.getItemConfigCardType
38
40
  local ____collectibleTag = require("functions.collectibleTag")
@@ -46,10 +48,7 @@ local isPassiveOrFamiliarCollectible = ____collectibles.isPassiveOrFamiliarColle
46
48
  local ____flag = require("functions.flag")
47
49
  local getFlagName = ____flag.getFlagName
48
50
  local ____set = require("functions.set")
49
- local copySet = ____set.copySet
50
- local deleteSetsFromSet = ____set.deleteSetsFromSet
51
51
  local getRandomSetElement = ____set.getRandomSetElement
52
- local getSortedSetValues = ____set.getSortedSetValues
53
52
  local ____trinkets = require("functions.trinkets")
54
53
  local trinketHasCacheFlag = ____trinkets.trinketHasCacheFlag
55
54
  local ____types = require("functions.types")
@@ -61,12 +60,10 @@ local ____utils = require("functions.utils")
61
60
  local assertDefined = ____utils.assertDefined
62
61
  local iRange = ____utils.iRange
63
62
  local ____repeat = ____utils["repeat"]
64
- local ____itemConfigCardTypesForCardsSet = require("sets.itemConfigCardTypesForCardsSet")
65
- local ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET = ____itemConfigCardTypesForCardsSet.ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET
63
+ local ____itemConfigCardTypesForCards = require("sets.itemConfigCardTypesForCards")
64
+ local ITEM_CONFIG_CARD_TYPES_FOR_CARDS = ____itemConfigCardTypesForCards.ITEM_CONFIG_CARD_TYPES_FOR_CARDS
66
65
  local ____ReadonlyMap = require("types.ReadonlyMap")
67
66
  local ReadonlyMap = ____ReadonlyMap.ReadonlyMap
68
- local ____ReadonlySet = require("types.ReadonlySet")
69
- local ReadonlySet = ____ReadonlySet.ReadonlySet
70
67
  local ____Feature = require("classes.private.Feature")
71
68
  local Feature = ____Feature.Feature
72
69
  local CONDITIONAL_FLYING_COLLECTIBLE_TYPES = {CollectibleType.BIBLE, CollectibleType.EMPTY_VESSEL, CollectibleType.ASTRAL_PROJECTION, CollectibleType.RECALL}
@@ -115,15 +112,15 @@ function ModdedElementSets.prototype.____constructor(self, moddedElementDetectio
115
112
  self.moddedPillEffectsSet = __TS__New(Set)
116
113
  self.cacheFlagToCollectibleTypesMap = __TS__New(Map)
117
114
  self.cacheFlagToTrinketTypesMap = __TS__New(Map)
118
- self.flyingCollectibleTypesSet = __TS__New(Set)
119
- self.permanentFlyingCollectibleTypesSet = __TS__New(Set)
120
- self.flyingTrinketTypesSet = __TS__New(Set)
115
+ self.flyingCollectibleTypes = {}
116
+ self.permanentFlyingCollectibleTypes = {}
117
+ self.flyingTrinketTypes = {}
121
118
  self.tagToCollectibleTypesMap = __TS__New(Map)
122
119
  self.edenActiveCollectibleTypesSet = __TS__New(Set)
123
120
  self.edenPassiveCollectibleTypesSet = __TS__New(Set)
124
121
  self.qualityToCollectibleTypesMap = __TS__New(Map)
125
122
  self.itemConfigCardTypeToCardTypeMap = __TS__New(Map)
126
- self.cardSet = __TS__New(Set)
123
+ self.cardTypeCardArray = {}
127
124
  self.featuresUsed = {ISCFeature.MODDED_ELEMENT_DETECTION}
128
125
  self.moddedElementDetection = moddedElementDetection
129
126
  end
@@ -247,10 +244,7 @@ function ModdedElementSets.prototype.lazyInitModdedPillEffects(self)
247
244
  end
248
245
  function ModdedElementSets.prototype.lazyInitTagToCollectibleTypesMap(self)
249
246
  for ____, itemConfigTag in ipairs(ITEM_CONFIG_TAG_VALUES) do
250
- self.tagToCollectibleTypesMap:set(
251
- itemConfigTag,
252
- __TS__New(Set)
253
- )
247
+ self.tagToCollectibleTypesMap:set(itemConfigTag, {})
254
248
  end
255
249
  for ____, collectibleType in ipairs(self:getCollectibleTypes()) do
256
250
  for ____, itemConfigTag in ipairs(ITEM_CONFIG_TAG_VALUES) do
@@ -258,12 +252,12 @@ function ModdedElementSets.prototype.lazyInitTagToCollectibleTypesMap(self)
258
252
  if not collectibleHasTag(nil, collectibleType, itemConfigTag) then
259
253
  goto __continue37
260
254
  end
261
- local collectibleTypesSet = self.tagToCollectibleTypesMap:get(itemConfigTag)
262
- if collectibleTypesSet == nil then
255
+ local collectibleTypes = self.tagToCollectibleTypesMap:get(itemConfigTag)
256
+ if collectibleTypes == nil then
263
257
  local flagName = getFlagName(nil, itemConfigTag, ItemConfigTag)
264
258
  error("Failed to get the collectible types for item tag: " .. tostring(flagName))
265
259
  end
266
- collectibleTypesSet:add(collectibleType)
260
+ collectibleTypes[#collectibleTypes + 1] = collectibleType
267
261
  end
268
262
  ::__continue37::
269
263
  end
@@ -271,58 +265,55 @@ function ModdedElementSets.prototype.lazyInitTagToCollectibleTypesMap(self)
271
265
  end
272
266
  function ModdedElementSets.prototype.lazyInitCacheFlagToCollectibleTypesMap(self)
273
267
  for ____, cacheFlag in ipairs(CACHE_FLAG_VALUES) do
274
- local collectibleTypeSet = __TS__New(Set)
268
+ local collectibleTypes = {}
275
269
  for ____, collectibleType in ipairs(self:getCollectibleTypes()) do
276
270
  if collectibleHasCacheFlag(nil, collectibleType, cacheFlag) then
277
- collectibleTypeSet:add(collectibleType)
271
+ collectibleTypes[#collectibleTypes + 1] = collectibleType
278
272
  end
279
273
  end
280
- self.cacheFlagToCollectibleTypesMap:set(cacheFlag, collectibleTypeSet)
274
+ self.cacheFlagToCollectibleTypesMap:set(cacheFlag, collectibleTypes)
281
275
  end
282
276
  end
283
277
  function ModdedElementSets.prototype.lazyInitCacheFlagToTrinketTypesMap(self)
284
278
  for ____, cacheFlag in ipairs(CACHE_FLAG_VALUES) do
285
- local trinketTypesSet = __TS__New(Set)
279
+ local trinketTypes = {}
286
280
  for ____, trinketType in ipairs(self:getTrinketTypes()) do
287
281
  if trinketHasCacheFlag(nil, trinketType, cacheFlag) then
288
- trinketTypesSet:add(trinketType)
282
+ trinketTypes[#trinketTypes + 1] = trinketType
289
283
  end
290
284
  end
291
- self.cacheFlagToTrinketTypesMap:set(cacheFlag, trinketTypesSet)
285
+ self.cacheFlagToTrinketTypesMap:set(cacheFlag, trinketTypes)
292
286
  end
293
287
  end
294
288
  function ModdedElementSets.prototype.lazyInitFlyingCollectibleTypesSet(self)
295
- self.flyingCollectibleTypesSet = copySet(
289
+ local collectibleTypesWithFlyingCacheFlag = self:getCollectibleTypesWithCacheFlag(CacheFlag.FLYING)
290
+ local collectibleTypesWithAllCacheFlag = self:getCollectibleTypesWithCacheFlag(CacheFlag.ALL)
291
+ self.flyingCollectibleTypes = arrayRemove(
296
292
  nil,
297
- self:getCollectibleTypesWithCacheFlag(CacheFlag.FLYING)
293
+ collectibleTypesWithFlyingCacheFlag,
294
+ table.unpack(collectibleTypesWithAllCacheFlag)
298
295
  )
299
- local collectiblesWithAllCacheFlag = self:getCollectibleTypesWithCacheFlag(CacheFlag.ALL)
300
- deleteSetsFromSet(nil, self.flyingCollectibleTypesSet, collectiblesWithAllCacheFlag)
301
- local permanentFlyingCollectibleTypes = copySet(nil, self.flyingCollectibleTypesSet)
302
- for ____, collectibleType in ipairs(CONDITIONAL_FLYING_COLLECTIBLE_TYPES) do
303
- permanentFlyingCollectibleTypes:delete(collectibleType)
304
- end
305
- for ____, collectibleType in __TS__Iterator(permanentFlyingCollectibleTypes) do
306
- self.permanentFlyingCollectibleTypesSet:add(collectibleType)
307
- end
308
- end
309
- function ModdedElementSets.prototype.lazyInitFlyingTrinketTypesSet(self)
310
- self.flyingTrinketTypesSet = copySet(
296
+ self.permanentFlyingCollectibleTypes = arrayRemove(
311
297
  nil,
312
- self:getTrinketsTypesWithCacheFlag(CacheFlag.FLYING)
298
+ self.flyingCollectibleTypes,
299
+ table.unpack(CONDITIONAL_FLYING_COLLECTIBLE_TYPES)
313
300
  )
314
- local trinketsWithAllCacheFlag = copySet(
301
+ end
302
+ function ModdedElementSets.prototype.lazyInitFlyingTrinketTypesSet(self)
303
+ local trinketTypesWithFlyingCacheFlag = self:getTrinketsTypesWithCacheFlag(CacheFlag.FLYING)
304
+ local trinketTypesWithAllCacheFlag = self:getTrinketsTypesWithCacheFlag(CacheFlag.ALL)
305
+ local trinketTypesWithAllCacheFlagThatDontGrantFlying = arrayRemove(nil, trinketTypesWithAllCacheFlag, TrinketType.AZAZELS_STUMP)
306
+ self.flyingTrinketTypes = arrayRemove(
315
307
  nil,
316
- self:getTrinketsTypesWithCacheFlag(CacheFlag.ALL)
308
+ trinketTypesWithFlyingCacheFlag,
309
+ table.unpack(trinketTypesWithAllCacheFlagThatDontGrantFlying)
317
310
  )
318
- trinketsWithAllCacheFlag:delete(TrinketType.AZAZELS_STUMP)
319
- deleteSetsFromSet(nil, self.flyingTrinketTypesSet, trinketsWithAllCacheFlag)
320
311
  end
321
312
  function ModdedElementSets.prototype.lazyInitEdenCollectibleTypesSet(self)
322
313
  for ____, collectibleType in ipairs(self:getCollectibleTypes()) do
323
314
  do
324
315
  if isHiddenCollectible(nil, collectibleType) or collectibleHasTag(nil, collectibleType, ItemConfigTag.NO_EDEN) then
325
- goto __continue61
316
+ goto __continue57
326
317
  end
327
318
  if isActiveCollectible(nil, collectibleType) then
328
319
  self.edenActiveCollectibleTypesSet:add(collectibleType)
@@ -331,40 +322,38 @@ function ModdedElementSets.prototype.lazyInitEdenCollectibleTypesSet(self)
331
322
  self.edenPassiveCollectibleTypesSet:add(collectibleType)
332
323
  end
333
324
  end
334
- ::__continue61::
325
+ ::__continue57::
335
326
  end
336
327
  end
337
328
  function ModdedElementSets.prototype.lazyInitQualityToCollectibleTypesMap(self)
338
329
  for ____, quality in ipairs(QUALITIES) do
339
- local collectibleTypesSet = __TS__New(Set)
330
+ local collectibleTypes = {}
340
331
  for ____, collectibleType in ipairs(self:getCollectibleTypes()) do
341
332
  local collectibleTypeQuality = getCollectibleQuality(nil, collectibleType)
342
333
  if collectibleTypeQuality == quality then
343
- collectibleTypesSet:add(collectibleType)
334
+ collectibleTypes[#collectibleTypes + 1] = collectibleType
344
335
  end
345
336
  end
346
- self.qualityToCollectibleTypesMap:set(quality, collectibleTypesSet)
337
+ self.qualityToCollectibleTypesMap:set(quality, collectibleTypes)
347
338
  end
348
339
  end
349
340
  function ModdedElementSets.prototype.lazyInitCardTypes(self)
350
341
  for ____, itemConfigCardType in ipairs(ITEM_CONFIG_CARD_TYPE_VALUES) do
351
- self.itemConfigCardTypeToCardTypeMap:set(
352
- itemConfigCardType,
353
- __TS__New(Set)
354
- )
342
+ self.itemConfigCardTypeToCardTypeMap:set(itemConfigCardType, {})
355
343
  end
356
344
  for ____, cardType in ipairs(self:getCardTypes()) do
357
345
  local itemConfigCardType = getItemConfigCardType(nil, cardType)
358
346
  if itemConfigCardType ~= nil then
359
- local cardTypeSet = self.itemConfigCardTypeToCardTypeMap:get(itemConfigCardType)
347
+ local cardTypes = self.itemConfigCardTypeToCardTypeMap:get(itemConfigCardType)
360
348
  assertDefined(
361
349
  nil,
362
- cardTypeSet,
363
- "Failed to get the card set for item config card type: " .. tostring(itemConfigCardType)
350
+ cardTypes,
351
+ "Failed to get the card types for item config card type: " .. tostring(itemConfigCardType)
364
352
  )
365
- cardTypeSet:add(cardType)
366
- if ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET:has(itemConfigCardType) then
367
- self.cardSet:add(cardType)
353
+ cardTypes[#cardTypes + 1] = cardType
354
+ if ITEM_CONFIG_CARD_TYPES_FOR_CARDS:has(itemConfigCardType) then
355
+ local ____self_cardTypeCardArray_12 = self.cardTypeCardArray
356
+ ____self_cardTypeCardArray_12[#____self_cardTypeCardArray_12 + 1] = cardType
368
357
  end
369
358
  end
370
359
  end
@@ -481,24 +470,24 @@ function ModdedElementSets.prototype.getCollectibleTypesWithCacheFlag(self, cach
481
470
  self:lazyInit()
482
471
  local collectiblesSet = self.cacheFlagToCollectibleTypesMap:get(cacheFlag)
483
472
  if collectiblesSet == nil then
484
- return __TS__New(ReadonlySet)
473
+ return {}
485
474
  end
486
475
  return collectiblesSet
487
476
  end
488
477
  __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCollectibleTypesWithCacheFlag", true)
489
478
  function ModdedElementSets.prototype.getTrinketsTypesWithCacheFlag(self, cacheFlag)
490
479
  self:lazyInit()
491
- local trinketsSet = self.cacheFlagToTrinketTypesMap:get(cacheFlag)
492
- if trinketsSet == nil then
493
- return __TS__New(ReadonlySet)
480
+ local trinketTypes = self.cacheFlagToTrinketTypesMap:get(cacheFlag)
481
+ if trinketTypes == nil then
482
+ return {}
494
483
  end
495
- return trinketsSet
484
+ return trinketTypes
496
485
  end
497
486
  __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getTrinketsTypesWithCacheFlag", true)
498
487
  function ModdedElementSets.prototype.getPlayerCollectiblesWithCacheFlag(self, player, cacheFlag)
499
488
  local collectiblesWithCacheFlag = self:getCollectibleTypesWithCacheFlag(cacheFlag)
500
489
  local playerCollectibles = {}
501
- for ____, collectibleType in ipairs(getSortedSetValues(nil, collectiblesWithCacheFlag)) do
490
+ for ____, collectibleType in ipairs(collectiblesWithCacheFlag) do
502
491
  local numCollectibles = player:GetCollectibleNum(collectibleType, true)
503
492
  ____repeat(
504
493
  nil,
@@ -514,7 +503,7 @@ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getPlayerCollecti
514
503
  function ModdedElementSets.prototype.getPlayerTrinketsWithCacheFlag(self, player, cacheFlag)
515
504
  local trinketTypesWithCacheFlag = self:getTrinketsTypesWithCacheFlag(cacheFlag)
516
505
  local playerTrinkets = __TS__New(Map)
517
- for ____, trinketType in __TS__Iterator(trinketTypesWithCacheFlag) do
506
+ for ____, trinketType in ipairs(trinketTypesWithCacheFlag) do
518
507
  local trinketMultiplier = player:GetTrinketMultiplier(trinketType)
519
508
  if trinketMultiplier > 0 then
520
509
  playerTrinkets:set(trinketType, trinketMultiplier)
@@ -525,12 +514,12 @@ end
525
514
  __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getPlayerTrinketsWithCacheFlag", true)
526
515
  function ModdedElementSets.prototype.getFlyingCollectibleTypes(self, includeConditionalItems)
527
516
  self:lazyInit()
528
- return includeConditionalItems and self.flyingCollectibleTypesSet or self.permanentFlyingCollectibleTypesSet
517
+ return includeConditionalItems and self.flyingCollectibleTypes or self.permanentFlyingCollectibleTypes
529
518
  end
530
519
  __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getFlyingCollectibleTypes", true)
531
520
  function ModdedElementSets.prototype.getFlyingTrinketTypes(self)
532
521
  self:lazyInit()
533
- return self.flyingTrinketTypesSet
522
+ return self.flyingTrinketTypes
534
523
  end
535
524
  __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getFlyingTrinketTypes", true)
536
525
  function ModdedElementSets.prototype.getCollectibleTypesWithTag(self, itemConfigTag)
@@ -547,7 +536,7 @@ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCollectibleTyp
547
536
  function ModdedElementSets.prototype.getPlayerCollectiblesWithTag(self, player, itemConfigTag)
548
537
  local collectibleTypesWithTag = self:getCollectibleTypesWithTag(itemConfigTag)
549
538
  local playerCollectibles = {}
550
- for ____, collectibleType in ipairs(getSortedSetValues(nil, collectibleTypesWithTag)) do
539
+ for ____, collectibleType in ipairs(collectibleTypesWithTag) do
551
540
  local numCollectibles = player:GetCollectibleNum(collectibleType, true)
552
541
  ____repeat(
553
542
  nil,
@@ -573,7 +562,7 @@ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCollectibleTyp
573
562
  function ModdedElementSets.prototype.getPlayerCollectiblesForTransformation(self, player, playerForm)
574
563
  local collectibleForTransformation = self:getCollectibleTypesForTransformation(playerForm)
575
564
  local playerCollectibles = {}
576
- for ____, collectibleType in ipairs(getSortedSetValues(nil, collectibleForTransformation)) do
565
+ for ____, collectibleType in ipairs(collectibleForTransformation) do
577
566
  local numCollectibles = player:GetCollectibleNum(collectibleType, true)
578
567
  ____repeat(
579
568
  nil,
@@ -625,33 +614,33 @@ end
625
614
  __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCollectibleTypesOfQuality", true)
626
615
  function ModdedElementSets.prototype.getPlayerCollectiblesOfQuality(self, player, quality)
627
616
  local collectibleTypesOfQuality = self:getCollectibleTypesOfQuality(quality)
628
- local playerCollectibles = {}
629
- for ____, collectibleType in ipairs(getSortedSetValues(nil, collectibleTypesOfQuality)) do
617
+ local playerCollectibleTypes = {}
618
+ for ____, collectibleType in ipairs(collectibleTypesOfQuality) do
630
619
  local numCollectibles = player:GetCollectibleNum(collectibleType, true)
631
620
  ____repeat(
632
621
  nil,
633
622
  numCollectibles,
634
623
  function()
635
- playerCollectibles[#playerCollectibles + 1] = collectibleType
624
+ playerCollectibleTypes[#playerCollectibleTypes + 1] = collectibleType
636
625
  end
637
626
  )
638
627
  end
639
- return playerCollectibles
628
+ return playerCollectibleTypes
640
629
  end
641
630
  __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getPlayerCollectiblesOfQuality", true)
642
631
  function ModdedElementSets.prototype.getCardTypesOfType(self, ...)
643
632
  local itemConfigCardTypes = {...}
644
633
  self:lazyInit()
645
- local matchingCardTypes = __TS__New(Set)
634
+ local matchingCardTypes = {}
646
635
  for ____, itemConfigCardType in ipairs(itemConfigCardTypes) do
647
- local cardTypeSet = self.itemConfigCardTypeToCardTypeMap:get(itemConfigCardType)
636
+ local cardTypes = self.itemConfigCardTypeToCardTypeMap:get(itemConfigCardType)
648
637
  assertDefined(
649
638
  nil,
650
- cardTypeSet,
651
- "Failed to get the card type set for item config type: " .. tostring(itemConfigCardType)
639
+ cardTypes,
640
+ "Failed to get the card types for item config type: " .. tostring(itemConfigCardType)
652
641
  )
653
- for ____, cardType in __TS__Iterator(cardTypeSet) do
654
- matchingCardTypes:add(cardType)
642
+ for ____, cardType in ipairs(cardTypes) do
643
+ matchingCardTypes[#matchingCardTypes + 1] = cardType
655
644
  end
656
645
  end
657
646
  return matchingCardTypes
@@ -661,8 +650,8 @@ function ModdedElementSets.prototype.getRandomCardTypeOfType(self, itemConfigCar
661
650
  if exceptions == nil then
662
651
  exceptions = {}
663
652
  end
664
- local cardTypeSet = self:getCardTypesOfType(itemConfigCardType)
665
- return getRandomSetElement(nil, cardTypeSet, seedOrRNG, exceptions)
653
+ local cardTypes = self:getCardTypesOfType(itemConfigCardType)
654
+ return getRandomArrayElement(nil, cardTypes, seedOrRNG, exceptions)
666
655
  end
667
656
  __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getRandomCardTypeOfType", true)
668
657
  function ModdedElementSets.prototype.getRandomCard(self, seedOrRNG, exceptions)
@@ -670,16 +659,16 @@ function ModdedElementSets.prototype.getRandomCard(self, seedOrRNG, exceptions)
670
659
  exceptions = {}
671
660
  end
672
661
  self:lazyInit()
673
- return getRandomSetElement(nil, self.cardSet, seedOrRNG, exceptions)
662
+ return getRandomArrayElement(nil, self.cardTypeCardArray, seedOrRNG, exceptions)
674
663
  end
675
664
  __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getRandomCard", true)
676
665
  function ModdedElementSets.prototype.getRandomRune(self, seedOrRNG, exceptions)
677
666
  if exceptions == nil then
678
667
  exceptions = {}
679
668
  end
680
- local runesSet = self:getCardTypesOfType(ItemConfigCardType.RUNE)
681
- runesSet:delete(CardType.RUNE_SHARD)
682
- return getRandomSetElement(nil, runesSet, seedOrRNG, exceptions)
669
+ local runeCardTypes = self:getCardTypesOfType(ItemConfigCardType.RUNE)
670
+ exceptions[#exceptions + 1] = CardType.RUNE_SHARD
671
+ return getRandomArrayElement(nil, runeCardTypes, seedOrRNG, exceptions)
683
672
  end
684
673
  __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getRandomRune", true)
685
674
  return ____exports
@@ -13,6 +13,7 @@ export declare class NoSirenSteal extends Feature {
13
13
  * @param familiarVariant The familiar variant to blacklist.
14
14
  * @param familiarSubType The sub-type to blacklist. Optional. The default is to blacklist all
15
15
  * sub-types of the given variant.
16
+ * @public
16
17
  */
17
18
  setFamiliarNoSirenSteal(familiarVariant: FamiliarVariant, familiarSubType?: int): void;
18
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NoSirenSteal.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/NoSirenSteal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAGpE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAUhD,qBAAa,YAAa,SAAQ,OAAO;IAoBvC,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAErC;IAEF,OAAO,CAAC,2BAA2B;IAgBnC,OAAO,CAAC,oBAAoB;IA2B5B;;;;;;;;;OASG;IAEI,uBAAuB,CAC5B,eAAe,EAAE,eAAe,EAChC,eAAe,CAAC,EAAE,GAAG,GACpB,IAAI;CAOR"}
1
+ {"version":3,"file":"NoSirenSteal.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/NoSirenSteal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAGpE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAUhD,qBAAa,YAAa,SAAQ,OAAO;IAoBvC,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAErC;IAEF,OAAO,CAAC,2BAA2B;IAgBnC,OAAO,CAAC,oBAAoB;IA2B5B;;;;;;;;;;OAUG;IAEI,uBAAuB,CAC5B,eAAe,EAAE,eAAe,EAChC,eAAe,CAAC,EAAE,GAAG,GACpB,IAAI;CAOR"}
@@ -4,6 +4,12 @@ export declare class Pause extends Feature {
4
4
  private readonly postUpdate;
5
5
  private stopTearsAndProjectilesFromMoving;
6
6
  private readonly inputActionGetActionValue;
7
+ /**
8
+ * Helper function to check if the pause feature from `isaacscript-common` is currently
9
+ * pseudo-pausing the game.
10
+ *
11
+ * @public
12
+ */
7
13
  isPaused(): boolean;
8
14
  /**
9
15
  * Helper function to emulate what happens when the player pauses the game. Use the `unpause`
@@ -15,12 +21,16 @@ export declare class Pause extends Feature {
15
21
  * `ButtonAction.CONSOLE`)
16
22
  *
17
23
  * In order to use this function, you must upgrade your mod with `ISCFeature.PAUSE`.
24
+ *
25
+ * @public
18
26
  */
19
27
  pause(): void;
20
28
  /**
21
29
  * Helper function to put things back to normal after the `pause` function was used.
22
30
  *
23
31
  * In order to use this function, you must upgrade your mod with `ISCFeature.PAUSE`.
32
+ *
33
+ * @public
24
34
  */
25
35
  unpause(): void;
26
36
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Pause.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/Pause.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAoBhD,qBAAa,KAAM,SAAQ,OAAO;IAIhC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAsB9C,OAAO,CAAC,QAAQ,CAAC,UAAU,CASzB;IAEF,OAAO,CAAC,iCAAiC;IA0BzC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAiBxC;IAGK,QAAQ,IAAI,OAAO;IAI1B;;;;;;;;;;OAUG;IAEI,KAAK,IAAI,IAAI;IAyDpB;;;;OAIG;IAEI,OAAO,IAAI,IAAI;CA6BvB"}
1
+ {"version":3,"file":"Pause.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/Pause.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAoBhD,qBAAa,KAAM,SAAQ,OAAO;IAIhC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAsB9C,OAAO,CAAC,QAAQ,CAAC,UAAU,CASzB;IAEF,OAAO,CAAC,iCAAiC;IA0BzC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAiBxC;IAEF;;;;;OAKG;IAEI,QAAQ,IAAI,OAAO;IAI1B;;;;;;;;;;;;OAYG;IAEI,KAAK,IAAI,IAAI;IAyDpB;;;;;;OAMG;IAEI,OAAO,IAAI,IAAI;CA6BvB"}
@@ -21,6 +21,7 @@ export declare class PersistentEntities extends Feature {
21
21
  * @param removeEntity Optional. True by default. Set to false if you want to stop an entity from
22
22
  * being persistent but you don't want to actually remove the
23
23
  * currently-spawned entity from the room.
24
+ * @public
24
25
  */
25
26
  removePersistentEntity(persistentEntityIndex: int, removeEntity?: boolean): void;
26
27
  /**
@@ -40,6 +41,7 @@ export declare class PersistentEntities extends Feature {
40
41
  *
41
42
  * @returns An object containing the entity and the persistent entity index. You can use the index
42
43
  * with the `removePersistentEntity` function.
44
+ * @public
43
45
  */
44
46
  spawnPersistentEntity(entityType: EntityType, variant: int, subType: int, position: Vector): {
45
47
  entity: Entity;
@@ -1 +1 @@
1
- {"version":3,"file":"PersistentEntities.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/PersistentEntities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAO1E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAmChD,qBAAa,kBAAmB,SAAQ,OAAO;IAI7C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAc;IAqB1C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAgB/B;IAEF;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAoBrC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAkBnC;IAEF,OAAO,CAAC,aAAa;IAsBrB;;;;;;;;;;;OAWG;IAEI,sBAAsB,CAC3B,qBAAqB,EAAE,GAAG,EAC1B,YAAY,UAAO,GAClB,IAAI;IAiBP;;;;;;;;;;;;;;;;;OAiBG;IAEI,qBAAqB,CAC1B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,MAAM,GACf;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,GAAG,CAAA;KAAE;CAa5C"}
1
+ {"version":3,"file":"PersistentEntities.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/PersistentEntities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAO1E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAmChD,qBAAa,kBAAmB,SAAQ,OAAO;IAI7C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAc;IAqB1C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAgB/B;IAEF;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAoBrC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAkBnC;IAEF,OAAO,CAAC,aAAa;IAsBrB;;;;;;;;;;;;OAYG;IAEI,sBAAsB,CAC3B,qBAAqB,EAAE,GAAG,EAC1B,YAAY,UAAO,GAClB,IAAI;IAiBP;;;;;;;;;;;;;;;;;;OAkBG;IAEI,qBAAqB,CAC1B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,MAAM,GACf;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,GAAG,CAAA;KAAE;CAa5C"}
@@ -25,6 +25,7 @@ export declare class PlayerCollectibleTracking extends Feature {
25
25
  * @param player The player to get the collectible types for.
26
26
  * @param includeActiveCollectibles Optional. If true, will include all active collectibles.
27
27
  * Default is true.
28
+ * @public
28
29
  */
29
30
  getPlayerCollectibleTypes(player: EntityPlayer, includeActiveCollectibles?: boolean): readonly CollectibleType[];
30
31
  /**
@@ -35,6 +36,8 @@ export declare class PlayerCollectibleTracking extends Feature {
35
36
  *
36
37
  * In order to use this function, you must upgrade your mod with
37
38
  * `ISCFeature.PLAYER_COLLECTIBLE_TRACKING`.
39
+ *
40
+ * @public
38
41
  */
39
42
  getPlayerLastPassiveCollectibleType(player: EntityPlayer): CollectibleType | undefined;
40
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PlayerCollectibleTracking.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/PlayerCollectibleTracking.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAQpE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAYhD,qBAAa,yBAA0B,SAAQ,OAAO;IAqBpD,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAUzC;IAGF,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAU3C;IAEF;;;;;;;;;;;;;;;;;;;;;;OAsBG;IAEI,yBAAyB,CAC9B,MAAM,EAAE,YAAY,EACpB,yBAAyB,UAAO,GAC/B,SAAS,eAAe,EAAE;IAgB7B;;;;;;;;OAQG;IAEI,mCAAmC,CACxC,MAAM,EAAE,YAAY,GACnB,eAAe,GAAG,SAAS;CAI/B"}
1
+ {"version":3,"file":"PlayerCollectibleTracking.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/PlayerCollectibleTracking.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAQpE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAYhD,qBAAa,yBAA0B,SAAQ,OAAO;IAqBpD,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAUzC;IAGF,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAU3C;IAEF;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IAEI,yBAAyB,CAC9B,MAAM,EAAE,YAAY,EACpB,yBAAyB,UAAO,GAC/B,SAAS,eAAe,EAAE;IAgB7B;;;;;;;;;;OAUG;IAEI,mCAAmC,CACxC,MAAM,EAAE,YAAY,GACnB,eAAe,GAAG,SAAS;CAI/B"}
@@ -7,6 +7,8 @@ export declare class PonyDetection extends Feature {
7
7
  * Detecting this is difficult, as the temporary effect will disappear upon entering a new room.
8
8
  *
9
9
  * In order to use this function, you must upgrade your mod with `ISCFeature.PONY_DETECTION`.
10
+ *
11
+ * @public
10
12
  */
11
13
  isPlayerUsingPony(player: EntityPlayer): boolean;
12
14
  /**
@@ -14,6 +16,8 @@ export declare class PonyDetection extends Feature {
14
16
  * Detecting this is difficult, as the temporary effect will disappear upon entering a new room.
15
17
  *
16
18
  * In order to use this function, you must upgrade your mod with `ISCFeature.PONY_DETECTION`.
19
+ *
20
+ * @public
17
21
  */
18
22
  anyPlayerUsingPony(): boolean;
19
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PonyDetection.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/PonyDetection.ts"],"names":[],"mappings":";AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAchD,qBAAa,aAAc,SAAQ,OAAO;IAiBxC,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAmBzC;IAEF;;;;;OAKG;IAEI,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO;IAIvD;;;;;OAKG;IAEI,kBAAkB,IAAI,OAAO;CAIrC"}
1
+ {"version":3,"file":"PonyDetection.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/PonyDetection.ts"],"names":[],"mappings":";AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAchD,qBAAa,aAAc,SAAQ,OAAO;IAiBxC,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAmBzC;IAEF;;;;;;;OAOG;IAEI,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO;IAIvD;;;;;;;OAOG;IAEI,kBAAkB,IAAI,OAAO;CAIrC"}
@@ -12,6 +12,8 @@ export declare class PreventChildEntities extends Feature {
12
12
  *
13
13
  * In order to use this function, you must upgrade your mod with
14
14
  * `ISCFeature.PREVENT_CHILD_ENTITIES`.
15
+ *
16
+ * @public
15
17
  */
16
18
  preventChildEntities(entity: Entity): void;
17
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PreventChildEntities.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/PreventChildEntities.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,oBAAqB,SAAQ,OAAO;IAe/C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAY1B;IAEF;;;;;;;;;;OAUG;IAEI,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAIlD"}
1
+ {"version":3,"file":"PreventChildEntities.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/PreventChildEntities.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,oBAAqB,SAAQ,OAAO;IAe/C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAY1B;IAEF;;;;;;;;;;;;OAYG;IAEI,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAIlD"}
@@ -6,14 +6,33 @@ export declare class RoomClearFrame extends Feature {
6
6
  * Helper function to get the game frame (i.e. `Game.GetFrameCount`) of the last time that this
7
7
  * room was cleared. Returns undefined if the room has never been cleared.
8
8
  *
9
+ * Note that if the room is left, all room clear tracking for it will be discarded.
10
+ *
9
11
  * In order to use this function, you must upgrade your mod with `ISCFeature.ROOM_CLEAR_FRAME`.
12
+ *
13
+ * @public
10
14
  */
11
15
  getRoomClearGameFrame(): int | undefined;
16
+ /**
17
+ * Helper function to get the render frame (i.e. `Isaac.GetFrameCount`) of the last time that this
18
+ * room was cleared. Returns undefined if the room has never been cleared.
19
+ *
20
+ * Note that if the room is left, all room clear tracking for it will be discarded.
21
+ *
22
+ * In order to use this function, you must upgrade your mod with `ISCFeature.ROOM_CLEAR_FRAME`.
23
+ *
24
+ * @public
25
+ */
26
+ getRoomClearRenderFrame(): int | undefined;
12
27
  /**
13
28
  * Helper function to get the room frame (i.e. `Room.GetFrameCount`) of the last time that this
14
29
  * room was cleared. Returns undefined if the room has never been cleared.
15
30
  *
31
+ * Note that if the room is left, all room clear tracking for it will be discarded.
32
+ *
16
33
  * In order to use this function, you must upgrade your mod with `ISCFeature.ROOM_CLEAR_FRAME`.
34
+ *
35
+ * @public
17
36
  */
18
37
  getRoomClearRoomFrame(): int | undefined;
19
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RoomClearFrame.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/RoomClearFrame.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAShD,qBAAa,cAAe,SAAQ,OAAO;IAkBzC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAOvC;IAEF;;;;;OAKG;IAEI,qBAAqB,IAAI,GAAG,GAAG,SAAS;IAI/C;;;;;OAKG;IAEI,qBAAqB,IAAI,GAAG,GAAG,SAAS;CAGhD"}
1
+ {"version":3,"file":"RoomClearFrame.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/RoomClearFrame.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAUhD,qBAAa,cAAe,SAAQ,OAAO;IAkBzC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CASvC;IAEF;;;;;;;;;OASG;IAEI,qBAAqB,IAAI,GAAG,GAAG,SAAS;IAI/C;;;;;;;;;OASG;IAEI,uBAAuB,IAAI,GAAG,GAAG,SAAS;IAIjD;;;;;;;;;OASG;IAEI,qBAAqB,IAAI,GAAG,GAAG,SAAS;CAGhD"}
@@ -11,7 +11,7 @@ local ____ModCallbackCustom = require("enums.ModCallbackCustom")
11
11
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
12
12
  local ____Feature = require("classes.private.Feature")
13
13
  local Feature = ____Feature.Feature
14
- local v = {room = {roomClearGameFrame = nil, roomClearRoomFrame = nil}}
14
+ local v = {room = {roomClearGameFrame = nil, roomClearRenderFrame = nil, roomClearRoomFrame = nil}}
15
15
  ____exports.RoomClearFrame = __TS__Class()
16
16
  local RoomClearFrame = ____exports.RoomClearFrame
17
17
  RoomClearFrame.name = "RoomClearFrame"
@@ -23,7 +23,9 @@ function RoomClearFrame.prototype.____constructor(self)
23
23
  local gameFrameCount = game:GetFrameCount()
24
24
  local room = game:GetRoom()
25
25
  local roomFrameCount = room:GetFrameCount()
26
+ local renderFrameCount = Isaac.GetFrameCount()
26
27
  v.room.roomClearGameFrame = gameFrameCount
28
+ v.room.roomClearRenderFrame = renderFrameCount
27
29
  v.room.roomClearRoomFrame = roomFrameCount
28
30
  end
29
31
  self.customCallbacksUsed = {{ModCallbackCustom.POST_ROOM_CLEAR_CHANGED, self.postRoomClearChangedTrue}}
@@ -32,8 +34,12 @@ function RoomClearFrame.prototype.getRoomClearGameFrame(self)
32
34
  return v.room.roomClearGameFrame
33
35
  end
34
36
  __TS__DecorateLegacy({Exported}, RoomClearFrame.prototype, "getRoomClearGameFrame", true)
37
+ function RoomClearFrame.prototype.getRoomClearRenderFrame(self)
38
+ return v.room.roomClearRenderFrame
39
+ end
40
+ __TS__DecorateLegacy({Exported}, RoomClearFrame.prototype, "getRoomClearRenderFrame", true)
35
41
  function RoomClearFrame.prototype.getRoomClearRoomFrame(self)
36
- return v.room.roomClearGameFrame
42
+ return v.room.roomClearRoomFrame
37
43
  end
38
44
  __TS__DecorateLegacy({Exported}, RoomClearFrame.prototype, "getRoomClearRoomFrame", true)
39
45
  return ____exports
@@ -7,6 +7,8 @@ export declare class RoomHistory extends Feature {
7
7
  * Helper function to manually delete the last room description from the internal array. This is
8
8
  * useful if a mod needs to send the player to a room temporarily and the room should not count as
9
9
  * the player having traveled to that room.
10
+ *
11
+ * @public
10
12
  */
11
13
  deleteLastRoomDescription(): void;
12
14
  /**
@@ -14,6 +16,8 @@ export declare class RoomHistory extends Feature {
14
16
  * run. (Re-entering the same room will increment the number returned.)
15
17
  *
16
18
  * In order to use this function, you must upgrade your mod with `ISCFeature.ROOM_HISTORY`.
19
+ *
20
+ * @public
17
21
  */
18
22
  getNumRoomsEntered(): int;
19
23
  /**
@@ -21,6 +25,8 @@ export declare class RoomHistory extends Feature {
21
25
  * this run.
22
26
  *
23
27
  * In order to use this function, you must upgrade your mod with `ISCFeature.ROOM_HISTORY`.
28
+ *
29
+ * @public
24
30
  */
25
31
  getRoomHistory(): ReadonlyArray<Readonly<RoomDescription>>;
26
32
  /**
@@ -30,6 +36,8 @@ export declare class RoomHistory extends Feature {
30
36
  * the run), the starting room will be returned.
31
37
  *
32
38
  * In order to use this function, you must upgrade your mod with `ISCFeature.ROOM_HISTORY`.
39
+ *
40
+ * @public
33
41
  */
34
42
  getPreviousRoomDescription(): Readonly<RoomDescription>;
35
43
  /**
@@ -42,9 +50,15 @@ export declare class RoomHistory extends Feature {
42
50
  * of the run.
43
51
  *
44
52
  * In order to use this function, you must upgrade your mod with `ISCFeature.ROOM_HISTORY`.
53
+ *
54
+ * @public
45
55
  */
46
56
  getLatestRoomDescription(): Readonly<RoomDescription> | undefined;
47
- /** Helper function to detect if the player is on the first room of the room. */
57
+ /**
58
+ * Helper function to detect if the player is on the first room of the room.
59
+ *
60
+ * @public
61
+ */
48
62
  inFirstRoom(): boolean;
49
63
  /**
50
64
  * Helper function to detect if the game is in the state where the room index has changed to a new
@@ -56,6 +70,8 @@ export declare class RoomHistory extends Feature {
56
70
  * entity is despawning.
57
71
  *
58
72
  * In order to use this function, you must upgrade your mod with `ISCFeature.ROOM_HISTORY`.
73
+ *
74
+ * @public
59
75
  */
60
76
  isLeavingRoom(): boolean;
61
77
  }