isaacscript-common 6.11.1 → 6.13.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 (216) hide show
  1. package/dist/callbacks/postFlip.lua +2 -2
  2. package/dist/callbacks/postGridEntityCustomRender.d.ts +2 -0
  3. package/dist/callbacks/postGridEntityCustomRender.d.ts.map +1 -0
  4. package/dist/callbacks/postGridEntityCustomRender.lua +36 -0
  5. package/dist/callbacks/postGridEntityCustomUpdate.d.ts +2 -0
  6. package/dist/callbacks/postGridEntityCustomUpdate.d.ts.map +1 -0
  7. package/dist/callbacks/postGridEntityCustomUpdate.lua +36 -0
  8. package/dist/callbacks/postNewRoomEarly.lua +2 -2
  9. package/dist/callbacks/postPickupInitFirst.lua +1 -20
  10. package/dist/callbacks/reorderedCallbacks.d.ts +5 -5
  11. package/dist/callbacks/reorderedCallbacks.d.ts.map +1 -1
  12. package/dist/callbacks/reorderedCallbacks.lua +5 -5
  13. package/dist/callbacks/subscriptions/postFirstFlip.d.ts +1 -1
  14. package/dist/callbacks/subscriptions/postFirstFlip.d.ts.map +1 -1
  15. package/dist/callbacks/subscriptions/postFirstFlip.lua +2 -2
  16. package/dist/callbacks/subscriptions/postFlip.d.ts +1 -1
  17. package/dist/callbacks/subscriptions/postFlip.d.ts.map +1 -1
  18. package/dist/callbacks/subscriptions/postFlip.lua +2 -2
  19. package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts +6 -0
  20. package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts.map +1 -0
  21. package/dist/callbacks/subscriptions/postGridEntityCustomRender.lua +29 -0
  22. package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts +6 -0
  23. package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts.map +1 -0
  24. package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.lua +29 -0
  25. package/dist/constants.d.ts +1 -5
  26. package/dist/constants.d.ts.map +1 -1
  27. package/dist/constants.lua +0 -7
  28. package/dist/constantsFirstLast.d.ts +5 -1
  29. package/dist/constantsFirstLast.d.ts.map +1 -1
  30. package/dist/constantsFirstLast.lua +6 -0
  31. package/dist/enums/ModCallbackCustom.d.ts +91 -68
  32. package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
  33. package/dist/enums/ModCallbackCustom.lua +62 -58
  34. package/dist/enums/private/StageTravelState.d.ts +6 -1
  35. package/dist/enums/private/StageTravelState.d.ts.map +1 -1
  36. package/dist/enums/private/StageTravelState.lua +10 -0
  37. package/dist/enums/private/TrapdoorAnimation.d.ts +6 -0
  38. package/dist/enums/private/TrapdoorAnimation.d.ts.map +1 -0
  39. package/dist/enums/private/TrapdoorAnimation.lua +6 -0
  40. package/dist/features/collectibleItemPoolType.d.ts +2 -2
  41. package/dist/features/collectibleItemPoolType.lua +2 -2
  42. package/dist/features/customGridEntity.d.ts +17 -5
  43. package/dist/features/customGridEntity.d.ts.map +1 -1
  44. package/dist/features/customGridEntity.lua +78 -15
  45. package/dist/features/customStage/exports.d.ts.map +1 -1
  46. package/dist/features/customStage/exports.lua +0 -13
  47. package/dist/features/customStage/init.d.ts.map +1 -1
  48. package/dist/features/customStage/init.lua +16 -1
  49. package/dist/features/customStage/streakText.d.ts.map +1 -1
  50. package/dist/features/customStage/streakText.lua +0 -1
  51. package/dist/features/customTrapdoor/blackSprite.d.ts +2 -0
  52. package/dist/features/customTrapdoor/blackSprite.d.ts.map +1 -0
  53. package/dist/features/customTrapdoor/blackSprite.lua +19 -0
  54. package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts +8 -3
  55. package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts.map +1 -1
  56. package/dist/features/customTrapdoor/customTrapdoorConstants.lua +9 -1
  57. package/dist/features/customTrapdoor/exports.d.ts +11 -19
  58. package/dist/features/customTrapdoor/exports.d.ts.map +1 -1
  59. package/dist/features/customTrapdoor/exports.lua +48 -82
  60. package/dist/features/customTrapdoor/init.d.ts +3 -0
  61. package/dist/features/customTrapdoor/init.d.ts.map +1 -0
  62. package/dist/features/customTrapdoor/init.lua +174 -0
  63. package/dist/features/customTrapdoor/openClose.d.ts +5 -0
  64. package/dist/features/customTrapdoor/openClose.d.ts.map +1 -0
  65. package/dist/features/customTrapdoor/openClose.lua +60 -0
  66. package/dist/features/customTrapdoor/touched.d.ts +4 -0
  67. package/dist/features/customTrapdoor/touched.d.ts.map +1 -0
  68. package/dist/features/customTrapdoor/touched.lua +159 -0
  69. package/dist/features/customTrapdoor/v.d.ts +16 -2
  70. package/dist/features/customTrapdoor/v.d.ts.map +1 -1
  71. package/dist/features/customTrapdoor/v.lua +8 -6
  72. package/dist/features/deployJSONRoom.d.ts +2 -2
  73. package/dist/features/deployJSONRoom.lua +2 -2
  74. package/dist/features/extraConsoleCommands/init.d.ts.map +1 -1
  75. package/dist/features/extraConsoleCommands/init.lua +14 -15
  76. package/dist/features/extraConsoleCommands/listCommands.d.ts +15 -19
  77. package/dist/features/extraConsoleCommands/listCommands.d.ts.map +1 -1
  78. package/dist/features/extraConsoleCommands/listCommands.lua +34 -42
  79. package/dist/features/pause.d.ts +1 -1
  80. package/dist/features/pause.d.ts.map +1 -1
  81. package/dist/features/pause.lua +87 -8
  82. package/dist/features/persistentEntities.d.ts.map +1 -1
  83. package/dist/features/persistentEntities.lua +7 -7
  84. package/dist/features/pickupIndex.d.ts +19 -0
  85. package/dist/features/pickupIndex.d.ts.map +1 -0
  86. package/dist/features/pickupIndex.lua +197 -0
  87. package/dist/features/roomHistory.d.ts +24 -0
  88. package/dist/features/roomHistory.d.ts.map +1 -0
  89. package/dist/features/roomHistory.lua +89 -0
  90. package/dist/features/taintedLazarusPlayers.d.ts.map +1 -1
  91. package/dist/features/taintedLazarusPlayers.lua +13 -21
  92. package/dist/functions/collectibles.d.ts +26 -13
  93. package/dist/functions/collectibles.d.ts.map +1 -1
  94. package/dist/functions/collectibles.lua +26 -13
  95. package/dist/functions/entities.d.ts +3 -3
  96. package/dist/functions/entities.d.ts.map +1 -1
  97. package/dist/functions/entities.lua +8 -3
  98. package/dist/functions/gridEntities.d.ts +2 -2
  99. package/dist/functions/gridEntities.lua +2 -2
  100. package/dist/functions/isaacAPIClass.d.ts +64 -0
  101. package/dist/functions/isaacAPIClass.d.ts.map +1 -1
  102. package/dist/functions/isaacAPIClass.lua +84 -1
  103. package/dist/functions/log.lua +3 -3
  104. package/dist/functions/map.d.ts +2 -0
  105. package/dist/functions/map.d.ts.map +1 -1
  106. package/dist/functions/map.lua +7 -0
  107. package/dist/functions/pickupVariants.d.ts +2 -2
  108. package/dist/functions/pickupVariants.d.ts.map +1 -1
  109. package/dist/functions/pickupVariants.lua +2 -2
  110. package/dist/functions/playerCenter.lua +2 -2
  111. package/dist/functions/playerIndex.d.ts +5 -3
  112. package/dist/functions/playerIndex.d.ts.map +1 -1
  113. package/dist/functions/playerIndex.lua +15 -24
  114. package/dist/functions/roomData.d.ts +3 -2
  115. package/dist/functions/roomData.d.ts.map +1 -1
  116. package/dist/functions/roomData.lua +3 -2
  117. package/dist/functions/rooms.d.ts +6 -6
  118. package/dist/functions/rooms.lua +6 -6
  119. package/dist/functions/set.d.ts +2 -0
  120. package/dist/functions/set.d.ts.map +1 -1
  121. package/dist/functions/set.lua +6 -0
  122. package/dist/functions/stage.d.ts +1 -0
  123. package/dist/functions/stage.d.ts.map +1 -1
  124. package/dist/functions/stage.lua +4 -0
  125. package/dist/functions/table.d.ts +1 -1
  126. package/dist/functions/table.d.ts.map +1 -1
  127. package/dist/index.d.ts +3 -0
  128. package/dist/index.d.ts.map +1 -1
  129. package/dist/index.lua +23 -0
  130. package/dist/initCustomCallbacks.d.ts.map +1 -1
  131. package/dist/initCustomCallbacks.lua +6 -0
  132. package/dist/initFeatures.d.ts.map +1 -1
  133. package/dist/initFeatures.lua +9 -0
  134. package/dist/interfaces/AddCallbackParameterCustom.d.ts +4 -0
  135. package/dist/interfaces/AddCallbackParameterCustom.d.ts.map +1 -1
  136. package/dist/interfaces/CustomGridEntityData.d.ts +5 -1
  137. package/dist/interfaces/CustomGridEntityData.d.ts.map +1 -1
  138. package/dist/interfaces/RoomDescription.d.ts +14 -0
  139. package/dist/interfaces/RoomDescription.d.ts.map +1 -0
  140. package/dist/interfaces/RoomDescription.lua +2 -0
  141. package/dist/interfaces/private/CustomTrapdoorDescription.d.ts +3 -0
  142. package/dist/interfaces/private/CustomTrapdoorDescription.d.ts.map +1 -1
  143. package/dist/objects/callbackRegisterFunctions.d.ts.map +1 -1
  144. package/dist/objects/callbackRegisterFunctions.lua +6 -0
  145. package/dist/types/CollectibleIndex.d.ts +1 -1
  146. package/dist/types/PickupIndex.d.ts +17 -0
  147. package/dist/types/PickupIndex.d.ts.map +1 -0
  148. package/dist/types/PickupIndex.lua +2 -0
  149. package/dist/types/PlayerIndex.d.ts +1 -1
  150. package/dist/upgradeMod.d.ts.map +1 -1
  151. package/package.json +2 -2
  152. package/src/callbacks/postFlip.ts +3 -2
  153. package/src/callbacks/postGridEntityCustomRender.ts +44 -0
  154. package/src/callbacks/postGridEntityCustomUpdate.ts +44 -0
  155. package/src/callbacks/postNewRoomEarly.ts +2 -2
  156. package/src/callbacks/postPickupInitFirst.ts +3 -32
  157. package/src/callbacks/postPlayerReorderedCallbacks.ts +3 -3
  158. package/src/callbacks/reorderedCallbacks.ts +9 -8
  159. package/src/callbacks/subscriptions/postFirstFlip.ts +6 -3
  160. package/src/callbacks/subscriptions/postFlip.ts +6 -3
  161. package/src/callbacks/subscriptions/postGridEntityCustomRender.ts +41 -0
  162. package/src/callbacks/subscriptions/postGridEntityCustomUpdate.ts +41 -0
  163. package/src/constants.ts +1 -9
  164. package/src/constantsFirstLast.ts +16 -0
  165. package/src/enums/ModCallbackCustom.ts +35 -10
  166. package/src/enums/private/StageTravelState.ts +5 -1
  167. package/src/enums/private/TrapdoorAnimation.ts +5 -0
  168. package/src/features/collectibleItemPoolType.ts +3 -3
  169. package/src/features/customGridEntity.ts +93 -10
  170. package/src/features/customStage/exports.ts +3 -22
  171. package/src/features/customStage/init.ts +20 -0
  172. package/src/features/customStage/streakText.ts +0 -1
  173. package/src/features/customTrapdoor/blackSprite.ts +22 -0
  174. package/src/features/customTrapdoor/customTrapdoorConstants.ts +13 -3
  175. package/src/features/customTrapdoor/exports.ts +52 -121
  176. package/src/features/customTrapdoor/init.ts +217 -0
  177. package/src/features/customTrapdoor/openClose.ts +103 -0
  178. package/src/features/customTrapdoor/touched.ts +195 -0
  179. package/src/features/customTrapdoor/v.ts +16 -10
  180. package/src/features/deployJSONRoom.ts +5 -5
  181. package/src/features/extraConsoleCommands/init.ts +22 -16
  182. package/src/features/extraConsoleCommands/listCommands.ts +38 -43
  183. package/src/features/pause.ts +97 -7
  184. package/src/features/persistentEntities.ts +9 -8
  185. package/src/features/pickupIndex.ts +257 -0
  186. package/src/features/playerInventory.ts +2 -2
  187. package/src/features/roomHistory.ts +113 -0
  188. package/src/features/saveDataManager/main.ts +3 -3
  189. package/src/features/taintedLazarusPlayers.ts +37 -36
  190. package/src/functions/collectibles.ts +26 -13
  191. package/src/functions/deepCopy.ts +2 -2
  192. package/src/functions/entities.ts +7 -4
  193. package/src/functions/gridEntities.ts +2 -2
  194. package/src/functions/isaacAPIClass.ts +106 -1
  195. package/src/functions/map.ts +10 -0
  196. package/src/functions/pickupVariants.ts +2 -2
  197. package/src/functions/playerCenter.ts +2 -2
  198. package/src/functions/playerIndex.ts +20 -21
  199. package/src/functions/rng.ts +1 -1
  200. package/src/functions/roomData.ts +3 -2
  201. package/src/functions/rooms.ts +6 -6
  202. package/src/functions/set.ts +7 -1
  203. package/src/functions/stage.ts +10 -1
  204. package/src/functions/table.ts +2 -2
  205. package/src/index.ts +3 -0
  206. package/src/initCustomCallbacks.ts +4 -0
  207. package/src/initFeatures.ts +6 -0
  208. package/src/interfaces/AddCallbackParameterCustom.ts +4 -0
  209. package/src/interfaces/CustomGridEntityData.ts +6 -1
  210. package/src/interfaces/RoomDescription.ts +19 -0
  211. package/src/interfaces/private/CustomTrapdoorDescription.ts +4 -0
  212. package/src/objects/callbackRegisterFunctions.ts +6 -0
  213. package/src/types/CollectibleIndex.ts +1 -1
  214. package/src/types/PickupIndex.ts +15 -0
  215. package/src/types/PlayerIndex.ts +1 -1
  216. package/src/upgradeMod.ts +2 -1
@@ -33,9 +33,9 @@ function useItemFlip(self, _collectibleType, _rng, player, _useFlags, _activeSlo
33
33
  end
34
34
  if not v.run.usedFlipAtLeastOnce then
35
35
  v.run.usedFlipAtLeastOnce = true
36
- postFirstFlipFire(nil, newLazarus)
36
+ postFirstFlipFire(nil, newLazarus, player)
37
37
  end
38
- postFlipFire(nil, newLazarus)
38
+ postFlipFire(nil, newLazarus, player)
39
39
  return nil
40
40
  end
41
41
  function getNewLazarus(self, oldLazarus)
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=postGridEntityCustomRender.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postGridEntityCustomRender.d.ts","sourceRoot":"","sources":["../../src/callbacks/postGridEntityCustomRender.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Map = ____lualib.Map
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ local hasSubscriptions, postRender
6
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
7
+ local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
8
+ local ____customGridEntity = require("features.customGridEntity")
9
+ local getCustomGridEntities = ____customGridEntity.getCustomGridEntities
10
+ local ____exports = require("features.saveDataManager.exports")
11
+ local saveDataManager = ____exports.saveDataManager
12
+ local ____postGridEntityCustomRender = require("callbacks.subscriptions.postGridEntityCustomRender")
13
+ local postGridEntityCustomRenderFire = ____postGridEntityCustomRender.postGridEntityCustomRenderFire
14
+ local postGridEntityCustomRenderHasSubscriptions = ____postGridEntityCustomRender.postGridEntityCustomRenderHasSubscriptions
15
+ function hasSubscriptions(self)
16
+ return postGridEntityCustomRenderHasSubscriptions(nil)
17
+ end
18
+ function postRender(self)
19
+ if not hasSubscriptions(nil) then
20
+ return
21
+ end
22
+ local customGridEntities = getCustomGridEntities(nil)
23
+ for ____, ____value in ipairs(customGridEntities) do
24
+ local gridEntity = ____value[1]
25
+ local data = ____value[2]
26
+ postGridEntityCustomRenderFire(nil, gridEntity, data.gridEntityTypeCustom)
27
+ end
28
+ end
29
+ local v = {room = {initializedGridEntities = __TS__New(Map)}}
30
+ ---
31
+ -- @internal
32
+ function ____exports.postGridEntityCustomRenderInit(self, mod)
33
+ saveDataManager(nil, "postGridEntityCustomRender", v, hasSubscriptions)
34
+ mod:AddCallback(ModCallback.POST_RENDER, postRender)
35
+ end
36
+ return ____exports
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=postGridEntityCustomUpdate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postGridEntityCustomUpdate.d.ts","sourceRoot":"","sources":["../../src/callbacks/postGridEntityCustomUpdate.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Map = ____lualib.Map
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ local hasSubscriptions, postUpdate
6
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
7
+ local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
8
+ local ____customGridEntity = require("features.customGridEntity")
9
+ local getCustomGridEntities = ____customGridEntity.getCustomGridEntities
10
+ local ____exports = require("features.saveDataManager.exports")
11
+ local saveDataManager = ____exports.saveDataManager
12
+ local ____postGridEntityCustomUpdate = require("callbacks.subscriptions.postGridEntityCustomUpdate")
13
+ local postGridEntityCustomUpdateFire = ____postGridEntityCustomUpdate.postGridEntityCustomUpdateFire
14
+ local postGridEntityCustomUpdateHasSubscriptions = ____postGridEntityCustomUpdate.postGridEntityCustomUpdateHasSubscriptions
15
+ function hasSubscriptions(self)
16
+ return postGridEntityCustomUpdateHasSubscriptions(nil)
17
+ end
18
+ function postUpdate(self)
19
+ if not hasSubscriptions(nil) then
20
+ return
21
+ end
22
+ local customGridEntities = getCustomGridEntities(nil)
23
+ for ____, ____value in ipairs(customGridEntities) do
24
+ local gridEntity = ____value[1]
25
+ local data = ____value[2]
26
+ postGridEntityCustomUpdateFire(nil, gridEntity, data.gridEntityTypeCustom)
27
+ end
28
+ end
29
+ local v = {room = {initializedGridEntities = __TS__New(Map)}}
30
+ ---
31
+ -- @internal
32
+ function ____exports.postGridEntityCustomUpdateInit(self, mod)
33
+ saveDataManager(nil, "postGridEntityCustomUpdate", v, hasSubscriptions)
34
+ mod:AddCallback(ModCallback.POST_UPDATE, postUpdate)
35
+ end
36
+ return ____exports
@@ -38,14 +38,14 @@ function checkRoomChanged(self)
38
38
  if topLeftWall == nil then
39
39
  topLeftWall = spawnGridEntity(nil, GridEntityType.WALL, topLeftWallGridIndex)
40
40
  if topLeftWall == nil then
41
- logError("Failed to spawn a new wall (1) for the PostNewRoomEarly callback.")
41
+ logError("Failed to spawn a new wall (1) for the POST_NEW_ROOM_EARLY callback.")
42
42
  return
43
43
  end
44
44
  end
45
45
  if topLeftWall2 == nil then
46
46
  topLeftWall2 = spawnGridEntity(nil, GridEntityType.WALL, rightOfTopWallGridIndex)
47
47
  if topLeftWall2 == nil then
48
- logError("Failed to spawn a new wall (2) for the PostNewRoomEarly callback.")
48
+ logError("Failed to spawn a new wall (2) for the POST_NEW_ROOM_EARLY callback.")
49
49
  return
50
50
  end
51
51
  end
@@ -1,16 +1,9 @@
1
- local ____lualib = require("lualib_bundle")
2
- local Set = ____lualib.Set
3
- local __TS__New = ____lualib.__TS__New
4
1
  local ____exports = {}
5
- local hasSubscriptions, postPickupInit, POST_ASCENT_ROOM_TYPES, v
2
+ local hasSubscriptions, postPickupInit
6
3
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
7
- local GameStateFlag = ____isaac_2Dtypescript_2Ddefinitions.GameStateFlag
8
4
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
9
- local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
10
5
  local ____cachedClasses = require("cachedClasses")
11
6
  local game = ____cachedClasses.game
12
- local ____exports = require("features.saveDataManager.exports")
13
- local saveDataManager = ____exports.saveDataManager
14
7
  local ____roomData = require("functions.roomData")
15
8
  local getRoomVisitedCount = ____roomData.getRoomVisitedCount
16
9
  local ____postPickupInitFirst = require("callbacks.subscriptions.postPickupInitFirst")
@@ -24,12 +17,7 @@ function postPickupInit(self, pickup)
24
17
  return
25
18
  end
26
19
  local room = game:GetRoom()
27
- local roomType = room:GetType()
28
20
  local roomFrameCount = room:GetFrameCount()
29
- local previouslySeen = v.run.postAscentPickupInitSeeds:has(pickup.InitSeed)
30
- if POST_ASCENT_ROOM_TYPES:has(roomType) then
31
- v.run.postAscentPickupInitSeeds:add(pickup.InitSeed)
32
- end
33
21
  if roomFrameCount > 0 then
34
22
  postPickupInitFirstFire(nil, pickup)
35
23
  return
@@ -38,18 +26,11 @@ function postPickupInit(self, pickup)
38
26
  if roomVisitedCount > 0 then
39
27
  return
40
28
  end
41
- local onAscent = game:GetStateFlag(GameStateFlag.BACKWARDS_PATH)
42
- if onAscent and POST_ASCENT_ROOM_TYPES:has(roomType) and previouslySeen then
43
- return
44
- end
45
29
  postPickupInitFirstFire(nil, pickup)
46
30
  end
47
- POST_ASCENT_ROOM_TYPES = __TS__New(Set, {RoomType.TREASURE, RoomType.BOSS})
48
- v = {run = {postAscentPickupInitSeeds = __TS__New(Set)}}
49
31
  ---
50
32
  -- @internal
51
33
  function ____exports.postPickupInitFirstInit(self, mod)
52
- saveDataManager(nil, "postPickupInitFirst", v, hasSubscriptions)
53
34
  mod:AddCallback(ModCallback.POST_PICKUP_INIT, postPickupInit)
54
35
  end
55
36
  return ____exports
@@ -4,9 +4,9 @@ import { LevelStage, StageType } from "isaac-typescript-definitions";
4
4
  * callback.
5
5
  *
6
6
  * If some specific cases, mods can change the current level during run initialization on the 0th
7
- * frame. However, due to how the callback reordering works, the custom PostNewLevel callback will
8
- * never fire on the 0th frame. To get around this, call this function before changing levels to
9
- * temporarily force the callback to fire.
7
+ * frame. However, due to how the callback reordering works, the custom `POST_NEW_LEVEL` callback
8
+ * will never fire on the 0th frame. To get around this, call this function before changing levels
9
+ * to temporarily force the callback to fire.
10
10
  */
11
11
  export declare function forceNewLevelCallback(): void;
12
12
  /**
@@ -14,8 +14,8 @@ export declare function forceNewLevelCallback(): void;
14
14
  * callback.
15
15
  *
16
16
  * If some specific cases, mods can change the current room during run initialization on the 0th
17
- * frame. However, due to how the callback reordering works, the custom PostNewRoom callback will
18
- * never fire on the 0th frame. To get around this, call this function before changing rooms to
17
+ * frame. However, due to how the callback reordering works, the custom `POST_NEW_ROOM` callback
18
+ * will never fire on the 0th frame. To get around this, call this function before changing rooms to
19
19
  * temporarily force the callback to fire.
20
20
  */
21
21
  export declare function forceNewRoomCallback(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"reorderedCallbacks.d.ts","sourceRoot":"","sources":["../../src/callbacks/reorderedCallbacks.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,UAAU,EAEV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAgItC;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,GACnB,IAAI,CAGN"}
1
+ {"version":3,"file":"reorderedCallbacks.d.ts","sourceRoot":"","sources":["../../src/callbacks/reorderedCallbacks.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,UAAU,EAEV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAiItC;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,GACnB,IAAI,CAGN"}
@@ -90,9 +90,9 @@ end
90
90
  -- callback.
91
91
  --
92
92
  -- If some specific cases, mods can change the current level during run initialization on the 0th
93
- -- frame. However, due to how the callback reordering works, the custom PostNewLevel callback will
94
- -- never fire on the 0th frame. To get around this, call this function before changing levels to
95
- -- temporarily force the callback to fire.
93
+ -- frame. However, due to how the callback reordering works, the custom `POST_NEW_LEVEL` callback
94
+ -- will never fire on the 0th frame. To get around this, call this function before changing levels
95
+ -- to temporarily force the callback to fire.
96
96
  function ____exports.forceNewLevelCallback(self)
97
97
  forceNewLevel = true
98
98
  end
@@ -100,8 +100,8 @@ end
100
100
  -- callback.
101
101
  --
102
102
  -- If some specific cases, mods can change the current room during run initialization on the 0th
103
- -- frame. However, due to how the callback reordering works, the custom PostNewRoom callback will
104
- -- never fire on the 0th frame. To get around this, call this function before changing rooms to
103
+ -- frame. However, due to how the callback reordering works, the custom `POST_NEW_ROOM` callback
104
+ -- will never fire on the 0th frame. To get around this, call this function before changing rooms to
105
105
  -- temporarily force the callback to fire.
106
106
  function ____exports.forceNewRoomCallback(self)
107
107
  forceNewRoom = true
@@ -1,5 +1,5 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  export declare type PostFirstFlipRegisterParameters = [
3
- callback: (player: EntityPlayer) => void
3
+ callback: (newLazarus: EntityPlayer, oldLazarus: EntityPlayer) => void
4
4
  ];
5
5
  //# sourceMappingURL=postFirstFlip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postFirstFlip.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postFirstFlip.ts"],"names":[],"mappings":";AAAA,oBAAY,+BAA+B,GAAG;IAC5C,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI;CACzC,CAAC"}
1
+ {"version":3,"file":"postFirstFlip.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postFirstFlip.ts"],"names":[],"mappings":";AAAA,oBAAY,+BAA+B,GAAG;IAC5C,QAAQ,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,KAAK,IAAI;CACvE,CAAC"}
@@ -13,10 +13,10 @@ function ____exports.postFirstFlipRegister(self, ...)
13
13
  end
14
14
  ---
15
15
  -- @internal
16
- function ____exports.postFirstFlipFire(self, player)
16
+ function ____exports.postFirstFlipFire(self, newLazarus, oldLazarus)
17
17
  for ____, ____value in ipairs(subscriptions) do
18
18
  local callback = ____value[1]
19
- callback(nil, player)
19
+ callback(nil, newLazarus, oldLazarus)
20
20
  end
21
21
  end
22
22
  return ____exports
@@ -1,5 +1,5 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  export declare type PostFlipRegisterParameters = [
3
- callback: (player: EntityPlayer) => void
3
+ callback: (newLazarus: EntityPlayer, oldLazarus: EntityPlayer) => void
4
4
  ];
5
5
  //# sourceMappingURL=postFlip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postFlip.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postFlip.ts"],"names":[],"mappings":";AAAA,oBAAY,0BAA0B,GAAG;IACvC,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI;CACzC,CAAC"}
1
+ {"version":3,"file":"postFlip.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postFlip.ts"],"names":[],"mappings":";AAAA,oBAAY,0BAA0B,GAAG;IACvC,QAAQ,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,KAAK,IAAI;CACvE,CAAC"}
@@ -13,10 +13,10 @@ function ____exports.postFlipRegister(self, ...)
13
13
  end
14
14
  ---
15
15
  -- @internal
16
- function ____exports.postFlipFire(self, player)
16
+ function ____exports.postFlipFire(self, newLazarus, oldLazarus)
17
17
  for ____, ____value in ipairs(subscriptions) do
18
18
  local callback = ____value[1]
19
- callback(nil, player)
19
+ callback(nil, newLazarus, oldLazarus)
20
20
  end
21
21
  end
22
22
  return ____exports
@@ -0,0 +1,6 @@
1
+ import { GridEntityType } from "isaac-typescript-definitions";
2
+ export declare type PostGridEntityCustomRenderRegisterParameters = [
3
+ callback: (gridEntity: GridEntity, gridEntityTypeCustom: GridEntityType) => void,
4
+ gridEntityTypeCustom?: GridEntityType
5
+ ];
6
+ //# sourceMappingURL=postGridEntityCustomRender.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postGridEntityCustomRender.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postGridEntityCustomRender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,oBAAY,4CAA4C,GAAG;IACzD,QAAQ,EAAE,CACR,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAAE,cAAc,KACjC,IAAI;IACT,oBAAoB,CAAC,EAAE,cAAc;CACtC,CAAC"}
@@ -0,0 +1,29 @@
1
+ local ____exports = {}
2
+ local subscriptions = {}
3
+ ---
4
+ -- @internal
5
+ function ____exports.postGridEntityCustomRenderHasSubscriptions(self)
6
+ return #subscriptions > 0
7
+ end
8
+ ---
9
+ -- @internal
10
+ function ____exports.postGridEntityCustomRenderRegister(self, ...)
11
+ local args = {...}
12
+ subscriptions[#subscriptions + 1] = args
13
+ end
14
+ ---
15
+ -- @internal
16
+ function ____exports.postGridEntityCustomRenderFire(self, gridEntity, gridEntityTypeCustom)
17
+ for ____, ____value in ipairs(subscriptions) do
18
+ local callback = ____value[1]
19
+ local callbackGridEntityTypeCustom = ____value[2]
20
+ do
21
+ if callbackGridEntityTypeCustom ~= nil and callbackGridEntityTypeCustom ~= gridEntityTypeCustom then
22
+ goto __continue5
23
+ end
24
+ callback(nil, gridEntity, gridEntityTypeCustom)
25
+ end
26
+ ::__continue5::
27
+ end
28
+ end
29
+ return ____exports
@@ -0,0 +1,6 @@
1
+ import { GridEntityType } from "isaac-typescript-definitions";
2
+ export declare type PostGridEntityCustomUpdateRegisterParameters = [
3
+ callback: (gridEntity: GridEntity, gridEntityTypeCustom: GridEntityType) => void,
4
+ gridEntityTypeCustom?: GridEntityType
5
+ ];
6
+ //# sourceMappingURL=postGridEntityCustomUpdate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postGridEntityCustomUpdate.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postGridEntityCustomUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,oBAAY,4CAA4C,GAAG;IACzD,QAAQ,EAAE,CACR,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAAE,cAAc,KACjC,IAAI;IACT,oBAAoB,CAAC,EAAE,cAAc;CACtC,CAAC"}
@@ -0,0 +1,29 @@
1
+ local ____exports = {}
2
+ local subscriptions = {}
3
+ ---
4
+ -- @internal
5
+ function ____exports.postGridEntityCustomUpdateHasSubscriptions(self)
6
+ return #subscriptions > 0
7
+ end
8
+ ---
9
+ -- @internal
10
+ function ____exports.postGridEntityCustomUpdateRegister(self, ...)
11
+ local args = {...}
12
+ subscriptions[#subscriptions + 1] = args
13
+ end
14
+ ---
15
+ -- @internal
16
+ function ____exports.postGridEntityCustomUpdateFire(self, gridEntity, gridEntityTypeCustom)
17
+ for ____, ____value in ipairs(subscriptions) do
18
+ local callback = ____value[1]
19
+ local callbackGridEntityTypeCustom = ____value[2]
20
+ do
21
+ if callbackGridEntityTypeCustom ~= nil and callbackGridEntityTypeCustom ~= gridEntityTypeCustom then
22
+ goto __continue5
23
+ end
24
+ callback(nil, gridEntity, gridEntityTypeCustom)
25
+ end
26
+ ::__continue5::
27
+ end
28
+ end
29
+ return ____exports
@@ -1,4 +1,4 @@
1
- import { CollectibleType, ItemPoolType, LevelStage, RoomType } from "isaac-typescript-definitions";
1
+ import { CollectibleType, ItemPoolType } from "isaac-typescript-definitions";
2
2
  /**
3
3
  * The distance of the laser when Azazel does not have any range up items yet. For more info, see
4
4
  * the documentation for the `getAzazelBrimstoneDistance` function.
@@ -78,8 +78,6 @@ export declare const MAX_PLAYER_TRINKET_SLOTS: number;
78
78
  export declare const MIN_PLAYER_SHOT_SPEED_STAT = 0.6;
79
79
  /** If you set `EntityPlayer.Speed` lower than this value, it will have no effect. */
80
80
  export declare const MIN_PLAYER_SPEED_STAT = 0.1;
81
- export declare const FIRST_ROOM_TYPE = RoomType.DEFAULT;
82
- export declare const LAST_ROOM_TYPE: RoomType;
83
81
  /**
84
82
  * The maximum speed stat that a player can have. Any additional speed beyond this will not take
85
83
  * effect.
@@ -94,8 +92,6 @@ export declare const NEW_FLOOR_STARTING_POSITION_GREED_MODE: Vector;
94
92
  * (like they do when getting to a new stage) so that the controls graphic is more visible.
95
93
  */
96
94
  export declare const NEW_RUN_PLAYER_STARTING_POSITION: Vector;
97
- export declare const FIRST_STAGE = LevelStage.BASEMENT_1;
98
- export declare const LAST_STAGE: LevelStage;
99
95
  /** Corresponds to the maximum value for `EntityPlayer.SamsonBerserkCharge`. */
100
96
  export declare const MAX_TAINTED_SAMSON_BERSERK_CHARGE = 100000;
101
97
  export declare const NUM_DIMENSIONS: number;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAEf,YAAY,EACZ,UAAU,EACV,QAAQ,EAET,MAAM,8BAA8B,CAAC;AAItC;;;GAGG;AACH,eAAO,MAAM,iCAAiC,SAAS,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,4CAA4C,CAAC;AAE7E,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,oGAAoG;AACpG,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,eAAO,MA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,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,sBAAsB,QAA8B,CAAC;AAElE,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,6FAA6F;AAC7F,eAAO,MAAM,gDAAgD,QAAQ,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAgB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAgB,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAkB,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAsB,CAAC"}
@@ -2,14 +2,11 @@ local ____exports = {}
2
2
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
3
3
  local Dimension = ____isaac_2Dtypescript_2Ddefinitions.Dimension
4
4
  local ItemPoolType = ____isaac_2Dtypescript_2Ddefinitions.ItemPoolType
5
- local LevelStage = ____isaac_2Dtypescript_2Ddefinitions.LevelStage
6
- local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
7
5
  local TrinketSlot = ____isaac_2Dtypescript_2Ddefinitions.TrinketSlot
8
6
  local ____constantsFirstLast = require("constantsFirstLast")
9
7
  local NUM_NORMAL_PILL_COLORS = ____constantsFirstLast.NUM_NORMAL_PILL_COLORS
10
8
  local ____enums = require("functions.enums")
11
9
  local getEnumLength = ____enums.getEnumLength
12
- local getLastEnumValue = ____enums.getLastEnumValue
13
10
  --- The distance of the laser when Azazel does not have any range up items yet. For more info, see
14
11
  -- the documentation for the `getAzazelBrimstoneDistance` function.
15
12
  ____exports.AZAZEL_DEFAULT_BRIMSTONE_DISTANCE = 75.125
@@ -69,8 +66,6 @@ ____exports.MAX_PLAYER_TRINKET_SLOTS = getEnumLength(nil, TrinketSlot)
69
66
  ____exports.MIN_PLAYER_SHOT_SPEED_STAT = 0.6
70
67
  --- If you set `EntityPlayer.Speed` lower than this value, it will have no effect.
71
68
  ____exports.MIN_PLAYER_SPEED_STAT = 0.1
72
- ____exports.FIRST_ROOM_TYPE = RoomType.DEFAULT
73
- ____exports.LAST_ROOM_TYPE = getLastEnumValue(nil, RoomType)
74
69
  --- The maximum speed stat that a player can have. Any additional speed beyond this will not take
75
70
  -- effect.
76
71
  ____exports.MAX_SPEED_STAT = 2
@@ -81,8 +76,6 @@ ____exports.NEW_FLOOR_STARTING_POSITION_GREED_MODE = Vector(320, 280)
81
76
  --- This is next to the bottom door. Presumably, the player does not start in the center of the room
82
77
  -- (like they do when getting to a new stage) so that the controls graphic is more visible.
83
78
  ____exports.NEW_RUN_PLAYER_STARTING_POSITION = Vector(320, 380)
84
- ____exports.FIRST_STAGE = LevelStage.BASEMENT_1
85
- ____exports.LAST_STAGE = getLastEnumValue(nil, LevelStage)
86
79
  --- Corresponds to the maximum value for `EntityPlayer.SamsonBerserkCharge`.
87
80
  ____exports.MAX_TAINTED_SAMSON_BERSERK_CHARGE = 100000
88
81
  ____exports.NUM_DIMENSIONS = getEnumLength(nil, Dimension) - 1
@@ -1,4 +1,4 @@
1
- import { Card, CollectibleType, PillColor, PillEffect, PlayerType, TrinketType } from "isaac-typescript-definitions";
1
+ import { Card, CollectibleType, LevelStage, PillColor, PillEffect, PlayerType, RoomType, TrinketType } from "isaac-typescript-definitions";
2
2
  /** Equal to `CollectibleType.SAD_ONION`. */
3
3
  export declare const FIRST_COLLECTIBLE_TYPE = CollectibleType.SAD_ONION;
4
4
  /**
@@ -128,4 +128,8 @@ export declare const LAST_VANILLA_CHARACTER: PlayerType;
128
128
  * If there are no modded characters, this constant will represent a character that does not exist.
129
129
  */
130
130
  export declare const FIRST_MODDED_CHARACTER: PlayerType;
131
+ export declare const FIRST_ROOM_TYPE = RoomType.DEFAULT;
132
+ export declare const LAST_ROOM_TYPE: RoomType;
133
+ export declare const FIRST_STAGE = LevelStage.BASEMENT_1;
134
+ export declare const LAST_STAGE: LevelStage;
131
135
  //# sourceMappingURL=constantsFirstLast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constantsFirstLast.d.ts","sourceRoot":"","sources":["../src/constantsFirstLast.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,eAAe,EACf,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACZ,MAAM,8BAA8B,CAAC;AAQtC,4CAA4C;AAC5C,eAAO,MAAM,sBAAsB,4BAA4B,CAAC;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,iBACX,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,iBAAoC,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,6BAA6B,iBACuB,CAAC;AAElE,0FAA0F;AAC1F,eAAO,MAAM,6BAA6B,QAAqC,CAAC;AAEhF,wFAAwF;AACxF,eAAO,MAAM,4BAA4B,QACc,CAAC;AAExD,eAAO,MAAM,qBAAqB,QAC4B,CAAC;AAM/D;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,QAAoC,CAAC;AAEnE,kFAAkF;AAClF,eAAO,MAAM,yBAAyB,QAAiC,CAAC;AAExE,eAAO,MAAM,wBAAwB,QACU,CAAC;AAEhD,8CAA8C;AAC9C,eAAO,MAAM,kBAAkB,8BAA8B,CAAC;AAE9D;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,aAAmC,CAAC;AAElE,8CAA8C;AAC9C,eAAO,MAAM,yBAAyB,aAAgC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,yBAAyB,aACnB,CAAC;AAMpB;;;;GAIG;AACH,eAAO,MAAM,SAAS,QAAiC,CAAC;AAExD,oEAAoE;AACpE,eAAO,MAAM,iBAAiB,QAA0B,CAAC;AAEzD,eAAO,MAAM,gBAAgB,QAAgC,CAAC;AAE9D,4BAA4B;AAC5B,eA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E9C,qCAAqC;AACrC,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AAEpD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,YAAiC,CAAC;AAE/D,6CAA6C;AAC7C,eAAO,MAAM,wBAAwB,YAA+B,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,wBAAwB,YACnB,CAAC;AAMnB,sCAAsC;AACtC,eAAO,MAAM,gBAAgB,sBAAsB,CAAC;AAEpD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,yBAAyB,CAAC;AAE7D,4CAA4C;AAC5C,eAAO,MAAM,sBAAsB,4BAA4B,CAAC;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,+BAA+B,CAAC;AAElE,eAAO,MAAM,sBAAsB,QAA4C,CAAC;AAMhF,mCAAmC;AACnC,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAIhD,6CAA6C;AAC7C,eAAO,MAAM,sBAAsB,YAA+B,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,sBAAsB,YACjB,CAAC;AAMnB,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,cAAc,UAA6B,CAAC;AAMzD,eAAO,MAAM,WAAW,wBAAwB,CAAC;AACjD,eAAO,MAAM,UAAU,YAA+B,CAAC"}
@@ -2,9 +2,11 @@ local ____exports = {}
2
2
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
3
3
  local Card = ____isaac_2Dtypescript_2Ddefinitions.Card
4
4
  local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
5
+ local LevelStage = ____isaac_2Dtypescript_2Ddefinitions.LevelStage
5
6
  local PillColor = ____isaac_2Dtypescript_2Ddefinitions.PillColor
6
7
  local PillEffect = ____isaac_2Dtypescript_2Ddefinitions.PillEffect
7
8
  local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
9
+ local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
8
10
  local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
9
11
  local ____cachedClasses = require("cachedClasses")
10
12
  local itemConfig = ____cachedClasses.itemConfig
@@ -110,4 +112,8 @@ ____exports.FIRST_CHARACTER = PlayerType.ISAAC
110
112
  ____exports.LAST_VANILLA_CHARACTER = getLastEnumValue(nil, PlayerType)
111
113
  --- If there are no modded characters, this constant will represent a character that does not exist.
112
114
  ____exports.FIRST_MODDED_CHARACTER = ____exports.LAST_VANILLA_CHARACTER + 1
115
+ ____exports.FIRST_ROOM_TYPE = RoomType.DEFAULT
116
+ ____exports.LAST_ROOM_TYPE = getLastEnumValue(nil, RoomType)
117
+ ____exports.FIRST_STAGE = LevelStage.BASEMENT_1
118
+ ____exports.LAST_STAGE = getLastEnumValue(nil, LevelStage)
113
119
  return ____exports