isaacscript-common 26.2.0 → 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.
- package/dist/index.rollup.d.ts +24 -0
- package/dist/isaacscript-common.lua +71 -39
- 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.map +1 -1
- package/dist/src/functions/logMisc.lua +4 -2
- 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/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 +3 -2
- 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/index.ts +1 -0
package/dist/index.rollup.d.ts
CHANGED
|
@@ -12007,6 +12007,30 @@ export declare function newPickingUpItem(): PickingUpItem;
|
|
|
12007
12007
|
/** Returns a `PlayerHealth` object with all zeros. */
|
|
12008
12008
|
export declare function newPlayerHealth(): PlayerHealth;
|
|
12009
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
|
+
|
|
12010
12034
|
/**
|
|
12011
12035
|
* Helper function to initialize a new RNG object using Blade's recommended shift index.
|
|
12012
12036
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 26.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(
|
|
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
|
|
@@ -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(
|
|
28788
|
+
local table1KeysSet = __TS__New(ReadonlySet, table1Keys)
|
|
28777
28789
|
local table2Keys = __TS__ObjectKeys(table2)
|
|
28778
|
-
local table2KeysSet = __TS__New(
|
|
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(
|
|
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(
|
|
36762
|
+
return __TS__New(ReadonlySet)
|
|
36749
36763
|
end
|
|
36750
36764
|
return trinketsSet
|
|
36751
36765
|
end
|
|
@@ -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(
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
44263
|
+
____ReadonlySet_9,
|
|
44248
44264
|
{__TS__SparseArraySpread(____array_8)}
|
|
44249
44265
|
)
|
|
44250
44266
|
end
|
|
@@ -52967,6 +52983,14 @@ do
|
|
|
52967
52983
|
end
|
|
52968
52984
|
end
|
|
52969
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
|
|
52970
52994
|
do
|
|
52971
52995
|
local ____export = require("src.functions.revive")
|
|
52972
52996
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
@@ -54067,6 +54091,14 @@ do
|
|
|
54067
54091
|
end
|
|
54068
54092
|
end
|
|
54069
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
|
|
54070
54102
|
do
|
|
54071
54103
|
local ____export = require("src.functions.revive")
|
|
54072
54104
|
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;AA2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AAU,GAAE,QAAQ,EAAO,GAC1B,QAAQ;IAMX;;;;;;;;;;;;OAYG;IAEI,8BAA8B,CACnC,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,UAAU,GAAE,eAAe,EAAE,GAAG,SAAS,eAAe,EAAO,GAC9D,eAAe;IASlB;;;;;;;;;;;;OAYG;IAEI,+BAA+B,CACpC,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,UAAU,GAAE,eAAe,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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../src/functions/array.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../src/functions/array.ts"],"names":[],"mappings":";;;AAMA;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC3B,MAAM,EAAE,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,EAC1B,MAAM,EAAE,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,GACzB,OAAO,CAST;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC3B,aAAa,EAAE,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,EACjC,GAAG,gBAAgB,EAAE,CAAC,EAAE,GACvB,CAAC,EAAE,CAIL;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAC9B,aAAa,EAAE,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,EACjC,GAAG,gBAAgB,EAAE,CAAC,EAAE,GACvB,CAAC,EAAE,CAIL;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,KAAK,EAAE,CAAC,EAAE,EACV,GAAG,gBAAgB,EAAE,CAAC,EAAE,GACvB,OAAO,CAcT;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,KAAK,EAAE,CAAC,EAAE,EACV,GAAG,gBAAgB,EAAE,CAAC,EAAE,GACvB,OAAO,CAWT;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,aAAa,EAAE,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,EACjC,GAAG,eAAe,EAAE,GAAG,EAAE,GACxB,CAAC,EAAE,CAWL;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EACvC,KA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AAM,EAAE,GAAG,SAAS,MAAM,EAAE,GAAG,MAAM,CAEpE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAM3E"}
|
|
@@ -2,7 +2,6 @@ local ____lualib = require("lualib_bundle")
|
|
|
2
2
|
local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
|
|
3
3
|
local __TS__ArrayIndexOf = ____lualib.__TS__ArrayIndexOf
|
|
4
4
|
local __TS__ArraySplice = ____lualib.__TS__ArraySplice
|
|
5
|
-
local Set = ____lualib.Set
|
|
6
5
|
local __TS__New = ____lualib.__TS__New
|
|
7
6
|
local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
|
|
8
7
|
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
@@ -15,6 +14,8 @@ local __TS__ObjectKeys = ____lualib.__TS__ObjectKeys
|
|
|
15
14
|
local __TS__ArraySome = ____lualib.__TS__ArraySome
|
|
16
15
|
local __TS__ArrayReduce = ____lualib.__TS__ArrayReduce
|
|
17
16
|
local ____exports = {}
|
|
17
|
+
local ____ReadonlySet = require("src.types.ReadonlySet")
|
|
18
|
+
local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
18
19
|
local ____random = require("src.functions.random")
|
|
19
20
|
local getRandomInt = ____random.getRandomInt
|
|
20
21
|
local ____rng = require("src.functions.rng")
|
|
@@ -197,7 +198,7 @@ end
|
|
|
197
198
|
-- This function is variadic, meaning that you can specify N arguments to remove N elements.
|
|
198
199
|
function ____exports.arrayRemoveIndex(self, originalArray, ...)
|
|
199
200
|
local indexesToRemove = {...}
|
|
200
|
-
local indexesToRemoveSet = __TS__New(
|
|
201
|
+
local indexesToRemoveSet = __TS__New(ReadonlySet, indexesToRemove)
|
|
201
202
|
local array = {}
|
|
202
203
|
__TS__ArrayForEach(
|
|
203
204
|
originalArray,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doors.d.ts","sourceRoot":"","sources":["../../../src/functions/doors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,YAAY,EAKZ,SAAS,EACT,QAAQ,EACT,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"doors.d.ts","sourceRoot":"","sources":["../../../src/functions/doors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,YAAY,EAKZ,SAAS,EACT,QAAQ,EACT,MAAM,8BAA8B,CAAC;AAuBtC,wBAAgB,aAAa,IAAI,IAAI,CAIpC;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAKxD;AAED,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,YAAY,GAAG,QAAQ,CAG3E;AAED,wBAAgB,wBAAwB,CACtC,aAAa,EAAE,QAAQ,CAAC,YAAY,CAAC,GACpC,QAAQ,EAAE,CAWZ;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAEjE;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,GAAG,YAAY,CAEvE;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EACL,QAAQ,EAAE,GACV,SAAS,QAAQ,EAAE,GACnB,GAAG,CAAC,QAAQ,CAAC,GACb,WAAW,CAAC,QAAQ,CAAC,GACxB,QAAQ,CAAC,YAAY,CAAC,CASxB;AAED,wBAAgB,gBAAgB,IAAI,cAAc,GAAG,SAAS,CAG7D;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,IAAI,cAAc,GAAG,SAAS,CAG5D;AAED,wBAAgB,gBAAgB,IAAI,cAAc,GAAG,SAAS,CAG7D;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,IAAI,cAAc,GAAG,SAAS,CAKxE;AAED;;;;;;GAMG;AACH,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BAAgB,WAAW,CAAC,GAAG,KAAK,EAAE,cAAc,EAAE,GAAG,IAAI,CAI5D"}
|
|
@@ -35,6 +35,8 @@ local ____roomShapeToDoorSlotCoordinates = require("src.objects.roomShapeToDoorS
|
|
|
35
35
|
local ROOM_SHAPE_TO_DOOR_SLOT_COORDINATES = ____roomShapeToDoorSlotCoordinates.ROOM_SHAPE_TO_DOOR_SLOT_COORDINATES
|
|
36
36
|
local ____roomShapeToDoorSlots = require("src.objects.roomShapeToDoorSlots")
|
|
37
37
|
local ROOM_SHAPE_TO_DOOR_SLOTS = ____roomShapeToDoorSlots.ROOM_SHAPE_TO_DOOR_SLOTS
|
|
38
|
+
local ____ReadonlySet = require("src.types.ReadonlySet")
|
|
39
|
+
local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
38
40
|
local ____bitwise = require("src.functions.bitwise")
|
|
39
41
|
local arrayToBitFlags = ____bitwise.arrayToBitFlags
|
|
40
42
|
local ____direction = require("src.functions.direction")
|
|
@@ -70,7 +72,7 @@ function ____exports.getDoors(self, ...)
|
|
|
70
72
|
local roomTypes = {...}
|
|
71
73
|
local room = game:GetRoom()
|
|
72
74
|
local roomShape = room:GetRoomShape()
|
|
73
|
-
local roomTypesSet = __TS__New(
|
|
75
|
+
local roomTypesSet = __TS__New(ReadonlySet, roomTypes)
|
|
74
76
|
local possibleDoorSlots = ____exports.getDoorSlotsForRoomShape(nil, roomShape)
|
|
75
77
|
local doors = {}
|
|
76
78
|
for ____, doorSlot in __TS__Iterator(possibleDoorSlots) do
|
|
@@ -230,7 +232,7 @@ end
|
|
|
230
232
|
-- that match any of the N room grid indexes.
|
|
231
233
|
function ____exports.getDoorsToRoomIndex(self, ...)
|
|
232
234
|
local roomGridIndex = {...}
|
|
233
|
-
local roomGridIndexesSet = __TS__New(
|
|
235
|
+
local roomGridIndexesSet = __TS__New(ReadonlySet, roomGridIndex)
|
|
234
236
|
local doors = ____exports.getDoors(nil)
|
|
235
237
|
return __TS__ArrayFilter(
|
|
236
238
|
doors,
|