isaacscript-common 26.1.2 → 26.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/index.rollup.d.ts +45 -0
  2. package/dist/isaacscript-common.lua +87 -47
  3. package/dist/src/classes/features/other/CustomTrapdoors.lua +1 -2
  4. package/dist/src/classes/features/other/DisableInputs.d.ts.map +1 -1
  5. package/dist/src/classes/features/other/DisableInputs.lua +4 -3
  6. package/dist/src/classes/features/other/ModdedElementSets.d.ts.map +1 -1
  7. package/dist/src/classes/features/other/ModdedElementSets.lua +4 -2
  8. package/dist/src/classes/features/other/Pause.d.ts.map +1 -1
  9. package/dist/src/classes/features/other/Pause.lua +3 -2
  10. package/dist/src/functions/array.d.ts.map +1 -1
  11. package/dist/src/functions/array.lua +3 -2
  12. package/dist/src/functions/doors.d.ts.map +1 -1
  13. package/dist/src/functions/doors.lua +4 -2
  14. package/dist/src/functions/enums.d.ts.map +1 -1
  15. package/dist/src/functions/enums.lua +3 -2
  16. package/dist/src/functions/gridEntities.lua +3 -3
  17. package/dist/src/functions/level.d.ts +10 -0
  18. package/dist/src/functions/level.d.ts.map +1 -1
  19. package/dist/src/functions/level.lua +11 -0
  20. package/dist/src/functions/levelGrid.d.ts +10 -0
  21. package/dist/src/functions/levelGrid.d.ts.map +1 -1
  22. package/dist/src/functions/levelGrid.lua +17 -7
  23. package/dist/src/functions/logMisc.d.ts.map +1 -1
  24. package/dist/src/functions/logMisc.lua +4 -2
  25. package/dist/src/functions/players.d.ts.map +1 -1
  26. package/dist/src/functions/players.lua +6 -5
  27. package/dist/src/functions/random.d.ts.map +1 -1
  28. package/dist/src/functions/random.lua +3 -2
  29. package/dist/src/functions/roomShapeWalls.d.ts.map +1 -1
  30. package/dist/src/functions/roomShapeWalls.lua +12 -11
  31. package/dist/src/functions/rooms.d.ts.map +1 -1
  32. package/dist/src/functions/rooms.lua +3 -2
  33. package/dist/src/functions/set.d.ts.map +1 -1
  34. package/dist/src/functions/set.lua +3 -1
  35. package/dist/src/functions/utils.d.ts.map +1 -1
  36. package/dist/src/functions/utils.lua +3 -2
  37. package/dist/src/index.d.ts +1 -0
  38. package/dist/src/index.d.ts.map +1 -1
  39. package/dist/src/index.lua +8 -0
  40. package/package.json +1 -1
  41. package/src/classes/features/other/CustomTrapdoors.ts +1 -1
  42. package/src/classes/features/other/DisableInputs.ts +3 -2
  43. package/src/classes/features/other/ModdedElementSets.ts +3 -2
  44. package/src/classes/features/other/Pause.ts +2 -1
  45. package/src/functions/array.ts +2 -1
  46. package/src/functions/doors.ts +3 -2
  47. package/src/functions/enums.ts +2 -1
  48. package/src/functions/gridEntities.ts +3 -3
  49. package/src/functions/level.ts +18 -1
  50. package/src/functions/levelGrid.ts +21 -7
  51. package/src/functions/logMisc.ts +3 -2
  52. package/src/functions/players.ts +5 -4
  53. package/src/functions/random.ts +2 -1
  54. package/src/functions/roomShapeWalls.ts +6 -5
  55. package/src/functions/rooms.ts +2 -1
  56. package/src/functions/set.ts +2 -1
  57. package/src/functions/utils.ts +2 -1
  58. package/src/index.ts +1 -0
@@ -3855,6 +3855,7 @@ declare abstract class Feature {
3855
3855
  constructor();
3856
3856
  }
3857
3857
 
3858
+ /** Helper function to fill every possible square with a red room. */
3858
3859
  export declare function fillLevelWithRedRooms(): void;
3859
3860
 
3860
3861
  /**
@@ -6172,6 +6173,17 @@ export declare function getRoomDescriptor(roomGridIndex?: int): RoomDescriptor;
6172
6173
  */
6173
6174
  export declare function getRoomDescriptorReadOnly(): Readonly<RoomDescriptor>;
6174
6175
 
6176
+ /**
6177
+ * Helper function to get an array of all of the room descriptors for rooms that match the specified
6178
+ * room type.
6179
+ *
6180
+ * This function only searches through rooms in the current dimension.
6181
+ *
6182
+ * This function is variadic, meaning that you can specify N arguments to get the combined room
6183
+ * descriptors for N room types.
6184
+ */
6185
+ export declare function getRoomDescriptorsForType(...roomTypes: RoomType[]): RoomDescriptor[];
6186
+
6175
6187
  /**
6176
6188
  * Helper function to get a particular room's minimap display flags (e.g. whether or not it is
6177
6189
  * visible and so on).
@@ -8654,6 +8666,15 @@ export declare const LEVEL_GRID_COLUMN_HEIGHT = 13;
8654
8666
  */
8655
8667
  export declare const LEVEL_GRID_ROW_WIDTH = 13;
8656
8668
 
8669
+ /**
8670
+ * Helper function to check to see if the current floor has one or more of a specific room type in
8671
+ * it.
8672
+ *
8673
+ * This function is variadic, meaning that you can pass as many room types as you want to check for.
8674
+ * This function will return true if any of the room types are found.
8675
+ */
8676
+ export declare function levelHasRoomType(...roomTypes: RoomType[]): boolean;
8677
+
8657
8678
  /**
8658
8679
  * Helper function to reset an unlocked door back to a locked state. Doing this is non-trivial
8659
8680
  * because in addition to calling the `GridEntityDoor.SetLocked` method, you must also:
@@ -11986,6 +12007,30 @@ export declare function newPickingUpItem(): PickingUpItem;
11986
12007
  /** Returns a `PlayerHealth` object with all zeros. */
11987
12008
  export declare function newPlayerHealth(): PlayerHealth;
11988
12009
 
12010
+ /**
12011
+ * Helper function to create a read-only `Color` object. (Otherwise, you would have to manually
12012
+ * specify both the type and the constructor.)
12013
+ *
12014
+ * Note that read-only colors will be writable at run-time.
12015
+ */
12016
+ export declare function newReadonlyColor(r: float, g: float, b: float, a?: float, ro?: int, go?: int, bo?: int): Readonly<Color>;
12017
+
12018
+ /**
12019
+ * Helper function to create a read-only `KColor` object. (Otherwise, you would have to manually
12020
+ * specify both the type and the constructor.)
12021
+ *
12022
+ * Note that read-only colors will be writable at run-time.
12023
+ */
12024
+ export declare function newReadonlyKColor(r: float, g: float, b: float, a: float): Readonly<KColor>;
12025
+
12026
+ /**
12027
+ * Helper function to create a read-only `Vector` object. (Otherwise, you would have to manually
12028
+ * specify both the type and the constructor.)
12029
+ *
12030
+ * Note that read-only vectors will be writable at run-time.
12031
+ */
12032
+ export declare function newReadonlyVector(x: float, y: float): Readonly<Vector>;
12033
+
11989
12034
  /**
11990
12035
  * Helper function to initialize a new RNG object using Blade's recommended shift index.
11991
12036
  *
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 26.1.2
3
+ isaacscript-common 26.2.1
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -16193,9 +16193,10 @@ return ____exports
16193
16193
  end,
16194
16194
  ["src.functions.random"] = function(...)
16195
16195
  local ____lualib = require("lualib_bundle")
16196
- local Set = ____lualib.Set
16197
16196
  local __TS__New = ____lualib.__TS__New
16198
16197
  local ____exports = {}
16198
+ local ____ReadonlySet = require("src.types.ReadonlySet")
16199
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
16199
16200
  local ____rng = require("src.functions.rng")
16200
16201
  local getRandomSeed = ____rng.getRandomSeed
16201
16202
  local isRNG = ____rng.isRNG
@@ -16235,7 +16236,7 @@ function ____exports.getRandomInt(self, min, max, seedOrRNG, exceptions)
16235
16236
  min = oldMax
16236
16237
  max = oldMin
16237
16238
  end
16238
- local exceptionsSet = __TS__New(Set, exceptions)
16239
+ local exceptionsSet = __TS__New(ReadonlySet, exceptions)
16239
16240
  local randomInt
16240
16241
  repeat
16241
16242
  do
@@ -16381,13 +16382,14 @@ return ____exports
16381
16382
  ["src.functions.utils"] = function(...)
16382
16383
  local ____lualib = require("lualib_bundle")
16383
16384
  local __TS__ArrayMap = ____lualib.__TS__ArrayMap
16384
- local Set = ____lualib.Set
16385
16385
  local __TS__New = ____lualib.__TS__New
16386
16386
  local ____exports = {}
16387
16387
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
16388
16388
  local RenderMode = ____isaac_2Dtypescript_2Ddefinitions.RenderMode
16389
16389
  local ____cachedClasses = require("src.core.cachedClasses")
16390
16390
  local game = ____cachedClasses.game
16391
+ local ____ReadonlySet = require("src.types.ReadonlySet")
16392
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
16391
16393
  local ____playerIndex = require("src.functions.playerIndex")
16392
16394
  local getAllPlayers = ____playerIndex.getAllPlayers
16393
16395
  local ____types = require("src.functions.types")
@@ -16435,7 +16437,7 @@ function ____exports.isMultiplayer(self)
16435
16437
  players,
16436
16438
  function(____, player) return player.ControllerIndex end
16437
16439
  )
16438
- local controllerIndexesSet = __TS__New(Set, controllerIndexes)
16440
+ local controllerIndexesSet = __TS__New(ReadonlySet, controllerIndexes)
16439
16441
  return controllerIndexesSet.size > 1
16440
16442
  end
16441
16443
  function ____exports.isReflectionRender(self)
@@ -16473,7 +16475,6 @@ local ____lualib = require("lualib_bundle")
16473
16475
  local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
16474
16476
  local __TS__ArrayIndexOf = ____lualib.__TS__ArrayIndexOf
16475
16477
  local __TS__ArraySplice = ____lualib.__TS__ArraySplice
16476
- local Set = ____lualib.Set
16477
16478
  local __TS__New = ____lualib.__TS__New
16478
16479
  local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
16479
16480
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
@@ -16486,6 +16487,8 @@ local __TS__ObjectKeys = ____lualib.__TS__ObjectKeys
16486
16487
  local __TS__ArraySome = ____lualib.__TS__ArraySome
16487
16488
  local __TS__ArrayReduce = ____lualib.__TS__ArrayReduce
16488
16489
  local ____exports = {}
16490
+ local ____ReadonlySet = require("src.types.ReadonlySet")
16491
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
16489
16492
  local ____random = require("src.functions.random")
16490
16493
  local getRandomInt = ____random.getRandomInt
16491
16494
  local ____rng = require("src.functions.rng")
@@ -16603,7 +16606,7 @@ function ____exports.arrayRemoveAll(self, originalArray, ...)
16603
16606
  end
16604
16607
  function ____exports.arrayRemoveIndex(self, originalArray, ...)
16605
16608
  local indexesToRemove = {...}
16606
- local indexesToRemoveSet = __TS__New(Set, indexesToRemove)
16609
+ local indexesToRemoveSet = __TS__New(ReadonlySet, indexesToRemove)
16607
16610
  local array = {}
16608
16611
  __TS__ArrayForEach(
16609
16612
  originalArray,
@@ -16823,9 +16826,10 @@ return ____exports
16823
16826
  local ____lualib = require("lualib_bundle")
16824
16827
  local __TS__ArraySort = ____lualib.__TS__ArraySort
16825
16828
  local __TS__ArrayMap = ____lualib.__TS__ArrayMap
16826
- local Set = ____lualib.Set
16827
16829
  local __TS__New = ____lualib.__TS__New
16828
16830
  local ____exports = {}
16831
+ local ____ReadonlySet = require("src.types.ReadonlySet")
16832
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
16829
16833
  local ____array = require("src.functions.array")
16830
16834
  local getRandomArrayElement = ____array.getRandomArrayElement
16831
16835
  local ____rng = require("src.functions.rng")
@@ -16919,7 +16923,7 @@ function ____exports.validateEnumContiguous(self, transpiledEnumName, transpiled
16919
16923
  if type(lastValue) ~= "number" then
16920
16924
  error("Failed to validate that an enum was contiguous, since the last value was not a number.")
16921
16925
  end
16922
- local valuesSet = __TS__New(Set, values)
16926
+ local valuesSet = __TS__New(ReadonlySet, values)
16923
16927
  for ____, value in ipairs(iRange(nil, lastValue)) do
16924
16928
  if not valuesSet:has(value) then
16925
16929
  error((("Failed to find a custom enum value of " .. tostring(value)) .. " for: ") .. transpiledEnumName)
@@ -20873,6 +20877,8 @@ local ____roomShapeToDoorSlotCoordinates = require("src.objects.roomShapeToDoorS
20873
20877
  local ROOM_SHAPE_TO_DOOR_SLOT_COORDINATES = ____roomShapeToDoorSlotCoordinates.ROOM_SHAPE_TO_DOOR_SLOT_COORDINATES
20874
20878
  local ____roomShapeToDoorSlots = require("src.objects.roomShapeToDoorSlots")
20875
20879
  local ROOM_SHAPE_TO_DOOR_SLOTS = ____roomShapeToDoorSlots.ROOM_SHAPE_TO_DOOR_SLOTS
20880
+ local ____ReadonlySet = require("src.types.ReadonlySet")
20881
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
20876
20882
  local ____bitwise = require("src.functions.bitwise")
20877
20883
  local arrayToBitFlags = ____bitwise.arrayToBitFlags
20878
20884
  local ____direction = require("src.functions.direction")
@@ -20899,7 +20905,7 @@ function ____exports.getDoors(self, ...)
20899
20905
  local roomTypes = {...}
20900
20906
  local room = game:GetRoom()
20901
20907
  local roomShape = room:GetRoomShape()
20902
- local roomTypesSet = __TS__New(Set, roomTypes)
20908
+ local roomTypesSet = __TS__New(ReadonlySet, roomTypes)
20903
20909
  local possibleDoorSlots = ____exports.getDoorSlotsForRoomShape(nil, roomShape)
20904
20910
  local doors = {}
20905
20911
  for ____, doorSlot in __TS__Iterator(possibleDoorSlots) do
@@ -21025,7 +21031,7 @@ function ____exports.getDoorSlotEnterPosition(self, doorSlot)
21025
21031
  end
21026
21032
  function ____exports.getDoorsToRoomIndex(self, ...)
21027
21033
  local roomGridIndex = {...}
21028
- local roomGridIndexesSet = __TS__New(Set, roomGridIndex)
21034
+ local roomGridIndexesSet = __TS__New(ReadonlySet, roomGridIndex)
21029
21035
  local doors = ____exports.getDoors(nil)
21030
21036
  return __TS__ArrayFilter(
21031
21037
  doors,
@@ -22070,7 +22076,6 @@ return ____exports
22070
22076
  ["src.functions.players"] = function(...)
22071
22077
  local ____lualib = require("lualib_bundle")
22072
22078
  local __TS__ArraySome = ____lualib.__TS__ArraySome
22073
- local Set = ____lualib.Set
22074
22079
  local __TS__New = ____lualib.__TS__New
22075
22080
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
22076
22081
  local __TS__ArrayMap = ____lualib.__TS__ArrayMap
@@ -22092,6 +22097,8 @@ local TRINKET_SLOT_VALUES = ____cachedEnumValues.TRINKET_SLOT_VALUES
22092
22097
  local ____cachedClasses = require("src.core.cachedClasses")
22093
22098
  local game = ____cachedClasses.game
22094
22099
  local itemConfig = ____cachedClasses.itemConfig
22100
+ local ____ReadonlySet = require("src.types.ReadonlySet")
22101
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
22095
22102
  local ____array = require("src.functions.array")
22096
22103
  local getLastElement = ____array.getLastElement
22097
22104
  local sumArray = ____array.sumArray
@@ -22117,7 +22124,7 @@ function ____exports.getCharacters(self)
22117
22124
  end
22118
22125
  function ____exports.isCharacter(self, player, ...)
22119
22126
  local characters = {...}
22120
- local characterSet = __TS__New(Set, characters)
22127
+ local characterSet = __TS__New(ReadonlySet, characters)
22121
22128
  local character = player:GetPlayerType()
22122
22129
  return characterSet:has(character)
22123
22130
  end
@@ -22164,7 +22171,7 @@ function ____exports.anyPlayerHasTrinket(self, trinketType)
22164
22171
  end
22165
22172
  function ____exports.anyPlayerIs(self, ...)
22166
22173
  local matchingCharacters = {...}
22167
- local matchingCharacterSet = __TS__New(Set, matchingCharacters)
22174
+ local matchingCharacterSet = __TS__New(ReadonlySet, matchingCharacters)
22168
22175
  local characters = ____exports.getCharacters(nil)
22169
22176
  return __TS__ArraySome(
22170
22177
  characters,
@@ -22309,7 +22316,7 @@ function ____exports.getPlayerNumHitsRemaining(self, player)
22309
22316
  end
22310
22317
  function ____exports.getPlayersOfType(self, ...)
22311
22318
  local characters = {...}
22312
- local charactersSet = __TS__New(Set, characters)
22319
+ local charactersSet = __TS__New(ReadonlySet, characters)
22313
22320
  local players = getPlayers(nil)
22314
22321
  return __TS__ArrayFilter(
22315
22322
  players,
@@ -22372,7 +22379,7 @@ function ____exports.hasCollectible(self, player, ...)
22372
22379
  end
22373
22380
  function ____exports.hasCollectibleInActiveSlot(self, player, collectibleType, ...)
22374
22381
  local activeSlots = {...}
22375
- local matchingActiveSlotsSet = __TS__New(Set, activeSlots)
22382
+ local matchingActiveSlotsSet = __TS__New(ReadonlySet, activeSlots)
22376
22383
  local activeItemSlots = ____exports.getActiveItemSlots(nil, player, collectibleType)
22377
22384
  return __TS__ArraySome(
22378
22385
  activeItemSlots,
@@ -26544,7 +26551,6 @@ local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
26544
26551
  local __TS__ArrayMap = ____lualib.__TS__ArrayMap
26545
26552
  local __TS__StringIncludes = ____lualib.__TS__StringIncludes
26546
26553
  local __TS__ArraySome = ____lualib.__TS__ArraySome
26547
- local Set = ____lualib.Set
26548
26554
  local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
26549
26555
  local ____exports = {}
26550
26556
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
@@ -26570,6 +26576,8 @@ local ____roomTypeNames = require("src.objects.roomTypeNames")
26570
26576
  local ROOM_TYPE_NAMES = ____roomTypeNames.ROOM_TYPE_NAMES
26571
26577
  local ____mineShaftRoomSubTypesSet = require("src.sets.mineShaftRoomSubTypesSet")
26572
26578
  local MINE_SHAFT_ROOM_SUB_TYPE_SET = ____mineShaftRoomSubTypesSet.MINE_SHAFT_ROOM_SUB_TYPE_SET
26579
+ local ____ReadonlySet = require("src.types.ReadonlySet")
26580
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
26573
26581
  local ____dimensions = require("src.functions.dimensions")
26574
26582
  local getAllDimensions = ____dimensions.getAllDimensions
26575
26583
  local inDimension = ____dimensions.inDimension
@@ -26823,7 +26831,7 @@ function ____exports.isAllRoomsClear(self, onlyCheckRoomTypes)
26823
26831
  if onlyCheckRoomTypes == nil then
26824
26832
  matchingRooms = rooms
26825
26833
  else
26826
- local roomTypeWhitelist = __TS__New(Set, onlyCheckRoomTypes)
26834
+ local roomTypeWhitelist = __TS__New(ReadonlySet, onlyCheckRoomTypes)
26827
26835
  matchingRooms = __TS__ArrayFilter(
26828
26836
  rooms,
26829
26837
  function(____, roomDescriptor) return roomDescriptor.Data ~= nil and roomTypeWhitelist:has(roomDescriptor.Data.Type) end
@@ -27070,7 +27078,7 @@ function ____exports.getGridEntities(self, ...)
27070
27078
  if #gridEntityTypes == 0 then
27071
27079
  return gridEntities
27072
27080
  end
27073
- local gridEntityTypesSet = __TS__New(Set, gridEntityTypes)
27081
+ local gridEntityTypesSet = __TS__New(ReadonlySet, gridEntityTypes)
27074
27082
  return __TS__ArrayFilter(
27075
27083
  gridEntities,
27076
27084
  function(____, gridEntity)
@@ -27085,7 +27093,7 @@ function ____exports.getGridEntitiesExcept(self, ...)
27085
27093
  if #gridEntityTypes == 0 then
27086
27094
  return gridEntities
27087
27095
  end
27088
- local gridEntityTypesSet = __TS__New(Set, gridEntityTypes)
27096
+ local gridEntityTypesSet = __TS__New(ReadonlySet, gridEntityTypes)
27089
27097
  return __TS__ArrayFilter(
27090
27098
  gridEntities,
27091
27099
  function(____, gridEntity)
@@ -27199,7 +27207,7 @@ function ____exports.isPostBossVoidPortal(self, gridEntity)
27199
27207
  end
27200
27208
  function ____exports.removeAllGridEntitiesExcept(self, ...)
27201
27209
  local gridEntityTypes = {...}
27202
- local gridEntityTypeExceptions = __TS__New(Set, gridEntityTypes)
27210
+ local gridEntityTypeExceptions = __TS__New(ReadonlySet, gridEntityTypes)
27203
27211
  local gridEntities = ____exports.getGridEntities(nil)
27204
27212
  local removedGridEntities = {}
27205
27213
  for ____, gridEntity in ipairs(gridEntities) do
@@ -27791,6 +27799,8 @@ local __TS__ArrayMap = ____lualib.__TS__ArrayMap
27791
27799
  local __TS__Spread = ____lualib.__TS__Spread
27792
27800
  local __TS__ArraySort = ____lualib.__TS__ArraySort
27793
27801
  local ____exports = {}
27802
+ local ____ReadonlySet = require("src.types.ReadonlySet")
27803
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
27794
27804
  local ____array = require("src.functions.array")
27795
27805
  local getArrayCombinations = ____array.getArrayCombinations
27796
27806
  local getRandomArrayElement = ____array.getRandomArrayElement
@@ -27860,7 +27870,7 @@ function ____exports.getSetCombinations(self, set, includeEmptyArray)
27860
27870
  local combinations = getArrayCombinations(nil, values, includeEmptyArray)
27861
27871
  return __TS__ArrayMap(
27862
27872
  combinations,
27863
- function(____, array) return __TS__New(Set, array) end
27873
+ function(____, array) return __TS__New(ReadonlySet, array) end
27864
27874
  )
27865
27875
  end
27866
27876
  function ____exports.setAdd(self, set, ...)
@@ -28462,6 +28472,8 @@ local ____cachedClasses = require("src.core.cachedClasses")
28462
28472
  local game = ____cachedClasses.game
28463
28473
  local musicManager = ____cachedClasses.musicManager
28464
28474
  local sfxManager = ____cachedClasses.sfxManager
28475
+ local ____ReadonlySet = require("src.types.ReadonlySet")
28476
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
28465
28477
  local ____array = require("src.functions.array")
28466
28478
  local arrayToString = ____array.arrayToString
28467
28479
  local isArray = ____array.isArray
@@ -28773,9 +28785,9 @@ end
28773
28785
  function ____exports.logTableDifferences(table1, table2)
28774
28786
  log("Comparing two Lua tables:")
28775
28787
  local table1Keys = __TS__ObjectKeys(table1)
28776
- local table1KeysSet = __TS__New(Set, table1Keys)
28788
+ local table1KeysSet = __TS__New(ReadonlySet, table1Keys)
28777
28789
  local table2Keys = __TS__ObjectKeys(table2)
28778
- local table2KeysSet = __TS__New(Set, table2Keys)
28790
+ local table2KeysSet = __TS__New(ReadonlySet, table2Keys)
28779
28791
  local keysSet = combineSets(nil, table1KeysSet, table2KeysSet)
28780
28792
  local keys = {__TS__Spread(keysSet:values())}
28781
28793
  __TS__ArraySort(keys)
@@ -36208,6 +36220,8 @@ local ____itemConfigCardTypesForCardsSet = require("src.sets.itemConfigCardTypes
36208
36220
  local ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET = ____itemConfigCardTypesForCardsSet.ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET
36209
36221
  local ____ReadonlyMap = require("src.types.ReadonlyMap")
36210
36222
  local ReadonlyMap = ____ReadonlyMap.ReadonlyMap
36223
+ local ____ReadonlySet = require("src.types.ReadonlySet")
36224
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
36211
36225
  local ____Feature = require("src.classes.private.Feature")
36212
36226
  local Feature = ____Feature.Feature
36213
36227
  local CONDITIONAL_FLYING_COLLECTIBLE_TYPES = {CollectibleType.BIBLE, CollectibleType.EMPTY_VESSEL, CollectibleType.ASTRAL_PROJECTION, CollectibleType.RECALL}
@@ -36548,7 +36562,7 @@ function ModdedElementSets.prototype.getCollectiblesWithCacheFlag(self, cacheFla
36548
36562
  self:lazyInitCacheFlagToCollectibleTypesMap()
36549
36563
  local collectiblesSet = self.cacheFlagToCollectibleTypesMap:get(cacheFlag)
36550
36564
  if collectiblesSet == nil then
36551
- return __TS__New(Set)
36565
+ return __TS__New(ReadonlySet)
36552
36566
  end
36553
36567
  return collectiblesSet
36554
36568
  end
@@ -36745,7 +36759,7 @@ function ModdedElementSets.prototype.getTrinketsWithCacheFlag(self, cacheFlag)
36745
36759
  self:lazyInitCacheFlagToTrinketTypesMap()
36746
36760
  local trinketsSet = self.cacheFlagToTrinketTypesMap:get(cacheFlag)
36747
36761
  if trinketsSet == nil then
36748
- return __TS__New(Set)
36762
+ return __TS__New(ReadonlySet)
36749
36763
  end
36750
36764
  return trinketsSet
36751
36765
  end
@@ -39287,7 +39301,6 @@ local __TS__Class = ____lualib.__TS__Class
39287
39301
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
39288
39302
  local __TS__Iterator = ____lualib.__TS__Iterator
39289
39303
  local __TS__Decorate = ____lualib.__TS__Decorate
39290
- local Set = ____lualib.Set
39291
39304
  local ____exports = {}
39292
39305
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
39293
39306
  local InputHook = ____isaac_2Dtypescript_2Ddefinitions.InputHook
@@ -39297,6 +39310,8 @@ local Exported = ____decorators.Exported
39297
39310
  local ____input = require("src.functions.input")
39298
39311
  local getMoveActions = ____input.getMoveActions
39299
39312
  local getShootActions = ____input.getShootActions
39313
+ local ____ReadonlySet = require("src.types.ReadonlySet")
39314
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
39300
39315
  local ____Feature = require("src.classes.private.Feature")
39301
39316
  local Feature = ____Feature.Feature
39302
39317
  local v = {run = {
@@ -39348,13 +39363,13 @@ function DisableInputs.prototype.enableAllInputs(self, key)
39348
39363
  end
39349
39364
  function DisableInputs.prototype.disableInputs(self, key, ...)
39350
39365
  local buttonActions = {...}
39351
- local buttonActionsSet = __TS__New(Set, buttonActions)
39366
+ local buttonActionsSet = __TS__New(ReadonlySet, buttonActions)
39352
39367
  v.run.disableInputs:set(key, buttonActionsSet)
39353
39368
  end
39354
39369
  function DisableInputs.prototype.disableAllInputs(self, key)
39355
39370
  v.run.disableAllInputsWithWhitelistMap:set(
39356
39371
  key,
39357
- __TS__New(Set)
39372
+ __TS__New(ReadonlySet)
39358
39373
  )
39359
39374
  v.run.enableAllInputsWithBlacklistMap:delete(key)
39360
39375
  end
@@ -39865,7 +39880,6 @@ local __TS__New = ____lualib.__TS__New
39865
39880
  local Map = ____lualib.Map
39866
39881
  local __TS__Class = ____lualib.__TS__Class
39867
39882
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
39868
- local Set = ____lualib.Set
39869
39883
  local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
39870
39884
  local __TS__Decorate = ____lualib.__TS__Decorate
39871
39885
  local __TS__ArraySome = ____lualib.__TS__ArraySome
@@ -40207,7 +40221,7 @@ function CustomTrapdoors.prototype.playerTouchedCustomTrapdoor(self, gridEntity,
40207
40221
  if tstlClassName == nil then
40208
40222
  error("Failed to find get the class name for the custom trapdoor feature.")
40209
40223
  end
40210
- local whitelist = __TS__New(Set, {ButtonAction.CONSOLE})
40224
+ local whitelist = __TS__New(ReadonlySet, {ButtonAction.CONSOLE})
40211
40225
  self.disableInputs:disableAllInputsExceptFor(tstlClassName, whitelist)
40212
40226
  setPlayerAttributes(nil, player, gridEntity.Position)
40213
40227
  dropTaintedForgotten(nil, player)
@@ -42427,7 +42441,6 @@ local __TS__SparseArrayNew = ____lualib.__TS__SparseArrayNew
42427
42441
  local __TS__SparseArrayPush = ____lualib.__TS__SparseArrayPush
42428
42442
  local __TS__SparseArraySpread = ____lualib.__TS__SparseArraySpread
42429
42443
  local __TS__Decorate = ____lualib.__TS__Decorate
42430
- local Set = ____lualib.Set
42431
42444
  local ____exports = {}
42432
42445
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
42433
42446
  local ButtonAction = ____isaac_2Dtypescript_2Ddefinitions.ButtonAction
@@ -42453,6 +42466,8 @@ local ____players = require("src.functions.players")
42453
42466
  local useActiveItemTemp = ____players.useActiveItemTemp
42454
42467
  local ____tstlClass = require("src.functions.tstlClass")
42455
42468
  local getTSTLClassName = ____tstlClass.getTSTLClassName
42469
+ local ____ReadonlySet = require("src.types.ReadonlySet")
42470
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
42456
42471
  local ____Feature = require("src.classes.private.Feature")
42457
42472
  local Feature = ____Feature.Feature
42458
42473
  local v = {run = {
@@ -42550,7 +42565,7 @@ function Pause.prototype.pause(self)
42550
42565
  if tstlClassName == nil then
42551
42566
  error("Failed to get the class name for the pause feature.")
42552
42567
  end
42553
- local whitelist = __TS__New(Set, {ButtonAction.MENU_CONFIRM, ButtonAction.CONSOLE})
42568
+ local whitelist = __TS__New(ReadonlySet, {ButtonAction.MENU_CONFIRM, ButtonAction.CONSOLE})
42554
42569
  self.disableInputs:disableAllInputsExceptFor(tstlClassName, whitelist)
42555
42570
  for ____, player in ipairs(getAllPlayers(nil)) do
42556
42571
  player.ControlsEnabled = false
@@ -44061,7 +44076,6 @@ local __TS__New = ____lualib.__TS__New
44061
44076
  local __TS__SparseArrayNew = ____lualib.__TS__SparseArrayNew
44062
44077
  local __TS__SparseArrayPush = ____lualib.__TS__SparseArrayPush
44063
44078
  local __TS__SparseArraySpread = ____lualib.__TS__SparseArraySpread
44064
- local Set = ____lualib.Set
44065
44079
  local ____exports = {}
44066
44080
  local getVanillaWallGridIndexSetForRoomShape, getWallGridIndexSetForRectangleRoomShape
44067
44081
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
@@ -44073,6 +44087,8 @@ local ____cachedClasses = require("src.core.cachedClasses")
44073
44087
  local game = ____cachedClasses.game
44074
44088
  local ____CornerType = require("src.enums.CornerType")
44075
44089
  local CornerType = ____CornerType.CornerType
44090
+ local ____ReadonlySet = require("src.types.ReadonlySet")
44091
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
44076
44092
  local ____gridIndex = require("src.functions.gridIndex")
44077
44093
  local getGridIndexesBetween = ____gridIndex.getGridIndexesBetween
44078
44094
  local ____rooms = require("src.functions.rooms")
@@ -44093,7 +44109,7 @@ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
44093
44109
  if ____cond7 then
44094
44110
  do
44095
44111
  local topMiddle, topRight, middleLeft, middle, bottomLeft, bottomRight = table.unpack(corners)
44096
- local ____Set_1 = Set
44112
+ local ____ReadonlySet_1 = ReadonlySet
44097
44113
  local ____array_0 = __TS__SparseArrayNew(table.unpack(getGridIndexesBetween(nil, topMiddle.gridIndex, topRight.gridIndex, roomShape)))
44098
44114
  __TS__SparseArrayPush(
44099
44115
  ____array_0,
@@ -44116,7 +44132,7 @@ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
44116
44132
  table.unpack(getGridIndexesBetween(nil, topRight.gridIndex, bottomRight.gridIndex, roomShape))
44117
44133
  )
44118
44134
  return __TS__New(
44119
- ____Set_1,
44135
+ ____ReadonlySet_1,
44120
44136
  {__TS__SparseArraySpread(____array_0)}
44121
44137
  )
44122
44138
  end
@@ -44125,7 +44141,7 @@ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
44125
44141
  if ____cond7 then
44126
44142
  do
44127
44143
  local topLeft, topMiddle, middle, middleRight, bottomLeft, bottomRight = table.unpack(corners)
44128
- local ____Set_3 = Set
44144
+ local ____ReadonlySet_3 = ReadonlySet
44129
44145
  local ____array_2 = __TS__SparseArrayNew(table.unpack(getGridIndexesBetween(nil, topLeft.gridIndex, topMiddle.gridIndex, roomShape)))
44130
44146
  __TS__SparseArrayPush(
44131
44147
  ____array_2,
@@ -44148,7 +44164,7 @@ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
44148
44164
  table.unpack(getGridIndexesBetween(nil, middleRight.gridIndex, bottomRight.gridIndex, roomShape))
44149
44165
  )
44150
44166
  return __TS__New(
44151
- ____Set_3,
44167
+ ____ReadonlySet_3,
44152
44168
  {__TS__SparseArraySpread(____array_2)}
44153
44169
  )
44154
44170
  end
@@ -44157,7 +44173,7 @@ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
44157
44173
  if ____cond7 then
44158
44174
  do
44159
44175
  local topLeft, topRight, middleLeft, middle, bottomMiddle, bottomRight = table.unpack(corners)
44160
- local ____Set_5 = Set
44176
+ local ____ReadonlySet_5 = ReadonlySet
44161
44177
  local ____array_4 = __TS__SparseArrayNew(table.unpack(getGridIndexesBetween(nil, topLeft.gridIndex, topRight.gridIndex, roomShape)))
44162
44178
  __TS__SparseArrayPush(
44163
44179
  ____array_4,
@@ -44180,7 +44196,7 @@ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
44180
44196
  table.unpack(getGridIndexesBetween(nil, topRight.gridIndex, bottomRight.gridIndex, roomShape))
44181
44197
  )
44182
44198
  return __TS__New(
44183
- ____Set_5,
44199
+ ____ReadonlySet_5,
44184
44200
  {__TS__SparseArraySpread(____array_4)}
44185
44201
  )
44186
44202
  end
@@ -44189,7 +44205,7 @@ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
44189
44205
  if ____cond7 then
44190
44206
  do
44191
44207
  local topLeft, topRight, middle, middleRight, bottomLeft, bottomMiddle = table.unpack(corners)
44192
- local ____Set_7 = Set
44208
+ local ____ReadonlySet_7 = ReadonlySet
44193
44209
  local ____array_6 = __TS__SparseArrayNew(table.unpack(getGridIndexesBetween(nil, topLeft.gridIndex, topRight.gridIndex, roomShape)))
44194
44210
  __TS__SparseArrayPush(
44195
44211
  ____array_6,
@@ -44212,7 +44228,7 @@ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
44212
44228
  table.unpack(getGridIndexesBetween(nil, topRight.gridIndex, middleRight.gridIndex, roomShape))
44213
44229
  )
44214
44230
  return __TS__New(
44215
- ____Set_7,
44231
+ ____ReadonlySet_7,
44216
44232
  {__TS__SparseArraySpread(____array_6)}
44217
44233
  )
44218
44234
  end
@@ -44229,7 +44245,7 @@ function getWallGridIndexSetForRectangleRoomShape(self, roomShape, corners)
44229
44245
  error("Failed to get the correct amount of corners for rectangular room shape.")
44230
44246
  end
44231
44247
  local topLeft, topRight, bottomLeft, bottomRight = table.unpack(corners)
44232
- local ____Set_9 = Set
44248
+ local ____ReadonlySet_9 = ReadonlySet
44233
44249
  local ____array_8 = __TS__SparseArrayNew(table.unpack(getGridIndexesBetween(nil, topLeft.gridIndex, topRight.gridIndex, roomShape)))
44234
44250
  __TS__SparseArrayPush(
44235
44251
  ____array_8,
@@ -44244,7 +44260,7 @@ function getWallGridIndexSetForRectangleRoomShape(self, roomShape, corners)
44244
44260
  table.unpack(getGridIndexesBetween(nil, topRight.gridIndex, bottomRight.gridIndex, roomShape))
44245
44261
  )
44246
44262
  return __TS__New(
44247
- ____Set_9,
44263
+ ____ReadonlySet_9,
44248
44264
  {__TS__SparseArraySpread(____array_8)}
44249
44265
  )
44250
44266
  end
@@ -45912,15 +45928,18 @@ function ____exports.getRoomAdjacentGridIndexes(self, roomGridIndex)
45912
45928
  end
45913
45929
  return ____exports.getRoomShapeAdjacentExistingGridIndexes(nil, roomDescriptor.SafeGridIndex, roomData.Shape)
45914
45930
  end
45915
- function ____exports.getRoomGridIndexesForType(self, ...)
45931
+ function ____exports.getRoomDescriptorsForType(self, ...)
45916
45932
  local roomTypesSet = __TS__New(Set, {...})
45917
45933
  local rooms = getRoomsInsideGrid(nil)
45918
- local matchingRooms = __TS__ArrayFilter(
45934
+ return __TS__ArrayFilter(
45919
45935
  rooms,
45920
45936
  function(____, roomDescriptor) return roomDescriptor.Data ~= nil and roomTypesSet:has(roomDescriptor.Data.Type) end
45921
45937
  )
45938
+ end
45939
+ function ____exports.getRoomGridIndexesForType(self, ...)
45940
+ local roomDescriptors = ____exports.getRoomDescriptorsForType(nil, ...)
45922
45941
  return __TS__ArrayMap(
45923
- matchingRooms,
45942
+ roomDescriptors,
45924
45943
  function(____, roomDescriptor) return roomDescriptor.SafeGridIndex end
45925
45944
  )
45926
45945
  end
@@ -51713,6 +51732,7 @@ local DOOR_SLOT_VALUES = ____cachedEnumValues.DOOR_SLOT_VALUES
51713
51732
  local ____cachedClasses = require("src.core.cachedClasses")
51714
51733
  local game = ____cachedClasses.game
51715
51734
  local ____levelGrid = require("src.functions.levelGrid")
51735
+ local getRoomDescriptorsForType = ____levelGrid.getRoomDescriptorsForType
51716
51736
  local isDoorSlotValidAtGridIndexForRedRoom = ____levelGrid.isDoorSlotValidAtGridIndexForRedRoom
51717
51737
  local ____rooms = require("src.functions.rooms")
51718
51738
  local getNumRooms = ____rooms.getNumRooms
@@ -51734,6 +51754,10 @@ function ____exports.fillLevelWithRedRooms(self)
51734
51754
  end
51735
51755
  until not (numRoomsInGrid ~= getNumRooms(nil))
51736
51756
  end
51757
+ function ____exports.levelHasRoomType(self, ...)
51758
+ local roomDescriptors = getRoomDescriptorsForType(nil, ...)
51759
+ return #roomDescriptors > 0
51760
+ end
51737
51761
  return ____exports
51738
51762
  end,
51739
51763
  ["src.functions.minimap"] = function(...)
@@ -52959,6 +52983,14 @@ do
52959
52983
  end
52960
52984
  end
52961
52985
  end
52986
+ do
52987
+ local ____export = require("src.functions.readOnly")
52988
+ for ____exportKey, ____exportValue in pairs(____export) do
52989
+ if ____exportKey ~= "default" then
52990
+ ____exports[____exportKey] = ____exportValue
52991
+ end
52992
+ end
52993
+ end
52962
52994
  do
52963
52995
  local ____export = require("src.functions.revive")
52964
52996
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -54059,6 +54091,14 @@ do
54059
54091
  end
54060
54092
  end
54061
54093
  end
54094
+ do
54095
+ local ____export = require("src.functions.readOnly")
54096
+ for ____exportKey, ____exportValue in pairs(____export) do
54097
+ if ____exportKey ~= "default" then
54098
+ ____exports[____exportKey] = ____exportValue
54099
+ end
54100
+ end
54101
+ end
54062
54102
  do
54063
54103
  local ____export = require("src.functions.revive")
54064
54104
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -3,7 +3,6 @@ local __TS__New = ____lualib.__TS__New
3
3
  local Map = ____lualib.Map
4
4
  local __TS__Class = ____lualib.__TS__Class
5
5
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
6
- local Set = ____lualib.Set
7
6
  local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
8
7
  local __TS__Decorate = ____lualib.__TS__Decorate
9
8
  local __TS__ArraySome = ____lualib.__TS__ArraySome
@@ -346,7 +345,7 @@ function CustomTrapdoors.prototype.playerTouchedCustomTrapdoor(self, gridEntity,
346
345
  if tstlClassName == nil then
347
346
  error("Failed to find get the class name for the custom trapdoor feature.")
348
347
  end
349
- local whitelist = __TS__New(Set, {ButtonAction.CONSOLE})
348
+ local whitelist = __TS__New(ReadonlySet, {ButtonAction.CONSOLE})
350
349
  self.disableInputs:disableAllInputsExceptFor(tstlClassName, whitelist)
351
350
  setPlayerAttributes(nil, player, gridEntity.Position)
352
351
  dropTaintedForgotten(nil, player)
@@ -1 +1 @@
1
- {"version":3,"file":"DisableInputs.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/DisableInputs.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AA4BhD,qBAAa,aAAc,SAAQ,OAAO;IAiCxC,OAAO,CAAC,eAAe,CAIsB;IAG7C,OAAO,CAAC,iBAAiB,CAIoB;IAG7C,OAAO,CAAC,cAAc,CAIwB;IAE9C,OAAO,CAAC,cAAc;IAwBtB;;;;;;;;OAQG;IAEI,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAKzC;;;;;;;;;;;;;OAaG;IAEI,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,YAAY,EAAE,GAAG,IAAI;IAKzE;;;;;;;;;;OAUG;IAEI,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK1C;;;;;;;;;;;OAWG;IAEI,wBAAwB,CAC7B,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,GACvD,IAAI;IAKP;;;;;;;;;;;OAWG;IAEI,yBAAyB,CAC9B,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,GACvD,IAAI;IAKP;;;;;;;;;;;OAWG;IAEI,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK/C;;;;;;;;;;OAUG;IAEI,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAIhD"}
1
+ {"version":3,"file":"DisableInputs.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/DisableInputs.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AA4BhD,qBAAa,aAAc,SAAQ,OAAO;IAiCxC,OAAO,CAAC,eAAe,CAIsB;IAG7C,OAAO,CAAC,iBAAiB,CAIoB;IAG7C,OAAO,CAAC,cAAc,CAIwB;IAE9C,OAAO,CAAC,cAAc;IAwBtB;;;;;;;;OAQG;IAEI,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAKzC;;;;;;;;;;;;;OAaG;IAEI,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,YAAY,EAAE,GAAG,IAAI;IAKzE;;;;;;;;;;OAUG;IAEI,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK1C;;;;;;;;;;;OAWG;IAEI,wBAAwB,CAC7B,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,GACvD,IAAI;IAKP;;;;;;;;;;;OAWG;IAEI,yBAAyB,CAC9B,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,GACvD,IAAI;IAKP;;;;;;;;;;;OAWG;IAEI,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK/C;;;;;;;;;;OAUG;IAEI,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAIhD"}
@@ -5,7 +5,6 @@ local __TS__Class = ____lualib.__TS__Class
5
5
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
6
6
  local __TS__Iterator = ____lualib.__TS__Iterator
7
7
  local __TS__Decorate = ____lualib.__TS__Decorate
8
- local Set = ____lualib.Set
9
8
  local ____exports = {}
10
9
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
11
10
  local InputHook = ____isaac_2Dtypescript_2Ddefinitions.InputHook
@@ -15,6 +14,8 @@ local Exported = ____decorators.Exported
15
14
  local ____input = require("src.functions.input")
16
15
  local getMoveActions = ____input.getMoveActions
17
16
  local getShootActions = ____input.getShootActions
17
+ local ____ReadonlySet = require("src.types.ReadonlySet")
18
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
18
19
  local ____Feature = require("src.classes.private.Feature")
19
20
  local Feature = ____Feature.Feature
20
21
  local v = {run = {
@@ -66,13 +67,13 @@ function DisableInputs.prototype.enableAllInputs(self, key)
66
67
  end
67
68
  function DisableInputs.prototype.disableInputs(self, key, ...)
68
69
  local buttonActions = {...}
69
- local buttonActionsSet = __TS__New(Set, buttonActions)
70
+ local buttonActionsSet = __TS__New(ReadonlySet, buttonActions)
70
71
  v.run.disableInputs:set(key, buttonActionsSet)
71
72
  end
72
73
  function DisableInputs.prototype.disableAllInputs(self, key)
73
74
  v.run.disableAllInputsWithWhitelistMap:set(
74
75
  key,
75
- __TS__New(Set)
76
+ __TS__New(ReadonlySet)
76
77
  )
77
78
  v.run.enableAllInputsWithBlacklistMap:delete(key)
78
79
  end