isaacscript-common 26.2.0 → 26.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.
- package/dist/index.rollup.d.ts +82 -8
- package/dist/isaacscript-common.lua +106 -57
- package/dist/src/classes/features/other/ModdedElementSets.d.ts.map +1 -1
- package/dist/src/classes/features/other/ModdedElementSets.lua +4 -2
- package/dist/src/classes/features/other/Pause.d.ts.map +1 -1
- package/dist/src/classes/features/other/Pause.lua +3 -2
- package/dist/src/functions/array.d.ts.map +1 -1
- package/dist/src/functions/array.lua +3 -2
- package/dist/src/functions/doors.d.ts.map +1 -1
- package/dist/src/functions/doors.lua +4 -2
- package/dist/src/functions/enums.d.ts.map +1 -1
- package/dist/src/functions/enums.lua +3 -2
- package/dist/src/functions/gridEntities.lua +3 -3
- package/dist/src/functions/logMisc.d.ts +51 -8
- package/dist/src/functions/logMisc.d.ts.map +1 -1
- package/dist/src/functions/logMisc.lua +69 -21
- package/dist/src/functions/players.d.ts.map +1 -1
- package/dist/src/functions/players.lua +6 -5
- package/dist/src/functions/random.d.ts.map +1 -1
- package/dist/src/functions/random.lua +3 -2
- package/dist/src/functions/roomShapeWalls.d.ts.map +1 -1
- package/dist/src/functions/roomShapeWalls.lua +12 -11
- package/dist/src/functions/rooms.d.ts.map +1 -1
- package/dist/src/functions/rooms.lua +3 -2
- package/dist/src/functions/set.d.ts.map +1 -1
- package/dist/src/functions/set.lua +3 -1
- package/dist/src/functions/utils.d.ts.map +1 -1
- package/dist/src/functions/utils.lua +3 -2
- package/dist/src/functions/vector.d.ts +7 -0
- package/dist/src/functions/vector.d.ts.map +1 -1
- package/dist/src/functions/vector.lua +5 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.lua +8 -0
- package/package.json +1 -1
- package/src/classes/features/other/ModdedElementSets.ts +3 -2
- package/src/classes/features/other/Pause.ts +2 -1
- package/src/functions/array.ts +2 -1
- package/src/functions/doors.ts +3 -2
- package/src/functions/enums.ts +2 -1
- package/src/functions/gridEntities.ts +3 -3
- package/src/functions/logMisc.ts +99 -20
- package/src/functions/players.ts +5 -4
- package/src/functions/random.ts +2 -1
- package/src/functions/roomShapeWalls.ts +6 -5
- package/src/functions/rooms.ts +2 -1
- package/src/functions/set.ts +2 -1
- package/src/functions/utils.ts +2 -1
- package/src/functions/vector.ts +7 -0
- package/src/index.ts +1 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 26.
|
|
3
|
+
isaacscript-common 26.3.0
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
@@ -28477,6 +28489,7 @@ local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
|
28477
28489
|
local getIsaacAPIClassName = ____isaacAPIClass.getIsaacAPIClassName
|
|
28478
28490
|
local ____log = require("src.functions.log")
|
|
28479
28491
|
local log = ____log.log
|
|
28492
|
+
local logAndPrint = ____log.logAndPrint
|
|
28480
28493
|
local ____playerHealth = require("src.functions.playerHealth")
|
|
28481
28494
|
local getPlayerHealth = ____playerHealth.getPlayerHealth
|
|
28482
28495
|
local ____players = require("src.functions.players")
|
|
@@ -28523,16 +28536,22 @@ function ____exports.logFlags(flags, flagEnum, description)
|
|
|
28523
28536
|
log(" n/a (no flags)")
|
|
28524
28537
|
end
|
|
28525
28538
|
end
|
|
28526
|
-
function ____exports.logArray(array)
|
|
28539
|
+
function ____exports.logArray(array, name)
|
|
28527
28540
|
if not isArray(nil, array, false) then
|
|
28528
28541
|
log("Tried to log an array, but the given object was not an array.")
|
|
28529
28542
|
return
|
|
28530
28543
|
end
|
|
28531
28544
|
local arrayString = arrayToString(nil, array)
|
|
28532
|
-
|
|
28545
|
+
if name == nil then
|
|
28546
|
+
name = "array"
|
|
28547
|
+
end
|
|
28548
|
+
log((("Logging " .. name) .. ": ") .. arrayString)
|
|
28533
28549
|
end
|
|
28534
|
-
function ____exports.logCollectibleTypes(collectibleTypes)
|
|
28535
|
-
|
|
28550
|
+
function ____exports.logCollectibleTypes(collectibleTypes, name)
|
|
28551
|
+
if name == nil then
|
|
28552
|
+
name = "collectibles"
|
|
28553
|
+
end
|
|
28554
|
+
log(("Logging " .. name) .. ":")
|
|
28536
28555
|
local i = 1
|
|
28537
28556
|
for ____, collectibleType in ipairs(collectibleTypes) do
|
|
28538
28557
|
local collectibleName = getCollectibleName(nil, collectibleType)
|
|
@@ -28540,8 +28559,11 @@ function ____exports.logCollectibleTypes(collectibleTypes)
|
|
|
28540
28559
|
i = i + 1
|
|
28541
28560
|
end
|
|
28542
28561
|
end
|
|
28543
|
-
function ____exports.logColor(color)
|
|
28544
|
-
|
|
28562
|
+
function ____exports.logColor(color, name)
|
|
28563
|
+
if name == nil then
|
|
28564
|
+
name = "color"
|
|
28565
|
+
end
|
|
28566
|
+
log((((((((((((((("Logging " .. name) .. ": R") .. tostring(color.R)) .. ", G") .. tostring(color.G)) .. ", B") .. tostring(color.B)) .. ", A") .. tostring(color.A)) .. ", RO") .. tostring(color.RO)) .. ", BO") .. tostring(color.BO)) .. ", GO") .. tostring(color.GO))
|
|
28545
28567
|
end
|
|
28546
28568
|
function ____exports.logDamageFlags(flags)
|
|
28547
28569
|
____exports.logFlags(flags, DamageFlag, "damage")
|
|
@@ -28551,12 +28573,11 @@ function ____exports.logEntityFlags(flags)
|
|
|
28551
28573
|
end
|
|
28552
28574
|
function ____exports.logEntityID(entity)
|
|
28553
28575
|
local entityID = getEntityID(nil, entity)
|
|
28554
|
-
log("
|
|
28576
|
+
log("Logging entity: " .. entityID)
|
|
28555
28577
|
end
|
|
28556
28578
|
function ____exports.logError(msg)
|
|
28557
28579
|
local errorMsg = "Error: " .. msg
|
|
28558
|
-
|
|
28559
|
-
print(errorMsg)
|
|
28580
|
+
logAndPrint(nil, errorMsg)
|
|
28560
28581
|
end
|
|
28561
28582
|
function ____exports.logGameStateFlags()
|
|
28562
28583
|
log("Logging game state flags:")
|
|
@@ -28575,8 +28596,11 @@ function ____exports.logGameStateFlags()
|
|
|
28575
28596
|
log(" n/a (no flags)")
|
|
28576
28597
|
end
|
|
28577
28598
|
end
|
|
28578
|
-
function ____exports.logKColor(kColor)
|
|
28579
|
-
|
|
28599
|
+
function ____exports.logKColor(kColor, name)
|
|
28600
|
+
if name == nil then
|
|
28601
|
+
name = "KColor"
|
|
28602
|
+
end
|
|
28603
|
+
log((((((((("Logging " .. name) .. ": R") .. tostring(kColor.Red)) .. ", G") .. tostring(kColor.Green)) .. ", B") .. tostring(kColor.Blue)) .. ", A") .. tostring(kColor.Alpha))
|
|
28580
28604
|
end
|
|
28581
28605
|
function ____exports.logLevelStateFlags()
|
|
28582
28606
|
local level = game:GetLevel()
|
|
@@ -28596,12 +28620,13 @@ function ____exports.logLevelStateFlags()
|
|
|
28596
28620
|
log(" n/a (no flags)")
|
|
28597
28621
|
end
|
|
28598
28622
|
end
|
|
28599
|
-
function ____exports.logMap(map)
|
|
28623
|
+
function ____exports.logMap(map, name)
|
|
28600
28624
|
if not isTSTLMap(nil, map) and not isDefaultMap(nil, map) then
|
|
28601
28625
|
log("Tried to log a TSTL map, but the given object was not a TSTL map.")
|
|
28602
28626
|
return
|
|
28603
28627
|
end
|
|
28604
|
-
|
|
28628
|
+
local suffix = name == nil and (" \"" .. tostring(name)) .. "\"" or ""
|
|
28629
|
+
log(("Printing out a TSTL map" .. suffix) .. ":")
|
|
28605
28630
|
local mapKeys = {__TS__Spread(map:keys())}
|
|
28606
28631
|
__TS__ArraySort(mapKeys)
|
|
28607
28632
|
for ____, key in ipairs(mapKeys) do
|
|
@@ -28669,7 +28694,7 @@ function ____exports.logRoom()
|
|
|
28669
28694
|
local roomGridIndex = getRoomGridIndex(nil)
|
|
28670
28695
|
local roomListIndex = getRoomListIndex(nil)
|
|
28671
28696
|
local roomData = getRoomData(nil)
|
|
28672
|
-
log("
|
|
28697
|
+
log("Logging room information:")
|
|
28673
28698
|
if roomData == nil then
|
|
28674
28699
|
log("- Room data is undefined.")
|
|
28675
28700
|
else
|
|
@@ -28703,12 +28728,13 @@ function ____exports.logSeedEffects()
|
|
|
28703
28728
|
log(" n/a (no seed effects)")
|
|
28704
28729
|
end
|
|
28705
28730
|
end
|
|
28706
|
-
function ____exports.logSet(set)
|
|
28731
|
+
function ____exports.logSet(set, name)
|
|
28707
28732
|
if not isTSTLSet(nil, set) then
|
|
28708
28733
|
log("Tried to log a TSTL set, but the given object was not a TSTL set.")
|
|
28709
28734
|
return
|
|
28710
28735
|
end
|
|
28711
|
-
|
|
28736
|
+
local suffix = name == nil and (" \"" .. tostring(name)) .. "\"" or ""
|
|
28737
|
+
log(("Printing out a TSTL set" .. suffix) .. ":")
|
|
28712
28738
|
local setValues = getSortedSetValues(nil, set)
|
|
28713
28739
|
for ____, value in ipairs(setValues) do
|
|
28714
28740
|
log(" Value: " .. tostring(value))
|
|
@@ -28773,9 +28799,9 @@ end
|
|
|
28773
28799
|
function ____exports.logTableDifferences(table1, table2)
|
|
28774
28800
|
log("Comparing two Lua tables:")
|
|
28775
28801
|
local table1Keys = __TS__ObjectKeys(table1)
|
|
28776
|
-
local table1KeysSet = __TS__New(
|
|
28802
|
+
local table1KeysSet = __TS__New(ReadonlySet, table1Keys)
|
|
28777
28803
|
local table2Keys = __TS__ObjectKeys(table2)
|
|
28778
|
-
local table2KeysSet = __TS__New(
|
|
28804
|
+
local table2KeysSet = __TS__New(ReadonlySet, table2Keys)
|
|
28779
28805
|
local keysSet = combineSets(nil, table1KeysSet, table2KeysSet)
|
|
28780
28806
|
local keys = {__TS__Spread(keysSet:values())}
|
|
28781
28807
|
__TS__ArraySort(keys)
|
|
@@ -28834,12 +28860,15 @@ function ____exports.logUserdata(userdata)
|
|
|
28834
28860
|
end
|
|
28835
28861
|
____exports.logTable(metatable)
|
|
28836
28862
|
end
|
|
28837
|
-
function ____exports.logVector(vector, round)
|
|
28863
|
+
function ____exports.logVector(vector, name, round)
|
|
28838
28864
|
if round == nil then
|
|
28839
28865
|
round = false
|
|
28840
28866
|
end
|
|
28867
|
+
if name == nil then
|
|
28868
|
+
name = "vector"
|
|
28869
|
+
end
|
|
28841
28870
|
local vectorString = vectorToString(nil, vector, round)
|
|
28842
|
-
log("
|
|
28871
|
+
log((("Logging " .. name) .. ": ") .. vectorString)
|
|
28843
28872
|
end
|
|
28844
28873
|
return ____exports
|
|
28845
28874
|
end,
|
|
@@ -36208,6 +36237,8 @@ local ____itemConfigCardTypesForCardsSet = require("src.sets.itemConfigCardTypes
|
|
|
36208
36237
|
local ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET = ____itemConfigCardTypesForCardsSet.ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET
|
|
36209
36238
|
local ____ReadonlyMap = require("src.types.ReadonlyMap")
|
|
36210
36239
|
local ReadonlyMap = ____ReadonlyMap.ReadonlyMap
|
|
36240
|
+
local ____ReadonlySet = require("src.types.ReadonlySet")
|
|
36241
|
+
local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
36211
36242
|
local ____Feature = require("src.classes.private.Feature")
|
|
36212
36243
|
local Feature = ____Feature.Feature
|
|
36213
36244
|
local CONDITIONAL_FLYING_COLLECTIBLE_TYPES = {CollectibleType.BIBLE, CollectibleType.EMPTY_VESSEL, CollectibleType.ASTRAL_PROJECTION, CollectibleType.RECALL}
|
|
@@ -36548,7 +36579,7 @@ function ModdedElementSets.prototype.getCollectiblesWithCacheFlag(self, cacheFla
|
|
|
36548
36579
|
self:lazyInitCacheFlagToCollectibleTypesMap()
|
|
36549
36580
|
local collectiblesSet = self.cacheFlagToCollectibleTypesMap:get(cacheFlag)
|
|
36550
36581
|
if collectiblesSet == nil then
|
|
36551
|
-
return __TS__New(
|
|
36582
|
+
return __TS__New(ReadonlySet)
|
|
36552
36583
|
end
|
|
36553
36584
|
return collectiblesSet
|
|
36554
36585
|
end
|
|
@@ -36745,7 +36776,7 @@ function ModdedElementSets.prototype.getTrinketsWithCacheFlag(self, cacheFlag)
|
|
|
36745
36776
|
self:lazyInitCacheFlagToTrinketTypesMap()
|
|
36746
36777
|
local trinketsSet = self.cacheFlagToTrinketTypesMap:get(cacheFlag)
|
|
36747
36778
|
if trinketsSet == nil then
|
|
36748
|
-
return __TS__New(
|
|
36779
|
+
return __TS__New(ReadonlySet)
|
|
36749
36780
|
end
|
|
36750
36781
|
return trinketsSet
|
|
36751
36782
|
end
|
|
@@ -42427,7 +42458,6 @@ local __TS__SparseArrayNew = ____lualib.__TS__SparseArrayNew
|
|
|
42427
42458
|
local __TS__SparseArrayPush = ____lualib.__TS__SparseArrayPush
|
|
42428
42459
|
local __TS__SparseArraySpread = ____lualib.__TS__SparseArraySpread
|
|
42429
42460
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
42430
|
-
local Set = ____lualib.Set
|
|
42431
42461
|
local ____exports = {}
|
|
42432
42462
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
42433
42463
|
local ButtonAction = ____isaac_2Dtypescript_2Ddefinitions.ButtonAction
|
|
@@ -42453,6 +42483,8 @@ local ____players = require("src.functions.players")
|
|
|
42453
42483
|
local useActiveItemTemp = ____players.useActiveItemTemp
|
|
42454
42484
|
local ____tstlClass = require("src.functions.tstlClass")
|
|
42455
42485
|
local getTSTLClassName = ____tstlClass.getTSTLClassName
|
|
42486
|
+
local ____ReadonlySet = require("src.types.ReadonlySet")
|
|
42487
|
+
local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
42456
42488
|
local ____Feature = require("src.classes.private.Feature")
|
|
42457
42489
|
local Feature = ____Feature.Feature
|
|
42458
42490
|
local v = {run = {
|
|
@@ -42550,7 +42582,7 @@ function Pause.prototype.pause(self)
|
|
|
42550
42582
|
if tstlClassName == nil then
|
|
42551
42583
|
error("Failed to get the class name for the pause feature.")
|
|
42552
42584
|
end
|
|
42553
|
-
local whitelist = __TS__New(
|
|
42585
|
+
local whitelist = __TS__New(ReadonlySet, {ButtonAction.MENU_CONFIRM, ButtonAction.CONSOLE})
|
|
42554
42586
|
self.disableInputs:disableAllInputsExceptFor(tstlClassName, whitelist)
|
|
42555
42587
|
for ____, player in ipairs(getAllPlayers(nil)) do
|
|
42556
42588
|
player.ControlsEnabled = false
|
|
@@ -44061,7 +44093,6 @@ local __TS__New = ____lualib.__TS__New
|
|
|
44061
44093
|
local __TS__SparseArrayNew = ____lualib.__TS__SparseArrayNew
|
|
44062
44094
|
local __TS__SparseArrayPush = ____lualib.__TS__SparseArrayPush
|
|
44063
44095
|
local __TS__SparseArraySpread = ____lualib.__TS__SparseArraySpread
|
|
44064
|
-
local Set = ____lualib.Set
|
|
44065
44096
|
local ____exports = {}
|
|
44066
44097
|
local getVanillaWallGridIndexSetForRoomShape, getWallGridIndexSetForRectangleRoomShape
|
|
44067
44098
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
@@ -44073,6 +44104,8 @@ local ____cachedClasses = require("src.core.cachedClasses")
|
|
|
44073
44104
|
local game = ____cachedClasses.game
|
|
44074
44105
|
local ____CornerType = require("src.enums.CornerType")
|
|
44075
44106
|
local CornerType = ____CornerType.CornerType
|
|
44107
|
+
local ____ReadonlySet = require("src.types.ReadonlySet")
|
|
44108
|
+
local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
44076
44109
|
local ____gridIndex = require("src.functions.gridIndex")
|
|
44077
44110
|
local getGridIndexesBetween = ____gridIndex.getGridIndexesBetween
|
|
44078
44111
|
local ____rooms = require("src.functions.rooms")
|
|
@@ -44093,7 +44126,7 @@ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
|
|
|
44093
44126
|
if ____cond7 then
|
|
44094
44127
|
do
|
|
44095
44128
|
local topMiddle, topRight, middleLeft, middle, bottomLeft, bottomRight = table.unpack(corners)
|
|
44096
|
-
local
|
|
44129
|
+
local ____ReadonlySet_1 = ReadonlySet
|
|
44097
44130
|
local ____array_0 = __TS__SparseArrayNew(table.unpack(getGridIndexesBetween(nil, topMiddle.gridIndex, topRight.gridIndex, roomShape)))
|
|
44098
44131
|
__TS__SparseArrayPush(
|
|
44099
44132
|
____array_0,
|
|
@@ -44116,7 +44149,7 @@ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
|
|
|
44116
44149
|
table.unpack(getGridIndexesBetween(nil, topRight.gridIndex, bottomRight.gridIndex, roomShape))
|
|
44117
44150
|
)
|
|
44118
44151
|
return __TS__New(
|
|
44119
|
-
|
|
44152
|
+
____ReadonlySet_1,
|
|
44120
44153
|
{__TS__SparseArraySpread(____array_0)}
|
|
44121
44154
|
)
|
|
44122
44155
|
end
|
|
@@ -44125,7 +44158,7 @@ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
|
|
|
44125
44158
|
if ____cond7 then
|
|
44126
44159
|
do
|
|
44127
44160
|
local topLeft, topMiddle, middle, middleRight, bottomLeft, bottomRight = table.unpack(corners)
|
|
44128
|
-
local
|
|
44161
|
+
local ____ReadonlySet_3 = ReadonlySet
|
|
44129
44162
|
local ____array_2 = __TS__SparseArrayNew(table.unpack(getGridIndexesBetween(nil, topLeft.gridIndex, topMiddle.gridIndex, roomShape)))
|
|
44130
44163
|
__TS__SparseArrayPush(
|
|
44131
44164
|
____array_2,
|
|
@@ -44148,7 +44181,7 @@ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
|
|
|
44148
44181
|
table.unpack(getGridIndexesBetween(nil, middleRight.gridIndex, bottomRight.gridIndex, roomShape))
|
|
44149
44182
|
)
|
|
44150
44183
|
return __TS__New(
|
|
44151
|
-
|
|
44184
|
+
____ReadonlySet_3,
|
|
44152
44185
|
{__TS__SparseArraySpread(____array_2)}
|
|
44153
44186
|
)
|
|
44154
44187
|
end
|
|
@@ -44157,7 +44190,7 @@ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
|
|
|
44157
44190
|
if ____cond7 then
|
|
44158
44191
|
do
|
|
44159
44192
|
local topLeft, topRight, middleLeft, middle, bottomMiddle, bottomRight = table.unpack(corners)
|
|
44160
|
-
local
|
|
44193
|
+
local ____ReadonlySet_5 = ReadonlySet
|
|
44161
44194
|
local ____array_4 = __TS__SparseArrayNew(table.unpack(getGridIndexesBetween(nil, topLeft.gridIndex, topRight.gridIndex, roomShape)))
|
|
44162
44195
|
__TS__SparseArrayPush(
|
|
44163
44196
|
____array_4,
|
|
@@ -44180,7 +44213,7 @@ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
|
|
|
44180
44213
|
table.unpack(getGridIndexesBetween(nil, topRight.gridIndex, bottomRight.gridIndex, roomShape))
|
|
44181
44214
|
)
|
|
44182
44215
|
return __TS__New(
|
|
44183
|
-
|
|
44216
|
+
____ReadonlySet_5,
|
|
44184
44217
|
{__TS__SparseArraySpread(____array_4)}
|
|
44185
44218
|
)
|
|
44186
44219
|
end
|
|
@@ -44189,7 +44222,7 @@ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
|
|
|
44189
44222
|
if ____cond7 then
|
|
44190
44223
|
do
|
|
44191
44224
|
local topLeft, topRight, middle, middleRight, bottomLeft, bottomMiddle = table.unpack(corners)
|
|
44192
|
-
local
|
|
44225
|
+
local ____ReadonlySet_7 = ReadonlySet
|
|
44193
44226
|
local ____array_6 = __TS__SparseArrayNew(table.unpack(getGridIndexesBetween(nil, topLeft.gridIndex, topRight.gridIndex, roomShape)))
|
|
44194
44227
|
__TS__SparseArrayPush(
|
|
44195
44228
|
____array_6,
|
|
@@ -44212,7 +44245,7 @@ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
|
|
|
44212
44245
|
table.unpack(getGridIndexesBetween(nil, topRight.gridIndex, middleRight.gridIndex, roomShape))
|
|
44213
44246
|
)
|
|
44214
44247
|
return __TS__New(
|
|
44215
|
-
|
|
44248
|
+
____ReadonlySet_7,
|
|
44216
44249
|
{__TS__SparseArraySpread(____array_6)}
|
|
44217
44250
|
)
|
|
44218
44251
|
end
|
|
@@ -44229,7 +44262,7 @@ function getWallGridIndexSetForRectangleRoomShape(self, roomShape, corners)
|
|
|
44229
44262
|
error("Failed to get the correct amount of corners for rectangular room shape.")
|
|
44230
44263
|
end
|
|
44231
44264
|
local topLeft, topRight, bottomLeft, bottomRight = table.unpack(corners)
|
|
44232
|
-
local
|
|
44265
|
+
local ____ReadonlySet_9 = ReadonlySet
|
|
44233
44266
|
local ____array_8 = __TS__SparseArrayNew(table.unpack(getGridIndexesBetween(nil, topLeft.gridIndex, topRight.gridIndex, roomShape)))
|
|
44234
44267
|
__TS__SparseArrayPush(
|
|
44235
44268
|
____array_8,
|
|
@@ -44244,7 +44277,7 @@ function getWallGridIndexSetForRectangleRoomShape(self, roomShape, corners)
|
|
|
44244
44277
|
table.unpack(getGridIndexesBetween(nil, topRight.gridIndex, bottomRight.gridIndex, roomShape))
|
|
44245
44278
|
)
|
|
44246
44279
|
return __TS__New(
|
|
44247
|
-
|
|
44280
|
+
____ReadonlySet_9,
|
|
44248
44281
|
{__TS__SparseArraySpread(____array_8)}
|
|
44249
44282
|
)
|
|
44250
44283
|
end
|
|
@@ -52967,6 +53000,14 @@ do
|
|
|
52967
53000
|
end
|
|
52968
53001
|
end
|
|
52969
53002
|
end
|
|
53003
|
+
do
|
|
53004
|
+
local ____export = require("src.functions.readOnly")
|
|
53005
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
53006
|
+
if ____exportKey ~= "default" then
|
|
53007
|
+
____exports[____exportKey] = ____exportValue
|
|
53008
|
+
end
|
|
53009
|
+
end
|
|
53010
|
+
end
|
|
52970
53011
|
do
|
|
52971
53012
|
local ____export = require("src.functions.revive")
|
|
52972
53013
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
@@ -54067,6 +54108,14 @@ do
|
|
|
54067
54108
|
end
|
|
54068
54109
|
end
|
|
54069
54110
|
end
|
|
54111
|
+
do
|
|
54112
|
+
local ____export = require("src.functions.readOnly")
|
|
54113
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
54114
|
+
if ____exportKey ~= "default" then
|
|
54115
|
+
____exports[____exportKey] = ____exportValue
|
|
54116
|
+
end
|
|
54117
|
+
end
|
|
54118
|
+
end
|
|
54070
54119
|
do
|
|
54071
54120
|
local ____export = require("src.functions.revive")
|
|
54072
54121
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
@@ -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;
|
|
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;AAsCtC,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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e,EAAE,GAAG,SAAS,eAAe,EAAO,GAC9D,eAAe;IASlB;;;;;;;;;;OAUG;IAEI,eAAe,IAAI,SAAS,WAAW,EAAE;IAKhD;;;;;;;;;;OAUG;IAEI,aAAa,IAAI,WAAW,CAAC,WAAW,CAAC;IAKhD;;;;;;;;OAQG;IAEI,wBAAwB,CAC7B,SAAS,EAAE,SAAS,GACnB,WAAW,CAAC,WAAW,CAAC;IAW3B;;;;;;;OAOG;IAEI,mBAAmB,IAAI,SAAS,QAAQ,EAAE;IAKjD;;;;;;;OAOG;IAEI,iBAAiB,IAAI,WAAW,CAAC,QAAQ,CAAC;IAKjD;;;;;;;OAOG;IAEI,0BAA0B,IAAI,SAAS,eAAe,EAAE;IAK/D;;;;;;;OAOG;IAEI,wBAAwB,IAAI,WAAW,CAAC,eAAe,CAAC;IAK/D;;;;;;;OAOG;IAEI,sBAAsB,IAAI,SAAS,WAAW,EAAE;IAKvD;;;;;;;OAOG;IAEI,oBAAoB,IAAI,WAAW,CAAC,WAAW,CAAC;CAIxD"}
|
|
@@ -56,6 +56,8 @@ local ____itemConfigCardTypesForCardsSet = require("src.sets.itemConfigCardTypes
|
|
|
56
56
|
local ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET = ____itemConfigCardTypesForCardsSet.ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET
|
|
57
57
|
local ____ReadonlyMap = require("src.types.ReadonlyMap")
|
|
58
58
|
local ReadonlyMap = ____ReadonlyMap.ReadonlyMap
|
|
59
|
+
local ____ReadonlySet = require("src.types.ReadonlySet")
|
|
60
|
+
local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
59
61
|
local ____Feature = require("src.classes.private.Feature")
|
|
60
62
|
local Feature = ____Feature.Feature
|
|
61
63
|
local CONDITIONAL_FLYING_COLLECTIBLE_TYPES = {CollectibleType.BIBLE, CollectibleType.EMPTY_VESSEL, CollectibleType.ASTRAL_PROJECTION, CollectibleType.RECALL}
|
|
@@ -396,7 +398,7 @@ function ModdedElementSets.prototype.getCollectiblesWithCacheFlag(self, cacheFla
|
|
|
396
398
|
self:lazyInitCacheFlagToCollectibleTypesMap()
|
|
397
399
|
local collectiblesSet = self.cacheFlagToCollectibleTypesMap:get(cacheFlag)
|
|
398
400
|
if collectiblesSet == nil then
|
|
399
|
-
return __TS__New(
|
|
401
|
+
return __TS__New(ReadonlySet)
|
|
400
402
|
end
|
|
401
403
|
return collectiblesSet
|
|
402
404
|
end
|
|
@@ -593,7 +595,7 @@ function ModdedElementSets.prototype.getTrinketsWithCacheFlag(self, cacheFlag)
|
|
|
593
595
|
self:lazyInitCacheFlagToTrinketTypesMap()
|
|
594
596
|
local trinketsSet = self.cacheFlagToTrinketTypesMap:get(cacheFlag)
|
|
595
597
|
if trinketsSet == nil then
|
|
596
|
-
return __TS__New(
|
|
598
|
+
return __TS__New(ReadonlySet)
|
|
597
599
|
end
|
|
598
600
|
return trinketsSet
|
|
599
601
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pause.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/Pause.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Pause.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/Pause.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAoBhD,qBAAa,KAAM,SAAQ,OAAO;IAIhC,OAAO,CAAC,aAAa,CAAgB;IAsBrC,OAAO,CAAC,UAAU,CAShB;IAEF,OAAO,CAAC,iCAAiC;IA0BzC,OAAO,CAAC,yBAAyB,CAiB/B;IAGK,QAAQ,IAAI,OAAO;IAI1B;;;;;;;;;;OAUG;IAEI,KAAK,IAAI,IAAI;IAwDpB;;;;OAIG;IAEI,OAAO,IAAI,IAAI;CA4BvB"}
|
|
@@ -7,7 +7,6 @@ local __TS__SparseArrayNew = ____lualib.__TS__SparseArrayNew
|
|
|
7
7
|
local __TS__SparseArrayPush = ____lualib.__TS__SparseArrayPush
|
|
8
8
|
local __TS__SparseArraySpread = ____lualib.__TS__SparseArraySpread
|
|
9
9
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
10
|
-
local Set = ____lualib.Set
|
|
11
10
|
local ____exports = {}
|
|
12
11
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
13
12
|
local ButtonAction = ____isaac_2Dtypescript_2Ddefinitions.ButtonAction
|
|
@@ -33,6 +32,8 @@ local ____players = require("src.functions.players")
|
|
|
33
32
|
local useActiveItemTemp = ____players.useActiveItemTemp
|
|
34
33
|
local ____tstlClass = require("src.functions.tstlClass")
|
|
35
34
|
local getTSTLClassName = ____tstlClass.getTSTLClassName
|
|
35
|
+
local ____ReadonlySet = require("src.types.ReadonlySet")
|
|
36
|
+
local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
36
37
|
local ____Feature = require("src.classes.private.Feature")
|
|
37
38
|
local Feature = ____Feature.Feature
|
|
38
39
|
local v = {run = {
|
|
@@ -130,7 +131,7 @@ function Pause.prototype.pause(self)
|
|
|
130
131
|
if tstlClassName == nil then
|
|
131
132
|
error("Failed to get the class name for the pause feature.")
|
|
132
133
|
end
|
|
133
|
-
local whitelist = __TS__New(
|
|
134
|
+
local whitelist = __TS__New(ReadonlySet, {ButtonAction.MENU_CONFIRM, ButtonAction.CONSOLE})
|
|
134
135
|
self.disableInputs:disableAllInputsExceptFor(tstlClassName, whitelist)
|
|
135
136
|
for ____, player in ipairs(getAllPlayers(nil)) do
|
|
136
137
|
player.ControlsEnabled = false
|