isaacscript-common 30.11.6 → 30.11.8
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 +4 -4
- package/dist/isaacscript-common.lua +268 -248
- package/dist/lualib_bundle.lua +25 -5
- package/dist/src/classes/features/callbackLogic/CustomGridEntities.lua +6 -6
- package/dist/src/classes/features/callbackLogic/GameReorderedCallbacks.lua +4 -4
- package/dist/src/classes/features/other/CharacterHealthConversion.lua +2 -2
- package/dist/src/classes/features/other/CharacterStats.lua +2 -2
- package/dist/src/classes/features/other/CollectibleItemPoolType.lua +2 -2
- package/dist/src/classes/features/other/CustomHotkeys.lua +5 -5
- package/dist/src/classes/features/other/CustomItemPools.lua +3 -3
- package/dist/src/classes/features/other/CustomPickups.lua +2 -2
- package/dist/src/classes/features/other/CustomStages.lua +3 -3
- package/dist/src/classes/features/other/CustomTrapdoors.lua +3 -3
- package/dist/src/classes/features/other/DebugDisplay.lua +37 -37
- package/dist/src/classes/features/other/DeployJSONRoom.lua +2 -2
- package/dist/src/classes/features/other/DisableAllSound.lua +3 -3
- package/dist/src/classes/features/other/DisableInputs.lua +9 -9
- package/dist/src/classes/features/other/EdenStartingStats.lua +3 -3
- package/dist/src/classes/features/other/ExtraConsoleCommands.lua +3 -3
- package/dist/src/classes/features/other/FadeInRemover.lua +3 -3
- package/dist/src/classes/features/other/FastReset.lua +3 -3
- package/dist/src/classes/features/other/FlyingDetection.d.ts.map +1 -1
- package/dist/src/classes/features/other/FlyingDetection.lua +3 -3
- package/dist/src/classes/features/other/ForgottenSwitch.lua +2 -2
- package/dist/src/classes/features/other/ItemPoolDetection.lua +4 -4
- package/dist/src/classes/features/other/ModdedElementDetection.lua +24 -24
- package/dist/src/classes/features/other/ModdedElementSets.lua +38 -38
- package/dist/src/classes/features/other/NoSirenSteal.lua +2 -2
- package/dist/src/classes/features/other/Pause.lua +4 -4
- package/dist/src/classes/features/other/PersistentEntities.lua +3 -3
- package/dist/src/classes/features/other/PickupIndexCreation.lua +2 -2
- package/dist/src/classes/features/other/PlayerInventory.lua +3 -3
- package/dist/src/classes/features/other/PonyDetection.lua +3 -3
- package/dist/src/classes/features/other/PressInput.lua +2 -2
- package/dist/src/classes/features/other/PreventChildEntities.lua +2 -2
- package/dist/src/classes/features/other/PreventCollectibleRotation.lua +2 -2
- package/dist/src/classes/features/other/PreventGridEntityRespawn.lua +2 -2
- package/dist/src/classes/features/other/RoomClearFrame.lua +3 -3
- package/dist/src/classes/features/other/RoomHistory.lua +8 -8
- package/dist/src/classes/features/other/RunInNFrames.lua +8 -8
- package/dist/src/classes/features/other/RunNextRoom.lua +2 -2
- package/dist/src/classes/features/other/SaveDataManager.lua +10 -10
- package/dist/src/classes/features/other/SpawnCollectible.lua +3 -3
- package/dist/src/classes/features/other/SpawnRockAltRewards.lua +8 -8
- package/dist/src/classes/features/other/StageHistory.lua +5 -5
- package/dist/src/classes/features/other/StartAmbush.lua +2 -2
- package/dist/src/classes/features/other/TaintedLazarusPlayers.lua +2 -2
- package/dist/src/functions/random.d.ts +4 -4
- package/dist/src/functions/random.lua +4 -4
- package/package.json +1 -1
- package/src/classes/features/other/FlyingDetection.ts +4 -2
- package/src/functions/random.ts +4 -4
package/dist/lualib_bundle.lua
CHANGED
|
@@ -859,6 +859,25 @@ local function __TS__CloneDescriptor(____bindingPattern0)
|
|
|
859
859
|
return descriptor
|
|
860
860
|
end
|
|
861
861
|
|
|
862
|
+
local function __TS__Decorate(self, originalValue, decorators, context)
|
|
863
|
+
local result = originalValue
|
|
864
|
+
do
|
|
865
|
+
local i = #decorators
|
|
866
|
+
while i >= 0 do
|
|
867
|
+
local decorator = decorators[i + 1]
|
|
868
|
+
if decorator ~= nil then
|
|
869
|
+
local ____decorator_result_0 = decorator(self, result, context)
|
|
870
|
+
if ____decorator_result_0 == nil then
|
|
871
|
+
____decorator_result_0 = result
|
|
872
|
+
end
|
|
873
|
+
result = ____decorator_result_0
|
|
874
|
+
end
|
|
875
|
+
i = i - 1
|
|
876
|
+
end
|
|
877
|
+
end
|
|
878
|
+
return result
|
|
879
|
+
end
|
|
880
|
+
|
|
862
881
|
local function __TS__ObjectAssign(target, ...)
|
|
863
882
|
local sources = {...}
|
|
864
883
|
for i = 1, #sources do
|
|
@@ -960,7 +979,7 @@ do
|
|
|
960
979
|
end
|
|
961
980
|
end
|
|
962
981
|
|
|
963
|
-
local function
|
|
982
|
+
local function __TS__DecorateLegacy(decorators, target, key, desc)
|
|
964
983
|
local result = target
|
|
965
984
|
do
|
|
966
985
|
local i = #decorators
|
|
@@ -1235,6 +1254,7 @@ do
|
|
|
1235
1254
|
end
|
|
1236
1255
|
end
|
|
1237
1256
|
end
|
|
1257
|
+
Map[Symbol.species] = Map
|
|
1238
1258
|
function Map.prototype.clear(self)
|
|
1239
1259
|
self.items = {}
|
|
1240
1260
|
self.nextKey = {}
|
|
@@ -1342,7 +1362,6 @@ do
|
|
|
1342
1362
|
end
|
|
1343
1363
|
}
|
|
1344
1364
|
end
|
|
1345
|
-
Map[Symbol.species] = Map
|
|
1346
1365
|
end
|
|
1347
1366
|
|
|
1348
1367
|
local __TS__Match = string.match
|
|
@@ -1819,6 +1838,7 @@ do
|
|
|
1819
1838
|
end
|
|
1820
1839
|
end
|
|
1821
1840
|
end
|
|
1841
|
+
Set[Symbol.species] = Set
|
|
1822
1842
|
function Set.prototype.add(self, value)
|
|
1823
1843
|
local isNewValue = not self:has(value)
|
|
1824
1844
|
if isNewValue then
|
|
@@ -1918,7 +1938,6 @@ do
|
|
|
1918
1938
|
end
|
|
1919
1939
|
}
|
|
1920
1940
|
end
|
|
1921
|
-
Set[Symbol.species] = Set
|
|
1922
1941
|
end
|
|
1923
1942
|
|
|
1924
1943
|
local function __TS__SparseArrayNew(...)
|
|
@@ -1970,6 +1989,7 @@ do
|
|
|
1970
1989
|
end
|
|
1971
1990
|
end
|
|
1972
1991
|
end
|
|
1992
|
+
WeakMap[Symbol.species] = WeakMap
|
|
1973
1993
|
function WeakMap.prototype.delete(self, key)
|
|
1974
1994
|
local contains = self:has(key)
|
|
1975
1995
|
self.items[key] = nil
|
|
@@ -1985,7 +2005,6 @@ do
|
|
|
1985
2005
|
self.items[key] = value
|
|
1986
2006
|
return self
|
|
1987
2007
|
end
|
|
1988
|
-
WeakMap[Symbol.species] = WeakMap
|
|
1989
2008
|
end
|
|
1990
2009
|
|
|
1991
2010
|
local WeakSet
|
|
@@ -2015,6 +2034,7 @@ do
|
|
|
2015
2034
|
end
|
|
2016
2035
|
end
|
|
2017
2036
|
end
|
|
2037
|
+
WeakSet[Symbol.species] = WeakSet
|
|
2018
2038
|
function WeakSet.prototype.add(self, value)
|
|
2019
2039
|
self.items[value] = true
|
|
2020
2040
|
return self
|
|
@@ -2027,7 +2047,6 @@ do
|
|
|
2027
2047
|
function WeakSet.prototype.has(self, value)
|
|
2028
2048
|
return self.items[value] == true
|
|
2029
2049
|
end
|
|
2030
|
-
WeakSet[Symbol.species] = WeakSet
|
|
2031
2050
|
end
|
|
2032
2051
|
|
|
2033
2052
|
local function __TS__SourceMapTraceBack(fileName, sourceMap)
|
|
@@ -2398,6 +2417,7 @@ return {
|
|
|
2398
2417
|
__TS__CloneDescriptor = __TS__CloneDescriptor,
|
|
2399
2418
|
__TS__CountVarargs = __TS__CountVarargs,
|
|
2400
2419
|
__TS__Decorate = __TS__Decorate,
|
|
2420
|
+
__TS__DecorateLegacy = __TS__DecorateLegacy,
|
|
2401
2421
|
__TS__DecorateParam = __TS__DecorateParam,
|
|
2402
2422
|
__TS__Delete = __TS__Delete,
|
|
2403
2423
|
__TS__DelegatedYield = __TS__DelegatedYield,
|
|
@@ -5,7 +5,7 @@ local Set = ____lualib.Set
|
|
|
5
5
|
local __TS__Class = ____lualib.__TS__Class
|
|
6
6
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
7
7
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
8
|
-
local
|
|
8
|
+
local __TS__DecorateLegacy = ____lualib.__TS__DecorateLegacy
|
|
9
9
|
local ____exports = {}
|
|
10
10
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
11
11
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
@@ -146,6 +146,7 @@ function CustomGridEntities.prototype.spawnCustomGridEntity(self, gridEntityType
|
|
|
146
146
|
roomCustomGridEntities:set(gridIndex, customGridEntityData)
|
|
147
147
|
return customGridEntity
|
|
148
148
|
end
|
|
149
|
+
__TS__DecorateLegacy({Exported}, CustomGridEntities.prototype, "spawnCustomGridEntity", true)
|
|
149
150
|
function CustomGridEntities.prototype.removeCustomGridEntity(self, gridIndexOrPositionOrGridEntity, updateRoom)
|
|
150
151
|
if updateRoom == nil then
|
|
151
152
|
updateRoom = true
|
|
@@ -180,6 +181,7 @@ function CustomGridEntities.prototype.removeCustomGridEntity(self, gridIndexOrPo
|
|
|
180
181
|
removeGridEntity(nil, decoration, updateRoom)
|
|
181
182
|
return decoration
|
|
182
183
|
end
|
|
184
|
+
__TS__DecorateLegacy({Exported}, CustomGridEntities.prototype, "removeCustomGridEntity", true)
|
|
183
185
|
function CustomGridEntities.prototype.getCustomGridEntities(self)
|
|
184
186
|
local roomListIndex = getRoomListIndex(nil)
|
|
185
187
|
local roomCustomGridEntities = v.level.customGridEntities:get(roomListIndex)
|
|
@@ -198,6 +200,7 @@ function CustomGridEntities.prototype.getCustomGridEntities(self)
|
|
|
198
200
|
end
|
|
199
201
|
return customGridEntities
|
|
200
202
|
end
|
|
203
|
+
__TS__DecorateLegacy({Exported}, CustomGridEntities.prototype, "getCustomGridEntities", true)
|
|
201
204
|
function CustomGridEntities.prototype.getCustomGridEntityType(self, gridEntityOrGridIndex)
|
|
202
205
|
if not self.initialized then
|
|
203
206
|
return nil
|
|
@@ -217,13 +220,10 @@ function CustomGridEntities.prototype.getCustomGridEntityType(self, gridEntityOr
|
|
|
217
220
|
end
|
|
218
221
|
return nil
|
|
219
222
|
end
|
|
223
|
+
__TS__DecorateLegacy({Exported}, CustomGridEntities.prototype, "getCustomGridEntityType", true)
|
|
220
224
|
function CustomGridEntities.prototype.isCustomGridEntity(self, gridEntityOrGridIndex)
|
|
221
225
|
local gridEntityTypeCustom = self:getCustomGridEntityType(gridEntityOrGridIndex)
|
|
222
226
|
return gridEntityTypeCustom ~= nil
|
|
223
227
|
end
|
|
224
|
-
|
|
225
|
-
__TS__Decorate({Exported}, CustomGridEntities.prototype, "removeCustomGridEntity", true)
|
|
226
|
-
__TS__Decorate({Exported}, CustomGridEntities.prototype, "getCustomGridEntities", true)
|
|
227
|
-
__TS__Decorate({Exported}, CustomGridEntities.prototype, "getCustomGridEntityType", true)
|
|
228
|
-
__TS__Decorate({Exported}, CustomGridEntities.prototype, "isCustomGridEntity", true)
|
|
228
|
+
__TS__DecorateLegacy({Exported}, CustomGridEntities.prototype, "isCustomGridEntity", true)
|
|
229
229
|
return ____exports
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
2
|
local __TS__Class = ____lualib.__TS__Class
|
|
3
3
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
|
-
local
|
|
4
|
+
local __TS__DecorateLegacy = ____lualib.__TS__DecorateLegacy
|
|
5
5
|
local ____exports = {}
|
|
6
6
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
7
7
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
@@ -124,14 +124,14 @@ end
|
|
|
124
124
|
function GameReorderedCallbacks.prototype.forceNewLevelCallback(self)
|
|
125
125
|
self.forceNewLevel = true
|
|
126
126
|
end
|
|
127
|
+
__TS__DecorateLegacy({Exported}, GameReorderedCallbacks.prototype, "forceNewLevelCallback", true)
|
|
127
128
|
function GameReorderedCallbacks.prototype.forceNewRoomCallback(self)
|
|
128
129
|
self.forceNewRoom = true
|
|
129
130
|
end
|
|
131
|
+
__TS__DecorateLegacy({Exported}, GameReorderedCallbacks.prototype, "forceNewRoomCallback", true)
|
|
130
132
|
function GameReorderedCallbacks.prototype.reorderedCallbacksSetStage(self, stage, stageType)
|
|
131
133
|
self.currentStage = stage
|
|
132
134
|
self.currentStageType = stageType
|
|
133
135
|
end
|
|
134
|
-
|
|
135
|
-
__TS__Decorate({Exported}, GameReorderedCallbacks.prototype, "forceNewRoomCallback", true)
|
|
136
|
-
__TS__Decorate({Exported}, GameReorderedCallbacks.prototype, "reorderedCallbacksSetStage", true)
|
|
136
|
+
__TS__DecorateLegacy({Exported}, GameReorderedCallbacks.prototype, "reorderedCallbacksSetStage", true)
|
|
137
137
|
return ____exports
|
|
@@ -3,7 +3,7 @@ local __TS__Class = ____lualib.__TS__Class
|
|
|
3
3
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
4
|
local Map = ____lualib.Map
|
|
5
5
|
local __TS__New = ____lualib.__TS__New
|
|
6
|
-
local
|
|
6
|
+
local __TS__DecorateLegacy = ____lualib.__TS__DecorateLegacy
|
|
7
7
|
local ____exports = {}
|
|
8
8
|
local convertRedHeartContainers, removeRedHearts
|
|
9
9
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
@@ -88,5 +88,5 @@ function CharacterHealthConversion.prototype.registerCharacterHealthConversion(s
|
|
|
88
88
|
end
|
|
89
89
|
self.characterHealthReplacementMap:set(playerType, conversionHeartSubType)
|
|
90
90
|
end
|
|
91
|
-
|
|
91
|
+
__TS__DecorateLegacy({Exported}, CharacterHealthConversion.prototype, "registerCharacterHealthConversion", true)
|
|
92
92
|
return ____exports
|
|
@@ -3,7 +3,7 @@ local __TS__Class = ____lualib.__TS__Class
|
|
|
3
3
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
4
|
local Map = ____lualib.Map
|
|
5
5
|
local __TS__New = ____lualib.__TS__New
|
|
6
|
-
local
|
|
6
|
+
local __TS__DecorateLegacy = ____lualib.__TS__DecorateLegacy
|
|
7
7
|
local ____exports = {}
|
|
8
8
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
9
9
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -41,5 +41,5 @@ end
|
|
|
41
41
|
function CharacterStats.prototype.registerCharacterStats(self, playerType, statMap)
|
|
42
42
|
self.charactersStatMap:set(playerType, statMap)
|
|
43
43
|
end
|
|
44
|
-
|
|
44
|
+
__TS__DecorateLegacy({Exported}, CharacterStats.prototype, "registerCharacterStats", true)
|
|
45
45
|
return ____exports
|
|
@@ -3,7 +3,7 @@ local Map = ____lualib.Map
|
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
4
|
local __TS__Class = ____lualib.__TS__Class
|
|
5
5
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
6
|
-
local
|
|
6
|
+
local __TS__DecorateLegacy = ____lualib.__TS__DecorateLegacy
|
|
7
7
|
local ____exports = {}
|
|
8
8
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
9
9
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -49,5 +49,5 @@ function CollectibleItemPoolType.prototype.getCollectibleItemPoolType(self, coll
|
|
|
49
49
|
local itemPoolType = v.run.collectibleItemPoolTypeMap:get(pickupIndex)
|
|
50
50
|
return itemPoolType == nil and getRoomItemPoolType(nil) or itemPoolType
|
|
51
51
|
end
|
|
52
|
-
|
|
52
|
+
__TS__DecorateLegacy({Exported}, CollectibleItemPoolType.prototype, "getCollectibleItemPoolType", true)
|
|
53
53
|
return ____exports
|
|
@@ -4,7 +4,7 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
|
4
4
|
local Map = ____lualib.Map
|
|
5
5
|
local __TS__New = ____lualib.__TS__New
|
|
6
6
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
7
|
-
local
|
|
7
|
+
local __TS__DecorateLegacy = ____lualib.__TS__DecorateLegacy
|
|
8
8
|
local ____exports = {}
|
|
9
9
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
10
10
|
local Keyboard = ____isaac_2Dtypescript_2Ddefinitions.Keyboard
|
|
@@ -57,26 +57,26 @@ function CustomHotkeys.prototype.setConditionalHotkey(self, getKeyFunc, triggerF
|
|
|
57
57
|
end
|
|
58
58
|
self.dynamicHotkeyFunctionMap:set(getKeyFunc, triggerFunc)
|
|
59
59
|
end
|
|
60
|
+
__TS__DecorateLegacy({Exported}, CustomHotkeys.prototype, "setConditionalHotkey", true)
|
|
60
61
|
function CustomHotkeys.prototype.setHotkey(self, keyboard, triggerFunc)
|
|
61
62
|
if self.staticHotkeyFunctionMap:has(keyboard) then
|
|
62
63
|
error(((("Failed to register a hotkey due to a hotkey already being defined for: Keyboard." .. Keyboard[keyboard]) .. " (") .. tostring(keyboard)) .. ")")
|
|
63
64
|
end
|
|
64
65
|
self.staticHotkeyFunctionMap:set(keyboard, triggerFunc)
|
|
65
66
|
end
|
|
67
|
+
__TS__DecorateLegacy({Exported}, CustomHotkeys.prototype, "setHotkey", true)
|
|
66
68
|
function CustomHotkeys.prototype.unsetConditionalHotkey(self, getKeyFunc)
|
|
67
69
|
if not self.dynamicHotkeyFunctionMap:has(getKeyFunc) then
|
|
68
70
|
error("Failed to unregister a hotkey since there is no existing hotkey defined for the submitted function.")
|
|
69
71
|
end
|
|
70
72
|
self.dynamicHotkeyFunctionMap:delete(getKeyFunc)
|
|
71
73
|
end
|
|
74
|
+
__TS__DecorateLegacy({Exported}, CustomHotkeys.prototype, "unsetConditionalHotkey", true)
|
|
72
75
|
function CustomHotkeys.prototype.unsetHotkey(self, keyboard)
|
|
73
76
|
if not self.staticHotkeyFunctionMap:has(keyboard) then
|
|
74
77
|
error(((("Failed to unregister a hotkey since there is no existing hotkey defined for: Keyboard." .. Keyboard[keyboard]) .. " (") .. tostring(keyboard)) .. ")")
|
|
75
78
|
end
|
|
76
79
|
self.staticHotkeyFunctionMap:delete(keyboard)
|
|
77
80
|
end
|
|
78
|
-
|
|
79
|
-
__TS__Decorate({Exported}, CustomHotkeys.prototype, "setHotkey", true)
|
|
80
|
-
__TS__Decorate({Exported}, CustomHotkeys.prototype, "unsetConditionalHotkey", true)
|
|
81
|
-
__TS__Decorate({Exported}, CustomHotkeys.prototype, "unsetHotkey", true)
|
|
81
|
+
__TS__DecorateLegacy({Exported}, CustomHotkeys.prototype, "unsetHotkey", true)
|
|
82
82
|
return ____exports
|
|
@@ -3,7 +3,7 @@ local Map = ____lualib.Map
|
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
4
|
local __TS__Class = ____lualib.__TS__Class
|
|
5
5
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
6
|
-
local
|
|
6
|
+
local __TS__DecorateLegacy = ____lualib.__TS__DecorateLegacy
|
|
7
7
|
local ____exports = {}
|
|
8
8
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
9
9
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
@@ -41,6 +41,7 @@ function CustomItemPools.prototype.registerCustomItemPool(self, itemPoolTypeCust
|
|
|
41
41
|
end
|
|
42
42
|
customItemPoolMap:set(itemPoolTypeCustom, collectibles)
|
|
43
43
|
end
|
|
44
|
+
__TS__DecorateLegacy({Exported}, CustomItemPools.prototype, "registerCustomItemPool", true)
|
|
44
45
|
function CustomItemPools.prototype.getCustomItemPoolCollectible(self, itemPoolTypeCustom, decrease, seedOrRNG, defaultItem)
|
|
45
46
|
if decrease == nil then
|
|
46
47
|
decrease = false
|
|
@@ -68,6 +69,5 @@ function CustomItemPools.prototype.getCustomItemPoolCollectible(self, itemPoolTy
|
|
|
68
69
|
end
|
|
69
70
|
return tuple[1]
|
|
70
71
|
end
|
|
71
|
-
|
|
72
|
-
__TS__Decorate({Exported}, CustomItemPools.prototype, "getCustomItemPoolCollectible", true)
|
|
72
|
+
__TS__DecorateLegacy({Exported}, CustomItemPools.prototype, "getCustomItemPoolCollectible", true)
|
|
73
73
|
return ____exports
|
|
@@ -3,7 +3,7 @@ local __TS__Class = ____lualib.__TS__Class
|
|
|
3
3
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
4
|
local Map = ____lualib.Map
|
|
5
5
|
local __TS__New = ____lualib.__TS__New
|
|
6
|
-
local
|
|
6
|
+
local __TS__DecorateLegacy = ____lualib.__TS__DecorateLegacy
|
|
7
7
|
local ____exports = {}
|
|
8
8
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
9
9
|
local EffectVariant = ____isaac_2Dtypescript_2Ddefinitions.EffectVariant
|
|
@@ -80,5 +80,5 @@ function CustomPickups.prototype.registerCustomPickup(self, pickupVariantCustom,
|
|
|
80
80
|
local customPickupFunctions = {collectFunc = collectFunc, collisionFunc = collisionFunc}
|
|
81
81
|
self.customPickupFunctionsMap:set(entityID, customPickupFunctions)
|
|
82
82
|
end
|
|
83
|
-
|
|
83
|
+
__TS__DecorateLegacy({Exported}, CustomPickups.prototype, "registerCustomPickup", true)
|
|
84
84
|
return ____exports
|
|
@@ -4,7 +4,7 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
|
4
4
|
local Map = ____lualib.Map
|
|
5
5
|
local __TS__New = ____lualib.__TS__New
|
|
6
6
|
local __TS__ObjectAssign = ____lualib.__TS__ObjectAssign
|
|
7
|
-
local
|
|
7
|
+
local __TS__DecorateLegacy = ____lualib.__TS__DecorateLegacy
|
|
8
8
|
local ____exports = {}
|
|
9
9
|
local getRoomTypeMap
|
|
10
10
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
@@ -374,9 +374,9 @@ function CustomStages.prototype.setCustomStage(self, name, firstFloor, streakTex
|
|
|
374
374
|
MUSIC_DELAY_RENDER_FRAMES
|
|
375
375
|
)
|
|
376
376
|
end
|
|
377
|
+
__TS__DecorateLegacy({Exported}, CustomStages.prototype, "setCustomStage", true)
|
|
377
378
|
function CustomStages.prototype.disableCustomStage(self)
|
|
378
379
|
v.run.currentCustomStage = nil
|
|
379
380
|
end
|
|
380
|
-
|
|
381
|
-
__TS__Decorate({Exported}, CustomStages.prototype, "disableCustomStage", true)
|
|
381
|
+
__TS__DecorateLegacy({Exported}, CustomStages.prototype, "disableCustomStage", true)
|
|
382
382
|
return ____exports
|
|
@@ -4,7 +4,7 @@ local Map = ____lualib.Map
|
|
|
4
4
|
local __TS__Class = ____lualib.__TS__Class
|
|
5
5
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
6
6
|
local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
|
|
7
|
-
local
|
|
7
|
+
local __TS__DecorateLegacy = ____lualib.__TS__DecorateLegacy
|
|
8
8
|
local __TS__ArraySome = ____lualib.__TS__ArraySome
|
|
9
9
|
local ____exports = {}
|
|
10
10
|
local anyPlayerPlayingExtraAnimation, shouldBeClosedFromStartingInRoomWithEnemies, openCustomTrapdoor, canPlayerInteractWithTrapdoor, setPlayerAttributes, dropTaintedForgotten, goToVanillaStage, ANIMATIONS_THAT_PREVENT_STAGE_TRAVEL
|
|
@@ -444,6 +444,7 @@ function CustomTrapdoors.prototype.registerCustomTrapdoorDestination(self, desti
|
|
|
444
444
|
end
|
|
445
445
|
self.destinationFuncMap:set(destinationName, destinationFunc)
|
|
446
446
|
end
|
|
447
|
+
__TS__DecorateLegacy({Exported}, CustomTrapdoors.prototype, "registerCustomTrapdoorDestination", true)
|
|
447
448
|
function CustomTrapdoors.prototype.spawnCustomTrapdoor(self, gridIndexOrPosition, destinationName, destinationStage, destinationStageType, anm2Path, spawnOpen)
|
|
448
449
|
if anm2Path == nil then
|
|
449
450
|
anm2Path = "gfx/grid/door_11_trapdoor.anm2"
|
|
@@ -490,6 +491,5 @@ function CustomTrapdoors.prototype.spawnCustomTrapdoor(self, gridIndexOrPosition
|
|
|
490
491
|
sprite:Play(animation, true)
|
|
491
492
|
return gridEntity
|
|
492
493
|
end
|
|
493
|
-
|
|
494
|
-
__TS__Decorate({Exported}, CustomTrapdoors.prototype, "spawnCustomTrapdoor", true)
|
|
494
|
+
__TS__DecorateLegacy({Exported}, CustomTrapdoors.prototype, "spawnCustomTrapdoor", true)
|
|
495
495
|
return ____exports
|
|
@@ -2,7 +2,7 @@ local ____lualib = require("lualib_bundle")
|
|
|
2
2
|
local __TS__Class = ____lualib.__TS__Class
|
|
3
3
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
4
|
local __TS__New = ____lualib.__TS__New
|
|
5
|
-
local
|
|
5
|
+
local __TS__DecorateLegacy = ____lualib.__TS__DecorateLegacy
|
|
6
6
|
local ____exports = {}
|
|
7
7
|
local ____decorators = require("src.decorators")
|
|
8
8
|
local Exported = ____decorators.Exported
|
|
@@ -75,57 +75,75 @@ end
|
|
|
75
75
|
function DebugDisplay.prototype.setPlayerDisplay(self, textCallback)
|
|
76
76
|
self.player.textCallback = textCallback
|
|
77
77
|
end
|
|
78
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setPlayerDisplay", true)
|
|
78
79
|
function DebugDisplay.prototype.setTearDisplay(self, textCallback)
|
|
79
80
|
self.tear.textCallback = textCallback
|
|
80
81
|
end
|
|
82
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setTearDisplay", true)
|
|
81
83
|
function DebugDisplay.prototype.setFamiliarDisplay(self, textCallback)
|
|
82
84
|
self.familiar.textCallback = textCallback
|
|
83
85
|
end
|
|
86
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setFamiliarDisplay", true)
|
|
84
87
|
function DebugDisplay.prototype.setBombDisplay(self, textCallback)
|
|
85
88
|
self.bomb.textCallback = textCallback
|
|
86
89
|
end
|
|
90
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setBombDisplay", true)
|
|
87
91
|
function DebugDisplay.prototype.setPickupDisplay(self, textCallback)
|
|
88
92
|
self.pickup.textCallback = textCallback
|
|
89
93
|
end
|
|
94
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setPickupDisplay", true)
|
|
90
95
|
function DebugDisplay.prototype.setSlotDisplay(self, textCallback)
|
|
91
96
|
self.slot.textCallback = textCallback
|
|
92
97
|
end
|
|
98
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setSlotDisplay", true)
|
|
93
99
|
function DebugDisplay.prototype.setLaserDisplay(self, textCallback)
|
|
94
100
|
self.laser.textCallback = textCallback
|
|
95
101
|
end
|
|
102
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setLaserDisplay", true)
|
|
96
103
|
function DebugDisplay.prototype.setKnifeDisplay(self, textCallback)
|
|
97
104
|
self.knife.textCallback = textCallback
|
|
98
105
|
end
|
|
106
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setKnifeDisplay", true)
|
|
99
107
|
function DebugDisplay.prototype.setProjectileDisplay(self, textCallback)
|
|
100
108
|
self.projectile.textCallback = textCallback
|
|
101
109
|
end
|
|
110
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setProjectileDisplay", true)
|
|
102
111
|
function DebugDisplay.prototype.setEffectDisplay(self, textCallback)
|
|
103
112
|
self.effect.textCallback = textCallback
|
|
104
113
|
end
|
|
114
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setEffectDisplay", true)
|
|
105
115
|
function DebugDisplay.prototype.setNPCDisplay(self, textCallback)
|
|
106
116
|
self.npc.textCallback = textCallback
|
|
107
117
|
end
|
|
118
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setNPCDisplay", true)
|
|
108
119
|
function DebugDisplay.prototype.setRockDisplay(self, textCallback)
|
|
109
120
|
self.rock.textCallback = textCallback
|
|
110
121
|
end
|
|
122
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setRockDisplay", true)
|
|
111
123
|
function DebugDisplay.prototype.setPitDisplay(self, textCallback)
|
|
112
124
|
self.pit.textCallback = textCallback
|
|
113
125
|
end
|
|
126
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setPitDisplay", true)
|
|
114
127
|
function DebugDisplay.prototype.setSpikesDisplay(self, textCallback)
|
|
115
128
|
self.spikes.textCallback = textCallback
|
|
116
129
|
end
|
|
130
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setSpikesDisplay", true)
|
|
117
131
|
function DebugDisplay.prototype.setTNTDisplay(self, textCallback)
|
|
118
132
|
self.tnt.textCallback = textCallback
|
|
119
133
|
end
|
|
134
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setTNTDisplay", true)
|
|
120
135
|
function DebugDisplay.prototype.setPoopDisplay(self, textCallback)
|
|
121
136
|
self.poop.textCallback = textCallback
|
|
122
137
|
end
|
|
138
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setPoopDisplay", true)
|
|
123
139
|
function DebugDisplay.prototype.setDoorDisplay(self, textCallback)
|
|
124
140
|
self.door.textCallback = textCallback
|
|
125
141
|
end
|
|
142
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setDoorDisplay", true)
|
|
126
143
|
function DebugDisplay.prototype.setPressurePlateDisplay(self, textCallback)
|
|
127
144
|
self.pressurePlate.textCallback = textCallback
|
|
128
145
|
end
|
|
146
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "setPressurePlateDisplay", true)
|
|
129
147
|
function DebugDisplay.prototype.toggleFeature(self, feature, featureName, force)
|
|
130
148
|
local shouldInit = not feature.initialized
|
|
131
149
|
if force ~= nil then
|
|
@@ -141,91 +159,73 @@ end
|
|
|
141
159
|
function DebugDisplay.prototype.togglePlayerDisplay(self, force)
|
|
142
160
|
self:toggleFeature(self.player, "player", force)
|
|
143
161
|
end
|
|
162
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "togglePlayerDisplay", true)
|
|
144
163
|
function DebugDisplay.prototype.toggleTearDisplay(self, force)
|
|
145
164
|
self:toggleFeature(self.tear, "tear", force)
|
|
146
165
|
end
|
|
166
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "toggleTearDisplay", true)
|
|
147
167
|
function DebugDisplay.prototype.toggleFamiliarDisplay(self, force)
|
|
148
168
|
self:toggleFeature(self.familiar, "familiar", force)
|
|
149
169
|
end
|
|
170
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "toggleFamiliarDisplay", true)
|
|
150
171
|
function DebugDisplay.prototype.toggleBombDisplay(self, force)
|
|
151
172
|
self:toggleFeature(self.bomb, "bomb", force)
|
|
152
173
|
end
|
|
174
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "toggleBombDisplay", true)
|
|
153
175
|
function DebugDisplay.prototype.togglePickupDisplay(self, force)
|
|
154
176
|
self:toggleFeature(self.pickup, "pickup", force)
|
|
155
177
|
end
|
|
178
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "togglePickupDisplay", true)
|
|
156
179
|
function DebugDisplay.prototype.toggleSlotDisplay(self, force)
|
|
157
180
|
self:toggleFeature(self.slot, "slot", force)
|
|
158
181
|
end
|
|
182
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "toggleSlotDisplay", true)
|
|
159
183
|
function DebugDisplay.prototype.toggleLaserDisplay(self, force)
|
|
160
184
|
self:toggleFeature(self.laser, "laser", force)
|
|
161
185
|
end
|
|
186
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "toggleLaserDisplay", true)
|
|
162
187
|
function DebugDisplay.prototype.toggleKnifeDisplay(self, force)
|
|
163
188
|
self:toggleFeature(self.knife, "knife", force)
|
|
164
189
|
end
|
|
190
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "toggleKnifeDisplay", true)
|
|
165
191
|
function DebugDisplay.prototype.toggleProjectileDisplay(self, force)
|
|
166
192
|
self:toggleFeature(self.projectile, "projectile", force)
|
|
167
193
|
end
|
|
194
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "toggleProjectileDisplay", true)
|
|
168
195
|
function DebugDisplay.prototype.toggleEffectDisplay(self, force)
|
|
169
196
|
self:toggleFeature(self.effect, "effect", force)
|
|
170
197
|
end
|
|
198
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "toggleEffectDisplay", true)
|
|
171
199
|
function DebugDisplay.prototype.toggleNPCDisplay(self, force)
|
|
172
200
|
self:toggleFeature(self.npc, "NPC", force)
|
|
173
201
|
end
|
|
202
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "toggleNPCDisplay", true)
|
|
174
203
|
function DebugDisplay.prototype.toggleRockDisplay(self, force)
|
|
175
204
|
self:toggleFeature(self.rock, "rock", force)
|
|
176
205
|
end
|
|
206
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "toggleRockDisplay", true)
|
|
177
207
|
function DebugDisplay.prototype.togglePitDisplay(self, force)
|
|
178
208
|
self:toggleFeature(self.pit, "pit", force)
|
|
179
209
|
end
|
|
210
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "togglePitDisplay", true)
|
|
180
211
|
function DebugDisplay.prototype.toggleSpikesDisplay(self, force)
|
|
181
212
|
self:toggleFeature(self.spikes, "spikes", force)
|
|
182
213
|
end
|
|
214
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "toggleSpikesDisplay", true)
|
|
183
215
|
function DebugDisplay.prototype.toggleTNTDisplay(self, force)
|
|
184
216
|
self:toggleFeature(self.tnt, "tnt", force)
|
|
185
217
|
end
|
|
218
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "toggleTNTDisplay", true)
|
|
186
219
|
function DebugDisplay.prototype.togglePoopDisplay(self, force)
|
|
187
220
|
self:toggleFeature(self.poop, "poop", force)
|
|
188
221
|
end
|
|
222
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "togglePoopDisplay", true)
|
|
189
223
|
function DebugDisplay.prototype.toggleDoorDisplay(self, force)
|
|
190
224
|
self:toggleFeature(self.door, "door", force)
|
|
191
225
|
end
|
|
226
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "toggleDoorDisplay", true)
|
|
192
227
|
function DebugDisplay.prototype.togglePressurePlateDisplay(self, force)
|
|
193
228
|
self:toggleFeature(self.pressurePlate, "pressure plate", force)
|
|
194
229
|
end
|
|
195
|
-
|
|
196
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setTearDisplay", true)
|
|
197
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setFamiliarDisplay", true)
|
|
198
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setBombDisplay", true)
|
|
199
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setPickupDisplay", true)
|
|
200
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setSlotDisplay", true)
|
|
201
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setLaserDisplay", true)
|
|
202
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setKnifeDisplay", true)
|
|
203
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setProjectileDisplay", true)
|
|
204
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setEffectDisplay", true)
|
|
205
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setNPCDisplay", true)
|
|
206
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setRockDisplay", true)
|
|
207
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setPitDisplay", true)
|
|
208
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setSpikesDisplay", true)
|
|
209
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setTNTDisplay", true)
|
|
210
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setPoopDisplay", true)
|
|
211
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setDoorDisplay", true)
|
|
212
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "setPressurePlateDisplay", true)
|
|
213
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "togglePlayerDisplay", true)
|
|
214
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "toggleTearDisplay", true)
|
|
215
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "toggleFamiliarDisplay", true)
|
|
216
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "toggleBombDisplay", true)
|
|
217
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "togglePickupDisplay", true)
|
|
218
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "toggleSlotDisplay", true)
|
|
219
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "toggleLaserDisplay", true)
|
|
220
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "toggleKnifeDisplay", true)
|
|
221
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "toggleProjectileDisplay", true)
|
|
222
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "toggleEffectDisplay", true)
|
|
223
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "toggleNPCDisplay", true)
|
|
224
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "toggleRockDisplay", true)
|
|
225
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "togglePitDisplay", true)
|
|
226
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "toggleSpikesDisplay", true)
|
|
227
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "toggleTNTDisplay", true)
|
|
228
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "togglePoopDisplay", true)
|
|
229
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "toggleDoorDisplay", true)
|
|
230
|
-
__TS__Decorate({Exported}, DebugDisplay.prototype, "togglePressurePlateDisplay", true)
|
|
230
|
+
__TS__DecorateLegacy({Exported}, DebugDisplay.prototype, "togglePressurePlateDisplay", true)
|
|
231
231
|
return ____exports
|
|
@@ -2,7 +2,7 @@ local ____lualib = require("lualib_bundle")
|
|
|
2
2
|
local __TS__New = ____lualib.__TS__New
|
|
3
3
|
local __TS__Class = ____lualib.__TS__Class
|
|
4
4
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
5
|
-
local
|
|
5
|
+
local __TS__DecorateLegacy = ____lualib.__TS__DecorateLegacy
|
|
6
6
|
local Map = ____lualib.Map
|
|
7
7
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
8
8
|
local ____exports = {}
|
|
@@ -323,5 +323,5 @@ function DeployJSONRoom.prototype.deployJSONRoom(self, jsonRoom, seedOrRNG, verb
|
|
|
323
323
|
fixPitGraphics(nil)
|
|
324
324
|
self.preventGridEntityRespawn:preventGridEntityRespawn()
|
|
325
325
|
end
|
|
326
|
-
|
|
326
|
+
__TS__DecorateLegacy({Exported}, DeployJSONRoom.prototype, "deployJSONRoom", true)
|
|
327
327
|
return ____exports
|
|
@@ -3,7 +3,7 @@ local Set = ____lualib.Set
|
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
4
|
local __TS__Class = ____lualib.__TS__Class
|
|
5
5
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
6
|
-
local
|
|
6
|
+
local __TS__DecorateLegacy = ____lualib.__TS__DecorateLegacy
|
|
7
7
|
local ____exports = {}
|
|
8
8
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
9
9
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -42,6 +42,7 @@ function DisableAllSound.prototype.enableAllSound(self, key)
|
|
|
42
42
|
end
|
|
43
43
|
stopAllSoundEffects(nil)
|
|
44
44
|
end
|
|
45
|
+
__TS__DecorateLegacy({Exported}, DisableAllSound.prototype, "enableAllSound", true)
|
|
45
46
|
function DisableAllSound.prototype.disableAllSound(self, key)
|
|
46
47
|
if v.run.disableSoundSet.size == 0 then
|
|
47
48
|
self.musicWasEnabled = musicManager:IsEnabled()
|
|
@@ -49,6 +50,5 @@ function DisableAllSound.prototype.disableAllSound(self, key)
|
|
|
49
50
|
v.run.disableSoundSet:add(key)
|
|
50
51
|
stopAllSoundEffects(nil)
|
|
51
52
|
end
|
|
52
|
-
|
|
53
|
-
__TS__Decorate({Exported}, DisableAllSound.prototype, "disableAllSound", true)
|
|
53
|
+
__TS__DecorateLegacy({Exported}, DisableAllSound.prototype, "disableAllSound", true)
|
|
54
54
|
return ____exports
|
|
@@ -4,7 +4,7 @@ local __TS__New = ____lualib.__TS__New
|
|
|
4
4
|
local __TS__Class = ____lualib.__TS__Class
|
|
5
5
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
6
6
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
7
|
-
local
|
|
7
|
+
local __TS__DecorateLegacy = ____lualib.__TS__DecorateLegacy
|
|
8
8
|
local ____exports = {}
|
|
9
9
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
10
10
|
local InputHook = ____isaac_2Dtypescript_2Ddefinitions.InputHook
|
|
@@ -64,15 +64,18 @@ end
|
|
|
64
64
|
function DisableInputs.prototype.areInputsEnabled(self)
|
|
65
65
|
return v.run.disableInputs.size == 0 and v.run.enableAllInputsWithBlacklistMap.size == 0 and v.run.disableAllInputsWithWhitelistMap.size == 0
|
|
66
66
|
end
|
|
67
|
+
__TS__DecorateLegacy({Exported}, DisableInputs.prototype, "areInputsEnabled", true)
|
|
67
68
|
function DisableInputs.prototype.enableAllInputs(self, key)
|
|
68
69
|
v.run.disableAllInputsWithWhitelistMap:delete(key)
|
|
69
70
|
v.run.enableAllInputsWithBlacklistMap:delete(key)
|
|
70
71
|
end
|
|
72
|
+
__TS__DecorateLegacy({Exported}, DisableInputs.prototype, "enableAllInputs", true)
|
|
71
73
|
function DisableInputs.prototype.disableInputs(self, key, ...)
|
|
72
74
|
local buttonActions = {...}
|
|
73
75
|
local buttonActionsSet = __TS__New(ReadonlySet, buttonActions)
|
|
74
76
|
v.run.disableInputs:set(key, buttonActionsSet)
|
|
75
77
|
end
|
|
78
|
+
__TS__DecorateLegacy({Exported}, DisableInputs.prototype, "disableInputs", true)
|
|
76
79
|
function DisableInputs.prototype.disableAllInputs(self, key)
|
|
77
80
|
v.run.disableAllInputsWithWhitelistMap:set(
|
|
78
81
|
key,
|
|
@@ -80,28 +83,25 @@ function DisableInputs.prototype.disableAllInputs(self, key)
|
|
|
80
83
|
)
|
|
81
84
|
v.run.enableAllInputsWithBlacklistMap:delete(key)
|
|
82
85
|
end
|
|
86
|
+
__TS__DecorateLegacy({Exported}, DisableInputs.prototype, "disableAllInputs", true)
|
|
83
87
|
function DisableInputs.prototype.enableAllInputsExceptFor(self, key, blacklist)
|
|
84
88
|
v.run.disableAllInputsWithWhitelistMap:delete(key)
|
|
85
89
|
v.run.enableAllInputsWithBlacklistMap:set(key, blacklist)
|
|
86
90
|
end
|
|
91
|
+
__TS__DecorateLegacy({Exported}, DisableInputs.prototype, "enableAllInputsExceptFor", true)
|
|
87
92
|
function DisableInputs.prototype.disableAllInputsExceptFor(self, key, whitelist)
|
|
88
93
|
v.run.disableAllInputsWithWhitelistMap:set(key, whitelist)
|
|
89
94
|
v.run.enableAllInputsWithBlacklistMap:delete(key)
|
|
90
95
|
end
|
|
96
|
+
__TS__DecorateLegacy({Exported}, DisableInputs.prototype, "disableAllInputsExceptFor", true)
|
|
91
97
|
function DisableInputs.prototype.disableMovementInputs(self, key)
|
|
92
98
|
local moveActions = getMoveActions(nil)
|
|
93
99
|
self:enableAllInputsExceptFor(key, moveActions)
|
|
94
100
|
end
|
|
101
|
+
__TS__DecorateLegacy({Exported}, DisableInputs.prototype, "disableMovementInputs", true)
|
|
95
102
|
function DisableInputs.prototype.disableShootingInputs(self, key)
|
|
96
103
|
local shootActions = getShootActions(nil)
|
|
97
104
|
self:enableAllInputsExceptFor(key, shootActions)
|
|
98
105
|
end
|
|
99
|
-
|
|
100
|
-
__TS__Decorate({Exported}, DisableInputs.prototype, "enableAllInputs", true)
|
|
101
|
-
__TS__Decorate({Exported}, DisableInputs.prototype, "disableInputs", true)
|
|
102
|
-
__TS__Decorate({Exported}, DisableInputs.prototype, "disableAllInputs", true)
|
|
103
|
-
__TS__Decorate({Exported}, DisableInputs.prototype, "enableAllInputsExceptFor", true)
|
|
104
|
-
__TS__Decorate({Exported}, DisableInputs.prototype, "disableAllInputsExceptFor", true)
|
|
105
|
-
__TS__Decorate({Exported}, DisableInputs.prototype, "disableMovementInputs", true)
|
|
106
|
-
__TS__Decorate({Exported}, DisableInputs.prototype, "disableShootingInputs", true)
|
|
106
|
+
__TS__DecorateLegacy({Exported}, DisableInputs.prototype, "disableShootingInputs", true)
|
|
107
107
|
return ____exports
|