isaacscript-common 2.3.2 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cachedClasses.d.ts +6 -4
- package/cachedClasses.lua +24 -0
- package/callbacks/customRevive.lua +2 -0
- package/callbacks/itemPickup.lua +2 -0
- package/callbacks/postBombInitLate.lua +2 -0
- package/callbacks/postBoneSwing.lua +2 -0
- package/callbacks/postCollectibleInitFirst.lua +2 -0
- package/callbacks/postCursedTeleport.lua +2 -0
- package/callbacks/postCustomDoorEnter.lua +44 -0
- package/callbacks/postDoorRender.lua +2 -0
- package/callbacks/postDoorUpdate.lua +2 -0
- package/callbacks/postEffectInitLate.lua +2 -0
- package/callbacks/postEffectStateChanged.lua +2 -0
- package/callbacks/postEsauJr.lua +2 -0
- package/callbacks/postFamiliarInitLate.lua +2 -0
- package/callbacks/postFamiliarStateChanged.lua +2 -0
- package/callbacks/postFlip.lua +2 -0
- package/callbacks/postGreedModeWave.lua +2 -0
- package/callbacks/postGridEntity.lua +2 -0
- package/callbacks/postGridEntityCollision.lua +2 -0
- package/callbacks/postGridEntityRender.lua +2 -0
- package/callbacks/postHolyMantleRemoved.lua +2 -0
- package/callbacks/postKnifeInitLate.lua +2 -0
- package/callbacks/postLaserInitLate.lua +2 -0
- package/callbacks/postNPCInitLate.lua +2 -0
- package/callbacks/postNPCStateChanged.lua +2 -0
- package/callbacks/postNewRoomEarly.lua +2 -0
- package/callbacks/postPickupCollect.lua +2 -0
- package/callbacks/postPickupInitFirst.d.ts +1 -0
- package/callbacks/postPickupInitFirst.lua +55 -0
- package/callbacks/postPickupInitLate.lua +2 -0
- package/callbacks/postPickupStateChanged.lua +2 -0
- package/callbacks/postPitRender.lua +2 -0
- package/callbacks/postPitUpdate.lua +2 -0
- package/callbacks/postPlayerChangeHealth.lua +2 -0
- package/callbacks/postPlayerChangeType.lua +2 -0
- package/callbacks/postPlayerFatalDamage.lua +2 -0
- package/callbacks/postPlayerInitLate.lua +2 -0
- package/callbacks/postPlayerReordered.lua +2 -0
- package/callbacks/postPoopRender.lua +2 -0
- package/callbacks/postPoopUpdate.lua +2 -0
- package/callbacks/postPressurePlateRender.lua +2 -0
- package/callbacks/postPressurePlateUpdate.lua +2 -0
- package/callbacks/postProjectileInitLate.lua +2 -0
- package/callbacks/postPurchase.lua +2 -0
- package/callbacks/postRockRender.lua +2 -0
- package/callbacks/postRockUpdate.lua +2 -0
- package/callbacks/postRoomClearChanged.lua +2 -0
- package/callbacks/postSacrifice.lua +2 -0
- package/callbacks/postSlotDestroyed.d.ts +1 -0
- package/callbacks/postSlotDestroyed.lua +66 -0
- package/callbacks/postSlotInitUpdate.lua +2 -0
- package/callbacks/postSlotRender.lua +5 -21
- package/callbacks/postSpikesRender.lua +2 -0
- package/callbacks/postSpikesUpdate.lua +2 -0
- package/callbacks/postTNTRender.lua +2 -0
- package/callbacks/postTNTUpdate.lua +2 -0
- package/callbacks/postTearInitLate.lua +2 -0
- package/callbacks/postTearInitVeryLate.lua +2 -0
- package/callbacks/postTransformation.lua +2 -0
- package/callbacks/postTrinketBreak.lua +2 -0
- package/callbacks/preBerserkDeath.lua +2 -0
- package/callbacks/preNewLevel.lua +2 -0
- package/callbacks/reorderedCallbacks.lua +16 -0
- package/callbacks/subscriptions/postBombInitLate.lua +6 -0
- package/callbacks/subscriptions/postBoneSwing.lua +6 -0
- package/callbacks/subscriptions/postCollectibleInitFirst.lua +6 -0
- package/callbacks/subscriptions/postCursedTeleport.lua +6 -0
- package/callbacks/subscriptions/postCustomDoorEnter.lua +6 -0
- package/callbacks/subscriptions/postCustomRevive.d.ts +1 -0
- package/callbacks/subscriptions/postCustomRevive.lua +6 -0
- package/callbacks/subscriptions/postDoorRender.d.ts +1 -0
- package/callbacks/subscriptions/postDoorRender.lua +6 -0
- package/callbacks/subscriptions/postDoorUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postDoorUpdate.lua +6 -0
- package/callbacks/subscriptions/postEffectInitLate.lua +6 -0
- package/callbacks/subscriptions/postEffectStateChanged.lua +6 -0
- package/callbacks/subscriptions/postEsauJr.lua +6 -0
- package/callbacks/subscriptions/postFamiliarInitLate.lua +6 -0
- package/callbacks/subscriptions/postFamiliarStateChanged.lua +6 -0
- package/callbacks/subscriptions/postFirstEsauJr.lua +6 -0
- package/callbacks/subscriptions/postFirstFlip.lua +6 -0
- package/callbacks/subscriptions/postFlip.lua +6 -0
- package/callbacks/subscriptions/postGameStartedReordered.lua +6 -0
- package/callbacks/subscriptions/postGreedModeWave.lua +6 -0
- package/callbacks/subscriptions/postGridEntityBroken.lua +6 -0
- package/callbacks/subscriptions/postGridEntityCollision.lua +6 -0
- package/callbacks/subscriptions/postGridEntityInit.lua +6 -0
- package/callbacks/subscriptions/postGridEntityRemove.lua +6 -0
- package/callbacks/subscriptions/postGridEntityRender.lua +6 -0
- package/callbacks/subscriptions/postGridEntityStateChanged.lua +6 -0
- package/callbacks/subscriptions/postGridEntityUpdate.lua +6 -0
- package/callbacks/subscriptions/postHolyMantleRemoved.lua +6 -0
- package/callbacks/subscriptions/postItemDischarged.lua +6 -0
- package/callbacks/subscriptions/postItemPickup.lua +6 -0
- package/callbacks/subscriptions/postKnifeInitLate.lua +6 -0
- package/callbacks/subscriptions/postLaserInitLate.lua +6 -0
- package/callbacks/subscriptions/postNPCInitLate.lua +6 -0
- package/callbacks/subscriptions/postNPCStateChanged.lua +6 -0
- package/callbacks/subscriptions/postNewLevelReordered.lua +6 -0
- package/callbacks/subscriptions/postNewRoomEarly.lua +6 -0
- package/callbacks/subscriptions/postNewRoomReordered.lua +6 -0
- package/callbacks/subscriptions/postPEffectUpdateReordered.lua +6 -0
- package/callbacks/subscriptions/postPickupCollect.d.ts +1 -0
- package/callbacks/subscriptions/postPickupCollect.lua +6 -0
- package/callbacks/subscriptions/postPickupInitFirst.d.ts +3 -0
- package/callbacks/subscriptions/postPickupInitFirst.lua +29 -0
- package/callbacks/subscriptions/postPickupInitLate.lua +6 -0
- package/callbacks/subscriptions/postPickupStateChanged.d.ts +1 -0
- package/callbacks/subscriptions/postPickupStateChanged.lua +6 -0
- package/callbacks/subscriptions/postPitRender.d.ts +1 -0
- package/callbacks/subscriptions/postPitRender.lua +6 -0
- package/callbacks/subscriptions/postPitUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postPitUpdate.lua +6 -0
- package/callbacks/subscriptions/postPlayerChangeHealth.lua +6 -0
- package/callbacks/subscriptions/postPlayerChangeType.lua +6 -0
- package/callbacks/subscriptions/postPlayerFatalDamage.lua +6 -0
- package/callbacks/subscriptions/postPlayerInitLate.lua +6 -0
- package/callbacks/subscriptions/postPlayerInitReordered.lua +6 -0
- package/callbacks/subscriptions/postPlayerRenderReordered.lua +6 -0
- package/callbacks/subscriptions/postPlayerUpdateReordered.lua +6 -0
- package/callbacks/subscriptions/postPoopRender.d.ts +1 -0
- package/callbacks/subscriptions/postPoopRender.lua +6 -0
- package/callbacks/subscriptions/postPoopUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postPoopUpdate.lua +6 -0
- package/callbacks/subscriptions/postPressurePlateRender.d.ts +1 -0
- package/callbacks/subscriptions/postPressurePlateRender.lua +6 -0
- package/callbacks/subscriptions/postPressurePlateUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postPressurePlateUpdate.lua +6 -0
- package/callbacks/subscriptions/postProjectileInitLate.lua +6 -0
- package/callbacks/subscriptions/postPurchase.lua +6 -0
- package/callbacks/subscriptions/postRockRender.d.ts +1 -0
- package/callbacks/subscriptions/postRockRender.lua +6 -0
- package/callbacks/subscriptions/postRockUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postRockUpdate.lua +6 -0
- package/callbacks/subscriptions/postRoomClearChanged.lua +6 -0
- package/callbacks/subscriptions/postSacrifice.lua +6 -0
- package/callbacks/subscriptions/postSlotAnimationChanged.lua +6 -0
- package/callbacks/subscriptions/postSlotDestroyed.lua +6 -0
- package/callbacks/subscriptions/postSlotInit.lua +6 -0
- package/callbacks/subscriptions/postSlotRender.lua +6 -0
- package/callbacks/subscriptions/postSlotUpdate.lua +6 -0
- package/callbacks/subscriptions/postSpikesRender.d.ts +1 -0
- package/callbacks/subscriptions/postSpikesRender.lua +6 -0
- package/callbacks/subscriptions/postSpikesUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postSpikesUpdate.lua +6 -0
- package/callbacks/subscriptions/postTNTRender.d.ts +1 -0
- package/callbacks/subscriptions/postTNTRender.lua +6 -0
- package/callbacks/subscriptions/postTNTUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postTNTUpdate.lua +6 -0
- package/callbacks/subscriptions/postTearInitLate.lua +6 -0
- package/callbacks/subscriptions/postTearInitVeryLate.lua +6 -0
- package/callbacks/subscriptions/postTransformation.lua +6 -0
- package/callbacks/subscriptions/postTrinketBreak.lua +6 -0
- package/callbacks/subscriptions/preBerserkDeath.lua +6 -0
- package/callbacks/subscriptions/preCustomRevive.lua +6 -0
- package/callbacks/subscriptions/preItemPickup.lua +6 -0
- package/callbacks/subscriptions/preNewLevel.lua +6 -0
- package/classes/DefaultMap.d.ts +70 -39
- package/classes/DefaultMap.lua +94 -43
- package/classes/ModUpgraded.d.ts +3 -3
- package/classes/ModUpgraded.lua +5 -0
- package/constants.lua +41 -0
- package/constantsFirstLast.lua +63 -0
- package/enums/HealthType.lua +3 -0
- package/enums/ModCallbackCustom.d.ts +62 -40
- package/enums/ModCallbackCustom.lua +46 -38
- package/enums/private/CopyableIsaacAPIClassType.lua +1 -0
- package/enums/private/SerializationBrand.lua +5 -0
- package/features/characterHealthConversion.lua +6 -0
- package/features/characterStats.lua +17 -0
- package/features/debugDisplay/exports.d.ts +17 -0
- package/features/debugDisplay/exports.lua +90 -0
- package/features/debugDisplay/v.d.ts +17 -0
- package/features/deployJSONRoom.d.ts +1 -0
- package/features/deployJSONRoom.lua +56 -0
- package/features/disableInputs.lua +45 -0
- package/features/disableSound.lua +14 -0
- package/features/extraConsoleCommands/commandsDisplay.lua +90 -0
- package/features/extraConsoleCommands/init.lua +16 -0
- package/features/extraConsoleCommands/listCommands.lua +172 -0
- package/features/fadeInRemover.lua +10 -0
- package/features/fastReset.lua +10 -0
- package/features/forgottenSwitch.lua +4 -0
- package/features/getCollectibleItemPoolType.lua +5 -0
- package/features/playerInventory.lua +18 -0
- package/features/ponyDetection.lua +4 -0
- package/features/preventCollectibleRotation.lua +9 -0
- package/features/runInNFrames.lua +50 -0
- package/features/saveDataManager/constants.lua +1 -0
- package/features/saveDataManager/exports.lua +115 -0
- package/features/saveDataManager/load.lua +12 -8
- package/features/saveDataManager/main.lua +16 -3
- package/features/saveDataManager/maps.lua +3 -0
- package/features/saveDataManager/merge.lua +53 -21
- package/features/saveDataManager/save.lua +12 -7
- package/features/sirenHelpers.lua +13 -0
- package/features/taintedLazarusPlayers.lua +11 -0
- package/featuresInitialized.lua +6 -0
- package/functions/array.d.ts +2 -0
- package/functions/array.lua +85 -0
- package/functions/benchmark.lua +6 -0
- package/functions/bombs.d.ts +3 -0
- package/functions/bombs.lua +12 -0
- package/functions/boss.lua +35 -0
- package/functions/cacheFlag.lua +4 -0
- package/functions/cards.lua +60 -0
- package/functions/challenges.lua +1 -0
- package/functions/character.lua +23 -0
- package/functions/charge.lua +39 -0
- package/functions/chargeBar.d.ts +1 -0
- package/functions/chargeBar.lua +4 -0
- package/functions/collectibleCacheFlag.lua +15 -0
- package/functions/collectibleSet.lua +3 -0
- package/functions/collectibleTag.lua +9 -0
- package/functions/collectibles.d.ts +13 -8
- package/functions/collectibles.lua +147 -3
- package/functions/color.lua +18 -0
- package/functions/debug.lua +18 -0
- package/functions/deepCopy.lua +60 -26
- package/functions/deepCopyTests.lua +8 -5
- package/functions/direction.d.ts +8 -0
- package/functions/direction.lua +27 -0
- package/functions/doors.d.ts +1 -0
- package/functions/doors.lua +58 -0
- package/functions/entity.d.ts +4 -4
- package/functions/entity.lua +94 -6
- package/functions/entitySpecific.d.ts +20 -20
- package/functions/entitySpecific.lua +182 -0
- package/functions/entityTypes.d.ts +1 -1
- package/functions/entityTypes.lua +1 -0
- package/functions/enums.d.ts +2 -0
- package/functions/enums.lua +62 -0
- package/functions/familiars.lua +52 -0
- package/functions/flag.lua +77 -0
- package/functions/flying.lua +10 -0
- package/functions/globals.lua +8 -10
- package/functions/gridEntity.lua +105 -0
- package/functions/gridEntitySpecific.d.ts +5 -0
- package/functions/gridEntitySpecific.lua +8 -0
- package/functions/input.lua +11 -0
- package/functions/isaacAPIClass.d.ts +4 -4
- package/functions/isaacAPIClass.lua +15 -3
- package/functions/jsonHelpers.lua +11 -0
- package/functions/jsonRoom.d.ts +2 -0
- package/functions/jsonRoom.lua +5 -0
- package/functions/kColor.lua +9 -0
- package/functions/language.lua +5 -0
- package/functions/log.lua +31 -3
- package/functions/map.lua +18 -0
- package/functions/math.lua +26 -0
- package/functions/npc.lua +24 -0
- package/functions/pickupVariants.d.ts +11 -11
- package/functions/pickupVariants.lua +11 -0
- package/functions/pickups.d.ts +9 -9
- package/functions/pickups.lua +67 -0
- package/functions/pills.lua +45 -0
- package/functions/player.d.ts +7 -0
- package/functions/player.lua +210 -9
- package/functions/playerDataStructures.lua +65 -0
- package/functions/playerHealth.d.ts +3 -0
- package/functions/playerHealth.lua +92 -63
- package/functions/playerIndex.d.ts +2 -0
- package/functions/playerIndex.lua +47 -0
- package/functions/pocketItems.lua +18 -0
- package/functions/positionVelocity.d.ts +3 -0
- package/functions/positionVelocity.lua +46 -0
- package/functions/random.d.ts +2 -0
- package/functions/random.lua +32 -0
- package/functions/revive.d.ts +2 -0
- package/functions/revive.lua +15 -0
- package/functions/rng.d.ts +1 -0
- package/functions/rng.lua +19 -0
- package/functions/roomData.lua +68 -0
- package/functions/roomGrid.lua +21 -0
- package/functions/roomShape.lua +22 -0
- package/functions/rooms.lua +100 -0
- package/functions/run.lua +5 -0
- package/functions/seeds.lua +4 -0
- package/functions/serialization.lua +6 -2
- package/functions/set.d.ts +1 -0
- package/functions/set.lua +22 -0
- package/functions/spawnCollectible.lua +24 -0
- package/functions/sprite.d.ts +2 -0
- package/functions/sprite.lua +25 -0
- package/functions/stage.lua +16 -0
- package/functions/string.lua +6 -0
- package/functions/table.d.ts +12 -0
- package/functions/table.lua +53 -0
- package/functions/tears.d.ts +1 -0
- package/functions/tears.lua +12 -0
- package/functions/transformations.lua +18 -0
- package/functions/trinketCacheFlag.lua +3 -0
- package/functions/trinketGive.lua +24 -0
- package/functions/trinkets.lua +52 -0
- package/functions/tstlClass.d.ts +34 -0
- package/functions/tstlClass.lua +63 -9
- package/functions/ui.d.ts +2 -0
- package/functions/ui.lua +16 -0
- package/functions/utils.d.ts +16 -0
- package/functions/utils.lua +108 -0
- package/functions/vector.lua +13 -16
- package/index.d.ts +1 -0
- package/index.lua +8 -0
- package/initCustomCallbacks.lua +6 -0
- package/interfaces/AddCallbackParameterCustom.d.ts +2 -0
- package/interfaces/ChargeBarSprites.d.ts +1 -0
- package/interfaces/private/TSTLClassMetatable.d.ts +2 -0
- package/lualib_bundle.lua +21 -34
- package/maps/cardMap.lua +1 -0
- package/maps/characterMap.lua +1 -0
- package/maps/defaultPlayerStatMap.lua +1 -0
- package/maps/gridEntityXMLMap.lua +2 -0
- package/maps/pillEffectMap.lua +1 -0
- package/maps/roomShapeToTopLeftWallGridIndexMap.lua +2 -0
- package/maps/roomTypeMap.lua +1 -0
- package/objects/LRoomShapeToRectangles.lua +2 -0
- package/objects/callbackRegisterFunctions.lua +3 -0
- package/objects/colors.lua +4 -0
- package/objects/oppositeDoorSlots.d.ts +4 -0
- package/objects/oppositeDoorSlots.lua +15 -0
- package/objects/roomShapeBounds.lua +2 -0
- package/objects/roomShapeLayoutSizes.lua +4 -0
- package/objects/roomShapeToBottomRightPosition.lua +2 -0
- package/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +2 -0
- package/objects/roomShapeToTopLeftPosition.lua +2 -0
- package/objects/roomShapeVolumes.lua +3 -0
- package/package.json +2 -2
- package/patchErrorFunctions.lua +8 -0
- package/sets/bossSets.lua +23 -0
- package/sets/charactersWithNoRedHeartsSet.lua +2 -0
- package/sets/charactersWithNoSoulHeartsSet.lua +2 -0
- package/sets/lostStyleCharactersSet.lua +2 -0
- package/types/AnyEntity.d.ts +10 -0
- package/types/PickingUpItem.lua +7 -0
- package/upgradeMod.d.ts +4 -4
- package/upgradeMod.lua +18 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local Set = ____lualib.Set
|
|
3
|
+
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local Map = ____lualib.Map
|
|
5
|
+
local ____exports = {}
|
|
6
|
+
local hasSubscriptions, postEntityRemove, postSlotAnimationChanged, BROKEN_ANIMATIONS, PRIZE_GAME_FRAME_DELAY_UNTIL_REMOVAL, v
|
|
7
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
8
|
+
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
9
|
+
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
10
|
+
local ____cachedClasses = require("cachedClasses")
|
|
11
|
+
local game = ____cachedClasses.game
|
|
12
|
+
local ____ModCallbackCustom = require("enums.ModCallbackCustom")
|
|
13
|
+
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
14
|
+
local ____exports = require("features.saveDataManager.exports")
|
|
15
|
+
local saveDataManager = ____exports.saveDataManager
|
|
16
|
+
local ____postSlotDestroyed = require("callbacks.subscriptions.postSlotDestroyed")
|
|
17
|
+
local postSlotDestroyedFire = ____postSlotDestroyed.postSlotDestroyedFire
|
|
18
|
+
local postSlotDestroyedHasSubscriptions = ____postSlotDestroyed.postSlotDestroyedHasSubscriptions
|
|
19
|
+
function hasSubscriptions(self)
|
|
20
|
+
return postSlotDestroyedHasSubscriptions(nil)
|
|
21
|
+
end
|
|
22
|
+
function postEntityRemove(self, entity)
|
|
23
|
+
local slot = entity
|
|
24
|
+
local ptrHash = GetPtrHash(slot)
|
|
25
|
+
local gameFrameCount = game:GetFrameCount()
|
|
26
|
+
local prizeFrame = v.room.slotPrizeAnimationGameFrame:get(ptrHash)
|
|
27
|
+
if prizeFrame == nil then
|
|
28
|
+
return
|
|
29
|
+
end
|
|
30
|
+
if prizeFrame + PRIZE_GAME_FRAME_DELAY_UNTIL_REMOVAL == gameFrameCount then
|
|
31
|
+
postSlotDestroyedFire(nil, slot)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
function postSlotAnimationChanged(self, slot)
|
|
35
|
+
local ptrHash = GetPtrHash(slot)
|
|
36
|
+
local gameFrameCount = game:GetFrameCount()
|
|
37
|
+
local alreadyBroken = v.room.brokenSlots:has(ptrHash)
|
|
38
|
+
if alreadyBroken then
|
|
39
|
+
return
|
|
40
|
+
end
|
|
41
|
+
local sprite = slot:GetSprite()
|
|
42
|
+
local animation = sprite:GetAnimation()
|
|
43
|
+
if BROKEN_ANIMATIONS:has(animation) then
|
|
44
|
+
v.room.brokenSlots:add(ptrHash)
|
|
45
|
+
postSlotDestroyedFire(nil, slot)
|
|
46
|
+
end
|
|
47
|
+
if animation == "Prize" then
|
|
48
|
+
v.room.slotPrizeAnimationGameFrame:set(ptrHash, gameFrameCount)
|
|
49
|
+
else
|
|
50
|
+
v.room.slotPrizeAnimationGameFrame:delete(ptrHash)
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
BROKEN_ANIMATIONS = __TS__New(Set, {"Broken", "Death"})
|
|
54
|
+
PRIZE_GAME_FRAME_DELAY_UNTIL_REMOVAL = 3
|
|
55
|
+
v = {room = {
|
|
56
|
+
brokenSlots = __TS__New(Set),
|
|
57
|
+
slotPrizeAnimationGameFrame = __TS__New(Map)
|
|
58
|
+
}}
|
|
59
|
+
---
|
|
60
|
+
-- @internal
|
|
61
|
+
function ____exports.postSlotDestroyedCallbacksInit(self, mod)
|
|
62
|
+
saveDataManager(nil, "postSlotDestroyed", v, hasSubscriptions)
|
|
63
|
+
mod:AddCallback(ModCallback.POST_ENTITY_REMOVE, postEntityRemove, EntityType.SLOT)
|
|
64
|
+
mod:AddCallbackCustom(ModCallbackCustom.POST_SLOT_ANIMATION_CHANGED, postSlotAnimationChanged)
|
|
65
|
+
end
|
|
66
|
+
return ____exports
|
|
@@ -43,6 +43,8 @@ function checkNewEntity(self, slot)
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
v = {room = {initializedSlots = __TS__New(Set)}}
|
|
46
|
+
---
|
|
47
|
+
-- @internal
|
|
46
48
|
function ____exports.postSlotInitUpdateCallbacksInit(self, mod)
|
|
47
49
|
saveDataManager(nil, "postSlotInitUpdate", v, hasSubscriptions)
|
|
48
50
|
mod:AddCallback(ModCallback.POST_UPDATE, postUpdate)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
-
local Set = ____lualib.Set
|
|
3
2
|
local __TS__New = ____lualib.__TS__New
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
4
|
local ____exports = {}
|
|
5
|
-
local hasSubscriptions, postRender, checkSlotAnimationChanged,
|
|
5
|
+
local hasSubscriptions, postRender, checkSlotAnimationChanged, v
|
|
6
6
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
7
7
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
8
8
|
local ____DefaultMap = require("classes.DefaultMap")
|
|
@@ -14,14 +14,11 @@ local getSlots = ____entitySpecific.getSlots
|
|
|
14
14
|
local ____postSlotAnimationChanged = require("callbacks.subscriptions.postSlotAnimationChanged")
|
|
15
15
|
local postSlotAnimationChangedFire = ____postSlotAnimationChanged.postSlotAnimationChangedFire
|
|
16
16
|
local postSlotAnimationChangedHasSubscriptions = ____postSlotAnimationChanged.postSlotAnimationChangedHasSubscriptions
|
|
17
|
-
local ____postSlotDestroyed = require("callbacks.subscriptions.postSlotDestroyed")
|
|
18
|
-
local postSlotDestroyedFire = ____postSlotDestroyed.postSlotDestroyedFire
|
|
19
|
-
local postSlotDestroyedHasSubscriptions = ____postSlotDestroyed.postSlotDestroyedHasSubscriptions
|
|
20
17
|
local ____postSlotRender = require("callbacks.subscriptions.postSlotRender")
|
|
21
18
|
local postSlotRenderFire = ____postSlotRender.postSlotRenderFire
|
|
22
19
|
local postSlotRenderHasSubscriptions = ____postSlotRender.postSlotRenderHasSubscriptions
|
|
23
20
|
function hasSubscriptions(self)
|
|
24
|
-
return postSlotRenderHasSubscriptions(nil) or
|
|
21
|
+
return postSlotRenderHasSubscriptions(nil) or postSlotAnimationChangedHasSubscriptions(nil)
|
|
25
22
|
end
|
|
26
23
|
function postRender(self)
|
|
27
24
|
if not hasSubscriptions(nil) then
|
|
@@ -30,7 +27,6 @@ function postRender(self)
|
|
|
30
27
|
for ____, slot in ipairs(getSlots(nil)) do
|
|
31
28
|
postSlotRenderFire(nil, slot)
|
|
32
29
|
checkSlotAnimationChanged(nil, slot)
|
|
33
|
-
checkSlotBroken(nil, slot)
|
|
34
30
|
end
|
|
35
31
|
end
|
|
36
32
|
function checkSlotAnimationChanged(self, slot)
|
|
@@ -43,20 +39,6 @@ function checkSlotAnimationChanged(self, slot)
|
|
|
43
39
|
postSlotAnimationChangedFire(nil, slot, previousAnimation, currentAnimation)
|
|
44
40
|
end
|
|
45
41
|
end
|
|
46
|
-
function checkSlotBroken(self, slot)
|
|
47
|
-
local ptrHash = GetPtrHash(slot)
|
|
48
|
-
local alreadyBroken = v.room.brokenSlots:has(ptrHash)
|
|
49
|
-
if alreadyBroken then
|
|
50
|
-
return
|
|
51
|
-
end
|
|
52
|
-
local sprite = slot:GetSprite()
|
|
53
|
-
local animation = sprite:GetAnimation()
|
|
54
|
-
if BROKEN_ANIMATIONS:has(animation) then
|
|
55
|
-
v.room.brokenSlots:add(ptrHash)
|
|
56
|
-
postSlotDestroyedFire(nil, slot)
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
BROKEN_ANIMATIONS = __TS__New(Set, {"Broken", "Death"})
|
|
60
42
|
v = {room = {
|
|
61
43
|
slotAnimations = __TS__New(
|
|
62
44
|
DefaultMap,
|
|
@@ -67,6 +49,8 @@ v = {room = {
|
|
|
67
49
|
),
|
|
68
50
|
brokenSlots = __TS__New(Set)
|
|
69
51
|
}}
|
|
52
|
+
---
|
|
53
|
+
-- @internal
|
|
70
54
|
function ____exports.postSlotRenderCallbacksInit(self, mod)
|
|
71
55
|
saveDataManager(nil, "postSlotRender", v, hasSubscriptions)
|
|
72
56
|
mod:AddCallback(ModCallback.POST_RENDER, postRender)
|
|
@@ -24,6 +24,8 @@ function postTearUpdate(self, tear)
|
|
|
24
24
|
end
|
|
25
25
|
end
|
|
26
26
|
v = {room = {firedSet = __TS__New(Set)}}
|
|
27
|
+
---
|
|
28
|
+
-- @internal
|
|
27
29
|
function ____exports.postTearInitLateCallbackInit(self, mod)
|
|
28
30
|
saveDataManager(nil, "postTearInitLate", v, hasSubscriptions)
|
|
29
31
|
mod:AddCallback(ModCallback.POST_TEAR_UPDATE, postTearUpdate)
|
|
@@ -27,6 +27,8 @@ function postTearUpdate(self, tear)
|
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
v = {room = {firedSet = __TS__New(Set)}}
|
|
30
|
+
---
|
|
31
|
+
-- @internal
|
|
30
32
|
function ____exports.postTearInitVeryLateCallbackInit(self, mod)
|
|
31
33
|
saveDataManager(nil, "postTearInitVeryLate", v, hasSubscriptions)
|
|
32
34
|
mod:AddCallback(ModCallback.POST_TEAR_UPDATE, postTearUpdate)
|
|
@@ -39,6 +39,8 @@ v = {run = {playersTransformationsMap = __TS__New(
|
|
|
39
39
|
DefaultMap,
|
|
40
40
|
function() return __TS__New(DefaultMap, false) end
|
|
41
41
|
)}}
|
|
42
|
+
---
|
|
43
|
+
-- @internal
|
|
42
44
|
function ____exports.postTransformationCallbackInit(self, mod)
|
|
43
45
|
saveDataManager(nil, "postTransformation", v, hasSubscriptions)
|
|
44
46
|
mod:AddCallbackCustom(ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, postPEffectUpdateReordered)
|
|
@@ -62,6 +62,8 @@ v = {run = {playersTrinketMap = __TS__New(
|
|
|
62
62
|
DefaultMap,
|
|
63
63
|
function() return __TS__New(DefaultMap, 0) end
|
|
64
64
|
)}}
|
|
65
|
+
---
|
|
66
|
+
-- @internal
|
|
65
67
|
function ____exports.postTrinketBreakCallbackInit(self, mod)
|
|
66
68
|
saveDataManager(nil, "postTrinketBreak", v, hasSubscriptions)
|
|
67
69
|
mod:AddCallback(ModCallback.ENTITY_TAKE_DMG, entityTakeDmgPlayer, EntityType.PLAYER)
|
|
@@ -30,6 +30,8 @@ function postPEffectUpdateReordered(self, player)
|
|
|
30
30
|
preBerserkDeathFire(nil, player)
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
|
+
---
|
|
34
|
+
-- @internal
|
|
33
35
|
function ____exports.preBerserkDeathCallbackInit(self, mod)
|
|
34
36
|
mod:AddCallbackCustom(ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, postPEffectUpdateReordered)
|
|
35
37
|
end
|
|
@@ -37,6 +37,8 @@ function postPlayerRender(self, player)
|
|
|
37
37
|
end
|
|
38
38
|
TRAVELING_TO_NEXT_FLOOR_ANIMATIONS = __TS__New(Set, {"Trapdoor", "LightTravel"})
|
|
39
39
|
firedOnStage = nil
|
|
40
|
+
---
|
|
41
|
+
-- @internal
|
|
40
42
|
function ____exports.preNewLevelCallbackInit(self, mod)
|
|
41
43
|
mod:AddCallback(ModCallback.POST_PLAYER_RENDER, postPlayerRender)
|
|
42
44
|
end
|
|
@@ -77,15 +77,31 @@ currentStageType = nil
|
|
|
77
77
|
usedGlowingHourGlass = false
|
|
78
78
|
forceNewLevel = false
|
|
79
79
|
forceNewRoom = false
|
|
80
|
+
---
|
|
81
|
+
-- @internal
|
|
80
82
|
function ____exports.reorderedCallbacksInit(self, mod)
|
|
81
83
|
mod:AddCallback(ModCallback.POST_USE_ITEM, useItemGlowingHourGlass, CollectibleType.GLOWING_HOUR_GLASS)
|
|
82
84
|
mod:AddCallback(ModCallback.POST_GAME_STARTED, postGameStartedVanilla)
|
|
83
85
|
mod:AddCallback(ModCallback.POST_NEW_LEVEL, postNewLevelVanilla)
|
|
84
86
|
mod:AddCallback(ModCallback.POST_NEW_ROOM, postNewRoomVanilla)
|
|
85
87
|
end
|
|
88
|
+
--- This is a utility function for users of the `ModCallbackCustom.POST_NEW_LEVEL_REORDERED` custom
|
|
89
|
+
-- callback.
|
|
90
|
+
--
|
|
91
|
+
-- If some specific cases, mods can change the current level during run initialization on the 0th
|
|
92
|
+
-- frame. However, due to how the callback reordering works, the custom PostNewLevel callback will
|
|
93
|
+
-- never fire on the 0th frame. To get around this, call this function before changing levels to
|
|
94
|
+
-- temporarily force the callback to fire.
|
|
86
95
|
function ____exports.forceNewLevelCallback(self)
|
|
87
96
|
forceNewLevel = true
|
|
88
97
|
end
|
|
98
|
+
--- This is a utility function for users of the `ModCallbackCustom.POST_NEW_ROOM_REORDERED` custom
|
|
99
|
+
-- callback.
|
|
100
|
+
--
|
|
101
|
+
-- If some specific cases, mods can change the current room during run initialization on the 0th
|
|
102
|
+
-- frame. However, due to how the callback reordering works, the custom PostNewRoom callback will
|
|
103
|
+
-- never fire on the 0th frame. To get around this, call this function before changing rooms to
|
|
104
|
+
-- temporarily force the callback to fire.
|
|
89
105
|
function ____exports.forceNewRoomCallback(self)
|
|
90
106
|
forceNewRoom = true
|
|
91
107
|
end
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postBombInitLateHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postBombInitLateRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postBombInitLateFire(self, bomb)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postBoneSwingHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postBoneSwingRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postBoneSwingFire(self, boneClub)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postCollectibleInitFirstHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postCollectibleInitFirstRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postCollectibleInitFirstFire(self, collectible)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postCursedTeleportHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postCursedTeleportRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postCursedTeleportFire(self, player)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postCustomDoorEnterHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postCustomDoorEnterRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postCustomDoorEnterFire(self, player, effectVariant, doorSlot, direction)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postCustomReviveHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postCustomReviveRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postCustomReviveFire(self, player, revivalType)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postDoorRenderHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postDoorRenderRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postDoorRenderFire(self, door)
|
|
11
17
|
local gridEntityVariant = door:GetVariant()
|
|
12
18
|
for ____, ____value in ipairs(subscriptions) do
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postDoorUpdateHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postDoorUpdateRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postDoorUpdateFire(self, door)
|
|
11
17
|
local gridEntityVariant = door:GetVariant()
|
|
12
18
|
for ____, ____value in ipairs(subscriptions) do
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postEffectInitLateHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postEffectInitLateRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postEffectInitLateFire(self, effect)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postEffectStateChangedHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postEffectStateChangedRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postEffectStateChangedFire(self, effect, previousState, currentState)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postEsauJrHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postEsauJrRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postEsauJrFire(self, player)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postFamiliarInitLateHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postFamiliarInitLateRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postFamiliarInitLateFire(self, familiar)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postFamiliarStateChangedHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postFamiliarStateChangedRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postFamiliarStateChangedFire(self, familiar, previousState, currentState)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postFirstEsauJrHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postFirstEsauJrRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postFirstEsauJrFire(self, player)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postFirstFlipHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postFirstFlipRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postFirstFlipFire(self, player)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postFlipHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postFlipRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postFlipFire(self, player)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postGameStartedReorderedHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postGameStartedReorderedRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postGameStartedReorderedFire(self, isContinued)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postGreedModeWaveHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postGreedModeWaveRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postGreedModeWaveFire(self, oldWave, newWave)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|