isaacscript-common 25.3.0 → 25.5.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 +18 -2
- package/dist/isaacscript-common.lua +793 -684
- 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/utils.d.ts +6 -0
- package/dist/src/functions/utils.d.ts.map +1 -1
- package/dist/src/functions/utils.lua +17 -0
- 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 +2 -2
- 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/utils.ts +23 -0
- 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":"PonyDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PonyDetection.ts"],"names":[],"mappings":";AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"PonyDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PonyDetection.ts"],"names":[],"mappings":";AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAchD,qBAAa,aAAc,SAAQ,OAAO;IAiBxC,OAAO,CAAC,0BAA0B,CAmBhC;IAEF;;;;;OAKG;IAEI,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO;IAIvD;;;;;OAKG;IAEI,kBAAkB,IAAI,OAAO;CAIrC"}
|
|
@@ -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 Set = ____lualib.Set
|
|
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 __TS__ArraySome = ____lualib.__TS__ArraySome
|
|
8
8
|
local ____exports = {}
|
|
@@ -24,18 +24,19 @@ local getPlayers = ____playerIndex.getPlayers
|
|
|
24
24
|
local ____Feature = require("src.classes.private.Feature")
|
|
25
25
|
local Feature = ____Feature.Feature
|
|
26
26
|
local FLAGS_WHEN_PONY_IS_ACTIVE = {EntityFlag.NO_KNOCKBACK, EntityFlag.NO_PHYSICS_KNOCKBACK, EntityFlag.NO_DAMAGE_BLINK}
|
|
27
|
+
local v = {run = {playersIsPonyActive = __TS__New(Set)}}
|
|
27
28
|
____exports.PonyDetection = __TS__Class()
|
|
28
29
|
local PonyDetection = ____exports.PonyDetection
|
|
29
30
|
PonyDetection.name = "PonyDetection"
|
|
30
31
|
__TS__ClassExtends(PonyDetection, Feature)
|
|
31
32
|
function PonyDetection.prototype.____constructor(self)
|
|
32
33
|
Feature.prototype.____constructor(self)
|
|
33
|
-
self.v =
|
|
34
|
+
self.v = v
|
|
34
35
|
self.postPEffectUpdateReordered = function(____, player)
|
|
35
36
|
local effects = player:GetEffects()
|
|
36
37
|
local entityFlags = player:GetEntityFlags()
|
|
37
38
|
local hasPonyCollectibleEffect = effects:HasCollectibleEffect(CollectibleType.PONY) or effects:HasCollectibleEffect(CollectibleType.WHITE_PONY)
|
|
38
|
-
local isPonyActiveOnPreviousFrame = setHasPlayer(nil,
|
|
39
|
+
local isPonyActiveOnPreviousFrame = setHasPlayer(nil, v.run.playersIsPonyActive, player)
|
|
39
40
|
local hasPonyFlags = hasFlag(
|
|
40
41
|
nil,
|
|
41
42
|
entityFlags,
|
|
@@ -43,15 +44,15 @@ function PonyDetection.prototype.____constructor(self)
|
|
|
43
44
|
)
|
|
44
45
|
local isPonyActiveNow = hasPonyCollectibleEffect or isPonyActiveOnPreviousFrame and hasPonyFlags
|
|
45
46
|
if isPonyActiveNow then
|
|
46
|
-
setAddPlayer(nil,
|
|
47
|
+
setAddPlayer(nil, v.run.playersIsPonyActive, player)
|
|
47
48
|
else
|
|
48
|
-
setDeletePlayer(nil,
|
|
49
|
+
setDeletePlayer(nil, v.run.playersIsPonyActive, player)
|
|
49
50
|
end
|
|
50
51
|
end
|
|
51
52
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
|
|
52
53
|
end
|
|
53
54
|
function PonyDetection.prototype.isPlayerUsingPony(self, player)
|
|
54
|
-
return setHasPlayer(nil,
|
|
55
|
+
return setHasPlayer(nil, v.run.playersIsPonyActive, player)
|
|
55
56
|
end
|
|
56
57
|
function PonyDetection.prototype.anyPlayerUsingPony(self)
|
|
57
58
|
local players = getPlayers(nil)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PressInput.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PressInput.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"PressInput.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PressInput.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,UAAW,SAAQ,OAAO;IAoBrC,OAAO,CAAC,iBAAiB,CA+BvB;IAEF;;;;;;OAMG;IAEI,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI;CAI1E"}
|
|
@@ -13,13 +13,14 @@ local ____playerIndex = require("src.functions.playerIndex")
|
|
|
13
13
|
local getPlayerIndex = ____playerIndex.getPlayerIndex
|
|
14
14
|
local ____Feature = require("src.classes.private.Feature")
|
|
15
15
|
local Feature = ____Feature.Feature
|
|
16
|
+
local v = {run = {buttonActionTuples = {}}}
|
|
16
17
|
____exports.PressInput = __TS__Class()
|
|
17
18
|
local PressInput = ____exports.PressInput
|
|
18
19
|
PressInput.name = "PressInput"
|
|
19
20
|
__TS__ClassExtends(PressInput, Feature)
|
|
20
21
|
function PressInput.prototype.____constructor(self)
|
|
21
22
|
Feature.prototype.____constructor(self)
|
|
22
|
-
self.v =
|
|
23
|
+
self.v = v
|
|
23
24
|
self.isActionTriggered = function(____, entity, _inputHook, buttonAction)
|
|
24
25
|
if entity == nil then
|
|
25
26
|
return nil
|
|
@@ -30,12 +31,12 @@ function PressInput.prototype.____constructor(self)
|
|
|
30
31
|
end
|
|
31
32
|
local playerIndex = getPlayerIndex(nil, player)
|
|
32
33
|
do
|
|
33
|
-
local i = #
|
|
34
|
+
local i = #v.run.buttonActionTuples - 1
|
|
34
35
|
while i >= 0 do
|
|
35
|
-
local tuple =
|
|
36
|
+
local tuple = v.run.buttonActionTuples[i + 1]
|
|
36
37
|
local tuplePlayerIndex, tupleButtonAction = table.unpack(tuple)
|
|
37
38
|
if tuplePlayerIndex == playerIndex and tupleButtonAction == buttonAction then
|
|
38
|
-
__TS__ArraySplice(
|
|
39
|
+
__TS__ArraySplice(v.run.buttonActionTuples, i)
|
|
39
40
|
return true
|
|
40
41
|
end
|
|
41
42
|
i = i - 1
|
|
@@ -47,8 +48,8 @@ function PressInput.prototype.____constructor(self)
|
|
|
47
48
|
end
|
|
48
49
|
function PressInput.prototype.pressInput(self, player, buttonAction)
|
|
49
50
|
local playerIndex = getPlayerIndex(nil, player)
|
|
50
|
-
local
|
|
51
|
-
|
|
51
|
+
local ____v_run_buttonActionTuples_0 = v.run.buttonActionTuples
|
|
52
|
+
____v_run_buttonActionTuples_0[#____v_run_buttonActionTuples_0 + 1] = {playerIndex, buttonAction}
|
|
52
53
|
end
|
|
53
54
|
__TS__Decorate({Exported}, PressInput.prototype, "pressInput", true)
|
|
54
55
|
return ____exports
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreventChildEntities.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PreventChildEntities.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"PreventChildEntities.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PreventChildEntities.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,oBAAqB,SAAQ,OAAO;IAe/C,OAAO,CAAC,WAAW,CAYjB;IAEF;;;;;;;;;;OAUG;IAEI,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAIlD"}
|
|
@@ -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 Set = ____lualib.Set
|
|
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")
|
|
@@ -11,16 +11,17 @@ local ____decorators = require("src.decorators")
|
|
|
11
11
|
local Exported = ____decorators.Exported
|
|
12
12
|
local ____Feature = require("src.classes.private.Feature")
|
|
13
13
|
local Feature = ____Feature.Feature
|
|
14
|
+
local v = {room = {preventingEntities = __TS__New(Set)}}
|
|
14
15
|
____exports.PreventChildEntities = __TS__Class()
|
|
15
16
|
local PreventChildEntities = ____exports.PreventChildEntities
|
|
16
17
|
PreventChildEntities.name = "PreventChildEntities"
|
|
17
18
|
__TS__ClassExtends(PreventChildEntities, Feature)
|
|
18
19
|
function PreventChildEntities.prototype.____constructor(self)
|
|
19
20
|
Feature.prototype.____constructor(self)
|
|
20
|
-
self.v =
|
|
21
|
+
self.v = v
|
|
21
22
|
self.postNPCInit = function(____, npc)
|
|
22
|
-
local spawnerEntityMatch = npc.SpawnerEntity ~= nil and
|
|
23
|
-
local parentMatch = npc.Parent ~= nil and
|
|
23
|
+
local spawnerEntityMatch = npc.SpawnerEntity ~= nil and v.room.preventingEntities:has(GetPtrHash(npc.SpawnerEntity))
|
|
24
|
+
local parentMatch = npc.Parent ~= nil and v.room.preventingEntities:has(GetPtrHash(npc.Parent))
|
|
24
25
|
if spawnerEntityMatch or parentMatch then
|
|
25
26
|
npc:Remove()
|
|
26
27
|
end
|
|
@@ -29,7 +30,7 @@ function PreventChildEntities.prototype.____constructor(self)
|
|
|
29
30
|
end
|
|
30
31
|
function PreventChildEntities.prototype.preventChildEntities(self, entity)
|
|
31
32
|
local ptrHash = GetPtrHash(entity)
|
|
32
|
-
|
|
33
|
+
v.room.preventingEntities:add(ptrHash)
|
|
33
34
|
end
|
|
34
35
|
__TS__Decorate({Exported}, PreventChildEntities.prototype, "preventChildEntities", true)
|
|
35
36
|
return ____exports
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreventCollectibleRotation.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PreventCollectibleRotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAGhB,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"PreventCollectibleRotation.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PreventCollectibleRotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAGhB,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAkBhD,qBAAa,0BAA2B,SAAQ,OAAO;IA2BrD,OAAO,CAAC,kBAAkB,CAIxB;IAIF,OAAO,CAAC,2BAA2B,CAIjC;IAEF,OAAO,CAAC,uBAAuB;IAiB/B;;;;;;;;;;;OAWG;IAEI,0BAA0B,CAC/B,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,eAAe,GAC/B,IAAI;CAeR"}
|
|
@@ -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 getMapIndex
|
|
@@ -28,15 +28,16 @@ function getMapIndex(self, collectible)
|
|
|
28
28
|
local gridIndex = room:GetGridIndex(collectible.Position)
|
|
29
29
|
return (tostring(gridIndex) .. ",") .. tostring(collectible.InitSeed)
|
|
30
30
|
end
|
|
31
|
+
local v = {room = {trackedCollectibles = __TS__New(Map)}}
|
|
31
32
|
____exports.PreventCollectibleRotation = __TS__Class()
|
|
32
33
|
local PreventCollectibleRotation = ____exports.PreventCollectibleRotation
|
|
33
34
|
PreventCollectibleRotation.name = "PreventCollectibleRotation"
|
|
34
35
|
__TS__ClassExtends(PreventCollectibleRotation, Feature)
|
|
35
36
|
function PreventCollectibleRotation.prototype.____constructor(self)
|
|
36
37
|
Feature.prototype.____constructor(self)
|
|
37
|
-
self.v =
|
|
38
|
+
self.v = v
|
|
38
39
|
self.useCardSoulOfIsaac = function()
|
|
39
|
-
|
|
40
|
+
v.room.trackedCollectibles:clear()
|
|
40
41
|
end
|
|
41
42
|
self.postPickupUpdateCollectible = function(____, pickup)
|
|
42
43
|
local collectible = pickup
|
|
@@ -49,7 +50,7 @@ function PreventCollectibleRotation.prototype.checkCollectibleRotated(self, coll
|
|
|
49
50
|
return
|
|
50
51
|
end
|
|
51
52
|
local index = getMapIndex(nil, collectible)
|
|
52
|
-
local trackedCollectibleType =
|
|
53
|
+
local trackedCollectibleType = v.room.trackedCollectibles:get(index)
|
|
53
54
|
if trackedCollectibleType ~= nil and collectible.SubType ~= trackedCollectibleType then
|
|
54
55
|
setCollectibleSubType(nil, collectible, trackedCollectibleType)
|
|
55
56
|
end
|
|
@@ -60,7 +61,7 @@ function PreventCollectibleRotation.prototype.preventCollectibleRotation(self, c
|
|
|
60
61
|
error("The \"preventCollectibleRotate\" function was given a non-collectible: " .. entityID)
|
|
61
62
|
end
|
|
62
63
|
local index = getMapIndex(nil, collectible)
|
|
63
|
-
|
|
64
|
+
v.room.trackedCollectibles:set(index, collectibleType)
|
|
64
65
|
self:checkCollectibleRotated(collectible)
|
|
65
66
|
end
|
|
66
67
|
__TS__Decorate({Exported}, PreventCollectibleRotation.prototype, "preventCollectibleRotation", true)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreventGridEntityRespawn.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PreventGridEntityRespawn.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"PreventGridEntityRespawn.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PreventGridEntityRespawn.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAahD,qBAAa,wBAAyB,SAAQ,OAAO;IAInD,OAAO,CAAC,YAAY,CAAe;IA0BnC,OAAO,CAAC,0BAA0B,CAqDhC;IAGF,OAAO,CAAC,oBAAoB,CAE1B;IAEF;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IAsB/B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IAEI,wBAAwB,IAAI,IAAI;CAuBxC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__New = ____lualib.__TS__New
|
|
2
3
|
local __TS__Class = ____lualib.__TS__Class
|
|
3
4
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
|
-
local __TS__New = ____lualib.__TS__New
|
|
5
5
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
6
6
|
local ____exports = {}
|
|
7
7
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
@@ -32,25 +32,26 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
32
32
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
33
33
|
local ____Feature = require("src.classes.private.Feature")
|
|
34
34
|
local Feature = ____Feature.Feature
|
|
35
|
+
local v = {
|
|
36
|
+
level = {roomListIndexToDecorationGridIndexes = __TS__New(
|
|
37
|
+
DefaultMap,
|
|
38
|
+
function() return {} end
|
|
39
|
+
)},
|
|
40
|
+
room = {manuallyUsingShovel = false}
|
|
41
|
+
}
|
|
35
42
|
____exports.PreventGridEntityRespawn = __TS__Class()
|
|
36
43
|
local PreventGridEntityRespawn = ____exports.PreventGridEntityRespawn
|
|
37
44
|
PreventGridEntityRespawn.name = "PreventGridEntityRespawn"
|
|
38
45
|
__TS__ClassExtends(PreventGridEntityRespawn, Feature)
|
|
39
46
|
function PreventGridEntityRespawn.prototype.____constructor(self, runInNFrames)
|
|
40
47
|
Feature.prototype.____constructor(self)
|
|
41
|
-
self.v =
|
|
42
|
-
level = {roomListIndexToDecorationGridIndexes = __TS__New(
|
|
43
|
-
DefaultMap,
|
|
44
|
-
function() return {} end
|
|
45
|
-
)},
|
|
46
|
-
room = {manuallyUsingShovel = false}
|
|
47
|
-
}
|
|
48
|
+
self.v = v
|
|
48
49
|
self.preUseItemWeNeedToGoDeeper = function(____, _collectibleType, _rng, player, _useFlags, _activeSlot, _customVarData)
|
|
49
|
-
if
|
|
50
|
+
if v.room.manuallyUsingShovel then
|
|
50
51
|
return nil
|
|
51
52
|
end
|
|
52
53
|
local roomListIndex = getRoomListIndex(nil)
|
|
53
|
-
if not
|
|
54
|
+
if not v.level.roomListIndexToDecorationGridIndexes:has(roomListIndex) then
|
|
54
55
|
return
|
|
55
56
|
end
|
|
56
57
|
local decorations = getGridEntities(nil, GridEntityType.DECORATION)
|
|
@@ -67,10 +68,10 @@ function PreventGridEntityRespawn.prototype.____constructor(self, runInNFrames)
|
|
|
67
68
|
if futureRoomListIndex ~= roomListIndex then
|
|
68
69
|
return
|
|
69
70
|
end
|
|
70
|
-
|
|
71
|
+
v.room.manuallyUsingShovel = true
|
|
71
72
|
futurePlayer:UseActiveItem(CollectibleType.WE_NEED_TO_GO_DEEPER)
|
|
72
|
-
|
|
73
|
-
local decorationGridIndexes =
|
|
73
|
+
v.room.manuallyUsingShovel = false
|
|
74
|
+
local decorationGridIndexes = v.level.roomListIndexToDecorationGridIndexes:getAndSetDefault(roomListIndex)
|
|
74
75
|
emptyArray(nil, decorationGridIndexes)
|
|
75
76
|
self:preventGridEntityRespawn()
|
|
76
77
|
end)
|
|
@@ -87,7 +88,7 @@ end
|
|
|
87
88
|
function PreventGridEntityRespawn.prototype.setDecorationsInvisible(self)
|
|
88
89
|
local room = game:GetRoom()
|
|
89
90
|
local roomListIndex = getRoomListIndex(nil)
|
|
90
|
-
local decorationGridIndexes =
|
|
91
|
+
local decorationGridIndexes = v.level.roomListIndexToDecorationGridIndexes:get(roomListIndex)
|
|
91
92
|
if decorationGridIndexes == nil then
|
|
92
93
|
return
|
|
93
94
|
end
|
|
@@ -104,7 +105,7 @@ end
|
|
|
104
105
|
function PreventGridEntityRespawn.prototype.preventGridEntityRespawn(self)
|
|
105
106
|
local room = game:GetRoom()
|
|
106
107
|
local roomListIndex = getRoomListIndex(nil)
|
|
107
|
-
local decorationGridIndexes =
|
|
108
|
+
local decorationGridIndexes = v.level.roomListIndexToDecorationGridIndexes:getAndSetDefault(roomListIndex)
|
|
108
109
|
for ____, gridIndex in ipairs(getAllGridIndexes(nil)) do
|
|
109
110
|
do
|
|
110
111
|
local existingGridEntity = room:GetGridEntity(gridIndex)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoomClearFrame.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RoomClearFrame.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"RoomClearFrame.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RoomClearFrame.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAShD,qBAAa,cAAe,SAAQ,OAAO;IAkBzC,OAAO,CAAC,wBAAwB,CAO9B;IAEF;;;;;OAKG;IAEI,qBAAqB,IAAI,GAAG,GAAG,SAAS;IAI/C;;;;;OAKG;IAEI,qBAAqB,IAAI,GAAG,GAAG,SAAS;CAGhD"}
|
|
@@ -11,27 +11,28 @@ local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
|
11
11
|
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
12
12
|
local ____Feature = require("src.classes.private.Feature")
|
|
13
13
|
local Feature = ____Feature.Feature
|
|
14
|
+
local v = {room = {roomClearGameFrame = nil, roomClearRoomFrame = nil}}
|
|
14
15
|
____exports.RoomClearFrame = __TS__Class()
|
|
15
16
|
local RoomClearFrame = ____exports.RoomClearFrame
|
|
16
17
|
RoomClearFrame.name = "RoomClearFrame"
|
|
17
18
|
__TS__ClassExtends(RoomClearFrame, Feature)
|
|
18
19
|
function RoomClearFrame.prototype.____constructor(self)
|
|
19
20
|
Feature.prototype.____constructor(self)
|
|
20
|
-
self.v =
|
|
21
|
+
self.v = v
|
|
21
22
|
self.postRoomClearChangedTrue = function()
|
|
22
23
|
local gameFrameCount = game:GetFrameCount()
|
|
23
24
|
local room = game:GetRoom()
|
|
24
25
|
local roomFrameCount = room:GetFrameCount()
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
v.room.roomClearGameFrame = gameFrameCount
|
|
27
|
+
v.room.roomClearRoomFrame = roomFrameCount
|
|
27
28
|
end
|
|
28
29
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_ROOM_CLEAR_CHANGED, self.postRoomClearChangedTrue}}
|
|
29
30
|
end
|
|
30
31
|
function RoomClearFrame.prototype.getRoomClearGameFrame(self)
|
|
31
|
-
return
|
|
32
|
+
return v.room.roomClearGameFrame
|
|
32
33
|
end
|
|
33
34
|
function RoomClearFrame.prototype.getRoomClearRoomFrame(self)
|
|
34
|
-
return
|
|
35
|
+
return v.room.roomClearGameFrame
|
|
35
36
|
end
|
|
36
37
|
__TS__Decorate({Exported}, RoomClearFrame.prototype, "getRoomClearGameFrame", true)
|
|
37
38
|
__TS__Decorate({Exported}, RoomClearFrame.prototype, "getRoomClearRoomFrame", true)
|
|
@@ -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"}
|