isaacscript-common 25.2.0 → 25.4.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 +27 -2
- package/dist/isaacscript-common.lua +803 -693
- package/dist/src/classes/ModFeature.d.ts.map +1 -1
- package/dist/src/classes/ModFeature.lua +12 -5
- package/dist/src/classes/callbacks/PostAmbushFinished.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostAmbushFinished.lua +4 -3
- package/dist/src/classes/callbacks/PostAmbushStarted.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostAmbushStarted.lua +4 -3
- package/dist/src/classes/callbacks/PostBombInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostBombInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostBoneSwing.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostBoneSwing.lua +5 -4
- package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCollectibleEmpty.lua +6 -5
- package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCollectibleInitFirst.lua +6 -5
- package/dist/src/classes/callbacks/PostCursedTeleport.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCursedTeleport.lua +14 -13
- package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostDiceRoomActivated.lua +4 -3
- package/dist/src/classes/callbacks/PostEffectInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostEffectInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostEffectStateChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostEffectStateChanged.lua +8 -7
- package/dist/src/classes/callbacks/PostFamiliarInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostFamiliarInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostFamiliarStateChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostFamiliarStateChanged.lua +8 -7
- package/dist/src/classes/callbacks/PostGameStartedReordered.d.ts +2 -0
- package/dist/src/classes/callbacks/PostGameStartedReordered.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGameStartedReordered.lua +3 -0
- package/dist/src/classes/callbacks/PostGameStartedReorderedLast.d.ts +2 -0
- package/dist/src/classes/callbacks/PostGameStartedReorderedLast.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGameStartedReorderedLast.lua +3 -0
- package/dist/src/classes/callbacks/PostGreedModeWave.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGreedModeWave.lua +4 -3
- package/dist/src/classes/callbacks/PostHolyMantleRemoved.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostHolyMantleRemoved.lua +5 -4
- package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostItemDischarge.lua +20 -19
- package/dist/src/classes/callbacks/PostKeyboardChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostKeyboardChanged.lua +8 -7
- package/dist/src/classes/callbacks/PostKnifeInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostKnifeInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostLaserInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostLaserInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostNPCInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostNPCInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostNPCStateChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostNPCStateChanged.lua +8 -7
- package/dist/src/classes/callbacks/PostPickupCollect.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPickupCollect.lua +6 -5
- package/dist/src/classes/callbacks/PostPickupInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPickupInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostPickupStateChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPickupStateChanged.lua +8 -7
- package/dist/src/classes/callbacks/PostPlayerChangeHealth.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerChangeHealth.lua +8 -7
- package/dist/src/classes/callbacks/PostPlayerChangeStat.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerChangeStat.lua +8 -7
- package/dist/src/classes/callbacks/PostPlayerChangeType.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerChangeType.lua +8 -7
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.lua +6 -5
- package/dist/src/classes/callbacks/PostPlayerInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostProjectileInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostProjectileInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostPurchase.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPurchase.lua +5 -4
- package/dist/src/classes/callbacks/PostRoomClearChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostRoomClearChanged.lua +5 -4
- package/dist/src/classes/callbacks/PostSacrifice.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostSacrifice.lua +5 -4
- package/dist/src/classes/callbacks/PostTearInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTearInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostTearInitVeryLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTearInitVeryLate.lua +6 -5
- package/dist/src/classes/callbacks/PostTransformation.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTransformation.lua +8 -7
- package/dist/src/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTrinketBreak.lua +9 -8
- package/dist/src/classes/callbacks/PreNewLevel.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PreNewLevel.lua +4 -3
- package/dist/src/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/CustomGridEntities.lua +21 -20
- package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/CustomRevive.lua +18 -17
- package/dist/src/classes/features/callbackLogic/EsauJrDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/EsauJrDetection.lua +11 -10
- package/dist/src/classes/features/callbackLogic/FlipDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/FlipDetection.lua +4 -3
- package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.lua +8 -7
- package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.lua +9 -8
- package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/ItemPickupDetection.lua +7 -6
- package/dist/src/classes/features/callbackLogic/PickupChangeDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/PickupChangeDetection.lua +11 -10
- package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.lua +20 -19
- package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.lua +15 -14
- package/dist/src/classes/features/callbackLogic/SlotDestroyedDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/SlotDestroyedDetection.lua +6 -5
- package/dist/src/classes/features/callbackLogic/SlotRenderDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/SlotRenderDetection.lua +15 -14
- package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.lua +6 -5
- package/dist/src/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
- package/dist/src/classes/features/other/CollectibleItemPoolType.lua +6 -5
- package/dist/src/classes/features/other/CustomItemPools.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomItemPools.lua +6 -5
- package/dist/src/classes/features/other/CustomPickups.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomStages.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomStages.lua +17 -26
- package/dist/src/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomTrapdoors.lua +36 -35
- package/dist/src/classes/features/other/DisableAllSound.d.ts.map +1 -1
- package/dist/src/classes/features/other/DisableAllSound.lua +10 -9
- package/dist/src/classes/features/other/DisableInputs.d.ts.map +1 -1
- package/dist/src/classes/features/other/DisableInputs.lua +21 -20
- package/dist/src/classes/features/other/ExtraConsoleCommands.lua +19 -19
- package/dist/src/classes/features/other/NoSirenSteal.d.ts.map +1 -1
- package/dist/src/classes/features/other/NoSirenSteal.lua +5 -4
- package/dist/src/classes/features/other/Pause.d.ts.map +1 -1
- package/dist/src/classes/features/other/Pause.lua +20 -19
- package/dist/src/classes/features/other/PersistentEntities.d.ts.map +1 -1
- package/dist/src/classes/features/other/PersistentEntities.lua +20 -19
- package/dist/src/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
- package/dist/src/classes/features/other/PickupIndexCreation.lua +29 -28
- package/dist/src/classes/features/other/PlayerInventory.d.ts.map +1 -1
- package/dist/src/classes/features/other/PlayerInventory.lua +9 -8
- package/dist/src/classes/features/other/PonyDetection.d.ts.map +1 -1
- package/dist/src/classes/features/other/PonyDetection.lua +8 -7
- package/dist/src/classes/features/other/PressInput.d.ts.map +1 -1
- package/dist/src/classes/features/other/PressInput.lua +7 -6
- package/dist/src/classes/features/other/PreventChildEntities.d.ts.map +1 -1
- package/dist/src/classes/features/other/PreventChildEntities.lua +7 -6
- package/dist/src/classes/features/other/PreventCollectibleRotation.d.ts.map +1 -1
- package/dist/src/classes/features/other/PreventCollectibleRotation.lua +7 -6
- package/dist/src/classes/features/other/PreventGridEntityRespawn.d.ts.map +1 -1
- package/dist/src/classes/features/other/PreventGridEntityRespawn.lua +16 -15
- package/dist/src/classes/features/other/RoomClearFrame.d.ts.map +1 -1
- package/dist/src/classes/features/other/RoomClearFrame.lua +6 -5
- package/dist/src/classes/features/other/RoomHistory.d.ts.map +1 -1
- package/dist/src/classes/features/other/RoomHistory.lua +9 -8
- package/dist/src/classes/features/other/RunInNFrames.d.ts.map +1 -1
- package/dist/src/classes/features/other/RunInNFrames.lua +14 -13
- package/dist/src/classes/features/other/RunNextRoom.d.ts.map +1 -1
- package/dist/src/classes/features/other/RunNextRoom.lua +6 -5
- package/dist/src/classes/features/other/SaveDataManager.d.ts +1 -0
- package/dist/src/classes/features/other/SaveDataManager.d.ts.map +1 -1
- package/dist/src/classes/features/other/SaveDataManager.lua +12 -0
- package/dist/src/classes/features/other/StageHistory.d.ts.map +1 -1
- package/dist/src/classes/features/other/StageHistory.lua +7 -6
- package/dist/src/classes/features/other/TaintedLazarusPlayers.d.ts.map +1 -1
- package/dist/src/classes/features/other/TaintedLazarusPlayers.lua +18 -17
- package/dist/src/classes/features/other/customStages/streakText.d.ts +3 -25
- package/dist/src/classes/features/other/customStages/streakText.d.ts.map +1 -1
- package/dist/src/classes/features/other/customStages/streakText.lua +16 -26
- package/dist/src/classes/features/other/customStages/v.d.ts +25 -0
- package/dist/src/classes/features/other/customStages/v.d.ts.map +1 -0
- package/dist/src/classes/features/other/customStages/v.lua +16 -0
- package/dist/src/classes/features/other/customStages/versusScreen.d.ts +2 -8
- package/dist/src/classes/features/other/customStages/versusScreen.d.ts.map +1 -1
- package/dist/src/classes/features/other/customStages/versusScreen.lua +6 -4
- package/dist/src/enums/ModCallbackCustom.d.ts +6 -0
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/functions/decorators.d.ts +15 -0
- package/dist/src/functions/decorators.d.ts.map +1 -1
- package/dist/src/functions/decorators.lua +21 -5
- package/dist/src/interfaces/SaveData.d.ts.map +1 -1
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +4 -2
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/dist/src/shouldFire.d.ts +1 -0
- package/dist/src/shouldFire.d.ts.map +1 -1
- package/dist/src/shouldFire.lua +5 -0
- package/package.json +1 -1
- package/src/classes/ModFeature.ts +16 -4
- package/src/classes/callbacks/PostAmbushFinished.ts +9 -7
- package/src/classes/callbacks/PostAmbushStarted.ts +9 -7
- package/src/classes/callbacks/PostBombInitLate.ts +9 -7
- package/src/classes/callbacks/PostBoneSwing.ts +9 -7
- package/src/classes/callbacks/PostCollectibleEmpty.ts +9 -7
- package/src/classes/callbacks/PostCollectibleInitFirst.ts +9 -7
- package/src/classes/callbacks/PostCursedTeleport.ts +20 -24
- package/src/classes/callbacks/PostDiceRoomActivated.ts +9 -7
- package/src/classes/callbacks/PostEffectInitLate.ts +9 -7
- package/src/classes/callbacks/PostEffectStateChanged.ts +9 -7
- package/src/classes/callbacks/PostFamiliarInitLate.ts +9 -7
- package/src/classes/callbacks/PostFamiliarStateChanged.ts +9 -7
- package/src/classes/callbacks/PostGameStartedReordered.ts +3 -0
- package/src/classes/callbacks/PostGameStartedReorderedLast.ts +3 -0
- package/src/classes/callbacks/PostGreedModeWave.ts +9 -7
- package/src/classes/callbacks/PostHolyMantleRemoved.ts +9 -7
- package/src/classes/callbacks/PostItemDischarge.ts +21 -27
- package/src/classes/callbacks/PostKeyboardChanged.ts +11 -9
- package/src/classes/callbacks/PostKnifeInitLate.ts +9 -7
- package/src/classes/callbacks/PostLaserInitLate.ts +9 -7
- package/src/classes/callbacks/PostNPCInitLate.ts +9 -7
- package/src/classes/callbacks/PostNPCStateChanged.ts +11 -12
- package/src/classes/callbacks/PostPickupCollect.ts +9 -7
- package/src/classes/callbacks/PostPickupInitLate.ts +9 -7
- package/src/classes/callbacks/PostPickupStateChanged.ts +9 -7
- package/src/classes/callbacks/PostPlayerChangeHealth.ts +10 -8
- package/src/classes/callbacks/PostPlayerChangeStat.ts +11 -10
- package/src/classes/callbacks/PostPlayerChangeType.ts +13 -11
- package/src/classes/callbacks/PostPlayerFatalDamage.ts +10 -8
- package/src/classes/callbacks/PostPlayerInitLate.ts +9 -7
- package/src/classes/callbacks/PostProjectileInitLate.ts +9 -7
- package/src/classes/callbacks/PostPurchase.ts +11 -9
- package/src/classes/callbacks/PostRoomClearChanged.ts +10 -8
- package/src/classes/callbacks/PostSacrifice.ts +9 -7
- package/src/classes/callbacks/PostTearInitLate.ts +9 -7
- package/src/classes/callbacks/PostTearInitVeryLate.ts +9 -7
- package/src/classes/callbacks/PostTransformation.ts +12 -10
- package/src/classes/callbacks/PostTrinketBreak.ts +12 -16
- package/src/classes/callbacks/PreNewLevel.ts +9 -7
- package/src/classes/features/callbackLogic/CustomGridEntities.ts +23 -21
- package/src/classes/features/callbackLogic/CustomRevive.ts +26 -27
- package/src/classes/features/callbackLogic/EsauJrDetection.ts +19 -17
- package/src/classes/features/callbackLogic/FlipDetection.ts +10 -8
- package/src/classes/features/callbackLogic/GridEntityCollisionDetection.ts +11 -9
- package/src/classes/features/callbackLogic/GridEntityUpdateDetection.ts +13 -12
- package/src/classes/features/callbackLogic/ItemPickupDetection.ts +10 -8
- package/src/classes/features/callbackLogic/PickupChangeDetection.ts +12 -10
- package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +21 -27
- package/src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts +22 -29
- package/src/classes/features/callbackLogic/SlotDestroyedDetection.ts +9 -7
- package/src/classes/features/callbackLogic/SlotRenderDetection.ts +15 -13
- package/src/classes/features/callbackLogic/SlotUpdateDetection.ts +9 -7
- package/src/classes/features/other/CollectibleItemPoolType.ts +9 -7
- package/src/classes/features/other/CustomItemPools.ts +9 -7
- package/src/classes/features/other/CustomPickups.ts +0 -1
- package/src/classes/features/other/CustomStages.ts +16 -44
- package/src/classes/features/other/CustomTrapdoors.ts +53 -54
- package/src/classes/features/other/DisableAllSound.ts +13 -11
- package/src/classes/features/other/DisableInputs.ts +39 -37
- package/src/classes/features/other/ExtraConsoleCommands.ts +19 -19
- package/src/classes/features/other/NoSirenSteal.ts +11 -9
- package/src/classes/features/other/Pause.ts +21 -19
- package/src/classes/features/other/PersistentEntities.ts +33 -31
- package/src/classes/features/other/PickupIndexCreation.ts +35 -33
- package/src/classes/features/other/PlayerInventory.ts +14 -12
- package/src/classes/features/other/PonyDetection.ts +11 -9
- package/src/classes/features/other/PressInput.ts +11 -9
- package/src/classes/features/other/PreventChildEntities.ts +10 -8
- package/src/classes/features/other/PreventCollectibleRotation.ts +20 -18
- package/src/classes/features/other/PreventGridEntityRespawn.ts +18 -18
- package/src/classes/features/other/RoomClearFrame.ts +12 -10
- package/src/classes/features/other/RoomHistory.ts +13 -11
- package/src/classes/features/other/RunInNFrames.ts +19 -17
- package/src/classes/features/other/RunNextRoom.ts +10 -8
- package/src/classes/features/other/SaveDataManager.ts +11 -0
- package/src/classes/features/other/StageHistory.ts +11 -9
- package/src/classes/features/other/TaintedLazarusPlayers.ts +31 -30
- package/src/classes/features/other/customStages/streakText.ts +14 -44
- package/src/classes/features/other/customStages/v.ts +31 -0
- package/src/classes/features/other/customStages/versusScreen.ts +2 -10
- package/src/enums/ModCallbackCustom.ts +6 -0
- package/src/functions/decorators.ts +45 -4
- package/src/interfaces/SaveData.ts +0 -1
- package/src/interfaces/private/AddCallbackParametersCustom.ts +2 -0
- package/src/shouldFire.ts +10 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoomHistory.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RoomHistory.ts"],"names":[],"mappings":";AAcA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"RoomHistory.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RoomHistory.ts"],"names":[],"mappings":";AAcA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,WAAY,SAAQ,OAAO;IActC,OAAO,CAAC,gBAAgB,CAgCtB;IAEF;;;;;OAKG;IAEI,kBAAkB,IAAI,GAAG;IAIhC;;;;;OAKG;IAEI,cAAc,IAAI,aAAa,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;IAIjE;;;;;;;OAOG;IAEI,0BAA0B,IAAI,QAAQ,CAAC,eAAe,CAAC;IAiB9D;;;;;;;;;;OAUG;IAEI,wBAAwB,IAAI,QAAQ,CAAC,eAAe,CAAC,GAAG,SAAS;IAIxE;;;;;;;;;;OAUG;IAEI,aAAa,IAAI,OAAO;CAwBhC"}
|
|
@@ -23,13 +23,14 @@ local getRoomVariant = ____roomData.getRoomVariant
|
|
|
23
23
|
local getRoomVisitedCount = ____roomData.getRoomVisitedCount
|
|
24
24
|
local ____Feature = require("src.classes.private.Feature")
|
|
25
25
|
local Feature = ____Feature.Feature
|
|
26
|
+
local v = {run = {roomHistory = {}}}
|
|
26
27
|
____exports.RoomHistory = __TS__Class()
|
|
27
28
|
local RoomHistory = ____exports.RoomHistory
|
|
28
29
|
RoomHistory.name = "RoomHistory"
|
|
29
30
|
__TS__ClassExtends(RoomHistory, Feature)
|
|
30
31
|
function RoomHistory.prototype.____constructor(self)
|
|
31
32
|
Feature.prototype.____constructor(self)
|
|
32
|
-
self.v =
|
|
33
|
+
self.v = v
|
|
33
34
|
self.postNewRoomEarly = function()
|
|
34
35
|
local level = game:GetLevel()
|
|
35
36
|
local stage = level:GetStage()
|
|
@@ -60,30 +61,30 @@ function RoomHistory.prototype.____constructor(self)
|
|
|
60
61
|
roomListIndex = roomListIndex,
|
|
61
62
|
roomVisitedCount = roomVisitedCount
|
|
62
63
|
}
|
|
63
|
-
local
|
|
64
|
-
|
|
64
|
+
local ____v_run_roomHistory_0 = v.run.roomHistory
|
|
65
|
+
____v_run_roomHistory_0[#____v_run_roomHistory_0 + 1] = roomDescription
|
|
65
66
|
end
|
|
66
67
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_EARLY, self.postNewRoomEarly}}
|
|
67
68
|
end
|
|
68
69
|
function RoomHistory.prototype.getNumRoomsEntered(self)
|
|
69
|
-
return #
|
|
70
|
+
return #v.run.roomHistory
|
|
70
71
|
end
|
|
71
72
|
function RoomHistory.prototype.getRoomHistory(self)
|
|
72
|
-
return
|
|
73
|
+
return v.run.roomHistory
|
|
73
74
|
end
|
|
74
75
|
function RoomHistory.prototype.getPreviousRoomDescription(self)
|
|
75
|
-
local previousRoomDescription =
|
|
76
|
+
local previousRoomDescription = v.run.roomHistory[#v.run.roomHistory - 2 + 1]
|
|
76
77
|
if previousRoomDescription ~= nil then
|
|
77
78
|
return previousRoomDescription
|
|
78
79
|
end
|
|
79
|
-
local startingRoomDescription =
|
|
80
|
+
local startingRoomDescription = v.run.roomHistory[1]
|
|
80
81
|
if startingRoomDescription ~= nil then
|
|
81
82
|
return startingRoomDescription
|
|
82
83
|
end
|
|
83
84
|
error("Failed to find a room description for any rooms thus far on this run.")
|
|
84
85
|
end
|
|
85
86
|
function RoomHistory.prototype.getLatestRoomDescription(self)
|
|
86
|
-
return getLastElement(nil,
|
|
87
|
+
return getLastElement(nil, v.run.roomHistory)
|
|
87
88
|
end
|
|
88
89
|
function RoomHistory.prototype.isLeavingRoom(self)
|
|
89
90
|
local level = game:GetLevel()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunInNFrames.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RunInNFrames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAMvE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"RunInNFrames.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RunInNFrames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAMvE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AA+BhD,qBAAa,YAAa,SAAQ,OAAO;IAIvB,gBAAgB,QAAO,OAAO,CAAU;IAExD,OAAO,CAAC,WAAW,CAAc;IAoBjC,OAAO,CAAC,UAAU,CAchB;IAGF,OAAO,CAAC,UAAU,CAchB;IAEF;;;;;;;;OAQG;IAEI,sBAAsB,CAAC,SAAS,CAAC,EAAE,UAAU,GAAG,IAAI;IAM3D;;;;;;;;;;;;;;;;OAgBG;IAEI,gBAAgB,CACrB,IAAI,EAAE,MAAM,IAAI,EAChB,aAAa,EAAE,GAAG,EAClB,mBAAmB,UAAQ,GAC1B,IAAI;IAcP;;;;;;;;;;;;;;;;OAgBG;IAEI,kBAAkB,CACvB,IAAI,EAAE,MAAM,IAAI,EAChB,eAAe,EAAE,GAAG,EACpB,mBAAmB,UAAQ,GAC1B,IAAI;IAcP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IAEI,gBAAgB,CAAC,IAAI,EAAE,MAAM,IAAI,EAAE,mBAAmB,UAAQ,GAAG,IAAI;IAI5E;;;;;;;;;;;;;OAaG;IAEI,kBAAkB,CACvB,IAAI,EAAE,MAAM,IAAI,EAChB,mBAAmB,UAAQ,GAC1B,IAAI;IAIP;;;;;;;;;;;;;;;;;;;OAmBG;IAEI,qBAAqB,CAC1B,IAAI,EAAE,MAAM,OAAO,EACnB,aAAa,EAAE,GAAG,EAClB,cAAc,EAAE,OAAO,EACvB,mBAAmB,UAAQ,GAC1B,IAAI;IAqBP;;;;;;;;;;;;;;;;;;;OAmBG;IAEI,uBAAuB,CAC5B,IAAI,EAAE,MAAM,OAAO,EACnB,eAAe,EAAE,GAAG,EACpB,cAAc,EAAE,OAAO,EACvB,mBAAmB,UAAQ,GAC1B,IAAI;CAoBR"}
|
|
@@ -69,25 +69,26 @@ function checkExecuteIntervalFunctions(self, intervalFunctions, frameCount, newN
|
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
end
|
|
72
|
+
local v = {run = {queuedGameFunctions = {}, queuedRenderFunctions = {}, intervalGameFunctions = {}, intervalRenderFunctions = {}}}
|
|
72
73
|
____exports.RunInNFrames = __TS__Class()
|
|
73
74
|
local RunInNFrames = ____exports.RunInNFrames
|
|
74
75
|
RunInNFrames.name = "RunInNFrames"
|
|
75
76
|
__TS__ClassExtends(RunInNFrames, Feature)
|
|
76
77
|
function RunInNFrames.prototype.____constructor(self, roomHistory)
|
|
77
78
|
Feature.prototype.____constructor(self)
|
|
78
|
-
self.v =
|
|
79
|
+
self.v = v
|
|
79
80
|
self.vConditionalFunc = function() return false end
|
|
80
81
|
self.postUpdate = function()
|
|
81
82
|
local gameFrameCount = game:GetFrameCount()
|
|
82
83
|
local numRoomsEntered = self.roomHistory:getNumRoomsEntered()
|
|
83
|
-
checkExecuteQueuedFunctions(nil,
|
|
84
|
-
checkExecuteIntervalFunctions(nil,
|
|
84
|
+
checkExecuteQueuedFunctions(nil, v.run.queuedGameFunctions, gameFrameCount, numRoomsEntered)
|
|
85
|
+
checkExecuteIntervalFunctions(nil, v.run.intervalGameFunctions, gameFrameCount, numRoomsEntered)
|
|
85
86
|
end
|
|
86
87
|
self.postRender = function()
|
|
87
88
|
local renderFrameCount = Isaac.GetFrameCount()
|
|
88
89
|
local numRoomsEntered = self.roomHistory:getNumRoomsEntered()
|
|
89
|
-
checkExecuteQueuedFunctions(nil,
|
|
90
|
-
checkExecuteIntervalFunctions(nil,
|
|
90
|
+
checkExecuteQueuedFunctions(nil, v.run.queuedRenderFunctions, renderFrameCount, numRoomsEntered)
|
|
91
|
+
checkExecuteIntervalFunctions(nil, v.run.intervalRenderFunctions, renderFrameCount, numRoomsEntered)
|
|
91
92
|
end
|
|
92
93
|
self.featuresUsed = {ISCFeature.ROOM_HISTORY}
|
|
93
94
|
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}, {ModCallback.POST_RENDER, self.postRender}}
|
|
@@ -106,8 +107,8 @@ function RunInNFrames.prototype.runInNGameFrames(self, func, numGameFrames, canc
|
|
|
106
107
|
local numRoomsEntered = self.roomHistory:getNumRoomsEntered()
|
|
107
108
|
local frameCountToFire = gameFrameCount + numGameFrames
|
|
108
109
|
local queuedFunction = {func = func, frameCountToFire = frameCountToFire, numRoomsEntered = numRoomsEntered, cancelIfRoomChanges = cancelIfRoomChanges}
|
|
109
|
-
local
|
|
110
|
-
|
|
110
|
+
local ____v_run_queuedGameFunctions_0 = v.run.queuedGameFunctions
|
|
111
|
+
____v_run_queuedGameFunctions_0[#____v_run_queuedGameFunctions_0 + 1] = queuedFunction
|
|
111
112
|
end
|
|
112
113
|
function RunInNFrames.prototype.runInNRenderFrames(self, func, numRenderFrames, cancelIfRoomChanges)
|
|
113
114
|
if cancelIfRoomChanges == nil then
|
|
@@ -117,8 +118,8 @@ function RunInNFrames.prototype.runInNRenderFrames(self, func, numRenderFrames,
|
|
|
117
118
|
local numRoomsEntered = self.roomHistory:getNumRoomsEntered()
|
|
118
119
|
local frameCountToFire = renderFrameCount + numRenderFrames
|
|
119
120
|
local queuedFunction = {func = func, frameCountToFire = frameCountToFire, numRoomsEntered = numRoomsEntered, cancelIfRoomChanges = cancelIfRoomChanges}
|
|
120
|
-
local
|
|
121
|
-
|
|
121
|
+
local ____v_run_queuedRenderFunctions_1 = v.run.queuedRenderFunctions
|
|
122
|
+
____v_run_queuedRenderFunctions_1[#____v_run_queuedRenderFunctions_1 + 1] = queuedFunction
|
|
122
123
|
end
|
|
123
124
|
function RunInNFrames.prototype.runNextGameFrame(self, func, cancelIfRoomChanges)
|
|
124
125
|
if cancelIfRoomChanges == nil then
|
|
@@ -151,8 +152,8 @@ function RunInNFrames.prototype.setIntervalGameFrames(self, func, numGameFrames,
|
|
|
151
152
|
cancelIfRoomChanges = cancelIfRoomChanges,
|
|
152
153
|
numIntervalFrames = numGameFrames
|
|
153
154
|
}
|
|
154
|
-
local
|
|
155
|
-
|
|
155
|
+
local ____v_run_intervalGameFunctions_2 = v.run.intervalGameFunctions
|
|
156
|
+
____v_run_intervalGameFunctions_2[#____v_run_intervalGameFunctions_2 + 1] = intervalFunction
|
|
156
157
|
end
|
|
157
158
|
function RunInNFrames.prototype.setIntervalRenderFrames(self, func, numRenderFrames, runImmediately, cancelIfRoomChanges)
|
|
158
159
|
if cancelIfRoomChanges == nil then
|
|
@@ -173,8 +174,8 @@ function RunInNFrames.prototype.setIntervalRenderFrames(self, func, numRenderFra
|
|
|
173
174
|
cancelIfRoomChanges = cancelIfRoomChanges,
|
|
174
175
|
numIntervalFrames = numRenderFrames
|
|
175
176
|
}
|
|
176
|
-
local
|
|
177
|
-
|
|
177
|
+
local ____v_run_intervalRenderFunctions_3 = v.run.intervalRenderFunctions
|
|
178
|
+
____v_run_intervalRenderFunctions_3[#____v_run_intervalRenderFunctions_3 + 1] = intervalFunction
|
|
178
179
|
end
|
|
179
180
|
__TS__Decorate({Exported}, RunInNFrames.prototype, "restartNextRenderFrame", true)
|
|
180
181
|
__TS__Decorate({Exported}, RunInNFrames.prototype, "runInNGameFrames", true)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunNextRoom.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RunNextRoom.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"RunNextRoom.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RunNextRoom.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,WAAY,SAAQ,OAAO;IAItB,gBAAgB,QAAO,OAAO,CAAU;IAYxD,OAAO,CAAC,oBAAoB,CAM1B;IAEF;;;;;;;;OAQG;IAEI,WAAW,CAAC,IAAI,EAAE,MAAM,IAAI,GAAG,IAAI;CAG3C"}
|
|
@@ -11,25 +11,26 @@ local ____array = require("src.functions.array")
|
|
|
11
11
|
local emptyArray = ____array.emptyArray
|
|
12
12
|
local ____Feature = require("src.classes.private.Feature")
|
|
13
13
|
local Feature = ____Feature.Feature
|
|
14
|
+
local v = {run = {queuedFunctions = {}}}
|
|
14
15
|
____exports.RunNextRoom = __TS__Class()
|
|
15
16
|
local RunNextRoom = ____exports.RunNextRoom
|
|
16
17
|
RunNextRoom.name = "RunNextRoom"
|
|
17
18
|
__TS__ClassExtends(RunNextRoom, Feature)
|
|
18
19
|
function RunNextRoom.prototype.____constructor(self)
|
|
19
20
|
Feature.prototype.____constructor(self)
|
|
20
|
-
self.v =
|
|
21
|
+
self.v = v
|
|
21
22
|
self.vConditionalFunc = function() return false end
|
|
22
23
|
self.postNewRoomReordered = function()
|
|
23
|
-
for ____, func in ipairs(
|
|
24
|
+
for ____, func in ipairs(v.run.queuedFunctions) do
|
|
24
25
|
func(nil)
|
|
25
26
|
end
|
|
26
|
-
emptyArray(nil,
|
|
27
|
+
emptyArray(nil, v.run.queuedFunctions)
|
|
27
28
|
end
|
|
28
29
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
|
|
29
30
|
end
|
|
30
31
|
function RunNextRoom.prototype.runNextRoom(self, func)
|
|
31
|
-
local
|
|
32
|
-
|
|
32
|
+
local ____v_run_queuedFunctions_0 = v.run.queuedFunctions
|
|
33
|
+
____v_run_queuedFunctions_0[#____v_run_queuedFunctions_0 + 1] = func
|
|
33
34
|
end
|
|
34
35
|
__TS__Decorate({Exported}, RunNextRoom.prototype, "runNextRoom", true)
|
|
35
36
|
return ____exports
|
|
@@ -235,5 +235,6 @@ export declare class SaveDataManager extends Feature {
|
|
|
235
235
|
* In order to use this function, you must upgrade your mod with `ISCFeature.SAVE_DATA_MANAGER`.
|
|
236
236
|
*/
|
|
237
237
|
saveDataManagerInMenu(): boolean;
|
|
238
|
+
saveDataManagerLogSubscribers(): void;
|
|
238
239
|
}
|
|
239
240
|
//# sourceMappingURL=SaveDataManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveDataManager.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/SaveDataManager.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"SaveDataManager.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/SaveDataManager.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAOzD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAsBhD,qBAAa,eAAgB,SAAQ,OAAO;IAC1C;;;OAGG;IACH,OAAO,CAAC,GAAG,CAAM;IAEjB;;;;OAIG;IACH,OAAO,CAAC,WAAW,CAAkC;IAErD;;;OAGG;IACH,OAAO,CAAC,mBAAmB,CAAkC;IAE7D;;;OAGG;IACH,OAAO,CAAC,0BAA0B,CAAuC;IAEzE;;;;;;OAMG;IACH,OAAO,CAAC,2BAA2B,CAAkC;IAErE;;;OAGG;IACH,OAAO,CAAC,iBAAiB,CAAkC;IAG3D,OAAO,CAAC,mBAAmB,CAAS;IACpC,OAAO,CAAC,qCAAqC,CAAS;IAiCtD,OAAO,CAAC,2BAA2B,CAUjC;IAGF,OAAO,CAAC,cAAc,CA0BpB;IAGF,OAAO,CAAC,WAAW,CAajB;IAGF,OAAO,CAAC,YAAY,CAYlB;IAGF,OAAO,CAAC,gBAAgB,CAuBtB;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmGG;IAEI,eAAe,CAAC,UAAU,EAAE,GAAG,EAAE,KAAK,EAC3C,GAAG,EAAE,MAAM,GAAG,MAAM,EACpB,CAAC,EAAE,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE,KAAK,CAAC,EACnC,eAAe,CAAC,EAAE,MAAM,OAAO,GAC9B,IAAI;IAEA,eAAe,CACpB,GAAG,EAAE,MAAM,GAAG,MAAM,EACpB,CAAC,EAAE,QAAQ,EACX,eAAe,EAAE,KAAK,GACrB,IAAI;IA6DP;;OAEG;IACH,OAAO,CAAC,gCAAgC;IAgBxC;;;;;;;;;OASG;IAEI,mBAAmB,IAAI,IAAI;IAIlC;;;;;;OAMG;IAEI,mBAAmB,IAAI,IAAI;IAIlC;;;;;;;OAOG;IAEI,wBAAwB,IAAI,IAAI;IAIvC;;;;;;;;;;;OAWG;IAEI,4BAA4B,CAAC,GAAG,WAAW,EAAE,QAAQ,EAAE,GAAG,IAAI;IAcrE;;;;;OAKG;IAEI,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAoB/C;;;;;;;;;;;;;;;;;;;;;OAqBG;IAEI,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,GAAG,IAAI;IAsB3E;;;;;;;;;;;;OAYG;IAEI,qBAAqB,IAAI,OAAO;IAKhC,6BAA6B,IAAI,IAAI;CAQ7C"}
|
|
@@ -5,6 +5,7 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
|
5
5
|
local __TS__TypeOf = ____lualib.__TS__TypeOf
|
|
6
6
|
local __TS__ObjectKeys = ____lualib.__TS__ObjectKeys
|
|
7
7
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
8
|
+
local __TS__ArraySort = ____lualib.__TS__ArraySort
|
|
8
9
|
local ____exports = {}
|
|
9
10
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
10
11
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
@@ -21,6 +22,8 @@ local ____SerializationType = require("src.enums.SerializationType")
|
|
|
21
22
|
local SerializationType = ____SerializationType.SerializationType
|
|
22
23
|
local ____deepCopy = require("src.functions.deepCopy")
|
|
23
24
|
local deepCopy = ____deepCopy.deepCopy
|
|
25
|
+
local ____log = require("src.functions.log")
|
|
26
|
+
local log = ____log.log
|
|
24
27
|
local ____stage = require("src.functions.stage")
|
|
25
28
|
local onFirstFloor = ____stage.onFirstFloor
|
|
26
29
|
local ____tstlClass = require("src.functions.tstlClass")
|
|
@@ -194,6 +197,14 @@ end
|
|
|
194
197
|
function SaveDataManager.prototype.saveDataManagerInMenu(self)
|
|
195
198
|
return not self.loadedDataOnThisRun
|
|
196
199
|
end
|
|
200
|
+
function SaveDataManager.prototype.saveDataManagerLogSubscribers(self)
|
|
201
|
+
log("List of save data manager subscribers:")
|
|
202
|
+
local keys = __TS__ObjectKeys(self.saveDataMap)
|
|
203
|
+
__TS__ArraySort(keys)
|
|
204
|
+
for ____, key in ipairs(keys) do
|
|
205
|
+
log("- " .. key)
|
|
206
|
+
end
|
|
207
|
+
end
|
|
197
208
|
__TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManager", true)
|
|
198
209
|
__TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerLoad", true)
|
|
199
210
|
__TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerSave", true)
|
|
@@ -202,4 +213,5 @@ __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerRegisterCl
|
|
|
202
213
|
__TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerRemove", true)
|
|
203
214
|
__TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerReset", true)
|
|
204
215
|
__TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerInMenu", true)
|
|
216
|
+
__TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerLogSubscribers", true)
|
|
205
217
|
return ____exports
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageHistory.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/StageHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAUtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"StageHistory.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/StageHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAUtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,YAAa,SAAQ,OAAO;IAcvC,OAAO,CAAC,qBAAqB,CAM3B;IAEF;;;;;;;;;;;;OAYG;IAEI,2BAA2B,CAAC,OAAO,UAAQ,GAAG,SAAS;IAiG9D;;;;;;;;;OASG;IAEI,uBAAuB,IAAI,UAAU;IA8H5C;;;;OAIG;IAEI,eAAe,IAAI,aAAa,CACrC;QAAC,KAAK,EAAE,UAAU;QAAE,SAAS,EAAE,SAAS;KAAC,CAC1C;IAID;;;;;;;;;OASG;IAEI,eAAe,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO;CAY1E"}
|
|
@@ -24,19 +24,20 @@ local ____types = require("src.functions.types")
|
|
|
24
24
|
local asNumber = ____types.asNumber
|
|
25
25
|
local ____Feature = require("src.classes.private.Feature")
|
|
26
26
|
local Feature = ____Feature.Feature
|
|
27
|
+
local v = {run = {stageHistory = {}}}
|
|
27
28
|
____exports.StageHistory = __TS__Class()
|
|
28
29
|
local StageHistory = ____exports.StageHistory
|
|
29
30
|
StageHistory.name = "StageHistory"
|
|
30
31
|
__TS__ClassExtends(StageHistory, Feature)
|
|
31
32
|
function StageHistory.prototype.____constructor(self)
|
|
32
33
|
Feature.prototype.____constructor(self)
|
|
33
|
-
self.v =
|
|
34
|
+
self.v = v
|
|
34
35
|
self.postNewLevelReordered = function()
|
|
35
36
|
local level = game:GetLevel()
|
|
36
37
|
local stage = level:GetStage()
|
|
37
38
|
local stageType = level:GetStageType()
|
|
38
|
-
local
|
|
39
|
-
|
|
39
|
+
local ____v_run_stageHistory_0 = v.run.stageHistory
|
|
40
|
+
____v_run_stageHistory_0[#____v_run_stageHistory_0 + 1] = {stage, stageType}
|
|
40
41
|
end
|
|
41
42
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_LEVEL_REORDERED, self.postNewLevelReordered}}
|
|
42
43
|
end
|
|
@@ -169,12 +170,12 @@ function StageHistory.prototype.getNextStageWithHistory(self)
|
|
|
169
170
|
return asNumber(nil, stage) - 1
|
|
170
171
|
end
|
|
171
172
|
function StageHistory.prototype.getStageHistory(self)
|
|
172
|
-
return
|
|
173
|
+
return v.run.stageHistory
|
|
173
174
|
end
|
|
174
175
|
function StageHistory.prototype.hasVisitedStage(self, stage, stageType)
|
|
175
176
|
if stageType == nil then
|
|
176
177
|
return __TS__ArraySome(
|
|
177
|
-
|
|
178
|
+
v.run.stageHistory,
|
|
178
179
|
function(____, ____bindingPattern0)
|
|
179
180
|
local previousStage
|
|
180
181
|
previousStage = ____bindingPattern0[1]
|
|
@@ -183,7 +184,7 @@ function StageHistory.prototype.hasVisitedStage(self, stage, stageType)
|
|
|
183
184
|
)
|
|
184
185
|
end
|
|
185
186
|
return __TS__ArraySome(
|
|
186
|
-
|
|
187
|
+
v.run.stageHistory,
|
|
187
188
|
function(____, ____bindingPattern0)
|
|
188
189
|
local previousStageType
|
|
189
190
|
local previousStage
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaintedLazarusPlayers.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/TaintedLazarusPlayers.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"TaintedLazarusPlayers.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/TaintedLazarusPlayers.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAuBhD;;;GAGG;AACH,qBAAa,qBAAsB,SAAQ,OAAO;IAIhC,gBAAgB,QAAO,OAAO,CAAU;IAaxD,OAAO,CAAC,cAAc,CAYpB;IAEF;;;;;;;;OAQG;IACH,OAAO,CAAC,YAAY;IA6BpB;;;;;;;;;;;;;OAaG;IAEI,0BAA0B,CAC/B,MAAM,EAAE,YAAY,GACnB,YAAY,GAAG,SAAS;CAI5B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
2
|
local Map = ____lualib.Map
|
|
5
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
5
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
6
6
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
7
7
|
local ____exports = {}
|
|
8
8
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
@@ -14,6 +14,11 @@ local ____logMisc = require("src.functions.logMisc")
|
|
|
14
14
|
local logError = ____logMisc.logError
|
|
15
15
|
local ____Feature = require("src.classes.private.Feature")
|
|
16
16
|
local Feature = ____Feature.Feature
|
|
17
|
+
local v = {run = {
|
|
18
|
+
queuedTaintedLazarus = {},
|
|
19
|
+
queuedDeadTaintedLazarus = {},
|
|
20
|
+
subPlayerMap = __TS__New(Map)
|
|
21
|
+
}}
|
|
17
22
|
--- This feature provides a way for end-users to get the `EntityPlayer` object for the other Tainted
|
|
18
23
|
-- Lazarus.
|
|
19
24
|
____exports.TaintedLazarusPlayers = __TS__Class()
|
|
@@ -22,20 +27,16 @@ TaintedLazarusPlayers.name = "TaintedLazarusPlayers"
|
|
|
22
27
|
__TS__ClassExtends(TaintedLazarusPlayers, Feature)
|
|
23
28
|
function TaintedLazarusPlayers.prototype.____constructor(self)
|
|
24
29
|
Feature.prototype.____constructor(self)
|
|
25
|
-
self.v =
|
|
26
|
-
queuedTaintedLazarus = {},
|
|
27
|
-
queuedDeadTaintedLazarus = {},
|
|
28
|
-
subPlayerMap = __TS__New(Map)
|
|
29
|
-
}}
|
|
30
|
+
self.v = v
|
|
30
31
|
self.vConditionalFunc = function() return false end
|
|
31
32
|
self.postPlayerInit = function(____, player)
|
|
32
33
|
local character = player:GetPlayerType()
|
|
33
34
|
if character == PlayerType.LAZARUS_B then
|
|
34
|
-
local
|
|
35
|
-
|
|
35
|
+
local ____v_run_queuedTaintedLazarus_0 = v.run.queuedTaintedLazarus
|
|
36
|
+
____v_run_queuedTaintedLazarus_0[#____v_run_queuedTaintedLazarus_0 + 1] = player
|
|
36
37
|
elseif character == PlayerType.LAZARUS_2_B then
|
|
37
|
-
local
|
|
38
|
-
|
|
38
|
+
local ____v_run_queuedDeadTaintedLazarus_1 = v.run.queuedDeadTaintedLazarus
|
|
39
|
+
____v_run_queuedDeadTaintedLazarus_1[#____v_run_queuedDeadTaintedLazarus_1 + 1] = player
|
|
39
40
|
else
|
|
40
41
|
return
|
|
41
42
|
end
|
|
@@ -44,11 +45,11 @@ function TaintedLazarusPlayers.prototype.____constructor(self)
|
|
|
44
45
|
self.callbacksUsed = {{ModCallback.POST_PLAYER_INIT, self.postPlayerInit}}
|
|
45
46
|
end
|
|
46
47
|
function TaintedLazarusPlayers.prototype.checkDequeue(self)
|
|
47
|
-
if #
|
|
48
|
+
if #v.run.queuedTaintedLazarus == 0 or #v.run.queuedDeadTaintedLazarus == 0 then
|
|
48
49
|
return
|
|
49
50
|
end
|
|
50
|
-
local taintedLazarus = table.remove(
|
|
51
|
-
local deadTaintedLazarus = table.remove(
|
|
51
|
+
local taintedLazarus = table.remove(v.run.queuedTaintedLazarus, 1)
|
|
52
|
+
local deadTaintedLazarus = table.remove(v.run.queuedDeadTaintedLazarus, 1)
|
|
52
53
|
if taintedLazarus == nil or deadTaintedLazarus == nil then
|
|
53
54
|
return
|
|
54
55
|
end
|
|
@@ -58,12 +59,12 @@ function TaintedLazarusPlayers.prototype.checkDequeue(self)
|
|
|
58
59
|
logError("Failed to cache the Tainted Lazarus player objects, since the hash for Tainted Lazarus and Dead Tainted Lazarus were the same.")
|
|
59
60
|
return
|
|
60
61
|
end
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
v.run.subPlayerMap:set(taintedLazarusPtrHash, deadTaintedLazarus)
|
|
63
|
+
v.run.subPlayerMap:set(deadTaintedLazarusPtrHash, taintedLazarus)
|
|
63
64
|
end
|
|
64
65
|
function TaintedLazarusPlayers.prototype.getTaintedLazarusSubPlayer(self, player)
|
|
65
66
|
local ptrHash = GetPtrHash(player)
|
|
66
|
-
return
|
|
67
|
+
return v.run.subPlayerMap:get(ptrHash)
|
|
67
68
|
end
|
|
68
69
|
__TS__Decorate({Exported}, TaintedLazarusPlayers.prototype, "getTaintedLazarusSubPlayer", true)
|
|
69
70
|
return ____exports
|
|
@@ -1,27 +1,5 @@
|
|
|
1
|
-
import { ControllerIndex } from "isaac-typescript-definitions";
|
|
2
|
-
import { UIStreakAnimation } from "../../../../enums/private/UIStreakAnimation";
|
|
3
1
|
import { CustomStage } from "../../../../interfaces/private/CustomStage";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
firstFloor: boolean;
|
|
8
|
-
/** Values are the render frame that the controller first pressed the map button. */
|
|
9
|
-
controllerIndexPushingMapRenderFrame: Map<ControllerIndex, int>;
|
|
10
|
-
topStreakTextStartedRenderFrame: int | null;
|
|
11
|
-
topStreakText: {
|
|
12
|
-
animation: UIStreakAnimation;
|
|
13
|
-
frame: int;
|
|
14
|
-
pauseFrame: boolean;
|
|
15
|
-
};
|
|
16
|
-
bottomStreakText: {
|
|
17
|
-
animation: UIStreakAnimation;
|
|
18
|
-
frame: int;
|
|
19
|
-
pauseFrame: boolean;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export declare function streakTextPostRender(v: StreakTextVars): void;
|
|
24
|
-
export declare function streakTextGetShaderParams(v: StreakTextVars, customStage: CustomStage, shaderName: string): void;
|
|
25
|
-
export declare function topStreakTextStart(v: StreakTextVars): void;
|
|
26
|
-
export {};
|
|
2
|
+
export declare function streakTextPostRender(): void;
|
|
3
|
+
export declare function streakTextGetShaderParams(customStage: CustomStage, shaderName: string): void;
|
|
4
|
+
export declare function topStreakTextStart(): void;
|
|
27
5
|
//# sourceMappingURL=streakText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streakText.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/customStages/streakText.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"streakText.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/customStages/streakText.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AA4EzE,wBAAgB,oBAAoB,IAAI,IAAI,CAS3C;AA0FD,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,MAAM,GACjB,IAAI,CAYN;AA0ED,wBAAgB,kBAAkB,IAAI,IAAI,CAWzC"}
|
|
@@ -17,7 +17,9 @@ local UIStreakAnimation = ____UIStreakAnimation.UIStreakAnimation
|
|
|
17
17
|
local ____ui = require("src.functions.ui")
|
|
18
18
|
local getScreenBottomCenterPos = ____ui.getScreenBottomCenterPos
|
|
19
19
|
local getScreenTopCenterPos = ____ui.getScreenTopCenterPos
|
|
20
|
-
|
|
20
|
+
local ____v = require("src.classes.features.other.customStages.v")
|
|
21
|
+
local v = ____v.v
|
|
22
|
+
function checkEndTopStreakText(self)
|
|
21
23
|
if v.run.topStreakTextStartedRenderFrame == nil or v.run.topStreakText.animation ~= UIStreakAnimation.TEXT_STAY then
|
|
22
24
|
return
|
|
23
25
|
end
|
|
@@ -28,7 +30,7 @@ function checkEndTopStreakText(self, v)
|
|
|
28
30
|
v.run.topStreakText.frame = TEXT_OUT_FRAME - 2
|
|
29
31
|
end
|
|
30
32
|
end
|
|
31
|
-
function trackMapInputPressed(self
|
|
33
|
+
function trackMapInputPressed(self)
|
|
32
34
|
for ____, controllerIndex in ipairs(CONTROLLER_INDEX_VALUES) do
|
|
33
35
|
local gameFrameCount = game:GetFrameCount()
|
|
34
36
|
local oldPushedMapFrame = v.run.controllerIndexPushingMapRenderFrame:get(controllerIndex)
|
|
@@ -42,7 +44,7 @@ function trackMapInputPressed(self, v)
|
|
|
42
44
|
end
|
|
43
45
|
end
|
|
44
46
|
end
|
|
45
|
-
function checkStartBottomStreakText(self
|
|
47
|
+
function checkStartBottomStreakText(self)
|
|
46
48
|
if v.run.bottomStreakText.animation ~= UIStreakAnimation.NONE then
|
|
47
49
|
return
|
|
48
50
|
end
|
|
@@ -58,7 +60,7 @@ function checkStartBottomStreakText(self, v)
|
|
|
58
60
|
v.run.bottomStreakText.frame = 0
|
|
59
61
|
end
|
|
60
62
|
end
|
|
61
|
-
function checkEndBottomStreakText(self
|
|
63
|
+
function checkEndBottomStreakText(self)
|
|
62
64
|
if v.run.bottomStreakText.animation ~= UIStreakAnimation.TEXT_STAY then
|
|
63
65
|
return
|
|
64
66
|
end
|
|
@@ -68,7 +70,7 @@ function checkEndBottomStreakText(self, v)
|
|
|
68
70
|
v.run.bottomStreakText.frame = TEXT_OUT_FRAME - 2
|
|
69
71
|
end
|
|
70
72
|
end
|
|
71
|
-
function renderStreakText(self,
|
|
73
|
+
function renderStreakText(self, customStage, streakText, position)
|
|
72
74
|
if streakText.animation == UIStreakAnimation.NONE then
|
|
73
75
|
return
|
|
74
76
|
end
|
|
@@ -179,36 +181,24 @@ TEXT_OUT_SCALES = {
|
|
|
179
181
|
Vector(2.59, 0.38),
|
|
180
182
|
Vector(3, 0.2)
|
|
181
183
|
}
|
|
182
|
-
function ____exports.streakTextPostRender(self
|
|
183
|
-
checkEndTopStreakText(nil
|
|
184
|
-
trackMapInputPressed(nil
|
|
185
|
-
checkStartBottomStreakText(nil
|
|
186
|
-
checkEndBottomStreakText(nil
|
|
184
|
+
function ____exports.streakTextPostRender(self)
|
|
185
|
+
checkEndTopStreakText(nil)
|
|
186
|
+
trackMapInputPressed(nil)
|
|
187
|
+
checkStartBottomStreakText(nil)
|
|
188
|
+
checkEndBottomStreakText(nil)
|
|
187
189
|
end
|
|
188
|
-
function ____exports.streakTextGetShaderParams(self,
|
|
190
|
+
function ____exports.streakTextGetShaderParams(self, customStage, shaderName)
|
|
189
191
|
if shaderName ~= EMPTY_SHADER_NAME then
|
|
190
192
|
return
|
|
191
193
|
end
|
|
192
194
|
local topCenterPos = getScreenTopCenterPos(nil)
|
|
193
195
|
local topStreakPosition = topCenterPos + STREAK_SPRITE_TOP_OFFSET
|
|
194
|
-
renderStreakText(
|
|
195
|
-
nil,
|
|
196
|
-
v,
|
|
197
|
-
customStage,
|
|
198
|
-
v.run.topStreakText,
|
|
199
|
-
topStreakPosition
|
|
200
|
-
)
|
|
196
|
+
renderStreakText(nil, customStage, v.run.topStreakText, topStreakPosition)
|
|
201
197
|
local bottomCenterPos = getScreenBottomCenterPos(nil)
|
|
202
198
|
local bottomStreakPosition = bottomCenterPos + STREAK_SPRITE_BOTTOM_OFFSET
|
|
203
|
-
renderStreakText(
|
|
204
|
-
nil,
|
|
205
|
-
v,
|
|
206
|
-
customStage,
|
|
207
|
-
v.run.bottomStreakText,
|
|
208
|
-
bottomStreakPosition
|
|
209
|
-
)
|
|
199
|
+
renderStreakText(nil, customStage, v.run.bottomStreakText, bottomStreakPosition)
|
|
210
200
|
end
|
|
211
|
-
function ____exports.topStreakTextStart(self
|
|
201
|
+
function ____exports.topStreakTextStart(self)
|
|
212
202
|
local level = game:GetLevel()
|
|
213
203
|
local renderFrameCount = Isaac.GetFrameCount()
|
|
214
204
|
level:ShowName(false)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ControllerIndex } from "isaac-typescript-definitions";
|
|
2
|
+
import { UIStreakAnimation } from "../../../../enums/private/UIStreakAnimation";
|
|
3
|
+
import { CustomStage } from "../../../../interfaces/private/CustomStage";
|
|
4
|
+
export declare const v: {
|
|
5
|
+
run: {
|
|
6
|
+
currentCustomStage: CustomStage | null;
|
|
7
|
+
/** Whether we are on e.g. Caves 1 or Caves 2. */
|
|
8
|
+
firstFloor: boolean;
|
|
9
|
+
showingBossVersusScreen: boolean;
|
|
10
|
+
/** Values are the render frame that the controller first pressed the map button. */
|
|
11
|
+
controllerIndexPushingMapRenderFrame: Map<ControllerIndex, number>;
|
|
12
|
+
topStreakTextStartedRenderFrame: number | null;
|
|
13
|
+
topStreakText: {
|
|
14
|
+
animation: UIStreakAnimation;
|
|
15
|
+
frame: number;
|
|
16
|
+
pauseFrame: boolean;
|
|
17
|
+
};
|
|
18
|
+
bottomStreakText: {
|
|
19
|
+
animation: UIStreakAnimation;
|
|
20
|
+
frame: number;
|
|
21
|
+
pauseFrame: boolean;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=v.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/customStages/v.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAEzE,eAAO,MAAM,CAAC;;;QAIV,iDAAiD;;;QAKjD,oFAAoF;;;;;;;;;;;;;;CAiBvF,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local Map = ____lualib.Map
|
|
3
|
+
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local ____exports = {}
|
|
5
|
+
local ____UIStreakAnimation = require("src.enums.private.UIStreakAnimation")
|
|
6
|
+
local UIStreakAnimation = ____UIStreakAnimation.UIStreakAnimation
|
|
7
|
+
____exports.v = {run = {
|
|
8
|
+
currentCustomStage = nil,
|
|
9
|
+
firstFloor = true,
|
|
10
|
+
showingBossVersusScreen = false,
|
|
11
|
+
controllerIndexPushingMapRenderFrame = __TS__New(Map),
|
|
12
|
+
topStreakTextStartedRenderFrame = nil,
|
|
13
|
+
topStreakText = {animation = UIStreakAnimation.NONE, frame = 0, pauseFrame = false},
|
|
14
|
+
bottomStreakText = {animation = UIStreakAnimation.NONE, frame = 0, pauseFrame = false}
|
|
15
|
+
}}
|
|
16
|
+
return ____exports
|
|
@@ -2,12 +2,6 @@ import { CustomStage } from "../../../../interfaces/private/CustomStage";
|
|
|
2
2
|
import { DisableAllSound } from "../DisableAllSound";
|
|
3
3
|
import { Pause } from "../Pause";
|
|
4
4
|
import { RunInNFrames } from "../RunInNFrames";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
showingBossVersusScreen: boolean;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export declare function playVersusScreenAnimation(v: VersusScreenVars, customStage: CustomStage, disableAllSound: DisableAllSound, pause: Pause, runInNFrames: RunInNFrames): void;
|
|
11
|
-
export declare function versusScreenPostRender(v: VersusScreenVars, pause: Pause, disableAllSound: DisableAllSound): void;
|
|
12
|
-
export {};
|
|
5
|
+
export declare function playVersusScreenAnimation(customStage: CustomStage, disableAllSound: DisableAllSound, pause: Pause, runInNFrames: RunInNFrames): void;
|
|
6
|
+
export declare function versusScreenPostRender(pause: Pause, disableAllSound: DisableAllSound): void;
|
|
13
7
|
//# sourceMappingURL=versusScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versusScreen.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/customStages/versusScreen.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAOzE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"versusScreen.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/customStages/versusScreen.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAOzE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAuF/C,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,GACzB,IAAI,CA0GN;AAgGD,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,KAAK,EACZ,eAAe,EAAE,eAAe,GAC/B,IAAI,CAsCN"}
|
|
@@ -43,6 +43,8 @@ local CUSTOM_STAGE_FEATURE_NAME = ____constants.CUSTOM_STAGE_FEATURE_NAME
|
|
|
43
43
|
local DEFAULT_BASE_STAGE = ____constants.DEFAULT_BASE_STAGE
|
|
44
44
|
local DEFAULT_BASE_STAGE_TYPE = ____constants.DEFAULT_BASE_STAGE_TYPE
|
|
45
45
|
local ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH = ____constants.ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH
|
|
46
|
+
local ____v = require("src.classes.features.other.customStages.v")
|
|
47
|
+
local v = ____v.v
|
|
46
48
|
function willVanillaVersusScreenPlay(self)
|
|
47
49
|
local bosses = getBosses(nil)
|
|
48
50
|
return __TS__ArraySome(
|
|
@@ -157,7 +159,7 @@ local versusScreenBackgroundSprite = Sprite()
|
|
|
157
159
|
-- Unfortunately, we must split the dirt layer into an entirely different sprite so that we can
|
|
158
160
|
-- color it with the `Color` field.
|
|
159
161
|
local versusScreenDirtSpotSprite = Sprite()
|
|
160
|
-
function ____exports.playVersusScreenAnimation(self,
|
|
162
|
+
function ____exports.playVersusScreenAnimation(self, customStage, disableAllSound, pause, runInNFrames)
|
|
161
163
|
local room = game:GetRoom()
|
|
162
164
|
local roomType = room:GetType()
|
|
163
165
|
local roomCleared = room:IsClear()
|
|
@@ -234,7 +236,7 @@ function ____exports.playVersusScreenAnimation(self, v, customStage, disableAllS
|
|
|
234
236
|
sprite.PlaybackSpeed = VANILLA_VERSUS_PLAYBACK_SPEED
|
|
235
237
|
end
|
|
236
238
|
end
|
|
237
|
-
local function finishVersusScreenAnimation(self,
|
|
239
|
+
local function finishVersusScreenAnimation(self, pause, disableAllSound)
|
|
238
240
|
local hud = game:GetHUD()
|
|
239
241
|
v.run.showingBossVersusScreen = false
|
|
240
242
|
pause:unpause()
|
|
@@ -242,12 +244,12 @@ local function finishVersusScreenAnimation(self, v, pause, disableAllSound)
|
|
|
242
244
|
disableAllSound:enableAllSound(CUSTOM_STAGE_FEATURE_NAME)
|
|
243
245
|
sfxManager:Play(SoundEffect.CASTLE_PORTCULLIS)
|
|
244
246
|
end
|
|
245
|
-
function ____exports.versusScreenPostRender(self,
|
|
247
|
+
function ____exports.versusScreenPostRender(self, pause, disableAllSound)
|
|
246
248
|
if not v.run.showingBossVersusScreen then
|
|
247
249
|
return
|
|
248
250
|
end
|
|
249
251
|
if versusScreenSprite:IsFinished(VERSUS_SCREEN_ANIMATION_NAME) then
|
|
250
|
-
finishVersusScreenAnimation(nil,
|
|
252
|
+
finishVersusScreenAnimation(nil, pause, disableAllSound)
|
|
251
253
|
return
|
|
252
254
|
end
|
|
253
255
|
local position = getScreenCenterPos(nil)
|