isaacscript-common 18.2.1 → 18.3.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.
Files changed (359) hide show
  1. package/dist/index.d.ts +179 -119
  2. package/dist/isaacscript-common.lua +464 -416
  3. package/dist/src/callbackClasses.d.ts +2 -0
  4. package/dist/src/callbackClasses.d.ts.map +1 -1
  5. package/dist/src/callbackClasses.lua +10 -0
  6. package/dist/src/callbacks.d.ts +101 -99
  7. package/dist/src/callbacks.d.ts.map +1 -1
  8. package/dist/src/callbacks.lua +2 -0
  9. package/dist/src/classes/ModFeature.d.ts +2 -2
  10. package/dist/src/classes/ModFeature.d.ts.map +1 -1
  11. package/dist/src/classes/ModFeature.lua +18 -17
  12. package/dist/src/classes/ModUpgradedBase.d.ts.map +1 -1
  13. package/dist/src/classes/ModUpgradedBase.lua +10 -10
  14. package/dist/src/classes/callbacks/EntityTakeDmgFilter.lua +1 -1
  15. package/dist/src/classes/callbacks/EntityTakeDmgPlayer.d.ts.map +1 -1
  16. package/dist/src/classes/callbacks/EntityTakeDmgPlayer.lua +1 -1
  17. package/dist/src/classes/callbacks/InputActionFilter.d.ts +11 -0
  18. package/dist/src/classes/callbacks/InputActionFilter.d.ts.map +1 -0
  19. package/dist/src/classes/callbacks/InputActionFilter.lua +23 -0
  20. package/dist/src/classes/callbacks/InputActionPlayer.d.ts +11 -0
  21. package/dist/src/classes/callbacks/InputActionPlayer.d.ts.map +1 -0
  22. package/dist/src/classes/callbacks/InputActionPlayer.lua +33 -0
  23. package/dist/src/classes/callbacks/PostAmbushFinished.lua +1 -1
  24. package/dist/src/classes/callbacks/PostAmbushStarted.lua +1 -1
  25. package/dist/src/classes/callbacks/PostBombExploded.lua +1 -1
  26. package/dist/src/classes/callbacks/PostBombInitLate.lua +1 -1
  27. package/dist/src/classes/callbacks/PostBoneSwing.lua +1 -1
  28. package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
  29. package/dist/src/classes/callbacks/PostCollectibleEmpty.lua +1 -1
  30. package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts.map +1 -1
  31. package/dist/src/classes/callbacks/PostCollectibleInitFirst.lua +1 -1
  32. package/dist/src/classes/callbacks/PostCursedTeleport.d.ts +2 -2
  33. package/dist/src/classes/callbacks/PostCursedTeleport.d.ts.map +1 -1
  34. package/dist/src/classes/callbacks/PostCursedTeleport.lua +19 -21
  35. package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
  36. package/dist/src/classes/callbacks/PostDiceRoomActivated.lua +1 -1
  37. package/dist/src/classes/callbacks/PostDoorRender.lua +1 -1
  38. package/dist/src/classes/callbacks/PostDoorUpdate.lua +1 -1
  39. package/dist/src/classes/callbacks/PostEffectInitLate.lua +1 -1
  40. package/dist/src/classes/callbacks/PostEffectStateChanged.lua +1 -1
  41. package/dist/src/classes/callbacks/PostFamiliarInitLate.lua +1 -1
  42. package/dist/src/classes/callbacks/PostFamiliarStateChanged.lua +1 -1
  43. package/dist/src/classes/callbacks/PostGreedModeWave.lua +1 -1
  44. package/dist/src/classes/callbacks/PostHolyMantleRemoved.lua +1 -1
  45. package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
  46. package/dist/src/classes/callbacks/PostItemDischarge.lua +2 -2
  47. package/dist/src/classes/callbacks/PostKnifeInitLate.lua +1 -1
  48. package/dist/src/classes/callbacks/PostLaserInitLate.lua +1 -1
  49. package/dist/src/classes/callbacks/PostNPCDeathFilter.lua +1 -1
  50. package/dist/src/classes/callbacks/PostNPCInitFilter.lua +1 -1
  51. package/dist/src/classes/callbacks/PostNPCInitLate.lua +1 -1
  52. package/dist/src/classes/callbacks/PostNPCRenderFilter.lua +1 -1
  53. package/dist/src/classes/callbacks/PostNPCStateChanged.lua +1 -1
  54. package/dist/src/classes/callbacks/PostNPCUpdateFilter.lua +1 -1
  55. package/dist/src/classes/callbacks/PostNewRoomEarly.lua +1 -1
  56. package/dist/src/classes/callbacks/PostPickupCollect.lua +1 -1
  57. package/dist/src/classes/callbacks/PostPickupInitFirst.lua +1 -1
  58. package/dist/src/classes/callbacks/PostPickupInitLate.lua +1 -1
  59. package/dist/src/classes/callbacks/PostPickupStateChanged.lua +1 -1
  60. package/dist/src/classes/callbacks/PostPitRender.lua +1 -1
  61. package/dist/src/classes/callbacks/PostPitUpdate.lua +1 -1
  62. package/dist/src/classes/callbacks/PostPlayerChangeHealth.lua +1 -1
  63. package/dist/src/classes/callbacks/PostPlayerChangeStat.lua +1 -1
  64. package/dist/src/classes/callbacks/PostPlayerChangeType.lua +1 -1
  65. package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts +1 -1
  66. package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
  67. package/dist/src/classes/callbacks/PostPlayerFatalDamage.lua +19 -21
  68. package/dist/src/classes/callbacks/PostPlayerInitFirst.lua +1 -1
  69. package/dist/src/classes/callbacks/PostPlayerInitLate.lua +1 -1
  70. package/dist/src/classes/callbacks/PostPoopRender.lua +1 -1
  71. package/dist/src/classes/callbacks/PostPoopUpdate.lua +1 -1
  72. package/dist/src/classes/callbacks/PostPressurePlateRender.lua +1 -1
  73. package/dist/src/classes/callbacks/PostPressurePlateUpdate.lua +1 -1
  74. package/dist/src/classes/callbacks/PostProjectileInitLate.lua +1 -1
  75. package/dist/src/classes/callbacks/PostPurchase.lua +1 -1
  76. package/dist/src/classes/callbacks/PostRockRender.lua +1 -1
  77. package/dist/src/classes/callbacks/PostRockUpdate.lua +1 -1
  78. package/dist/src/classes/callbacks/PostRoomClearChanged.lua +2 -2
  79. package/dist/src/classes/callbacks/PostSacrifice.d.ts.map +1 -1
  80. package/dist/src/classes/callbacks/PostSacrifice.lua +4 -8
  81. package/dist/src/classes/callbacks/PostSlotCollision.lua +1 -1
  82. package/dist/src/classes/callbacks/PostSlotDestroyed.d.ts.map +1 -1
  83. package/dist/src/classes/callbacks/PostSlotDestroyed.lua +2 -2
  84. package/dist/src/classes/callbacks/PostSpikesRender.lua +1 -1
  85. package/dist/src/classes/callbacks/PostSpikesUpdate.lua +1 -1
  86. package/dist/src/classes/callbacks/PostTNTRender.lua +1 -1
  87. package/dist/src/classes/callbacks/PostTNTUpdate.lua +1 -1
  88. package/dist/src/classes/callbacks/PostTearInitLate.lua +1 -1
  89. package/dist/src/classes/callbacks/PostTearInitVeryLate.lua +1 -1
  90. package/dist/src/classes/callbacks/PostTransformation.lua +1 -1
  91. package/dist/src/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
  92. package/dist/src/classes/callbacks/PostTrinketBreak.lua +5 -11
  93. package/dist/src/classes/callbacks/PreBerserkDeath.lua +1 -1
  94. package/dist/src/classes/callbacks/PreGetPedestal.d.ts.map +1 -1
  95. package/dist/src/classes/callbacks/PreGetPedestal.lua +1 -1
  96. package/dist/src/classes/callbacks/PreNPCCollisionFilter.lua +1 -1
  97. package/dist/src/classes/callbacks/PreNPCUpdateFilter.lua +1 -1
  98. package/dist/src/classes/callbacks/PreNewLevel.lua +1 -1
  99. package/dist/src/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
  100. package/dist/src/classes/features/callbackLogic/CustomGridEntities.lua +2 -2
  101. package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts +2 -2
  102. package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
  103. package/dist/src/classes/features/callbackLogic/CustomRevive.lua +5 -5
  104. package/dist/src/classes/features/callbackLogic/EsauJrDetection.d.ts.map +1 -1
  105. package/dist/src/classes/features/callbackLogic/EsauJrDetection.lua +1 -1
  106. package/dist/src/classes/features/callbackLogic/FlipDetection.d.ts.map +1 -1
  107. package/dist/src/classes/features/callbackLogic/FlipDetection.lua +1 -1
  108. package/dist/src/classes/features/callbackLogic/GameReorderedCallbacks.d.ts.map +1 -1
  109. package/dist/src/classes/features/callbackLogic/GameReorderedCallbacks.lua +1 -1
  110. package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts.map +1 -1
  111. package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.lua +1 -1
  112. package/dist/src/classes/features/callbackLogic/GridEntityRenderDetection.d.ts.map +1 -1
  113. package/dist/src/classes/features/callbackLogic/GridEntityRenderDetection.lua +1 -1
  114. package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts.map +1 -1
  115. package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.lua +2 -2
  116. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts +1 -1
  117. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts.map +1 -1
  118. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.lua +4 -3
  119. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts +8 -3
  120. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts.map +1 -1
  121. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.lua +16 -21
  122. package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts.map +1 -1
  123. package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.lua +2 -2
  124. package/dist/src/classes/features/callbackLogic/SlotRenderDetection.d.ts.map +1 -1
  125. package/dist/src/classes/features/callbackLogic/SlotRenderDetection.lua +1 -1
  126. package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.d.ts.map +1 -1
  127. package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.lua +2 -2
  128. package/dist/src/classes/features/other/CharacterHealthConversion.d.ts.map +1 -1
  129. package/dist/src/classes/features/other/CharacterHealthConversion.lua +2 -2
  130. package/dist/src/classes/features/other/CharacterStats.lua +1 -1
  131. package/dist/src/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
  132. package/dist/src/classes/features/other/CollectibleItemPoolType.lua +1 -1
  133. package/dist/src/classes/features/other/CustomHotkeys.lua +1 -1
  134. package/dist/src/classes/features/other/CustomItemPools.lua +1 -1
  135. package/dist/src/classes/features/other/CustomPickups.d.ts.map +1 -1
  136. package/dist/src/classes/features/other/CustomPickups.lua +1 -1
  137. package/dist/src/classes/features/other/CustomStages.d.ts.map +1 -1
  138. package/dist/src/classes/features/other/CustomStages.lua +2 -2
  139. package/dist/src/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
  140. package/dist/src/classes/features/other/CustomTrapdoors.lua +2 -2
  141. package/dist/src/classes/features/other/DisableAllSound.lua +1 -1
  142. package/dist/src/classes/features/other/DisableInputs.d.ts.map +1 -1
  143. package/dist/src/classes/features/other/DisableInputs.lua +1 -1
  144. package/dist/src/classes/features/other/ExtraConsoleCommands.d.ts +1 -1
  145. package/dist/src/classes/features/other/ExtraConsoleCommands.d.ts.map +1 -1
  146. package/dist/src/classes/features/other/ExtraConsoleCommands.lua +17 -16
  147. package/dist/src/classes/features/other/FadeInRemover.lua +1 -1
  148. package/dist/src/classes/features/other/FastReset.lua +1 -1
  149. package/dist/src/classes/features/other/ModdedElementDetection.lua +1 -1
  150. package/dist/src/classes/features/other/NoSirenSteal.d.ts.map +1 -1
  151. package/dist/src/classes/features/other/NoSirenSteal.lua +1 -1
  152. package/dist/src/classes/features/other/Pause.d.ts.map +1 -1
  153. package/dist/src/classes/features/other/Pause.lua +1 -1
  154. package/dist/src/classes/features/other/PersistentEntities.lua +2 -2
  155. package/dist/src/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
  156. package/dist/src/classes/features/other/PickupIndexCreation.lua +1 -1
  157. package/dist/src/classes/features/other/PlayerInventory.lua +1 -1
  158. package/dist/src/classes/features/other/PonyDetection.lua +1 -1
  159. package/dist/src/classes/features/other/PressInput.d.ts.map +1 -1
  160. package/dist/src/classes/features/other/PressInput.lua +1 -1
  161. package/dist/src/classes/features/other/PreventChildEntities.lua +1 -1
  162. package/dist/src/classes/features/other/PreventCollectibleRotation.d.ts.map +1 -1
  163. package/dist/src/classes/features/other/PreventCollectibleRotation.lua +1 -1
  164. package/dist/src/classes/features/other/PreventGridEntityRespawn.d.ts.map +1 -1
  165. package/dist/src/classes/features/other/PreventGridEntityRespawn.lua +2 -2
  166. package/dist/src/classes/features/other/RoomClearFrame.lua +1 -1
  167. package/dist/src/classes/features/other/RoomHistory.lua +1 -1
  168. package/dist/src/classes/features/other/RunInNFrames.lua +1 -1
  169. package/dist/src/classes/features/other/RunNextRoom.lua +1 -1
  170. package/dist/src/classes/features/other/SaveDataManager.d.ts.map +1 -1
  171. package/dist/src/classes/features/other/SaveDataManager.lua +2 -2
  172. package/dist/src/classes/features/other/StageHistory.d.ts.map +1 -1
  173. package/dist/src/classes/features/other/StageHistory.lua +1 -1
  174. package/dist/src/classes/features/other/TaintedLazarusPlayers.lua +1 -1
  175. package/dist/src/classes/features/other/debugDisplay/DebugDisplayBomb.lua +1 -1
  176. package/dist/src/classes/features/other/debugDisplay/DebugDisplayDoor.lua +1 -1
  177. package/dist/src/classes/features/other/debugDisplay/DebugDisplayEffect.lua +1 -1
  178. package/dist/src/classes/features/other/debugDisplay/DebugDisplayFamiliar.lua +1 -1
  179. package/dist/src/classes/features/other/debugDisplay/DebugDisplayKnife.lua +1 -1
  180. package/dist/src/classes/features/other/debugDisplay/DebugDisplayLaser.lua +1 -1
  181. package/dist/src/classes/features/other/debugDisplay/DebugDisplayNPC.lua +1 -1
  182. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPickup.lua +1 -1
  183. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPit.lua +1 -1
  184. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPlayer.lua +1 -1
  185. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPoop.lua +1 -1
  186. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPressurePlate.lua +1 -1
  187. package/dist/src/classes/features/other/debugDisplay/DebugDisplayProjectile.lua +1 -1
  188. package/dist/src/classes/features/other/debugDisplay/DebugDisplayRock.lua +1 -1
  189. package/dist/src/classes/features/other/debugDisplay/DebugDisplaySlot.lua +1 -1
  190. package/dist/src/classes/features/other/debugDisplay/DebugDisplaySpikes.lua +1 -1
  191. package/dist/src/classes/features/other/debugDisplay/DebugDisplayTNT.lua +1 -1
  192. package/dist/src/classes/features/other/debugDisplay/DebugDisplayTear.lua +1 -1
  193. package/dist/src/classes/private/CustomCallback.d.ts +2 -2
  194. package/dist/src/classes/private/CustomCallback.d.ts.map +1 -1
  195. package/dist/src/classes/private/CustomCallback.lua +7 -10
  196. package/dist/src/enums/ModCallbackCustom.d.ts +141 -99
  197. package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
  198. package/dist/src/enums/ModCallbackCustom.lua +103 -99
  199. package/dist/src/functions/array.d.ts +5 -1
  200. package/dist/src/functions/array.d.ts.map +1 -1
  201. package/dist/src/functions/array.lua +17 -8
  202. package/dist/src/functions/decorators.d.ts.map +1 -1
  203. package/dist/src/functions/decorators.lua +12 -22
  204. package/dist/src/functions/logMisc.d.ts +1 -0
  205. package/dist/src/functions/logMisc.d.ts.map +1 -1
  206. package/dist/src/functions/logMisc.lua +2 -1
  207. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +13 -1
  208. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
  209. package/dist/src/types/ModUpgraded.d.ts +1 -1
  210. package/dist/src/types/ModUpgraded.d.ts.map +1 -1
  211. package/dist/src/types/private/CallbackTuple.d.ts +17 -8
  212. package/dist/src/types/private/CallbackTuple.d.ts.map +1 -1
  213. package/package.json +1 -1
  214. package/src/callbackClasses.ts +2 -0
  215. package/src/callbacks.ts +2 -0
  216. package/src/classes/ModFeature.ts +43 -21
  217. package/src/classes/ModUpgradedBase.ts +18 -10
  218. package/src/classes/callbacks/EntityTakeDmgFilter.ts +1 -1
  219. package/src/classes/callbacks/EntityTakeDmgPlayer.ts +2 -1
  220. package/src/classes/callbacks/InputActionFilter.ts +46 -0
  221. package/src/classes/callbacks/InputActionPlayer.ts +67 -0
  222. package/src/classes/callbacks/PostAmbushFinished.ts +1 -1
  223. package/src/classes/callbacks/PostAmbushStarted.ts +1 -1
  224. package/src/classes/callbacks/PostBombExploded.ts +1 -1
  225. package/src/classes/callbacks/PostBombInitLate.ts +1 -1
  226. package/src/classes/callbacks/PostBoneSwing.ts +1 -1
  227. package/src/classes/callbacks/PostCollectibleEmpty.ts +2 -1
  228. package/src/classes/callbacks/PostCollectibleInitFirst.ts +2 -1
  229. package/src/classes/callbacks/PostCursedTeleport.ts +52 -60
  230. package/src/classes/callbacks/PostDiceRoomActivated.ts +2 -1
  231. package/src/classes/callbacks/PostDoorRender.ts +1 -1
  232. package/src/classes/callbacks/PostDoorUpdate.ts +1 -1
  233. package/src/classes/callbacks/PostEffectInitLate.ts +1 -1
  234. package/src/classes/callbacks/PostEffectStateChanged.ts +1 -1
  235. package/src/classes/callbacks/PostFamiliarInitLate.ts +1 -1
  236. package/src/classes/callbacks/PostFamiliarStateChanged.ts +1 -1
  237. package/src/classes/callbacks/PostGreedModeWave.ts +1 -1
  238. package/src/classes/callbacks/PostHolyMantleRemoved.ts +1 -1
  239. package/src/classes/callbacks/PostItemDischarge.ts +3 -2
  240. package/src/classes/callbacks/PostKnifeInitLate.ts +1 -1
  241. package/src/classes/callbacks/PostLaserInitLate.ts +1 -1
  242. package/src/classes/callbacks/PostNPCDeathFilter.ts +1 -1
  243. package/src/classes/callbacks/PostNPCInitFilter.ts +1 -1
  244. package/src/classes/callbacks/PostNPCInitLate.ts +1 -1
  245. package/src/classes/callbacks/PostNPCRenderFilter.ts +1 -1
  246. package/src/classes/callbacks/PostNPCStateChanged.ts +1 -1
  247. package/src/classes/callbacks/PostNPCUpdateFilter.ts +1 -1
  248. package/src/classes/callbacks/PostNewRoomEarly.ts +2 -2
  249. package/src/classes/callbacks/PostPickupCollect.ts +1 -1
  250. package/src/classes/callbacks/PostPickupInitFirst.ts +1 -1
  251. package/src/classes/callbacks/PostPickupInitLate.ts +1 -1
  252. package/src/classes/callbacks/PostPickupStateChanged.ts +1 -1
  253. package/src/classes/callbacks/PostPitRender.ts +1 -1
  254. package/src/classes/callbacks/PostPitUpdate.ts +1 -1
  255. package/src/classes/callbacks/PostPlayerChangeHealth.ts +1 -1
  256. package/src/classes/callbacks/PostPlayerChangeStat.ts +1 -1
  257. package/src/classes/callbacks/PostPlayerChangeType.ts +1 -1
  258. package/src/classes/callbacks/PostPlayerFatalDamage.ts +39 -48
  259. package/src/classes/callbacks/PostPlayerInitFirst.ts +2 -2
  260. package/src/classes/callbacks/PostPlayerInitLate.ts +1 -1
  261. package/src/classes/callbacks/PostPoopRender.ts +1 -1
  262. package/src/classes/callbacks/PostPoopUpdate.ts +1 -1
  263. package/src/classes/callbacks/PostPressurePlateRender.ts +1 -1
  264. package/src/classes/callbacks/PostPressurePlateUpdate.ts +1 -1
  265. package/src/classes/callbacks/PostProjectileInitLate.ts +1 -1
  266. package/src/classes/callbacks/PostPurchase.ts +1 -1
  267. package/src/classes/callbacks/PostRockRender.ts +1 -1
  268. package/src/classes/callbacks/PostRockUpdate.ts +1 -1
  269. package/src/classes/callbacks/PostRoomClearChanged.ts +2 -2
  270. package/src/classes/callbacks/PostSacrifice.ts +5 -20
  271. package/src/classes/callbacks/PostSlotCollision.ts +1 -1
  272. package/src/classes/callbacks/PostSlotDestroyed.ts +3 -2
  273. package/src/classes/callbacks/PostSpikesRender.ts +1 -1
  274. package/src/classes/callbacks/PostSpikesUpdate.ts +1 -1
  275. package/src/classes/callbacks/PostTNTRender.ts +1 -1
  276. package/src/classes/callbacks/PostTNTUpdate.ts +1 -1
  277. package/src/classes/callbacks/PostTearInitLate.ts +1 -1
  278. package/src/classes/callbacks/PostTearInitVeryLate.ts +1 -1
  279. package/src/classes/callbacks/PostTransformation.ts +1 -1
  280. package/src/classes/callbacks/PostTrinketBreak.ts +4 -18
  281. package/src/classes/callbacks/PreBerserkDeath.ts +1 -1
  282. package/src/classes/callbacks/PreGetPedestal.ts +2 -1
  283. package/src/classes/callbacks/PreNPCCollisionFilter.ts +1 -1
  284. package/src/classes/callbacks/PreNPCUpdateFilter.ts +1 -1
  285. package/src/classes/callbacks/PreNewLevel.ts +1 -1
  286. package/src/classes/features/callbackLogic/CustomGridEntities.ts +5 -3
  287. package/src/classes/features/callbackLogic/CustomRevive.ts +19 -18
  288. package/src/classes/features/callbackLogic/EsauJrDetection.ts +6 -2
  289. package/src/classes/features/callbackLogic/FlipDetection.ts +2 -1
  290. package/src/classes/features/callbackLogic/GameReorderedCallbacks.ts +13 -5
  291. package/src/classes/features/callbackLogic/GridEntityCollisionDetection.ts +2 -1
  292. package/src/classes/features/callbackLogic/GridEntityRenderDetection.ts +2 -1
  293. package/src/classes/features/callbackLogic/GridEntityUpdateDetection.ts +3 -2
  294. package/src/classes/features/callbackLogic/ItemPickupDetection.ts +8 -5
  295. package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +67 -71
  296. package/src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts +10 -5
  297. package/src/classes/features/callbackLogic/SlotRenderDetection.ts +2 -1
  298. package/src/classes/features/callbackLogic/SlotUpdateDetection.ts +3 -2
  299. package/src/classes/features/other/CharacterHealthConversion.ts +3 -2
  300. package/src/classes/features/other/CharacterStats.ts +1 -1
  301. package/src/classes/features/other/CollectibleItemPoolType.ts +2 -1
  302. package/src/classes/features/other/CustomHotkeys.ts +1 -1
  303. package/src/classes/features/other/CustomItemPools.ts +1 -1
  304. package/src/classes/features/other/CustomPickups.ts +3 -2
  305. package/src/classes/features/other/CustomStages.ts +7 -6
  306. package/src/classes/features/other/CustomTrapdoors.ts +4 -6
  307. package/src/classes/features/other/DisableAllSound.ts +1 -1
  308. package/src/classes/features/other/DisableInputs.ts +6 -3
  309. package/src/classes/features/other/ExtraConsoleCommands.ts +32 -31
  310. package/src/classes/features/other/FadeInRemover.ts +1 -1
  311. package/src/classes/features/other/FastReset.ts +1 -1
  312. package/src/classes/features/other/ModdedElementDetection.ts +1 -1
  313. package/src/classes/features/other/NoSirenSteal.ts +2 -1
  314. package/src/classes/features/other/Pause.ts +3 -2
  315. package/src/classes/features/other/PersistentEntities.ts +2 -2
  316. package/src/classes/features/other/PickupIndexCreation.ts +3 -2
  317. package/src/classes/features/other/PlayerInventory.ts +2 -2
  318. package/src/classes/features/other/PonyDetection.ts +1 -1
  319. package/src/classes/features/other/PressInput.ts +2 -1
  320. package/src/classes/features/other/PreventChildEntities.ts +1 -1
  321. package/src/classes/features/other/PreventCollectibleRotation.ts +4 -2
  322. package/src/classes/features/other/PreventGridEntityRespawn.ts +3 -2
  323. package/src/classes/features/other/RoomClearFrame.ts +1 -1
  324. package/src/classes/features/other/RoomHistory.ts +1 -1
  325. package/src/classes/features/other/RunInNFrames.ts +2 -2
  326. package/src/classes/features/other/RunNextRoom.ts +1 -1
  327. package/src/classes/features/other/SaveDataManager.ts +6 -5
  328. package/src/classes/features/other/StageHistory.ts +1 -4
  329. package/src/classes/features/other/TaintedLazarusPlayers.ts +1 -1
  330. package/src/classes/features/other/debugDisplay/DebugDisplayBomb.ts +1 -1
  331. package/src/classes/features/other/debugDisplay/DebugDisplayDoor.ts +1 -1
  332. package/src/classes/features/other/debugDisplay/DebugDisplayEffect.ts +1 -1
  333. package/src/classes/features/other/debugDisplay/DebugDisplayFamiliar.ts +1 -1
  334. package/src/classes/features/other/debugDisplay/DebugDisplayKnife.ts +1 -1
  335. package/src/classes/features/other/debugDisplay/DebugDisplayLaser.ts +1 -1
  336. package/src/classes/features/other/debugDisplay/DebugDisplayNPC.ts +1 -1
  337. package/src/classes/features/other/debugDisplay/DebugDisplayPickup.ts +1 -1
  338. package/src/classes/features/other/debugDisplay/DebugDisplayPit.ts +1 -1
  339. package/src/classes/features/other/debugDisplay/DebugDisplayPlayer.ts +1 -1
  340. package/src/classes/features/other/debugDisplay/DebugDisplayPoop.ts +1 -1
  341. package/src/classes/features/other/debugDisplay/DebugDisplayPressurePlate.ts +1 -1
  342. package/src/classes/features/other/debugDisplay/DebugDisplayProjectile.ts +1 -1
  343. package/src/classes/features/other/debugDisplay/DebugDisplayRock.ts +1 -1
  344. package/src/classes/features/other/debugDisplay/DebugDisplaySlot.ts +1 -1
  345. package/src/classes/features/other/debugDisplay/DebugDisplaySpikes.ts +1 -1
  346. package/src/classes/features/other/debugDisplay/DebugDisplayTNT.ts +1 -1
  347. package/src/classes/features/other/debugDisplay/DebugDisplayTear.ts +1 -1
  348. package/src/classes/private/CustomCallback.ts +19 -15
  349. package/src/enums/ModCallbackCustom.ts +44 -0
  350. package/src/functions/array.ts +14 -5
  351. package/src/functions/decorators.ts +14 -20
  352. package/src/functions/logMisc.ts +4 -1
  353. package/src/interfaces/private/AddCallbackParametersCustom.ts +24 -0
  354. package/src/types/ModUpgraded.ts +1 -1
  355. package/src/types/private/CallbackTuple.ts +17 -8
  356. package/dist/src/types/private/AllButFirst.d.ts +0 -5
  357. package/dist/src/types/private/AllButFirst.d.ts.map +0 -1
  358. package/dist/src/types/private/AllButFirst.lua +0 -2
  359. package/src/types/private/AllButFirst.ts +0 -6
@@ -1,5 +1,7 @@
1
1
  export { EntityTakeDmgFilter } from "./classes/callbacks/EntityTakeDmgFilter";
2
2
  export { EntityTakeDmgPlayer } from "./classes/callbacks/EntityTakeDmgPlayer";
3
+ export { InputActionFilter } from "./classes/callbacks/InputActionFilter";
4
+ export { InputActionPlayer } from "./classes/callbacks/InputActionPlayer";
3
5
  export { PostAmbushFinished } from "./classes/callbacks/PostAmbushFinished";
4
6
  export { PostAmbushStarted } from "./classes/callbacks/PostAmbushStarted";
5
7
  export { PostBombExploded } from "./classes/callbacks/PostBombExploded";
@@ -1 +1 @@
1
- {"version":3,"file":"callbackClasses.d.ts","sourceRoot":"","sources":["../../src/callbackClasses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAA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gB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC"}
@@ -9,6 +9,16 @@ do
9
9
  local EntityTakeDmgPlayer = ____EntityTakeDmgPlayer.EntityTakeDmgPlayer
10
10
  ____exports.EntityTakeDmgPlayer = EntityTakeDmgPlayer
11
11
  end
12
+ do
13
+ local ____InputActionFilter = require("src.classes.callbacks.InputActionFilter")
14
+ local InputActionFilter = ____InputActionFilter.InputActionFilter
15
+ ____exports.InputActionFilter = InputActionFilter
16
+ end
17
+ do
18
+ local ____InputActionPlayer = require("src.classes.callbacks.InputActionPlayer")
19
+ local InputActionPlayer = ____InputActionPlayer.InputActionPlayer
20
+ ____exports.InputActionPlayer = InputActionPlayer
21
+ end
12
22
  do
13
23
  local ____PostAmbushFinished = require("src.classes.callbacks.PostAmbushFinished")
14
24
  local PostAmbushFinished = ____PostAmbushFinished.PostAmbushFinished
@@ -2,105 +2,107 @@ import * as cc from "./callbackClasses";
2
2
  declare const MOD_CALLBACK_CUSTOM_TO_CLASS: {
3
3
  readonly 0: typeof cc.EntityTakeDmgFilter;
4
4
  readonly 1: typeof cc.EntityTakeDmgPlayer;
5
- readonly 2: typeof cc.PostAmbushFinished;
6
- readonly 3: typeof cc.PostAmbushStarted;
7
- readonly 4: typeof cc.PostBombExploded;
8
- readonly 5: typeof cc.PostBombInitLate;
9
- readonly 6: typeof cc.PostBoneSwing;
10
- readonly 7: typeof cc.PostCollectibleEmpty;
11
- readonly 8: typeof cc.PostCollectibleInitFirst;
12
- readonly 9: typeof cc.PostCursedTeleport;
13
- readonly 10: typeof cc.PostCustomRevive;
14
- readonly 11: typeof cc.PostDiceRoomActivated;
15
- readonly 12: typeof cc.PostDoorRender;
16
- readonly 13: typeof cc.PostDoorUpdate;
17
- readonly 14: typeof cc.PostEffectInitLate;
18
- readonly 15: typeof cc.PostEffectStateChanged;
19
- readonly 16: typeof cc.PostEsauJr;
20
- readonly 17: typeof cc.PostFamiliarInitLate;
21
- readonly 18: typeof cc.PostFamiliarStateChanged;
22
- readonly 20: typeof cc.PostFirstFlip;
23
- readonly 19: typeof cc.PostFirstEsauJr;
24
- readonly 21: typeof cc.PostFlip;
25
- readonly 22: typeof cc.PostGameStartedReordered;
26
- readonly 23: typeof cc.PostGameStartedReorderedLast;
27
- readonly 24: typeof cc.PostGreedModeWave;
28
- readonly 25: typeof cc.PostGridEntityBroken;
29
- readonly 26: typeof cc.PostGridEntityCollision;
30
- readonly 27: typeof cc.PostGridEntityCustomBroken;
31
- readonly 28: typeof cc.PostGridEntityCustomCollision;
32
- readonly 29: typeof cc.PostGridEntityCustomInit;
33
- readonly 30: typeof cc.PostGridEntityCustomRemove;
34
- readonly 31: typeof cc.PostGridEntityCustomRender;
35
- readonly 32: typeof cc.PostGridEntityCustomStateChanged;
36
- readonly 33: typeof cc.PostGridEntityCustomUpdate;
37
- readonly 34: typeof cc.PostGridEntityInit;
38
- readonly 35: typeof cc.PostGridEntityRemove;
39
- readonly 36: typeof cc.PostGridEntityRender;
40
- readonly 37: typeof cc.PostGridEntityStateChanged;
41
- readonly 38: typeof cc.PostGridEntityUpdate;
42
- readonly 39: typeof cc.PostHolyMantleRemoved;
43
- readonly 40: typeof cc.PostItemDischarge;
44
- readonly 41: typeof cc.PostItemPickup;
45
- readonly 42: typeof cc.PostKnifeInitLate;
46
- readonly 43: typeof cc.PostLaserInitLate;
47
- readonly 44: typeof cc.PostNewLevelReordered;
48
- readonly 45: typeof cc.PostNewRoomEarly;
49
- readonly 46: typeof cc.PostNewRoomReordered;
50
- readonly 47: typeof cc.PostNPCDeathFilter;
51
- readonly 48: typeof cc.PostNPCInitFilter;
52
- readonly 49: typeof cc.PostNPCInitLate;
53
- readonly 50: typeof cc.PostNPCRenderFilter;
54
- readonly 51: typeof cc.PostNPCStateChanged;
55
- readonly 52: typeof cc.PostNPCUpdateFilter;
56
- readonly 53: typeof cc.PostPEffectUpdateReordered;
57
- readonly 54: typeof cc.PostPickupCollect;
58
- readonly 55: typeof cc.PostPickupInitFirst;
59
- readonly 56: typeof cc.PostPickupInitLate;
60
- readonly 57: typeof cc.PostPickupStateChanged;
61
- readonly 58: typeof cc.PostPitRender;
62
- readonly 59: typeof cc.PostPitUpdate;
63
- readonly 60: typeof cc.PostPlayerChangeHealth;
64
- readonly 61: typeof cc.PostPlayerChangeStat;
65
- readonly 62: typeof cc.PostPlayerChangeType;
66
- readonly 63: typeof cc.PostPlayerCollectibleAdded;
67
- readonly 64: typeof cc.PostPlayerCollectibleRemoved;
68
- readonly 65: typeof cc.PostPlayerFatalDamage;
69
- readonly 66: typeof cc.PostPlayerInitFirst;
70
- readonly 67: typeof cc.PostPlayerInitLate;
71
- readonly 68: typeof cc.PostPlayerRenderReordered;
72
- readonly 69: typeof cc.PostPlayerUpdateReordered;
73
- readonly 70: typeof cc.PostPoopRender;
74
- readonly 71: typeof cc.PostPoopUpdate;
75
- readonly 72: typeof cc.PostPressurePlateRender;
76
- readonly 73: typeof cc.PostPressurePlateUpdate;
77
- readonly 74: typeof cc.PostProjectileInitLate;
78
- readonly 75: typeof cc.PostPurchase;
79
- readonly 76: typeof cc.PostRockRender;
80
- readonly 77: typeof cc.PostRockUpdate;
81
- readonly 78: typeof cc.PostRoomClearChanged;
82
- readonly 79: typeof cc.PostSacrifice;
83
- readonly 80: typeof cc.PostSlotAnimationChanged;
84
- readonly 81: typeof cc.PostSlotCollision;
85
- readonly 82: typeof cc.PostSlotDestroyed;
86
- readonly 83: typeof cc.PostSlotInit;
87
- readonly 84: typeof cc.PostSlotRender;
88
- readonly 85: typeof cc.PostSlotUpdate;
89
- readonly 86: typeof cc.PostSpikesRender;
90
- readonly 87: typeof cc.PostSpikesUpdate;
91
- readonly 88: typeof cc.PostTearInitLate;
92
- readonly 89: typeof cc.PostTearInitVeryLate;
93
- readonly 90: typeof cc.PostTNTRender;
94
- readonly 91: typeof cc.PostTNTUpdate;
95
- readonly 92: typeof cc.PostTransformation;
96
- readonly 93: typeof cc.PostTrinketBreak;
97
- readonly 94: typeof cc.PreBerserkDeath;
98
- readonly 95: typeof cc.PreCustomRevive;
99
- readonly 96: typeof cc.PreGetPedestal;
100
- readonly 97: typeof cc.PreItemPickup;
101
- readonly 98: typeof cc.PreNewLevel;
102
- readonly 99: typeof cc.PreNPCCollisionFilter;
103
- readonly 100: typeof cc.PreNPCUpdateFilter;
5
+ readonly 2: typeof cc.InputActionFilter;
6
+ readonly 3: typeof cc.InputActionPlayer;
7
+ readonly 4: typeof cc.PostAmbushFinished;
8
+ readonly 5: typeof cc.PostAmbushStarted;
9
+ readonly 6: typeof cc.PostBombExploded;
10
+ readonly 7: typeof cc.PostBombInitLate;
11
+ readonly 8: typeof cc.PostBoneSwing;
12
+ readonly 9: typeof cc.PostCollectibleEmpty;
13
+ readonly 10: typeof cc.PostCollectibleInitFirst;
14
+ readonly 11: typeof cc.PostCursedTeleport;
15
+ readonly 12: typeof cc.PostCustomRevive;
16
+ readonly 13: typeof cc.PostDiceRoomActivated;
17
+ readonly 14: typeof cc.PostDoorRender;
18
+ readonly 15: typeof cc.PostDoorUpdate;
19
+ readonly 16: typeof cc.PostEffectInitLate;
20
+ readonly 17: typeof cc.PostEffectStateChanged;
21
+ readonly 18: typeof cc.PostEsauJr;
22
+ readonly 19: typeof cc.PostFamiliarInitLate;
23
+ readonly 20: typeof cc.PostFamiliarStateChanged;
24
+ readonly 22: typeof cc.PostFirstFlip;
25
+ readonly 21: typeof cc.PostFirstEsauJr;
26
+ readonly 23: typeof cc.PostFlip;
27
+ readonly 24: typeof cc.PostGameStartedReordered;
28
+ readonly 25: typeof cc.PostGameStartedReorderedLast;
29
+ readonly 26: typeof cc.PostGreedModeWave;
30
+ readonly 27: typeof cc.PostGridEntityBroken;
31
+ readonly 28: typeof cc.PostGridEntityCollision;
32
+ readonly 29: typeof cc.PostGridEntityCustomBroken;
33
+ readonly 30: typeof cc.PostGridEntityCustomCollision;
34
+ readonly 31: typeof cc.PostGridEntityCustomInit;
35
+ readonly 32: typeof cc.PostGridEntityCustomRemove;
36
+ readonly 33: typeof cc.PostGridEntityCustomRender;
37
+ readonly 34: typeof cc.PostGridEntityCustomStateChanged;
38
+ readonly 35: typeof cc.PostGridEntityCustomUpdate;
39
+ readonly 36: typeof cc.PostGridEntityInit;
40
+ readonly 37: typeof cc.PostGridEntityRemove;
41
+ readonly 38: typeof cc.PostGridEntityRender;
42
+ readonly 39: typeof cc.PostGridEntityStateChanged;
43
+ readonly 40: typeof cc.PostGridEntityUpdate;
44
+ readonly 41: typeof cc.PostHolyMantleRemoved;
45
+ readonly 42: typeof cc.PostItemDischarge;
46
+ readonly 43: typeof cc.PostItemPickup;
47
+ readonly 44: typeof cc.PostKnifeInitLate;
48
+ readonly 45: typeof cc.PostLaserInitLate;
49
+ readonly 46: typeof cc.PostNewLevelReordered;
50
+ readonly 47: typeof cc.PostNewRoomEarly;
51
+ readonly 48: typeof cc.PostNewRoomReordered;
52
+ readonly 49: typeof cc.PostNPCDeathFilter;
53
+ readonly 50: typeof cc.PostNPCInitFilter;
54
+ readonly 51: typeof cc.PostNPCInitLate;
55
+ readonly 52: typeof cc.PostNPCRenderFilter;
56
+ readonly 53: typeof cc.PostNPCStateChanged;
57
+ readonly 54: typeof cc.PostNPCUpdateFilter;
58
+ readonly 55: typeof cc.PostPEffectUpdateReordered;
59
+ readonly 56: typeof cc.PostPickupCollect;
60
+ readonly 57: typeof cc.PostPickupInitFirst;
61
+ readonly 58: typeof cc.PostPickupInitLate;
62
+ readonly 59: typeof cc.PostPickupStateChanged;
63
+ readonly 60: typeof cc.PostPitRender;
64
+ readonly 61: typeof cc.PostPitUpdate;
65
+ readonly 62: typeof cc.PostPlayerChangeHealth;
66
+ readonly 63: typeof cc.PostPlayerChangeStat;
67
+ readonly 64: typeof cc.PostPlayerChangeType;
68
+ readonly 65: typeof cc.PostPlayerCollectibleAdded;
69
+ readonly 66: typeof cc.PostPlayerCollectibleRemoved;
70
+ readonly 67: typeof cc.PostPlayerFatalDamage;
71
+ readonly 68: typeof cc.PostPlayerInitFirst;
72
+ readonly 69: typeof cc.PostPlayerInitLate;
73
+ readonly 70: typeof cc.PostPlayerRenderReordered;
74
+ readonly 71: typeof cc.PostPlayerUpdateReordered;
75
+ readonly 72: typeof cc.PostPoopRender;
76
+ readonly 73: typeof cc.PostPoopUpdate;
77
+ readonly 74: typeof cc.PostPressurePlateRender;
78
+ readonly 75: typeof cc.PostPressurePlateUpdate;
79
+ readonly 76: typeof cc.PostProjectileInitLate;
80
+ readonly 77: typeof cc.PostPurchase;
81
+ readonly 78: typeof cc.PostRockRender;
82
+ readonly 79: typeof cc.PostRockUpdate;
83
+ readonly 80: typeof cc.PostRoomClearChanged;
84
+ readonly 81: typeof cc.PostSacrifice;
85
+ readonly 82: typeof cc.PostSlotAnimationChanged;
86
+ readonly 83: typeof cc.PostSlotCollision;
87
+ readonly 84: typeof cc.PostSlotDestroyed;
88
+ readonly 85: typeof cc.PostSlotInit;
89
+ readonly 86: typeof cc.PostSlotRender;
90
+ readonly 87: typeof cc.PostSlotUpdate;
91
+ readonly 88: typeof cc.PostSpikesRender;
92
+ readonly 89: typeof cc.PostSpikesUpdate;
93
+ readonly 90: typeof cc.PostTearInitLate;
94
+ readonly 91: typeof cc.PostTearInitVeryLate;
95
+ readonly 92: typeof cc.PostTNTRender;
96
+ readonly 93: typeof cc.PostTNTUpdate;
97
+ readonly 94: typeof cc.PostTransformation;
98
+ readonly 95: typeof cc.PostTrinketBreak;
99
+ readonly 96: typeof cc.PreBerserkDeath;
100
+ readonly 97: typeof cc.PreCustomRevive;
101
+ readonly 98: typeof cc.PreGetPedestal;
102
+ readonly 99: typeof cc.PreItemPickup;
103
+ readonly 100: typeof cc.PreNewLevel;
104
+ readonly 101: typeof cc.PreNPCCollisionFilter;
105
+ readonly 102: typeof cc.PreNPCUpdateFilter;
104
106
  };
105
107
  export type ModCallbackCustomToClass = {
106
108
  readonly [Key in keyof typeof MOD_CALLBACK_CUSTOM_TO_CLASS]: InstanceType<(typeof MOD_CALLBACK_CUSTOM_TO_CLASS)[Key]>;
@@ -1 +1 @@
1
- {"version":3,"file":"callbacks.d.ts","sourceRoot":"","sources":["../../src/callbacks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAMxC,QAAA,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmH8B,CAAC;AAEjE,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,GAAG,IAAI,MAAM,OAAO,4BAA4B,GAAG,YAAY,CACvE,CAAC,OAAO,4BAA4B,CAAC,CAAC,GAAG,CAAC,CAC3C;CACF,CAAC;AAEF,wBAAgB,YAAY,IAAI,wBAAwB,CASvD"}
1
+ {"version":3,"file":"callbacks.d.ts","sourceRoot":"","sources":["../../src/callbacks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAMxC,QAAA,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqH8B,CAAC;AAEjE,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,GAAG,IAAI,MAAM,OAAO,4BAA4B,GAAG,YAAY,CACvE,CAAC,OAAO,4BAA4B,CAAC,CAAC,GAAG,CAAC,CAC3C;CACF,CAAC;AAEF,wBAAgB,YAAY,IAAI,wBAAwB,CASvD"}
@@ -9,6 +9,8 @@ local getEnumValues = ____enums.getEnumValues
9
9
  local MOD_CALLBACK_CUSTOM_TO_CLASS = {
10
10
  [ModCallbackCustom.ENTITY_TAKE_DMG_FILTER] = cc.EntityTakeDmgFilter,
11
11
  [ModCallbackCustom.ENTITY_TAKE_DMG_PLAYER] = cc.EntityTakeDmgPlayer,
12
+ [ModCallbackCustom.INPUT_ACTION_FILTER] = cc.InputActionFilter,
13
+ [ModCallbackCustom.INPUT_ACTION_PLAYER] = cc.InputActionPlayer,
12
14
  [ModCallbackCustom.POST_AMBUSH_FINISHED] = cc.PostAmbushFinished,
13
15
  [ModCallbackCustom.POST_AMBUSH_STARTED] = cc.PostAmbushStarted,
14
16
  [ModCallbackCustom.POST_BOMB_EXPLODED] = cc.PostBombExploded,
@@ -1,6 +1,6 @@
1
1
  import { ModUpgradedBase } from "./ModUpgradedBase";
2
- export declare const ADD_CALLBACK_ARGS_KEY = "__addCallbackArgs";
3
- export declare const ADD_CALLBACK_CUSTOM_ARGS_KEY = "__addCallbackCustomArgs";
2
+ export declare const MOD_FEATURE_CALLBACKS_KEY = "__callbacks";
3
+ export declare const MOD_FEATURE_CUSTOM_CALLBACKS_KEY = "__customCallbacks";
4
4
  /**
5
5
  * Helper class for mods that want to represent their individual features as classes. Extend your
6
6
  * mod features from this class in order to enable the `@Callback` and `@CustomCallback` decorators
@@ -1 +1 @@
1
- {"version":3,"file":"ModFeature.d.ts","sourceRoot":"","sources":["../../../src/classes/ModFeature.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,qBAAqB,sBAAsB,CAAC;AACzD,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAatE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,qBAAa,UAAU;IACrB,OAAO,CAAC,GAAG,CAAkB;IAE7B;;;;;;;;;OASG;IACH,SAAS,CAAC,uBAAuB,EAAE,CAAC,MAAM,OAAO,CAAC,GAAG,IAAI,CAAQ;IAEjE;;;;;;OAMG;IACI,WAAW,UAAS;gBAEf,GAAG,EAAE,eAAe,EAAE,IAAI,UAAO;IAQ7C;;;;;OAKG;IACI,IAAI,CAAC,IAAI,UAAO,GAAG,IAAI;IAqB9B;;;;;;OAMG;IACI,MAAM,IAAI,IAAI;CAGtB"}
1
+ {"version":3,"file":"ModFeature.d.ts","sourceRoot":"","sources":["../../../src/classes/ModFeature.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,yBAAyB,gBAAgB,CAAC;AACvD,eAAO,MAAM,gCAAgC,sBAAsB,CAAC;AAyBpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,qBAAa,UAAU;IACrB,OAAO,CAAC,GAAG,CAAkB;IAE7B;;;;;;;;;OASG;IACH,SAAS,CAAC,uBAAuB,EAAE,CAAC,MAAM,OAAO,CAAC,GAAG,IAAI,CAAQ;IAEjE;;;;;;OAMG;IACI,WAAW,UAAS;gBAEf,GAAG,EAAE,eAAe,EAAE,IAAI,UAAO;IAQ7C;;;;;OAKG;IACI,IAAI,CAAC,IAAI,UAAO,GAAG,IAAI;IAqB9B;;;;;;OAMG;IACI,MAAM,IAAI,IAAI;CAGtB"}
@@ -6,8 +6,6 @@ local ____exports = {}
6
6
  local initDecoratedCallbacks, addCallback, removeCallback, initSaveDataManager, WRAPPED_CALLBACK_METHODS_KEY, WRAPPED_CUSTOM_CALLBACK_METHODS_KEY
7
7
  local ____array = require("src.functions.array")
8
8
  local isArray = ____array.isArray
9
- local ____deepCopy = require("src.functions.deepCopy")
10
- local deepCopy = ____deepCopy.deepCopy
11
9
  local ____tstlClass = require("src.functions.tstlClass")
12
10
  local getTSTLClassConstructor = ____tstlClass.getTSTLClassConstructor
13
11
  local getTSTLClassName = ____tstlClass.getTSTLClassName
@@ -17,26 +15,29 @@ local isNumber = ____types.isNumber
17
15
  local isTable = ____types.isTable
18
16
  function initDecoratedCallbacks(self, modFeature, constructor, tstlClassName, vanilla, init)
19
17
  local modFeatureConstructor = constructor
20
- local argsKey = vanilla and ____exports.ADD_CALLBACK_ARGS_KEY or ____exports.ADD_CALLBACK_CUSTOM_ARGS_KEY
21
- local addCallbackArgs = modFeatureConstructor[argsKey]
22
- if addCallbackArgs == nil then
18
+ local callbackTuplesKey = vanilla and ____exports.MOD_FEATURE_CALLBACKS_KEY or ____exports.MOD_FEATURE_CUSTOM_CALLBACKS_KEY
19
+ local callbackTuples = modFeatureConstructor[callbackTuplesKey]
20
+ if callbackTuples == nil then
23
21
  return
24
22
  end
25
- if not isArray(nil, addCallbackArgs) then
26
- error(("Failed to initialize/uninitialize the decorated callbacks on a mod feature since the callback arguments on the key of \"" .. argsKey) .. "\" was not an array.")
23
+ if not isArray(nil, callbackTuples) then
24
+ error((("Failed to initialize/uninitialize the decorated callbacks on a mod feature since the callback arguments on the key of \"" .. callbackTuplesKey) .. "\" was not an array and was instead of type: ") .. type(callbackTuples))
27
25
  end
28
- for ____, args in ipairs(addCallbackArgs) do
29
- if not isArray(nil, args) then
30
- error("Failed to initialize/uninitialize the decorated callbacks on a mod feature since one of the callback arguments was not an array.")
26
+ for ____, callbackTuple in ipairs(callbackTuples) do
27
+ if not isArray(nil, callbackTuple) then
28
+ error((("Failed to initialize/uninitialize the decorated callbacks on a mod feature since one of the callback arguments on the key of \"" .. callbackTuplesKey) .. "\" was not an array and was instead of type: ") .. type(callbackTuple))
31
29
  end
32
- local parameters = deepCopy(nil, args)
33
- local modCallback = table.remove(parameters, 1)
30
+ local modCallback = callbackTuple[1]
34
31
  if not isNumber(nil, modCallback) then
35
- error("Failed to get the callback number from the parameters for class: " .. tstlClassName)
32
+ error("Failed to get the callback number from the callback tuple for class: " .. tstlClassName)
36
33
  end
37
- local callback = table.remove(parameters, 1)
34
+ local callback = callbackTuple[2]
38
35
  if not isFunction(nil, callback) then
39
- error("Failed to get the callback function from the parameters for class: " .. tstlClassName)
36
+ error("Failed to get the callback function from the callback tuple for class: " .. tstlClassName)
37
+ end
38
+ local parameters = callbackTuple[3]
39
+ if not isArray(nil, parameters, false) then
40
+ error("Failed to get the callback parameters from the callback tuple for class: " .. tstlClassName)
40
41
  end
41
42
  local mod = modFeature.mod
42
43
  if init then
@@ -147,8 +148,8 @@ function initSaveDataManager(self, modFeature, tstlClassName, init)
147
148
  saveDataManagerMethod(nil, tstlClassName)
148
149
  end
149
150
  end
150
- ____exports.ADD_CALLBACK_ARGS_KEY = "__addCallbackArgs"
151
- ____exports.ADD_CALLBACK_CUSTOM_ARGS_KEY = "__addCallbackCustomArgs"
151
+ ____exports.MOD_FEATURE_CALLBACKS_KEY = "__callbacks"
152
+ ____exports.MOD_FEATURE_CUSTOM_CALLBACKS_KEY = "__customCallbacks"
152
153
  WRAPPED_CALLBACK_METHODS_KEY = "__wrappedCallbackMethods"
153
154
  WRAPPED_CUSTOM_CALLBACK_METHODS_KEY = "__wrappedCustomCallbacksMethods"
154
155
  --- Helper class for mods that want to represent their individual features as classes. Extend your
@@ -1 +1 @@
1
- {"version":3,"file":"ModUpgradedBase.d.ts","sourceRoot":"","sources":["../../../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mB;IAO3B;;;OAGG;IACH,OAAO,CAAC,uBAAuB;CAIhC"}
@@ -194,19 +194,21 @@ function ModUpgradedBase.prototype.initFeature(self, feature)
194
194
  end
195
195
  if feature.callbacksUsed ~= nil then
196
196
  for ____, callbackTuple in ipairs(feature.callbacksUsed) do
197
- local modCallback, callbackArgs = table.unpack(callbackTuple)
197
+ local modCallback, callbackFunc, optionalArgs = table.unpack(callbackTuple)
198
198
  self:AddCallback(
199
199
  modCallback,
200
- table.unpack(callbackArgs)
200
+ callbackFunc,
201
+ table.unpack(optionalArgs or ({}))
201
202
  )
202
203
  end
203
204
  end
204
205
  if feature.customCallbacksUsed ~= nil then
205
206
  for ____, callbackTuple in ipairs(feature.customCallbacksUsed) do
206
- local modCallback, callbackArgs = table.unpack(callbackTuple)
207
+ local modCallback, callbackFunc, optionalArgs = table.unpack(callbackTuple)
207
208
  self:AddCallbackCustom(
208
209
  modCallback,
209
- table.unpack(callbackArgs)
210
+ callbackFunc,
211
+ table.unpack(optionalArgs or ({}))
210
212
  )
211
213
  end
212
214
  end
@@ -241,16 +243,14 @@ function ModUpgradedBase.prototype.uninitFeature(self, feature)
241
243
  end
242
244
  if feature.callbacksUsed ~= nil then
243
245
  for ____, callbackTuple in ipairs(feature.callbacksUsed) do
244
- local modCallback, callbackArgs = table.unpack(callbackTuple)
245
- local callback = callbackArgs[1]
246
- self:RemoveCallback(modCallback, callback)
246
+ local modCallback, callbackFunc = table.unpack(callbackTuple)
247
+ self:RemoveCallback(modCallback, callbackFunc)
247
248
  end
248
249
  end
249
250
  if feature.customCallbacksUsed ~= nil then
250
251
  for ____, callbackTuple in ipairs(feature.customCallbacksUsed) do
251
- local modCallback, callbackArgs = table.unpack(callbackTuple)
252
- local callback = callbackArgs[1]
253
- self:RemoveCallbackCustom(modCallback, callback)
252
+ local modCallback, callbackFunc = table.unpack(callbackTuple)
253
+ self:RemoveCallbackCustom(modCallback, callbackFunc)
254
254
  end
255
255
  end
256
256
  if feature.v ~= nil then
@@ -22,6 +22,6 @@ function EntityTakeDmgFilter.prototype.____constructor(self)
22
22
  source,
23
23
  countdownFrames
24
24
  ) end
25
- self.callbacksUsed = {{ModCallback.ENTITY_TAKE_DMG, {self.entityTakeDmg}}}
25
+ self.callbacksUsed = {{ModCallback.ENTITY_TAKE_DMG, self.entityTakeDmg}}
26
26
  end
27
27
  return ____exports
@@ -1 +1 @@
1
- {"version":3,"file":"EntityTakeDmgPlayer.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/EntityTakeDmgPlayer.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,mBAAoB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,sBAAsB,CAAC;;IAa/F,UAAmB,UAAU,0BAAoB;IAGjD,OAAO,CAAC,mBAAmB,CAazB;CACH"}
1
+ {"version":3,"file":"EntityTakeDmgPlayer.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/EntityTakeDmgPlayer.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,mBAAoB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,sBAAsB,CAAC;;IAc/F,UAAmB,UAAU,0BAAoB;IAGjD,OAAO,CAAC,mBAAmB,CAazB;CACH"}
@@ -29,6 +29,6 @@ function EntityTakeDmgPlayer.prototype.____constructor(self)
29
29
  countdownFrames
30
30
  )
31
31
  end
32
- self.callbacksUsed = {{ModCallback.ENTITY_TAKE_DMG, {self.entityTakeDmgPlayer, EntityType.PLAYER}}}
32
+ self.callbacksUsed = {{ModCallback.ENTITY_TAKE_DMG, self.entityTakeDmgPlayer, {EntityType.PLAYER}}}
33
33
  end
34
34
  return ____exports
@@ -0,0 +1,11 @@
1
+ import { ButtonAction, InputHook } from "isaac-typescript-definitions";
2
+ import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
3
+ import { CustomCallback } from "../private/CustomCallback";
4
+ type T = ModCallbackCustom.INPUT_ACTION_FILTER;
5
+ export declare class InputActionFilter extends CustomCallback<T> {
6
+ constructor();
7
+ protected shouldFire: (fireArgs: [entity: Entity | undefined, inputHook: InputHook, buttonAction: ButtonAction], optionalArgs: [inputHook?: InputHook | undefined, buttonAction?: ButtonAction | undefined]) => boolean;
8
+ private inputAction;
9
+ }
10
+ export {};
11
+ //# sourceMappingURL=InputActionFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputActionFilter.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/InputActionFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,SAAS,EAEV,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,mBAAmB,CAAC;AAE/C,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAWtD,UAAmB,UAAU,4LAG1B,OAAO,CASR;IAGF,OAAO,CAAC,WAAW,CAI0D;CAC9E"}
@@ -0,0 +1,23 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local __TS__Class = ____lualib.__TS__Class
3
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
+ local ____exports = {}
5
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
6
+ local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
7
+ local ____CustomCallback = require("src.classes.private.CustomCallback")
8
+ local CustomCallback = ____CustomCallback.CustomCallback
9
+ ____exports.InputActionFilter = __TS__Class()
10
+ local InputActionFilter = ____exports.InputActionFilter
11
+ InputActionFilter.name = "InputActionFilter"
12
+ __TS__ClassExtends(InputActionFilter, CustomCallback)
13
+ function InputActionFilter.prototype.____constructor(self)
14
+ CustomCallback.prototype.____constructor(self)
15
+ self.shouldFire = function(____, fireArgs, optionalArgs)
16
+ local _, inputHook, buttonAction = table.unpack(fireArgs)
17
+ local callbackInputHook, callbackButtonAction = table.unpack(optionalArgs)
18
+ return (callbackInputHook == nil or callbackInputHook == inputHook) and (callbackButtonAction == nil or callbackButtonAction == buttonAction)
19
+ end
20
+ self.inputAction = function(____, entity, inputHook, buttonAction) return self:fire(entity, inputHook, buttonAction) end
21
+ self.callbacksUsed = {{ModCallback.INPUT_ACTION, self.inputAction}}
22
+ end
23
+ return ____exports
@@ -0,0 +1,11 @@
1
+ import { ButtonAction, InputHook } from "isaac-typescript-definitions";
2
+ import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
3
+ import { CustomCallback } from "../private/CustomCallback";
4
+ type T = ModCallbackCustom.INPUT_ACTION_PLAYER;
5
+ export declare class InputActionPlayer extends CustomCallback<T> {
6
+ constructor();
7
+ protected shouldFire: (fireArgs: [player: EntityPlayer, inputHook: InputHook, buttonAction: ButtonAction], optionalArgs: [playerVariant?: import("isaac-typescript-definitions").PlayerVariant | undefined, character?: import("isaac-typescript-definitions").PlayerType | undefined, inputHook?: InputHook | undefined, buttonAction?: ButtonAction | undefined]) => boolean;
8
+ private inputAction;
9
+ }
10
+ export {};
11
+ //# sourceMappingURL=InputActionPlayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputActionPlayer.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/InputActionPlayer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,SAAS,EAEV,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,mBAAmB,CAAC;AAE/C,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAWtD,UAAmB,UAAU,mVAG1B,OAAO,CAmBR;IAGF,OAAO,CAAC,WAAW,CAejB;CACH"}
@@ -0,0 +1,33 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local __TS__Class = ____lualib.__TS__Class
3
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
+ local ____exports = {}
5
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
6
+ local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
7
+ local ____CustomCallback = require("src.classes.private.CustomCallback")
8
+ local CustomCallback = ____CustomCallback.CustomCallback
9
+ ____exports.InputActionPlayer = __TS__Class()
10
+ local InputActionPlayer = ____exports.InputActionPlayer
11
+ InputActionPlayer.name = "InputActionPlayer"
12
+ __TS__ClassExtends(InputActionPlayer, CustomCallback)
13
+ function InputActionPlayer.prototype.____constructor(self)
14
+ CustomCallback.prototype.____constructor(self)
15
+ self.shouldFire = function(____, fireArgs, optionalArgs)
16
+ local player, inputHook, buttonAction = table.unpack(fireArgs)
17
+ local callbackPlayerVariant, callbackCharacter, callbackInputHook, callbackButtonAction = table.unpack(optionalArgs)
18
+ local character = player:GetPlayerType()
19
+ return (callbackPlayerVariant == nil or callbackPlayerVariant == player.Variant) and (callbackCharacter == nil or callbackCharacter == character) and (callbackInputHook == nil or callbackInputHook == inputHook) and (callbackButtonAction == nil or callbackButtonAction == buttonAction)
20
+ end
21
+ self.inputAction = function(____, entity, inputHook, buttonAction)
22
+ if entity == nil then
23
+ return nil
24
+ end
25
+ local player = entity:ToPlayer()
26
+ if player == nil then
27
+ return nil
28
+ end
29
+ return self:fire(player, inputHook, buttonAction)
30
+ end
31
+ self.callbacksUsed = {{ModCallback.INPUT_ACTION, self.inputAction}}
32
+ end
33
+ return ____exports
@@ -35,6 +35,6 @@ function PostAmbushFinished.prototype.____constructor(self)
35
35
  self:fire(ambushType)
36
36
  end
37
37
  end
38
- self.callbacksUsed = {{ModCallback.POST_UPDATE, {self.postUpdate}}}
38
+ self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
39
39
  end
40
40
  return ____exports
@@ -35,6 +35,6 @@ function PostAmbushStarted.prototype.____constructor(self)
35
35
  self:fire(ambushType)
36
36
  end
37
37
  end
38
- self.callbacksUsed = {{ModCallback.POST_UPDATE, {self.postUpdate}}}
38
+ self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
39
39
  end
40
40
  return ____exports
@@ -22,6 +22,6 @@ function PostBombExploded.prototype.____constructor(self)
22
22
  self:fire(bomb)
23
23
  end
24
24
  end
25
- self.callbacksUsed = {{ModCallback.POST_BOMB_UPDATE, {self.postBombUpdate}}}
25
+ self.callbacksUsed = {{ModCallback.POST_BOMB_UPDATE, self.postBombUpdate}}
26
26
  end
27
27
  return ____exports
@@ -25,6 +25,6 @@ function PostBombInitLate.prototype.____constructor(self)
25
25
  self:fire(bomb)
26
26
  end
27
27
  end
28
- self.callbacksUsed = {{ModCallback.POST_BOMB_UPDATE, {self.postBombUpdate}}}
28
+ self.callbacksUsed = {{ModCallback.POST_BOMB_UPDATE, self.postBombUpdate}}
29
29
  end
30
30
  return ____exports
@@ -23,7 +23,7 @@ function PostBoneSwing.prototype.____constructor(self)
23
23
  self:postKnifeRenderBoneClub(knife)
24
24
  end
25
25
  end
26
- self.callbacksUsed = {{ModCallback.POST_KNIFE_RENDER, {self.postKnifeRender}}}
26
+ self.callbacksUsed = {{ModCallback.POST_KNIFE_RENDER, self.postKnifeRender}}
27
27
  end
28
28
  function PostBoneSwing.prototype.postKnifeRenderBoneClub(self, knife)
29
29
  local sprite = knife:GetSprite()
@@ -1 +1 @@
1
- {"version":3,"file":"PostCollectibleEmpty.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostCollectibleEmpty.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAGhB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EAEd,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,sBAAsB,CAAC;AAElD,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,CAAC,CAAC;IACzC,CAAC;;;;MAIf;;IAeF,UAAmB,UAAU,wGAEb,aAAa,CAAC,CAAC,KAC5B,OAAO,CAQR;IAIF,OAAO,CAAC,2BAA2B,CAajC;IAEF,OAAO,CAAC,sBAAsB;CAQ/B"}
1
+ {"version":3,"file":"PostCollectibleEmpty.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostCollectibleEmpty.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAGhB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EAEd,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,sBAAsB,CAAC;AAElD,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,CAAC,CAAC;IACzC,CAAC;;;;MAIf;;IAgBF,UAAmB,UAAU,wGAEb,aAAa,CAAC,CAAC,KAC5B,OAAO,CAQR;IAIF,OAAO,CAAC,2BAA2B,CAajC;IAEF,OAAO,CAAC,sBAAsB;CAQ/B"}
@@ -34,7 +34,7 @@ function PostCollectibleEmpty.prototype.____constructor(self)
34
34
  self:collectibleTypeChanged(collectible, oldCollectibleType)
35
35
  end
36
36
  end
37
- self.callbacksUsed = {{ModCallback.POST_PICKUP_UPDATE, {self.postPickupUpdateCollectible, PickupVariant.COLLECTIBLE}}}
37
+ self.callbacksUsed = {{ModCallback.POST_PICKUP_UPDATE, self.postPickupUpdateCollectible, {PickupVariant.COLLECTIBLE}}}
38
38
  end
39
39
  function PostCollectibleEmpty.prototype.collectibleTypeChanged(self, collectible, oldCollectibleType)
40
40
  if collectible.SubType == CollectibleType.NULL then
@@ -1 +1 @@
1
- {"version":3,"file":"PostCollectibleInitFirst.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostCollectibleInitFirst.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,wBAAyB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,2BAA2B,CAAC;IACzF,CAAC;;;;MAIf;;IAcF,UAAmB,UAAU,+BAAyB;IAItD,OAAO,CAAC,yBAAyB,CAS/B;CACH"}
1
+ {"version":3,"file":"PostCollectibleInitFirst.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostCollectibleInitFirst.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,wBAAyB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,2BAA2B,CAAC;IACzF,CAAC;;;;MAIf;;IAeF,UAAmB,UAAU,+BAAyB;IAItD,OAAO,CAAC,yBAAyB,CAS/B;CACH"}
@@ -30,6 +30,6 @@ function PostCollectibleInitFirst.prototype.____constructor(self)
30
30
  self.v.run.seenCollectibles:add(collectibleIndex)
31
31
  self:fire(collectible)
32
32
  end
33
- self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT, {self.postPickupInitCollectible, PickupVariant.COLLECTIBLE}}}
33
+ self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT, self.postPickupInitCollectible, {PickupVariant.COLLECTIBLE}}}
34
34
  end
35
35
  return ____exports