isaacscript-common 2.3.2 → 3.0.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.
Files changed (269) hide show
  1. package/cachedClasses.lua +24 -0
  2. package/callbacks/customRevive.lua +2 -0
  3. package/callbacks/itemPickup.lua +2 -0
  4. package/callbacks/postBombInitLate.lua +2 -0
  5. package/callbacks/postBoneSwing.lua +2 -0
  6. package/callbacks/postCollectibleInitFirst.lua +2 -0
  7. package/callbacks/postCursedTeleport.lua +2 -0
  8. package/callbacks/postCustomDoorEnter.lua +44 -0
  9. package/callbacks/postDoorRender.lua +2 -0
  10. package/callbacks/postDoorUpdate.lua +2 -0
  11. package/callbacks/postEffectInitLate.lua +2 -0
  12. package/callbacks/postEffectStateChanged.lua +2 -0
  13. package/callbacks/postEsauJr.lua +2 -0
  14. package/callbacks/postFamiliarInitLate.lua +2 -0
  15. package/callbacks/postFamiliarStateChanged.lua +2 -0
  16. package/callbacks/postFlip.lua +2 -0
  17. package/callbacks/postGreedModeWave.lua +2 -0
  18. package/callbacks/postGridEntity.lua +2 -0
  19. package/callbacks/postGridEntityCollision.lua +2 -0
  20. package/callbacks/postGridEntityRender.lua +2 -0
  21. package/callbacks/postHolyMantleRemoved.lua +2 -0
  22. package/callbacks/postKnifeInitLate.lua +2 -0
  23. package/callbacks/postLaserInitLate.lua +2 -0
  24. package/callbacks/postNPCInitLate.lua +2 -0
  25. package/callbacks/postNPCStateChanged.lua +2 -0
  26. package/callbacks/postNewRoomEarly.lua +2 -0
  27. package/callbacks/postPickupCollect.lua +2 -0
  28. package/callbacks/postPickupInitLate.lua +2 -0
  29. package/callbacks/postPickupStateChanged.lua +2 -0
  30. package/callbacks/postPitRender.lua +2 -0
  31. package/callbacks/postPitUpdate.lua +2 -0
  32. package/callbacks/postPlayerChangeHealth.lua +2 -0
  33. package/callbacks/postPlayerChangeType.lua +2 -0
  34. package/callbacks/postPlayerFatalDamage.lua +2 -0
  35. package/callbacks/postPlayerInitLate.lua +2 -0
  36. package/callbacks/postPlayerReordered.lua +2 -0
  37. package/callbacks/postPoopRender.lua +2 -0
  38. package/callbacks/postPoopUpdate.lua +2 -0
  39. package/callbacks/postPressurePlateRender.lua +2 -0
  40. package/callbacks/postPressurePlateUpdate.lua +2 -0
  41. package/callbacks/postProjectileInitLate.lua +2 -0
  42. package/callbacks/postPurchase.lua +2 -0
  43. package/callbacks/postRockRender.lua +2 -0
  44. package/callbacks/postRockUpdate.lua +2 -0
  45. package/callbacks/postRoomClearChanged.lua +2 -0
  46. package/callbacks/postSacrifice.lua +2 -0
  47. package/callbacks/postSlotInitUpdate.lua +2 -0
  48. package/callbacks/postSlotRender.lua +2 -0
  49. package/callbacks/postSpikesRender.lua +2 -0
  50. package/callbacks/postSpikesUpdate.lua +2 -0
  51. package/callbacks/postTNTRender.lua +2 -0
  52. package/callbacks/postTNTUpdate.lua +2 -0
  53. package/callbacks/postTearInitLate.lua +2 -0
  54. package/callbacks/postTearInitVeryLate.lua +2 -0
  55. package/callbacks/postTransformation.lua +2 -0
  56. package/callbacks/postTrinketBreak.lua +2 -0
  57. package/callbacks/preBerserkDeath.lua +2 -0
  58. package/callbacks/preNewLevel.lua +2 -0
  59. package/callbacks/reorderedCallbacks.lua +16 -0
  60. package/callbacks/subscriptions/postBombInitLate.lua +6 -0
  61. package/callbacks/subscriptions/postBoneSwing.lua +6 -0
  62. package/callbacks/subscriptions/postCollectibleInitFirst.lua +6 -0
  63. package/callbacks/subscriptions/postCursedTeleport.lua +6 -0
  64. package/callbacks/subscriptions/postCustomDoorEnter.lua +6 -0
  65. package/callbacks/subscriptions/postCustomRevive.lua +6 -0
  66. package/callbacks/subscriptions/postDoorRender.lua +6 -0
  67. package/callbacks/subscriptions/postDoorUpdate.lua +6 -0
  68. package/callbacks/subscriptions/postEffectInitLate.lua +6 -0
  69. package/callbacks/subscriptions/postEffectStateChanged.lua +6 -0
  70. package/callbacks/subscriptions/postEsauJr.lua +6 -0
  71. package/callbacks/subscriptions/postFamiliarInitLate.lua +6 -0
  72. package/callbacks/subscriptions/postFamiliarStateChanged.lua +6 -0
  73. package/callbacks/subscriptions/postFirstEsauJr.lua +6 -0
  74. package/callbacks/subscriptions/postFirstFlip.lua +6 -0
  75. package/callbacks/subscriptions/postFlip.lua +6 -0
  76. package/callbacks/subscriptions/postGameStartedReordered.lua +6 -0
  77. package/callbacks/subscriptions/postGreedModeWave.lua +6 -0
  78. package/callbacks/subscriptions/postGridEntityBroken.lua +6 -0
  79. package/callbacks/subscriptions/postGridEntityCollision.lua +6 -0
  80. package/callbacks/subscriptions/postGridEntityInit.lua +6 -0
  81. package/callbacks/subscriptions/postGridEntityRemove.lua +6 -0
  82. package/callbacks/subscriptions/postGridEntityRender.lua +6 -0
  83. package/callbacks/subscriptions/postGridEntityStateChanged.lua +6 -0
  84. package/callbacks/subscriptions/postGridEntityUpdate.lua +6 -0
  85. package/callbacks/subscriptions/postHolyMantleRemoved.lua +6 -0
  86. package/callbacks/subscriptions/postItemDischarged.lua +6 -0
  87. package/callbacks/subscriptions/postItemPickup.lua +6 -0
  88. package/callbacks/subscriptions/postKnifeInitLate.lua +6 -0
  89. package/callbacks/subscriptions/postLaserInitLate.lua +6 -0
  90. package/callbacks/subscriptions/postNPCInitLate.lua +6 -0
  91. package/callbacks/subscriptions/postNPCStateChanged.lua +6 -0
  92. package/callbacks/subscriptions/postNewLevelReordered.lua +6 -0
  93. package/callbacks/subscriptions/postNewRoomEarly.lua +6 -0
  94. package/callbacks/subscriptions/postNewRoomReordered.lua +6 -0
  95. package/callbacks/subscriptions/postPEffectUpdateReordered.lua +6 -0
  96. package/callbacks/subscriptions/postPickupCollect.lua +6 -0
  97. package/callbacks/subscriptions/postPickupInitLate.lua +6 -0
  98. package/callbacks/subscriptions/postPickupStateChanged.lua +6 -0
  99. package/callbacks/subscriptions/postPitRender.lua +6 -0
  100. package/callbacks/subscriptions/postPitUpdate.lua +6 -0
  101. package/callbacks/subscriptions/postPlayerChangeHealth.lua +6 -0
  102. package/callbacks/subscriptions/postPlayerChangeType.lua +6 -0
  103. package/callbacks/subscriptions/postPlayerFatalDamage.lua +6 -0
  104. package/callbacks/subscriptions/postPlayerInitLate.lua +6 -0
  105. package/callbacks/subscriptions/postPlayerInitReordered.lua +6 -0
  106. package/callbacks/subscriptions/postPlayerRenderReordered.lua +6 -0
  107. package/callbacks/subscriptions/postPlayerUpdateReordered.lua +6 -0
  108. package/callbacks/subscriptions/postPoopRender.lua +6 -0
  109. package/callbacks/subscriptions/postPoopUpdate.lua +6 -0
  110. package/callbacks/subscriptions/postPressurePlateRender.lua +6 -0
  111. package/callbacks/subscriptions/postPressurePlateUpdate.lua +6 -0
  112. package/callbacks/subscriptions/postProjectileInitLate.lua +6 -0
  113. package/callbacks/subscriptions/postPurchase.lua +6 -0
  114. package/callbacks/subscriptions/postRockRender.lua +6 -0
  115. package/callbacks/subscriptions/postRockUpdate.lua +6 -0
  116. package/callbacks/subscriptions/postRoomClearChanged.lua +6 -0
  117. package/callbacks/subscriptions/postSacrifice.lua +6 -0
  118. package/callbacks/subscriptions/postSlotAnimationChanged.lua +6 -0
  119. package/callbacks/subscriptions/postSlotDestroyed.lua +6 -0
  120. package/callbacks/subscriptions/postSlotInit.lua +6 -0
  121. package/callbacks/subscriptions/postSlotRender.lua +6 -0
  122. package/callbacks/subscriptions/postSlotUpdate.lua +6 -0
  123. package/callbacks/subscriptions/postSpikesRender.lua +6 -0
  124. package/callbacks/subscriptions/postSpikesUpdate.lua +6 -0
  125. package/callbacks/subscriptions/postTNTRender.lua +6 -0
  126. package/callbacks/subscriptions/postTNTUpdate.lua +6 -0
  127. package/callbacks/subscriptions/postTearInitLate.lua +6 -0
  128. package/callbacks/subscriptions/postTearInitVeryLate.lua +6 -0
  129. package/callbacks/subscriptions/postTransformation.lua +6 -0
  130. package/callbacks/subscriptions/postTrinketBreak.lua +6 -0
  131. package/callbacks/subscriptions/preBerserkDeath.lua +6 -0
  132. package/callbacks/subscriptions/preCustomRevive.lua +6 -0
  133. package/callbacks/subscriptions/preItemPickup.lua +6 -0
  134. package/callbacks/subscriptions/preNewLevel.lua +6 -0
  135. package/classes/DefaultMap.d.ts +70 -39
  136. package/classes/DefaultMap.lua +94 -43
  137. package/classes/ModUpgraded.d.ts +3 -3
  138. package/classes/ModUpgraded.lua +5 -0
  139. package/constants.lua +41 -0
  140. package/constantsFirstLast.lua +63 -0
  141. package/enums/HealthType.lua +3 -0
  142. package/enums/ModCallbackCustom.d.ts +1 -1
  143. package/enums/ModCallbackCustom.lua +6 -0
  144. package/enums/private/CopyableIsaacAPIClassType.lua +1 -0
  145. package/enums/private/SerializationBrand.lua +5 -0
  146. package/features/characterHealthConversion.lua +6 -0
  147. package/features/characterStats.lua +17 -0
  148. package/features/debugDisplay/exports.lua +90 -0
  149. package/features/deployJSONRoom.lua +56 -0
  150. package/features/disableInputs.lua +45 -0
  151. package/features/disableSound.lua +14 -0
  152. package/features/extraConsoleCommands/commandsDisplay.lua +90 -0
  153. package/features/extraConsoleCommands/init.lua +16 -0
  154. package/features/extraConsoleCommands/listCommands.lua +172 -0
  155. package/features/fadeInRemover.lua +10 -0
  156. package/features/fastReset.lua +10 -0
  157. package/features/forgottenSwitch.lua +4 -0
  158. package/features/getCollectibleItemPoolType.lua +5 -0
  159. package/features/playerInventory.lua +18 -0
  160. package/features/ponyDetection.lua +4 -0
  161. package/features/preventCollectibleRotation.lua +9 -0
  162. package/features/runInNFrames.lua +50 -0
  163. package/features/saveDataManager/constants.lua +1 -0
  164. package/features/saveDataManager/exports.lua +115 -0
  165. package/features/saveDataManager/main.lua +6 -0
  166. package/features/saveDataManager/maps.lua +3 -0
  167. package/features/saveDataManager/merge.lua +20 -0
  168. package/features/sirenHelpers.lua +13 -0
  169. package/features/taintedLazarusPlayers.lua +11 -0
  170. package/featuresInitialized.lua +6 -0
  171. package/functions/array.lua +85 -0
  172. package/functions/benchmark.lua +6 -0
  173. package/functions/boss.lua +35 -0
  174. package/functions/cacheFlag.lua +4 -0
  175. package/functions/cards.lua +60 -0
  176. package/functions/challenges.lua +1 -0
  177. package/functions/character.lua +23 -0
  178. package/functions/charge.lua +39 -0
  179. package/functions/chargeBar.lua +4 -0
  180. package/functions/collectibleCacheFlag.lua +15 -0
  181. package/functions/collectibleSet.lua +3 -0
  182. package/functions/collectibleTag.lua +9 -0
  183. package/functions/collectibles.lua +131 -0
  184. package/functions/color.lua +18 -0
  185. package/functions/debug.lua +18 -0
  186. package/functions/deepCopy.lua +25 -0
  187. package/functions/doors.lua +53 -0
  188. package/functions/entity.lua +88 -0
  189. package/functions/entitySpecific.lua +182 -0
  190. package/functions/entityTypes.d.ts +1 -1
  191. package/functions/entityTypes.lua +1 -0
  192. package/functions/enums.lua +62 -0
  193. package/functions/familiars.lua +52 -0
  194. package/functions/flag.lua +77 -0
  195. package/functions/flying.lua +10 -0
  196. package/functions/globals.lua +6 -0
  197. package/functions/gridEntity.lua +105 -0
  198. package/functions/gridEntitySpecific.lua +8 -0
  199. package/functions/input.lua +11 -0
  200. package/functions/isaacAPIClass.lua +12 -0
  201. package/functions/jsonHelpers.lua +11 -0
  202. package/functions/jsonRoom.lua +5 -0
  203. package/functions/kColor.lua +9 -0
  204. package/functions/language.lua +5 -0
  205. package/functions/log.lua +28 -0
  206. package/functions/map.lua +18 -0
  207. package/functions/math.lua +26 -0
  208. package/functions/npc.lua +24 -0
  209. package/functions/pickupVariants.d.ts +11 -11
  210. package/functions/pickupVariants.lua +11 -0
  211. package/functions/pickups.lua +67 -0
  212. package/functions/pills.lua +45 -0
  213. package/functions/player.lua +166 -0
  214. package/functions/playerDataStructures.lua +65 -0
  215. package/functions/playerHealth.lua +10 -0
  216. package/functions/playerIndex.lua +47 -0
  217. package/functions/pocketItems.lua +18 -0
  218. package/functions/positionVelocity.lua +46 -0
  219. package/functions/random.lua +32 -0
  220. package/functions/revive.lua +15 -0
  221. package/functions/rng.lua +19 -0
  222. package/functions/roomData.lua +68 -0
  223. package/functions/roomGrid.lua +21 -0
  224. package/functions/roomShape.lua +22 -0
  225. package/functions/rooms.lua +100 -0
  226. package/functions/run.lua +5 -0
  227. package/functions/seeds.lua +4 -0
  228. package/functions/serialization.lua +4 -0
  229. package/functions/set.lua +22 -0
  230. package/functions/spawnCollectible.lua +24 -0
  231. package/functions/sprite.lua +25 -0
  232. package/functions/stage.lua +16 -0
  233. package/functions/string.lua +6 -0
  234. package/functions/table.lua +19 -0
  235. package/functions/tears.lua +12 -0
  236. package/functions/transformations.lua +18 -0
  237. package/functions/trinketCacheFlag.lua +3 -0
  238. package/functions/trinketGive.lua +24 -0
  239. package/functions/trinkets.lua +52 -0
  240. package/functions/tstlClass.lua +9 -0
  241. package/functions/ui.lua +16 -0
  242. package/functions/utils.d.ts +1 -0
  243. package/functions/utils.lua +88 -0
  244. package/functions/vector.lua +9 -0
  245. package/lualib_bundle.lua +21 -34
  246. package/maps/cardMap.lua +1 -0
  247. package/maps/characterMap.lua +1 -0
  248. package/maps/defaultPlayerStatMap.lua +1 -0
  249. package/maps/gridEntityXMLMap.lua +2 -0
  250. package/maps/pillEffectMap.lua +1 -0
  251. package/maps/roomShapeToTopLeftWallGridIndexMap.lua +2 -0
  252. package/maps/roomTypeMap.lua +1 -0
  253. package/objects/LRoomShapeToRectangles.lua +2 -0
  254. package/objects/colors.lua +4 -0
  255. package/objects/roomShapeBounds.lua +2 -0
  256. package/objects/roomShapeLayoutSizes.lua +4 -0
  257. package/objects/roomShapeToBottomRightPosition.lua +2 -0
  258. package/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +2 -0
  259. package/objects/roomShapeToTopLeftPosition.lua +2 -0
  260. package/objects/roomShapeVolumes.lua +3 -0
  261. package/package.json +2 -2
  262. package/patchErrorFunctions.lua +8 -0
  263. package/sets/bossSets.lua +23 -0
  264. package/sets/charactersWithNoRedHeartsSet.lua +2 -0
  265. package/sets/charactersWithNoSoulHeartsSet.lua +2 -0
  266. package/sets/lostStyleCharactersSet.lua +2 -0
  267. package/types/PickingUpItem.lua +7 -0
  268. package/upgradeMod.d.ts +4 -4
  269. package/upgradeMod.lua +18 -0
@@ -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]
@@ -1,12 +1,18 @@
1
1
  local ____exports = {}
2
2
  local subscriptions = {}
3
+ ---
4
+ -- @internal
3
5
  function ____exports.postGridEntityBrokenHasSubscriptions(self)
4
6
  return #subscriptions > 0
5
7
  end
8
+ ---
9
+ -- @internal
6
10
  function ____exports.postGridEntityBrokenRegister(self, ...)
7
11
  local args = {...}
8
12
  subscriptions[#subscriptions + 1] = args
9
13
  end
14
+ ---
15
+ -- @internal
10
16
  function ____exports.postGridEntityBrokenFire(self, gridEntity)
11
17
  local gridEntityType = gridEntity:GetType()
12
18
  local gridEntityVariant = gridEntity:GetVariant()
@@ -1,12 +1,18 @@
1
1
  local ____exports = {}
2
2
  local subscriptions = {}
3
+ ---
4
+ -- @internal
3
5
  function ____exports.postGridEntityCollisionHasSubscriptions(self)
4
6
  return #subscriptions > 0
5
7
  end
8
+ ---
9
+ -- @internal
6
10
  function ____exports.postGridEntityCollisionRegister(self, ...)
7
11
  local args = {...}
8
12
  subscriptions[#subscriptions + 1] = args
9
13
  end
14
+ ---
15
+ -- @internal
10
16
  function ____exports.postGridEntityCollisionFire(self, gridEntity, entity)
11
17
  local gridEntityType = gridEntity:GetType()
12
18
  local gridEntityVariant = gridEntity:GetVariant()
@@ -1,12 +1,18 @@
1
1
  local ____exports = {}
2
2
  local subscriptions = {}
3
+ ---
4
+ -- @internal
3
5
  function ____exports.postGridEntityInitHasSubscriptions(self)
4
6
  return #subscriptions > 0
5
7
  end
8
+ ---
9
+ -- @internal
6
10
  function ____exports.postGridEntityInitRegister(self, ...)
7
11
  local args = {...}
8
12
  subscriptions[#subscriptions + 1] = args
9
13
  end
14
+ ---
15
+ -- @internal
10
16
  function ____exports.postGridEntityInitFire(self, gridEntity)
11
17
  local gridEntityType = gridEntity:GetType()
12
18
  local gridEntityVariant = gridEntity:GetVariant()
@@ -1,12 +1,18 @@
1
1
  local ____exports = {}
2
2
  local subscriptions = {}
3
+ ---
4
+ -- @internal
3
5
  function ____exports.postGridEntityRemoveHasSubscriptions(self)
4
6
  return #subscriptions > 0
5
7
  end
8
+ ---
9
+ -- @internal
6
10
  function ____exports.postGridEntityRemoveRegister(self, ...)
7
11
  local args = {...}
8
12
  subscriptions[#subscriptions + 1] = args
9
13
  end
14
+ ---
15
+ -- @internal
10
16
  function ____exports.postGridEntityRemoveFire(self, gridIndex, gridEntityType, gridEntityVariant)
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.postGridEntityRenderHasSubscriptions(self)
4
6
  return #subscriptions > 0
5
7
  end
8
+ ---
9
+ -- @internal
6
10
  function ____exports.postGridEntityRenderRegister(self, ...)
7
11
  local args = {...}
8
12
  subscriptions[#subscriptions + 1] = args
9
13
  end
14
+ ---
15
+ -- @internal
10
16
  function ____exports.postGridEntityRenderFire(self, gridEntity)
11
17
  local gridEntityType = gridEntity:GetType()
12
18
  local gridEntityVariant = gridEntity:GetVariant()
@@ -1,12 +1,18 @@
1
1
  local ____exports = {}
2
2
  local subscriptions = {}
3
+ ---
4
+ -- @internal
3
5
  function ____exports.postGridEntityStateChangedHasSubscriptions(self)
4
6
  return #subscriptions > 0
5
7
  end
8
+ ---
9
+ -- @internal
6
10
  function ____exports.postGridEntityStateChangedRegister(self, ...)
7
11
  local args = {...}
8
12
  subscriptions[#subscriptions + 1] = args
9
13
  end
14
+ ---
15
+ -- @internal
10
16
  function ____exports.postGridEntityStateChangedFire(self, gridEntity, oldState, newState)
11
17
  local gridEntityType = gridEntity:GetType()
12
18
  local gridEntityVariant = gridEntity:GetVariant()
@@ -1,12 +1,18 @@
1
1
  local ____exports = {}
2
2
  local subscriptions = {}
3
+ ---
4
+ -- @internal
3
5
  function ____exports.postGridEntityUpdateHasSubscriptions(self)
4
6
  return #subscriptions > 0
5
7
  end
8
+ ---
9
+ -- @internal
6
10
  function ____exports.postGridEntityUpdateRegister(self, ...)
7
11
  local args = {...}
8
12
  subscriptions[#subscriptions + 1] = args
9
13
  end
14
+ ---
15
+ -- @internal
10
16
  function ____exports.postGridEntityUpdateFire(self, gridEntity)
11
17
  local gridEntityType = gridEntity:GetType()
12
18
  local gridEntityVariant = gridEntity:GetVariant()
@@ -1,12 +1,18 @@
1
1
  local ____exports = {}
2
2
  local subscriptions = {}
3
+ ---
4
+ -- @internal
3
5
  function ____exports.postHolyMantleRemovedHasSubscriptions(self)
4
6
  return #subscriptions > 0
5
7
  end
8
+ ---
9
+ -- @internal
6
10
  function ____exports.postHolyMantleRemovedRegister(self, ...)
7
11
  local args = {...}
8
12
  subscriptions[#subscriptions + 1] = args
9
13
  end
14
+ ---
15
+ -- @internal
10
16
  function ____exports.postHolyMantleRemovedFire(self, player, oldNumHolyMantles, newNumHolyMantles)
11
17
  local character = player:GetPlayerType()
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.postItemDischargeHasSubscriptions(self)
4
6
  return #subscriptions > 0
5
7
  end
8
+ ---
9
+ -- @internal
6
10
  function ____exports.postItemDischargeRegister(self, ...)
7
11
  local args = {...}
8
12
  subscriptions[#subscriptions + 1] = args
9
13
  end
14
+ ---
15
+ -- @internal
10
16
  function ____exports.postItemDischargeFire(self, player, collectibleType, activeSlot)
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.postItemPickupHasSubscriptions(self)
4
6
  return #subscriptions > 0
5
7
  end
8
+ ---
9
+ -- @internal
6
10
  function ____exports.postItemPickupRegister(self, ...)
7
11
  local args = {...}
8
12
  subscriptions[#subscriptions + 1] = args
9
13
  end
14
+ ---
15
+ -- @internal
10
16
  function ____exports.postItemPickupFire(self, player, pickingUpItem)
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.postKnifeInitLateHasSubscriptions(self)
4
6
  return #subscriptions > 0
5
7
  end
8
+ ---
9
+ -- @internal
6
10
  function ____exports.postKnifeInitLateRegister(self, ...)
7
11
  local args = {...}
8
12
  subscriptions[#subscriptions + 1] = args
9
13
  end
14
+ ---
15
+ -- @internal
10
16
  function ____exports.postKnifeInitLateFire(self, knife)
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.postLaserInitLateHasSubscriptions(self)
4
6
  return #subscriptions > 0
5
7
  end
8
+ ---
9
+ -- @internal
6
10
  function ____exports.postLaserInitLateRegister(self, ...)
7
11
  local args = {...}
8
12
  subscriptions[#subscriptions + 1] = args
9
13
  end
14
+ ---
15
+ -- @internal
10
16
  function ____exports.postLaserInitLateFire(self, laser)
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.postNPCInitLateHasSubscriptions(self)
4
6
  return #subscriptions > 0
5
7
  end
8
+ ---
9
+ -- @internal
6
10
  function ____exports.postNPCInitLateRegister(self, ...)
7
11
  local args = {...}
8
12
  subscriptions[#subscriptions + 1] = args
9
13
  end
14
+ ---
15
+ -- @internal
10
16
  function ____exports.postNPCInitLateFire(self, npc)
11
17
  for ____, ____value in ipairs(subscriptions) do
12
18
  local callback = ____value[1]