isaacscript-common 2.3.1 → 3.1.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 (327) hide show
  1. package/cachedClasses.d.ts +6 -4
  2. package/cachedClasses.lua +24 -0
  3. package/callbacks/customRevive.lua +2 -0
  4. package/callbacks/itemPickup.lua +2 -0
  5. package/callbacks/postBombInitLate.lua +2 -0
  6. package/callbacks/postBoneSwing.lua +2 -0
  7. package/callbacks/postCollectibleInitFirst.lua +2 -0
  8. package/callbacks/postCursedTeleport.lua +2 -0
  9. package/callbacks/postCustomDoorEnter.lua +44 -0
  10. package/callbacks/postDoorRender.lua +2 -0
  11. package/callbacks/postDoorUpdate.lua +2 -0
  12. package/callbacks/postEffectInitLate.lua +2 -0
  13. package/callbacks/postEffectStateChanged.lua +2 -0
  14. package/callbacks/postEsauJr.lua +2 -0
  15. package/callbacks/postFamiliarInitLate.lua +2 -0
  16. package/callbacks/postFamiliarStateChanged.lua +2 -0
  17. package/callbacks/postFlip.lua +2 -0
  18. package/callbacks/postGreedModeWave.lua +2 -0
  19. package/callbacks/postGridEntity.lua +2 -0
  20. package/callbacks/postGridEntityCollision.lua +2 -0
  21. package/callbacks/postGridEntityRender.lua +2 -0
  22. package/callbacks/postHolyMantleRemoved.lua +2 -0
  23. package/callbacks/postKnifeInitLate.lua +2 -0
  24. package/callbacks/postLaserInitLate.lua +2 -0
  25. package/callbacks/postNPCInitLate.lua +2 -0
  26. package/callbacks/postNPCStateChanged.lua +2 -0
  27. package/callbacks/postNewRoomEarly.lua +2 -0
  28. package/callbacks/postPickupCollect.lua +2 -0
  29. package/callbacks/postPickupInitLate.lua +2 -0
  30. package/callbacks/postPickupStateChanged.lua +2 -0
  31. package/callbacks/postPitRender.lua +2 -0
  32. package/callbacks/postPitUpdate.lua +2 -0
  33. package/callbacks/postPlayerChangeHealth.lua +2 -0
  34. package/callbacks/postPlayerChangeType.lua +2 -0
  35. package/callbacks/postPlayerFatalDamage.lua +2 -0
  36. package/callbacks/postPlayerInitLate.lua +2 -0
  37. package/callbacks/postPlayerReordered.lua +2 -0
  38. package/callbacks/postPoopRender.lua +2 -0
  39. package/callbacks/postPoopUpdate.lua +2 -0
  40. package/callbacks/postPressurePlateRender.lua +2 -0
  41. package/callbacks/postPressurePlateUpdate.lua +2 -0
  42. package/callbacks/postProjectileInitLate.lua +2 -0
  43. package/callbacks/postPurchase.lua +2 -0
  44. package/callbacks/postRockRender.lua +2 -0
  45. package/callbacks/postRockUpdate.lua +2 -0
  46. package/callbacks/postRoomClearChanged.lua +2 -0
  47. package/callbacks/postSacrifice.lua +2 -0
  48. package/callbacks/postSlotDestroyed.d.ts +1 -0
  49. package/callbacks/postSlotDestroyed.lua +66 -0
  50. package/callbacks/postSlotInitUpdate.lua +2 -0
  51. package/callbacks/postSlotRender.lua +5 -21
  52. package/callbacks/postSpikesRender.lua +2 -0
  53. package/callbacks/postSpikesUpdate.lua +2 -0
  54. package/callbacks/postTNTRender.lua +2 -0
  55. package/callbacks/postTNTUpdate.lua +2 -0
  56. package/callbacks/postTearInitLate.lua +2 -0
  57. package/callbacks/postTearInitVeryLate.lua +2 -0
  58. package/callbacks/postTransformation.lua +2 -0
  59. package/callbacks/postTrinketBreak.lua +2 -0
  60. package/callbacks/preBerserkDeath.lua +2 -0
  61. package/callbacks/preNewLevel.lua +2 -0
  62. package/callbacks/reorderedCallbacks.lua +16 -0
  63. package/callbacks/subscriptions/postBombInitLate.lua +6 -0
  64. package/callbacks/subscriptions/postBoneSwing.lua +6 -0
  65. package/callbacks/subscriptions/postCollectibleInitFirst.lua +6 -0
  66. package/callbacks/subscriptions/postCursedTeleport.lua +6 -0
  67. package/callbacks/subscriptions/postCustomDoorEnter.lua +6 -0
  68. package/callbacks/subscriptions/postCustomRevive.d.ts +1 -0
  69. package/callbacks/subscriptions/postCustomRevive.lua +6 -0
  70. package/callbacks/subscriptions/postDoorRender.d.ts +1 -0
  71. package/callbacks/subscriptions/postDoorRender.lua +6 -0
  72. package/callbacks/subscriptions/postDoorUpdate.d.ts +1 -0
  73. package/callbacks/subscriptions/postDoorUpdate.lua +6 -0
  74. package/callbacks/subscriptions/postEffectInitLate.lua +6 -0
  75. package/callbacks/subscriptions/postEffectStateChanged.lua +6 -0
  76. package/callbacks/subscriptions/postEsauJr.lua +6 -0
  77. package/callbacks/subscriptions/postFamiliarInitLate.lua +6 -0
  78. package/callbacks/subscriptions/postFamiliarStateChanged.lua +6 -0
  79. package/callbacks/subscriptions/postFirstEsauJr.lua +6 -0
  80. package/callbacks/subscriptions/postFirstFlip.lua +6 -0
  81. package/callbacks/subscriptions/postFlip.lua +6 -0
  82. package/callbacks/subscriptions/postGameStartedReordered.lua +6 -0
  83. package/callbacks/subscriptions/postGreedModeWave.lua +6 -0
  84. package/callbacks/subscriptions/postGridEntityBroken.lua +6 -0
  85. package/callbacks/subscriptions/postGridEntityCollision.lua +6 -0
  86. package/callbacks/subscriptions/postGridEntityInit.lua +6 -0
  87. package/callbacks/subscriptions/postGridEntityRemove.lua +6 -0
  88. package/callbacks/subscriptions/postGridEntityRender.lua +6 -0
  89. package/callbacks/subscriptions/postGridEntityStateChanged.lua +6 -0
  90. package/callbacks/subscriptions/postGridEntityUpdate.lua +6 -0
  91. package/callbacks/subscriptions/postHolyMantleRemoved.lua +6 -0
  92. package/callbacks/subscriptions/postItemDischarged.lua +6 -0
  93. package/callbacks/subscriptions/postItemPickup.lua +6 -0
  94. package/callbacks/subscriptions/postKnifeInitLate.lua +6 -0
  95. package/callbacks/subscriptions/postLaserInitLate.lua +6 -0
  96. package/callbacks/subscriptions/postNPCInitLate.lua +6 -0
  97. package/callbacks/subscriptions/postNPCStateChanged.lua +6 -0
  98. package/callbacks/subscriptions/postNewLevelReordered.lua +6 -0
  99. package/callbacks/subscriptions/postNewRoomEarly.lua +6 -0
  100. package/callbacks/subscriptions/postNewRoomReordered.lua +6 -0
  101. package/callbacks/subscriptions/postPEffectUpdateReordered.lua +6 -0
  102. package/callbacks/subscriptions/postPickupCollect.d.ts +1 -0
  103. package/callbacks/subscriptions/postPickupCollect.lua +6 -0
  104. package/callbacks/subscriptions/postPickupInitLate.lua +6 -0
  105. package/callbacks/subscriptions/postPickupStateChanged.d.ts +1 -0
  106. package/callbacks/subscriptions/postPickupStateChanged.lua +6 -0
  107. package/callbacks/subscriptions/postPitRender.d.ts +1 -0
  108. package/callbacks/subscriptions/postPitRender.lua +6 -0
  109. package/callbacks/subscriptions/postPitUpdate.d.ts +1 -0
  110. package/callbacks/subscriptions/postPitUpdate.lua +6 -0
  111. package/callbacks/subscriptions/postPlayerChangeHealth.lua +6 -0
  112. package/callbacks/subscriptions/postPlayerChangeType.lua +6 -0
  113. package/callbacks/subscriptions/postPlayerFatalDamage.lua +6 -0
  114. package/callbacks/subscriptions/postPlayerInitLate.lua +6 -0
  115. package/callbacks/subscriptions/postPlayerInitReordered.lua +6 -0
  116. package/callbacks/subscriptions/postPlayerRenderReordered.lua +6 -0
  117. package/callbacks/subscriptions/postPlayerUpdateReordered.lua +6 -0
  118. package/callbacks/subscriptions/postPoopRender.d.ts +1 -0
  119. package/callbacks/subscriptions/postPoopRender.lua +6 -0
  120. package/callbacks/subscriptions/postPoopUpdate.d.ts +1 -0
  121. package/callbacks/subscriptions/postPoopUpdate.lua +6 -0
  122. package/callbacks/subscriptions/postPressurePlateRender.d.ts +1 -0
  123. package/callbacks/subscriptions/postPressurePlateRender.lua +6 -0
  124. package/callbacks/subscriptions/postPressurePlateUpdate.d.ts +1 -0
  125. package/callbacks/subscriptions/postPressurePlateUpdate.lua +6 -0
  126. package/callbacks/subscriptions/postProjectileInitLate.lua +6 -0
  127. package/callbacks/subscriptions/postPurchase.lua +6 -0
  128. package/callbacks/subscriptions/postRockRender.d.ts +1 -0
  129. package/callbacks/subscriptions/postRockRender.lua +6 -0
  130. package/callbacks/subscriptions/postRockUpdate.d.ts +1 -0
  131. package/callbacks/subscriptions/postRockUpdate.lua +6 -0
  132. package/callbacks/subscriptions/postRoomClearChanged.lua +6 -0
  133. package/callbacks/subscriptions/postSacrifice.lua +6 -0
  134. package/callbacks/subscriptions/postSlotAnimationChanged.lua +6 -0
  135. package/callbacks/subscriptions/postSlotDestroyed.lua +6 -0
  136. package/callbacks/subscriptions/postSlotInit.lua +6 -0
  137. package/callbacks/subscriptions/postSlotRender.lua +6 -0
  138. package/callbacks/subscriptions/postSlotUpdate.lua +6 -0
  139. package/callbacks/subscriptions/postSpikesRender.d.ts +1 -0
  140. package/callbacks/subscriptions/postSpikesRender.lua +6 -0
  141. package/callbacks/subscriptions/postSpikesUpdate.d.ts +1 -0
  142. package/callbacks/subscriptions/postSpikesUpdate.lua +6 -0
  143. package/callbacks/subscriptions/postTNTRender.d.ts +1 -0
  144. package/callbacks/subscriptions/postTNTRender.lua +6 -0
  145. package/callbacks/subscriptions/postTNTUpdate.d.ts +1 -0
  146. package/callbacks/subscriptions/postTNTUpdate.lua +6 -0
  147. package/callbacks/subscriptions/postTearInitLate.lua +6 -0
  148. package/callbacks/subscriptions/postTearInitVeryLate.lua +6 -0
  149. package/callbacks/subscriptions/postTransformation.lua +6 -0
  150. package/callbacks/subscriptions/postTrinketBreak.lua +6 -0
  151. package/callbacks/subscriptions/preBerserkDeath.lua +6 -0
  152. package/callbacks/subscriptions/preCustomRevive.lua +6 -0
  153. package/callbacks/subscriptions/preItemPickup.lua +6 -0
  154. package/callbacks/subscriptions/preNewLevel.lua +6 -0
  155. package/classes/DefaultMap.d.ts +70 -39
  156. package/classes/DefaultMap.lua +94 -43
  157. package/classes/ModUpgraded.d.ts +3 -3
  158. package/classes/ModUpgraded.lua +5 -0
  159. package/constants.lua +41 -0
  160. package/constantsFirstLast.lua +63 -0
  161. package/enums/HealthType.lua +3 -0
  162. package/enums/ModCallbackCustom.d.ts +1 -1
  163. package/enums/ModCallbackCustom.lua +6 -0
  164. package/enums/private/CopyableIsaacAPIClassType.lua +1 -0
  165. package/enums/private/SerializationBrand.lua +5 -0
  166. package/features/characterHealthConversion.lua +6 -0
  167. package/features/characterStats.lua +17 -0
  168. package/features/debugDisplay/exports.d.ts +17 -0
  169. package/features/debugDisplay/exports.lua +90 -0
  170. package/features/debugDisplay/v.d.ts +17 -0
  171. package/features/deployJSONRoom.d.ts +1 -0
  172. package/features/deployJSONRoom.lua +56 -0
  173. package/features/disableInputs.lua +45 -0
  174. package/features/disableSound.lua +14 -0
  175. package/features/extraConsoleCommands/commandsDisplay.lua +90 -0
  176. package/features/extraConsoleCommands/init.lua +16 -0
  177. package/features/extraConsoleCommands/listCommands.lua +172 -0
  178. package/features/fadeInRemover.lua +10 -0
  179. package/features/fastReset.lua +10 -0
  180. package/features/forgottenSwitch.lua +4 -0
  181. package/features/getCollectibleItemPoolType.lua +5 -0
  182. package/features/playerInventory.lua +18 -0
  183. package/features/ponyDetection.lua +4 -0
  184. package/features/preventCollectibleRotation.lua +9 -0
  185. package/features/runInNFrames.lua +50 -0
  186. package/features/saveDataManager/constants.lua +1 -0
  187. package/features/saveDataManager/exports.lua +115 -0
  188. package/features/saveDataManager/load.lua +12 -8
  189. package/features/saveDataManager/main.lua +16 -3
  190. package/features/saveDataManager/maps.lua +3 -0
  191. package/features/saveDataManager/merge.lua +53 -21
  192. package/features/saveDataManager/save.lua +12 -7
  193. package/features/sirenHelpers.lua +13 -0
  194. package/features/taintedLazarusPlayers.lua +11 -0
  195. package/featuresInitialized.lua +6 -0
  196. package/functions/array.d.ts +2 -0
  197. package/functions/array.lua +85 -0
  198. package/functions/benchmark.lua +6 -0
  199. package/functions/boss.lua +35 -0
  200. package/functions/cacheFlag.lua +4 -0
  201. package/functions/cards.lua +60 -0
  202. package/functions/challenges.lua +1 -0
  203. package/functions/character.lua +23 -0
  204. package/functions/charge.lua +39 -0
  205. package/functions/chargeBar.d.ts +1 -0
  206. package/functions/chargeBar.lua +4 -0
  207. package/functions/collectibleCacheFlag.lua +15 -0
  208. package/functions/collectibleSet.lua +3 -0
  209. package/functions/collectibleTag.lua +9 -0
  210. package/functions/collectibles.d.ts +6 -1
  211. package/functions/collectibles.lua +146 -2
  212. package/functions/color.lua +18 -0
  213. package/functions/debug.lua +18 -0
  214. package/functions/deepCopy.lua +60 -26
  215. package/functions/deepCopyTests.lua +8 -5
  216. package/functions/direction.d.ts +1 -0
  217. package/functions/direction.lua +22 -0
  218. package/functions/doors.d.ts +1 -0
  219. package/functions/doors.lua +58 -0
  220. package/functions/entity.d.ts +4 -4
  221. package/functions/entity.lua +94 -6
  222. package/functions/entitySpecific.d.ts +20 -20
  223. package/functions/entitySpecific.lua +182 -0
  224. package/functions/entityTypes.d.ts +1 -1
  225. package/functions/entityTypes.lua +1 -0
  226. package/functions/enums.d.ts +2 -0
  227. package/functions/enums.lua +62 -0
  228. package/functions/familiars.lua +52 -0
  229. package/functions/flag.lua +77 -0
  230. package/functions/flying.lua +10 -0
  231. package/functions/globals.lua +8 -10
  232. package/functions/gridEntity.lua +105 -0
  233. package/functions/gridEntitySpecific.d.ts +5 -0
  234. package/functions/gridEntitySpecific.lua +8 -0
  235. package/functions/input.lua +11 -0
  236. package/functions/isaacAPIClass.d.ts +4 -4
  237. package/functions/isaacAPIClass.lua +15 -3
  238. package/functions/jsonHelpers.lua +11 -0
  239. package/functions/jsonRoom.d.ts +2 -0
  240. package/functions/jsonRoom.lua +5 -0
  241. package/functions/kColor.lua +9 -0
  242. package/functions/language.lua +5 -0
  243. package/functions/log.lua +31 -3
  244. package/functions/map.lua +18 -0
  245. package/functions/math.lua +26 -0
  246. package/functions/npc.lua +24 -0
  247. package/functions/pickupVariants.d.ts +11 -11
  248. package/functions/pickupVariants.lua +11 -0
  249. package/functions/pickups.d.ts +9 -9
  250. package/functions/pickups.lua +67 -0
  251. package/functions/pills.lua +45 -0
  252. package/functions/player.lua +166 -0
  253. package/functions/playerDataStructures.lua +65 -0
  254. package/functions/playerHealth.d.ts +1 -0
  255. package/functions/playerHealth.lua +10 -0
  256. package/functions/playerIndex.d.ts +2 -0
  257. package/functions/playerIndex.lua +47 -0
  258. package/functions/pocketItems.lua +18 -0
  259. package/functions/positionVelocity.d.ts +3 -0
  260. package/functions/positionVelocity.lua +46 -0
  261. package/functions/random.d.ts +2 -0
  262. package/functions/random.lua +32 -0
  263. package/functions/revive.d.ts +2 -0
  264. package/functions/revive.lua +15 -0
  265. package/functions/rng.d.ts +1 -0
  266. package/functions/rng.lua +19 -0
  267. package/functions/roomData.lua +68 -0
  268. package/functions/roomGrid.lua +21 -0
  269. package/functions/roomShape.lua +22 -0
  270. package/functions/rooms.lua +100 -0
  271. package/functions/run.lua +5 -0
  272. package/functions/seeds.lua +4 -0
  273. package/functions/serialization.lua +6 -2
  274. package/functions/set.d.ts +1 -0
  275. package/functions/set.lua +22 -0
  276. package/functions/spawnCollectible.lua +24 -0
  277. package/functions/sprite.d.ts +2 -0
  278. package/functions/sprite.lua +25 -0
  279. package/functions/stage.lua +16 -0
  280. package/functions/string.lua +6 -0
  281. package/functions/table.d.ts +12 -0
  282. package/functions/table.lua +53 -0
  283. package/functions/tears.d.ts +1 -0
  284. package/functions/tears.lua +12 -0
  285. package/functions/transformations.lua +18 -0
  286. package/functions/trinketCacheFlag.lua +3 -0
  287. package/functions/trinketGive.lua +24 -0
  288. package/functions/trinkets.lua +52 -0
  289. package/functions/tstlClass.d.ts +34 -0
  290. package/functions/tstlClass.lua +63 -9
  291. package/functions/ui.d.ts +2 -0
  292. package/functions/ui.lua +16 -0
  293. package/functions/utils.d.ts +16 -0
  294. package/functions/utils.lua +108 -0
  295. package/functions/vector.lua +13 -16
  296. package/index.d.ts +1 -0
  297. package/initCustomCallbacks.lua +3 -0
  298. package/interfaces/ChargeBarSprites.d.ts +1 -0
  299. package/interfaces/private/TSTLClassMetatable.d.ts +2 -0
  300. package/lualib_bundle.lua +21 -34
  301. package/maps/cardMap.lua +1 -0
  302. package/maps/characterMap.lua +1 -0
  303. package/maps/defaultPlayerStatMap.lua +1 -0
  304. package/maps/gridEntityXMLMap.lua +2 -0
  305. package/maps/pillEffectMap.lua +1 -0
  306. package/maps/roomShapeToTopLeftWallGridIndexMap.lua +2 -0
  307. package/maps/roomTypeMap.lua +1 -0
  308. package/objects/LRoomShapeToRectangles.lua +2 -0
  309. package/objects/colors.lua +4 -0
  310. package/objects/oppositeDoorSlots.d.ts +4 -0
  311. package/objects/oppositeDoorSlots.lua +15 -0
  312. package/objects/roomShapeBounds.lua +2 -0
  313. package/objects/roomShapeLayoutSizes.lua +4 -0
  314. package/objects/roomShapeToBottomRightPosition.lua +2 -0
  315. package/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +2 -0
  316. package/objects/roomShapeToTopLeftPosition.lua +2 -0
  317. package/objects/roomShapeVolumes.lua +3 -0
  318. package/package.json +2 -2
  319. package/patchErrorFunctions.lua +8 -0
  320. package/sets/bossSets.lua +23 -0
  321. package/sets/charactersWithNoRedHeartsSet.lua +2 -0
  322. package/sets/charactersWithNoSoulHeartsSet.lua +2 -0
  323. package/sets/lostStyleCharactersSet.lua +2 -0
  324. package/types/AnyEntity.d.ts +10 -0
  325. package/types/PickingUpItem.lua +7 -0
  326. package/upgradeMod.d.ts +4 -4
  327. package/upgradeMod.lua +18 -0
@@ -4,128 +4,218 @@ local printEnabled = ____utils.printEnabled
4
4
  local ____v = require("features.debugDisplay.v")
5
5
  local v = ____v.default
6
6
  local debugDisplayTextCallbacks = ____v.debugDisplayTextCallbacks
7
+ --- After using the "playerDisplay" console command, text will be drawn on each player for debugging
8
+ -- purposes. Use this function to specify a callback function that will returns the string that
9
+ -- should be drawn.
7
10
  function ____exports.setPlayerDisplay(self, textCallback)
8
11
  debugDisplayTextCallbacks.player = textCallback
9
12
  end
13
+ --- After using the "tearDisplay" console command, text will be drawn on each tear for debugging
14
+ -- purposes. Use this function to specify a callback function that will returns the string that
15
+ -- should be drawn.
10
16
  function ____exports.setTearDisplay(self, textCallback)
11
17
  debugDisplayTextCallbacks.tear = textCallback
12
18
  end
19
+ --- After using the "familiarDisplay" console command, text will be drawn on each familiar for
20
+ -- debugging purposes. Use this function to specify a callback function that will returns the string
21
+ -- that should be drawn.
13
22
  function ____exports.setFamiliarDisplay(self, textCallback)
14
23
  debugDisplayTextCallbacks.familiar = textCallback
15
24
  end
25
+ --- After using the "bombDisplay" console command, text will be drawn on each bomb for debugging
26
+ -- purposes. Use this function to specify a callback function that will returns the string that
27
+ -- should be drawn.
16
28
  function ____exports.setBombDisplay(self, textCallback)
17
29
  debugDisplayTextCallbacks.bomb = textCallback
18
30
  end
31
+ --- After using the "pickupDisplay" console command, text will be drawn on each pickup for debugging
32
+ -- purposes. Use this function to specify a callback function that will returns the string that
33
+ -- should be drawn.
19
34
  function ____exports.setPickupDisplay(self, textCallback)
20
35
  debugDisplayTextCallbacks.pickup = textCallback
21
36
  end
37
+ --- After using the "slotDisplay" console command, text will be drawn on each slot for debugging
38
+ -- purposes. Use this function to specify a callback function that will returns the string that
39
+ -- should be drawn.
22
40
  function ____exports.setSlotDisplay(self, textCallback)
23
41
  debugDisplayTextCallbacks.slot = textCallback
24
42
  end
43
+ --- After using the "laserDisplay" console command, text will be drawn on each laser for debugging
44
+ -- purposes. Use this function to specify a callback function that will returns the string that
45
+ -- should be drawn.
25
46
  function ____exports.setLaserDisplay(self, textCallback)
26
47
  debugDisplayTextCallbacks.laser = textCallback
27
48
  end
49
+ --- After using the "knifeDisplay" console command, text will be drawn on each knife for debugging
50
+ -- purposes. Use this function to specify a callback function that will returns the string that
51
+ -- should be drawn.
28
52
  function ____exports.setKnifeDisplay(self, textCallback)
29
53
  debugDisplayTextCallbacks.knife = textCallback
30
54
  end
55
+ --- After using the "projectileDisplay" console command, text will be drawn on each projectile for
56
+ -- debugging purposes. Use this function to specify a callback function that will returns the string
57
+ -- that should be drawn.
31
58
  function ____exports.setProjectileDisplay(self, textCallback)
32
59
  debugDisplayTextCallbacks.projectile = textCallback
33
60
  end
61
+ --- After using the "effectDisplay" console command, text will be drawn on each effect for debugging
62
+ -- purposes. Use this function to specify a callback function that will returns the string that
63
+ -- should be drawn.
34
64
  function ____exports.setEffectDisplay(self, textCallback)
35
65
  debugDisplayTextCallbacks.effect = textCallback
36
66
  end
67
+ --- After using the "npcDisplay" console command, text will be drawn on each NPC for debugging
68
+ -- purposes. Use this function to specify a callback function that will returns the string that
69
+ -- should be drawn.
37
70
  function ____exports.setNPCDisplay(self, textCallback)
38
71
  debugDisplayTextCallbacks.npc = textCallback
39
72
  end
73
+ --- After using the "rockDisplay" console command, text will be drawn on each rock for debugging
74
+ -- purposes. Use this function to specify a callback function that will returns the string that
75
+ -- should be drawn.
40
76
  function ____exports.setRockDisplay(self, textCallback)
41
77
  debugDisplayTextCallbacks.rock = textCallback
42
78
  end
79
+ --- After using the "pitDisplay" console command, text will be drawn on each pit for debugging
80
+ -- purposes. Use this function to specify a callback function that will returns the string that
81
+ -- should be drawn.
43
82
  function ____exports.setPitDisplay(self, textCallback)
44
83
  debugDisplayTextCallbacks.pit = textCallback
45
84
  end
85
+ --- After using the "spikesDisplay" console command, text will be drawn on each spikes for debugging
86
+ -- purposes. Use this function to specify a callback function that will returns the string that
87
+ -- should be drawn.
46
88
  function ____exports.setSpikesDisplay(self, textCallback)
47
89
  debugDisplayTextCallbacks.spikes = textCallback
48
90
  end
91
+ --- After using the "tntDisplay" console command, text will be drawn on each TNT for debugging
92
+ -- purposes. Use this function to specify a callback function that will returns the string that
93
+ -- should be drawn.
49
94
  function ____exports.setTNTDisplay(self, textCallback)
50
95
  debugDisplayTextCallbacks.tnt = textCallback
51
96
  end
97
+ --- After using the "poopDisplay" console command, text will be drawn on each poop for debugging
98
+ -- purposes. Use this function to specify a callback function that will returns the string that
99
+ -- should be drawn.
52
100
  function ____exports.setPoopDisplay(self, textCallback)
53
101
  debugDisplayTextCallbacks.poop = textCallback
54
102
  end
103
+ --- After using the "poopDisplay" console command, text will be drawn on each poop for debugging
104
+ -- purposes. Use this function to specify a callback function that will returns the string that
105
+ -- should be drawn.
55
106
  function ____exports.setDoorDisplay(self, textCallback)
56
107
  debugDisplayTextCallbacks.door = textCallback
57
108
  end
109
+ --- After using the "pressurePlateDisplay" console command, text will be drawn on each pressure plate
110
+ -- for debugging purposes. Use this function to specify a callback function that will returns the
111
+ -- string that should be drawn.
58
112
  function ____exports.setPressurePlateDisplay(self, textCallback)
59
113
  debugDisplayTextCallbacks.pressurePlate = textCallback
60
114
  end
115
+ --- Toggles the debug display for players. This is the function that runs when you use the
116
+ -- "playerDisplay" custom console command.
61
117
  function ____exports.togglePlayerDisplay(self)
62
118
  v.run.player = not v.run.player
63
119
  printEnabled(nil, v.run.player, "player display")
64
120
  end
121
+ --- Toggles the debug display for tears. This is the function that runs when you use the
122
+ -- "tearDisplay" custom console command.
65
123
  function ____exports.toggleTearDisplay(self)
66
124
  v.run.tear = not v.run.tear
67
125
  printEnabled(nil, v.run.tear, "tear display")
68
126
  end
127
+ --- Toggles the debug display for familiars. This is the function that runs when you use the
128
+ -- "familiarDisplay" custom console command.
69
129
  function ____exports.toggleFamiliarDisplay(self)
70
130
  v.run.familiar = not v.run.familiar
71
131
  printEnabled(nil, v.run.familiar, "familiar display")
72
132
  end
133
+ --- Toggles the debug display for bombs. This is the function that runs when you use the
134
+ -- "bombDisplay" custom console command.
73
135
  function ____exports.toggleBombDisplay(self)
74
136
  v.run.bomb = not v.run.bomb
75
137
  printEnabled(nil, v.run.bomb, "bomb display")
76
138
  end
139
+ --- Toggles the debug display for pickups. This is the function that runs when you use the
140
+ -- "pickupDisplay" custom console command.
77
141
  function ____exports.togglePickupDisplay(self)
78
142
  v.run.pickup = not v.run.pickup
79
143
  printEnabled(nil, v.run.pickup, "pickup display")
80
144
  end
145
+ --- Toggles the debug display for slots. This is the function that runs when you use the
146
+ -- "slotDisplay" custom console command.
81
147
  function ____exports.toggleSlotDisplay(self)
82
148
  v.run.slot = not v.run.slot
83
149
  printEnabled(nil, v.run.slot, "slot display")
84
150
  end
151
+ --- Toggles the debug display for lasers. This is the function that runs when you use the
152
+ -- "laserDisplay" custom console command.
85
153
  function ____exports.toggleLaserDisplay(self)
86
154
  v.run.laser = not v.run.laser
87
155
  printEnabled(nil, v.run.laser, "laser display")
88
156
  end
157
+ --- Toggles the debug display for knives. This is the function that runs when you use the
158
+ -- "knifeDisplay" custom console command.
89
159
  function ____exports.toggleKnifeDisplay(self)
90
160
  v.run.knife = not v.run.knife
91
161
  printEnabled(nil, v.run.knife, "knife display")
92
162
  end
163
+ --- Toggles the debug display for projectiles. This is the function that runs when you use the
164
+ -- "projectileDisplay" custom console command.
93
165
  function ____exports.toggleProjectileDisplay(self)
94
166
  v.run.projectile = not v.run.projectile
95
167
  printEnabled(nil, v.run.projectile, "projectile display")
96
168
  end
169
+ --- Toggles the debug display for effects. This is the function that runs when you use the
170
+ -- "effectDisplay" custom console command.
97
171
  function ____exports.toggleEffectDisplay(self)
98
172
  v.run.effect = not v.run.effect
99
173
  printEnabled(nil, v.run.effect, "effect display")
100
174
  end
175
+ --- Toggles the debug display for NPCs. This is the function that runs when you use the "npcDisplay"
176
+ -- custom console command.
101
177
  function ____exports.toggleNPCDisplay(self)
102
178
  v.run.npc = not v.run.npc
103
179
  printEnabled(nil, v.run.npc, "NPC display")
104
180
  end
181
+ --- Toggles the debug display for rocks. This is the function that runs when you use the
182
+ -- "rockDisplay" custom console command.
105
183
  function ____exports.toggleRockDisplay(self)
106
184
  v.run.rock = not v.run.rock
107
185
  printEnabled(nil, v.run.rock, "rock display")
108
186
  end
187
+ --- Toggles the debug display for pits. This is the function that runs when you use the "pitDisplay"
188
+ -- custom console command.
109
189
  function ____exports.togglePitDisplay(self)
110
190
  v.run.pit = not v.run.pit
111
191
  printEnabled(nil, v.run.pit, "pit display")
112
192
  end
193
+ --- Toggles the debug display for spikes. This is the function that runs when you use the
194
+ -- "spikesDisplay" custom console command.
113
195
  function ____exports.toggleSpikesDisplay(self)
114
196
  v.run.spikes = not v.run.spikes
115
197
  printEnabled(nil, v.run.spikes, "spikes display")
116
198
  end
199
+ --- Toggles the debug display for TNT. This is the function that runs when you use the "tntDisplay"
200
+ -- custom console command.
117
201
  function ____exports.toggleTNTDisplay(self)
118
202
  v.run.tnt = not v.run.tnt
119
203
  printEnabled(nil, v.run.tnt, "TNT display")
120
204
  end
205
+ --- Toggles the debug display for poop. This is the function that runs when you use the "poopDisplay"
206
+ -- custom console command.
121
207
  function ____exports.togglePoopDisplay(self)
122
208
  v.run.poop = not v.run.poop
123
209
  printEnabled(nil, v.run.poop, "poop display")
124
210
  end
211
+ --- Toggles the debug display for doors. This is the function that runs when you use the
212
+ -- "doorDisplay" custom console command.
125
213
  function ____exports.toggleDoorDisplay(self)
126
214
  v.run.door = not v.run.door
127
215
  printEnabled(nil, v.run.door, "door display")
128
216
  end
217
+ --- Toggles the debug display for pressure plates. This is the function that runs when you use the
218
+ -- "pressurePlateDisplay" custom console command.
129
219
  function ____exports.togglePressurePlateDisplay(self)
130
220
  v.run.pressurePlate = not v.run.pressurePlate
131
221
  printEnabled(nil, v.run.pressurePlate, "pressure plate display")
@@ -1,4 +1,21 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
+ /// <reference types="isaac-typescript-definitions" />
3
+ /// <reference types="isaac-typescript-definitions" />
4
+ /// <reference types="isaac-typescript-definitions" />
5
+ /// <reference types="isaac-typescript-definitions" />
6
+ /// <reference types="isaac-typescript-definitions" />
7
+ /// <reference types="isaac-typescript-definitions" />
8
+ /// <reference types="isaac-typescript-definitions" />
9
+ /// <reference types="isaac-typescript-definitions" />
10
+ /// <reference types="isaac-typescript-definitions" />
11
+ /// <reference types="isaac-typescript-definitions" />
12
+ /// <reference types="isaac-typescript-definitions" />
13
+ /// <reference types="isaac-typescript-definitions" />
14
+ /// <reference types="isaac-typescript-definitions" />
15
+ /// <reference types="isaac-typescript-definitions" />
16
+ /// <reference types="isaac-typescript-definitions" />
17
+ /// <reference types="isaac-typescript-definitions" />
18
+ /// <reference types="isaac-typescript-definitions" />
2
19
  declare const v: {
3
20
  run: {
4
21
  player: boolean;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
+ /// <reference types="isaac-typescript-definitions" />
2
3
  import { JSONRoom } from "../interfaces/JSONRoom";
3
4
  /**
4
5
  * Helper function to deconstruct a vanilla room and set up a custom room in its place.
@@ -94,6 +94,14 @@ function respawnPersistentEntities(self)
94
94
  )
95
95
  end
96
96
  end
97
+ --- Helper function to remove all naturally spawning entities and grid entities from a room. Notably,
98
+ -- this will not remove players (1), tears (2), familiars (3), lasers (7), knives (8), projectiles
99
+ -- (9), blacklisted NPCs such as Dark Esau, charmed NPCs, friendly NPCs, persistent NPCs, most
100
+ -- effects (1000), doors, and walls.
101
+ --
102
+ -- @param fillWithDecorations Optional. Set to true to fill every grid tile with an invisible
103
+ -- decoration, which prevents vanilla entities in the room from
104
+ -- respawning the next time that the player enters. Default is false.
97
105
  function ____exports.emptyRoom(self, fillWithDecorations)
98
106
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
99
107
  local roomListIndex = getRoomListIndex(nil)
@@ -415,10 +423,33 @@ v = {level = {
415
423
  function() return {} end
416
424
  )
417
425
  }}
426
+ ---
427
+ -- @internal
418
428
  function ____exports.deployJSONRoomInit(self, mod)
419
429
  saveDataManager(nil, "deployJSONRoom", v)
420
430
  mod:AddCallback(ModCallback.POST_NEW_ROOM, postNewRoom)
421
431
  end
432
+ --- Helper function to deconstruct a vanilla room and set up a custom room in its place.
433
+ -- Specifically, this will clear the current room of all entities and grid entities, and then spawn
434
+ -- all of the entries and grid entities in the provided JSON room.
435
+ --
436
+ -- This function is meant to be used in the PostNewRoom callback.
437
+ --
438
+ -- For example:
439
+ --
440
+ -- ```ts
441
+ --
442
+ -- import customRooms from "./customRooms";
443
+ --
444
+ -- const firstJSONRoom = customRooms.rooms.room[0];
445
+ -- deployJSONRoom(firstJSONRoom);
446
+ -- ```
447
+ --
448
+ -- @param jsonRoom The JSON room to deploy. *
449
+ -- @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
450
+ -- `RNG.Next` method will be called. Default is `getRandomSeed()`.
451
+ -- @param verbose Optional. If specified, will write entries to the "log.txt" file that describe
452
+ -- what the function is doing. Default is false.
422
453
  function ____exports.deployJSONRoom(self, jsonRoom, seedOrRNG, verbose)
423
454
  if seedOrRNG == nil then
424
455
  seedOrRNG = getRandomSeed(nil)
@@ -445,6 +476,31 @@ function ____exports.deployJSONRoom(self, jsonRoom, seedOrRNG, verbose)
445
476
  fixPitGraphics(nil)
446
477
  fillRoomWithDecorations(nil)
447
478
  end
479
+ --- Helper function to deconstruct a vanilla room and set up a custom room in its place.
480
+ -- Specifically, this will clear the current room of all entities and grid entities, and then spawn
481
+ -- all of the entries and grid entities in one of the provided JSON rooms.
482
+ --
483
+ -- This function is meant to be used in the PostNewRoom callback.
484
+ --
485
+ -- Note that this function does not simply choose a random element in the provided array; it will
486
+ -- properly account for each room weight using the algorithm from:
487
+ -- https://stackoverflow.com/questions/1761626/weighted-random-numbers
488
+ --
489
+ -- For example:
490
+ --
491
+ -- ```ts
492
+ -- import customRooms from "./customRooms";
493
+ --
494
+ -- const jsonRooms = customRooms.rooms.room;
495
+ -- deployRandomJSONRoom(jsonRooms);
496
+ -- ```
497
+ --
498
+ -- @param jsonRooms An array of JSON rooms to randomly select from. In practice, this will be
499
+ -- something like.
500
+ -- @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
501
+ -- `RNG.Next` method will be called. Default is `getRandomSeed()`.
502
+ -- @param verbose Optional. If specified, will write entries to the "log.txt" file that describe
503
+ -- what the function is doing. Default is false.
448
504
  function ____exports.deployRandomJSONRoom(self, jsonRooms, seedOrRNG, verbose)
449
505
  if seedOrRNG == nil then
450
506
  seedOrRNG = getRandomSeed(nil)
@@ -49,17 +49,31 @@ v = {run = {
49
49
  disableInputsWithWhitelistMap = __TS__New(Map),
50
50
  enableInputsWithBlacklistMap = __TS__New(Map)
51
51
  }}
52
+ ---
53
+ -- @internal
52
54
  function ____exports.disableInputsInit(self, mod)
53
55
  saveDataManager(nil, "disableInputs", v)
54
56
  mod:AddCallback(ModCallback.INPUT_ACTION, isActionPressed, InputHook.IS_ACTION_PRESSED)
55
57
  mod:AddCallback(ModCallback.INPUT_ACTION, isActionTriggered, InputHook.IS_ACTION_TRIGGERED)
56
58
  mod:AddCallback(ModCallback.INPUT_ACTION, getActionValue, InputHook.GET_ACTION_VALUE)
57
59
  end
60
+ --- Helper function to enable all inputs. Use this function to set things back to normal after having
61
+ -- used one of the other helper functions to disable inputs.
62
+ --
63
+ -- @param key The name of the mod feature that is requesting the enable/disable. This is needed so
64
+ -- that multiple mod features can work in tandem.
58
65
  function ____exports.enableAllInputs(self, key)
59
66
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
60
67
  v.run.disableInputsWithWhitelistMap:delete(key)
61
68
  v.run.enableInputsWithBlacklistMap:delete(key)
62
69
  end
70
+ --- Helper function to disable all inputs. This is useful because `EntityPlayer.ControlsEnabled` can
71
+ -- be changed by the game under certain conditions.
72
+ --
73
+ -- Use the `enableAllInputs` helper function to set things back to normal.
74
+ --
75
+ -- @param key The name of the mod feature that is requesting the enable/disable. This is needed so
76
+ -- that multiple mod features can work in tandem.
63
77
  function ____exports.disableAllInputs(self, key)
64
78
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
65
79
  v.run.disableInputsWithWhitelistMap:set(
@@ -68,20 +82,51 @@ function ____exports.disableAllInputs(self, key)
68
82
  )
69
83
  v.run.enableInputsWithBlacklistMap:delete(key)
70
84
  end
85
+ --- Helper function to enable all inputs besides the ones provided. This is useful because
86
+ -- `EntityPlayer.ControlsEnabled` can be changed by the game under certain conditions.
87
+ --
88
+ -- Use the `enableAllInputs` helper function to set things back to normal.
89
+ --
90
+ -- @param key The name of the mod feature that is requesting the enable/disable. This is needed so
91
+ -- that multiple mod features can work in tandem.
92
+ -- @param blacklist A set of ButtonActions to disallow.
71
93
  function ____exports.enableAllInputsExceptFor(self, key, blacklist)
72
94
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
73
95
  v.run.disableInputsWithWhitelistMap:delete(key)
74
96
  v.run.enableInputsWithBlacklistMap:set(key, blacklist)
75
97
  end
98
+ --- Helper function to disable all inputs besides the ones provided. This is useful because
99
+ -- `EntityPlayer.ControlsEnabled` can be changed by the game under certain conditions.
100
+ --
101
+ -- Use the `enableAllInputs` helper function to set things back to normal.
102
+ --
103
+ -- @param key The name of the mod feature that is requesting the enable/disable. This is needed so
104
+ -- that multiple mod features can work in tandem.
105
+ -- @param whitelist A set of ButtonActions to allow.
76
106
  function ____exports.disableAllInputsExceptFor(self, key, whitelist)
77
107
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
78
108
  v.run.disableInputsWithWhitelistMap:set(key, whitelist)
79
109
  v.run.enableInputsWithBlacklistMap:delete(key)
80
110
  end
111
+ --- Helper function to disable only the inputs used for moving the character (or moving the cursor in
112
+ -- the UI). This is useful because `EntityPlayer.ControlsEnabled` can be changed by the game under
113
+ -- certain conditions.
114
+ --
115
+ -- Use the `enableAllInputs` helper function to set things back to normal.
116
+ --
117
+ -- @param key The name of the mod feature that is requesting the enable/disable. This is needed so
118
+ -- that multiple mod features can work in tandem.
81
119
  function ____exports.disableMovementInputs(self, key)
82
120
  local moveActions = getMoveActions(nil)
83
121
  ____exports.enableAllInputsExceptFor(nil, key, moveActions)
84
122
  end
123
+ --- Helper function to disable only the inputs used for shooting tears. This is useful because
124
+ -- `EntityPlayer.ControlsEnabled` can be changed by the game under certain conditions.
125
+ --
126
+ -- Use the `enableAllInputs` helper function to set things back to normal.
127
+ --
128
+ -- @param key The name of the mod feature that is requesting the enable/disable. This is needed so
129
+ -- that multiple mod features can work in tandem.
85
130
  function ____exports.disableShootingInputs(self, key)
86
131
  local shootActions = getShootActions(nil)
87
132
  ____exports.enableAllInputsExceptFor(nil, key, shootActions)
@@ -22,10 +22,18 @@ end
22
22
  local FEATURE_NAME = "sound disabler"
23
23
  local musicWasEnabled = false
24
24
  v = {run = {disableSoundSet = __TS__New(Set)}}
25
+ ---
26
+ -- @internal
25
27
  function ____exports.disableSoundsInit(self, mod)
26
28
  saveDataManager(nil, "disableSounds", v)
27
29
  mod:AddCallback(ModCallback.POST_RENDER, postRender)
28
30
  end
31
+ --- Helper function to stop muting all sound effects and music.
32
+ --
33
+ -- Use this function to set things back to normal after having used `disableAllSounds`.
34
+ --
35
+ -- @param key The name of the mod feature that is requesting the enable/disable. This is needed so
36
+ -- that multiple mod features can work in tandem.
29
37
  function ____exports.enableAllSound(self, key)
30
38
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
31
39
  if not v.run.disableSoundSet:has(key) then
@@ -37,6 +45,12 @@ function ____exports.enableAllSound(self, key)
37
45
  end
38
46
  stopAllSoundEffects(nil)
39
47
  end
48
+ --- Helper function to disable all sound effects and music (by constantly musting them).
49
+ --
50
+ -- Use the `enableAllSounds` helper function to set things back to normal.
51
+ --
52
+ -- @param key The name of the mod feature that is requesting the enable/disable. This is needed so
53
+ -- that multiple mod features can work in tandem.
40
54
  function ____exports.disableAllSound(self, key)
41
55
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
42
56
  if v.run.disableSoundSet.size == 0 then
@@ -18,111 +18,201 @@ local toggleSlotDisplay = ____exports.toggleSlotDisplay
18
18
  local toggleSpikesDisplay = ____exports.toggleSpikesDisplay
19
19
  local toggleTearDisplay = ____exports.toggleTearDisplay
20
20
  local toggleTNTDisplay = ____exports.toggleTNTDisplay
21
+ --- Toggles custom text to appear next to every spikes. Useful for debugging.
22
+ --
23
+ -- By default, the grid entity ID will be displayed. Use the `setSpikesDisplay` helper function to
24
+ -- assign the text that you want to appear.
21
25
  function ____exports.spikesDisplay(self)
22
26
  toggleSpikesDisplay(nil)
23
27
  end
28
+ --- Toggles custom text to appear next to every bomb. Useful for debugging.
29
+ --
30
+ -- By default, the entity ID will be displayed. Use the `setBombDisplay` helper function to assign
31
+ -- the text that you want to appear.
24
32
  function ____exports.bombDisplay(self)
25
33
  toggleBombDisplay(nil)
26
34
  end
35
+ --- Alias for the "bombDisplay" command.
27
36
  function ____exports.bombsDisplay(self)
28
37
  ____exports.bombDisplay(nil)
29
38
  end
39
+ --- Toggles custom text to appear next to every door. Useful for debugging.
40
+ --
41
+ -- By default, the grid entity ID will be displayed. Use the `setDoorDisplay` helper function to
42
+ -- assign the text that you want to appear.
30
43
  function ____exports.doorDisplay(self)
31
44
  toggleDoorDisplay(nil)
32
45
  end
46
+ --- Alias for the "doorDisplay" command.
33
47
  function ____exports.doorsDisplay(self)
34
48
  ____exports.doorDisplay(nil)
35
49
  end
50
+ --- Toggles custom text to appear next to every effect. Useful for debugging.
51
+ --
52
+ -- By default, the entity ID will be displayed. Use the `setEffectDisplay` helper function to assign
53
+ -- the text that you want to appear.
36
54
  function ____exports.effectDisplay(self)
37
55
  toggleEffectDisplay(nil)
38
56
  end
57
+ --- Alias for the "effectDisplay" command.
39
58
  function ____exports.effectsDisplay(self)
40
59
  ____exports.effectDisplay(nil)
41
60
  end
61
+ --- Toggles custom text to appear next to every familiar. Useful for debugging.
62
+ --
63
+ -- By default, the entity ID will be displayed. Use the `setFamiliarDisplay` helper function to
64
+ -- assign the text that you want to appear.
42
65
  function ____exports.familiarDisplay(self)
43
66
  toggleFamiliarDisplay(nil)
44
67
  end
68
+ --- Alias for the "familiarDisplay" command.
45
69
  function ____exports.familiarsDisplay(self)
46
70
  ____exports.familiarDisplay(nil)
47
71
  end
72
+ --- Toggles custom text to appear next to every knife. Useful for debugging.
73
+ --
74
+ -- By default, the entity ID will be displayed. Use the `setKnifeDisplay` helper function to assign
75
+ -- the text that you want to appear.
48
76
  function ____exports.knifeDisplay(self)
49
77
  toggleKnifeDisplay(nil)
50
78
  end
79
+ --- Alias for the "knifeDisplay" command.
51
80
  function ____exports.knivesDisplay(self)
52
81
  ____exports.knifeDisplay(nil)
53
82
  end
83
+ --- Toggles custom text to appear next to every laser. Useful for debugging.
84
+ --
85
+ -- By default, the entity ID will be displayed. Use the `setLaserDisplay` helper function to assign
86
+ -- the text that you want to appear.
54
87
  function ____exports.laserDisplay(self)
55
88
  toggleLaserDisplay(nil)
56
89
  end
90
+ --- Alias for the "laserDisplay" command.
57
91
  function ____exports.lasersDisplay(self)
58
92
  ____exports.laserDisplay(nil)
59
93
  end
94
+ --- Toggles custom text to appear next to every NPC. Useful for debugging.
95
+ --
96
+ -- By default, the entity ID will be displayed. Use the `setNPCDisplay` helper function to assign
97
+ -- the text that you want to appear.
60
98
  function ____exports.npcDisplay(self)
61
99
  toggleNPCDisplay(nil)
62
100
  end
101
+ --- Alias for the "npcDisplay" command.
63
102
  function ____exports.npcsDisplay(self)
64
103
  ____exports.npcDisplay(nil)
65
104
  end
105
+ --- Toggles custom text to appear next to every pickup. Useful for debugging.
106
+ --
107
+ -- By default, the entity ID will be displayed. Use the `setPickupDisplay` helper function to assign
108
+ -- the text that you want to appear.
66
109
  function ____exports.pickupDisplay(self)
67
110
  togglePickupDisplay(nil)
68
111
  end
112
+ --- Alias for the "pickupDisplay" command.
69
113
  function ____exports.pickupsDisplay(self)
70
114
  ____exports.pickupDisplay(nil)
71
115
  end
116
+ --- Toggles custom text to appear next to every pit. Useful for debugging.
117
+ --
118
+ -- By default, the grid entity ID will be displayed. Use the `setPitDisplay` helper function to
119
+ -- assign the text that you want to appear.
72
120
  function ____exports.pitDisplay(self)
73
121
  togglePitDisplay(nil)
74
122
  end
123
+ --- Alias for the "pitDisplay" command.
75
124
  function ____exports.pitsDisplay(self)
76
125
  ____exports.pitDisplay(nil)
77
126
  end
127
+ --- Toggles custom text to appear next to every player. Useful for debugging.
128
+ --
129
+ -- By default, the entity ID will be displayed. Use the `setPlayerDisplay` helper function to assign
130
+ -- the text that you want to appear.
78
131
  function ____exports.playerDisplay(self)
79
132
  togglePlayerDisplay(nil)
80
133
  end
134
+ --- Alias for the "playerDisplay" command.
81
135
  function ____exports.playersDisplay(self)
82
136
  ____exports.playerDisplay(nil)
83
137
  end
138
+ --- Toggles custom text to appear next to every poop. Useful for debugging.
139
+ --
140
+ -- By default, the grid entity ID will be displayed. Use the `setPoopDisplay` helper function to
141
+ -- assign the text that you want to appear.
84
142
  function ____exports.poopDisplay(self)
85
143
  togglePoopDisplay(nil)
86
144
  end
145
+ --- Alias for the "poopDisplay" command.
87
146
  function ____exports.poopsDisplay(self)
88
147
  ____exports.poopDisplay(nil)
89
148
  end
149
+ --- Toggles custom text to appear next to every pressure plate. Useful for debugging.
150
+ --
151
+ -- By default, the grid entity ID will be displayed. Use the `setPressurePlateDisplay` helper
152
+ -- function to assign the text that you want to appear.
90
153
  function ____exports.pressurePlateDisplay(self)
91
154
  togglePressurePlateDisplay(nil)
92
155
  end
156
+ --- Alias for the "pressurePlateDisplay" command.
93
157
  function ____exports.pressurePlatesDisplay(self)
94
158
  ____exports.pressurePlateDisplay(nil)
95
159
  end
160
+ --- Toggles custom text to appear next to every projectile. Useful for debugging.
161
+ --
162
+ -- By default, the entity ID will be displayed. Use the `setProjectileDisplay` helper function to
163
+ -- assign the text that you want to appear.
96
164
  function ____exports.projectileDisplay(self)
97
165
  toggleProjectileDisplay(nil)
98
166
  end
167
+ --- Alias for the "projectileDisplay" command.
99
168
  function ____exports.projectilesDisplay(self)
100
169
  ____exports.projectileDisplay(nil)
101
170
  end
171
+ --- Toggles custom text to appear next to every rock. Useful for debugging.
172
+ --
173
+ -- By default, the grid entity ID will be displayed. Use the `setRockDisplay` helper function to
174
+ -- assign the text that you want to appear.
102
175
  function ____exports.rockDisplay(self)
103
176
  toggleRockDisplay(nil)
104
177
  end
178
+ --- Alias for the "rockDisplay" command.
105
179
  function ____exports.rocksDisplay(self)
106
180
  ____exports.rockDisplay(nil)
107
181
  end
182
+ --- Toggles custom text to appear next to every slot. Useful for debugging.
183
+ --
184
+ -- By default, the entity ID will be displayed. Use the `setSlotDisplay` helper function to assign
185
+ -- the text that you want to appear.
108
186
  function ____exports.slotDisplay(self)
109
187
  toggleSlotDisplay(nil)
110
188
  end
189
+ --- Alias for the "slotDisplay" command.
111
190
  function ____exports.slotsDisplay(self)
112
191
  ____exports.slotDisplay(nil)
113
192
  end
193
+ --- Alias for the "spikesDisplay" command.
114
194
  function ____exports.spikeDisplay(self)
115
195
  ____exports.spikesDisplay(nil)
116
196
  end
197
+ --- Toggles custom text to appear next to every tear. Useful for debugging.
198
+ --
199
+ -- By default, the entity ID will be displayed. Use the `setTearDisplay` helper function to assign
200
+ -- the text that you want to appear.
117
201
  function ____exports.tearDisplay(self)
118
202
  toggleTearDisplay(nil)
119
203
  end
204
+ --- Alias for the "tearDisplay" command.
120
205
  function ____exports.tearsDisplay(self)
121
206
  ____exports.tearDisplay(nil)
122
207
  end
208
+ --- Toggles custom text to appear next to every TNT. Useful for debugging.
209
+ --
210
+ -- By default, the grid entity ID will be displayed. Use the `setTNTDisplay` helper function to
211
+ -- assign the text that you want to appear.
123
212
  function ____exports.tntDisplay(self)
124
213
  toggleTNTDisplay(nil)
125
214
  end
215
+ --- Alias for the "tntDisplay" command.
126
216
  function ____exports.tntsDisplay(self)
127
217
  ____exports.tntDisplay(nil)
128
218
  end