isaacscript-common 6.2.0 → 6.4.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 (96) hide show
  1. package/cachedClasses.d.ts +15 -0
  2. package/cachedClasses.lua +20 -0
  3. package/callbacks/reorderedCallbacks.d.ts +9 -0
  4. package/callbacks/reorderedCallbacks.lua +9 -0
  5. package/constants.d.ts +26 -4
  6. package/constants.lua +20 -4
  7. package/enums/CornerType.d.ts +6 -0
  8. package/enums/CornerType.lua +11 -0
  9. package/features/customStage/backdrop.d.ts +2 -0
  10. package/features/customStage/backdrop.lua +202 -0
  11. package/features/customStage/customStageConstants.d.ts +1 -0
  12. package/features/customStage/customStageConstants.lua +3 -0
  13. package/features/customStage/exports.d.ts +28 -0
  14. package/features/customStage/exports.lua +58 -1
  15. package/features/customStage/init.d.ts +2 -1
  16. package/features/customStage/init.lua +45 -9
  17. package/features/customStage/streakText.d.ts +2 -0
  18. package/features/customStage/streakText.lua +22 -0
  19. package/features/customStage/v.d.ts +10 -0
  20. package/features/customStage/v.lua +4 -0
  21. package/features/customStage/versusScreen.d.ts +3 -0
  22. package/features/customStage/versusScreen.lua +193 -0
  23. package/features/debugDisplay/debugDisplay.lua +2 -0
  24. package/features/debugDisplay/exports.d.ts +108 -0
  25. package/features/debugDisplay/exports.lua +145 -0
  26. package/features/debugDisplay/v.d.ts +2 -0
  27. package/features/debugDisplay/v.lua +9 -0
  28. package/features/deployJSONRoom.lua +6 -2
  29. package/features/extraConsoleCommands/init.lua +8 -1
  30. package/features/extraConsoleCommands/listCommands.d.ts +12 -4
  31. package/features/extraConsoleCommands/listCommands.lua +30 -15
  32. package/features/extraConsoleCommands/v.d.ts +1 -0
  33. package/features/extraConsoleCommands/v.lua +2 -1
  34. package/features/pause.d.ts +11 -0
  35. package/features/pause.lua +71 -0
  36. package/features/runNextRoom.d.ts +8 -0
  37. package/features/runNextRoom.lua +40 -0
  38. package/features/saveDataManager/exports.lua +2 -2
  39. package/features/saveDataManager/load.lua +3 -3
  40. package/features/saveDataManager/main.lua +3 -3
  41. package/features/saveDataManager/merge.lua +2 -2
  42. package/features/saveDataManager/save.lua +3 -3
  43. package/features/saveDataManager/{constants.d.ts → saveDataManagerConstants.d.ts} +0 -0
  44. package/features/saveDataManager/{constants.lua → saveDataManagerConstants.lua} +0 -0
  45. package/functions/chargeBar.lua +4 -6
  46. package/functions/color.d.ts +0 -2
  47. package/functions/color.lua +0 -4
  48. package/functions/deepCopy.lua +2 -2
  49. package/functions/direction.d.ts +1 -1
  50. package/functions/doors.d.ts +2 -2
  51. package/functions/entity.d.ts +5 -0
  52. package/functions/entity.lua +13 -0
  53. package/functions/gridEntity.d.ts +5 -0
  54. package/functions/gridEntity.lua +7 -2
  55. package/functions/kColor.d.ts +0 -2
  56. package/functions/kColor.lua +0 -4
  57. package/functions/log.lua +2 -1
  58. package/functions/playerCenter.d.ts +5 -1
  59. package/functions/playerCenter.lua +15 -8
  60. package/functions/playerIndex.d.ts +3 -0
  61. package/functions/playerIndex.lua +3 -0
  62. package/functions/roomShape.d.ts +10 -4
  63. package/functions/roomShape.lua +15 -2
  64. package/functions/sprite.d.ts +1 -1
  65. package/functions/sprite.lua +1 -1
  66. package/functions/ui.d.ts +2 -0
  67. package/functions/ui.lua +8 -0
  68. package/functions/utils.d.ts +6 -4
  69. package/functions/utils.lua +6 -4
  70. package/index.d.ts +2 -1
  71. package/index.lua +10 -0
  72. package/initFeatures.lua +7 -1
  73. package/interfaces/Corner.d.ts +6 -0
  74. package/interfaces/Corner.lua +2 -0
  75. package/interfaces/CustomStageLua.d.ts +38 -9
  76. package/objects/bossNamePNGFileNames.d.ts +5 -0
  77. package/objects/bossNamePNGFileNames.lua +108 -0
  78. package/objects/bossPortraitPNGFileNames.d.ts +5 -0
  79. package/objects/bossPortraitPNGFileNames.lua +108 -0
  80. package/objects/colors.d.ts +15 -8
  81. package/objects/colors.lua +9 -2
  82. package/objects/playerNamePNGFileNames.d.ts +5 -0
  83. package/objects/playerNamePNGFileNames.lua +49 -0
  84. package/objects/playerPortraitPNGFileNames.d.ts +5 -0
  85. package/objects/playerPortraitPNGFileNames.lua +49 -0
  86. package/objects/roomShapeCorners.d.ts +6 -0
  87. package/objects/roomShapeCorners.lua +259 -0
  88. package/objects/roomShapeToBottomRightPosition.d.ts +1 -1
  89. package/objects/roomShapeToTopLeftPosition.d.ts +1 -1
  90. package/objects/versusScreenBackgroundColors.d.ts +5 -0
  91. package/objects/versusScreenBackgroundColors.lua +38 -0
  92. package/objects/versusScreenDirtSpotColors.d.ts +5 -0
  93. package/objects/versusScreenDirtSpotColors.lua +38 -0
  94. package/package.json +2 -2
  95. package/sets/narrowRoomShapesSet.d.ts +2 -0
  96. package/sets/narrowRoomShapesSet.lua +8 -0
@@ -2,8 +2,12 @@ local ____lualib = require("lualib_bundle")
2
2
  local Map = ____lualib.Map
3
3
  local __TS__New = ____lualib.__TS__New
4
4
  local ____exports = {}
5
+ local v = {run = {currentCustomStage = nil, showingStreakText = false, showingBossVersusScreen = false}}
6
+ ____exports.default = v
5
7
  --- Indexed by custom stage name.
6
8
  ____exports.customStagesMap = __TS__New(Map)
7
9
  --- Indexed by room variant.
8
10
  ____exports.customStageCachedRoomData = __TS__New(Map)
11
+ --- Indexed by entity ID.
12
+ ____exports.customBossPNGPaths = __TS__New(Map)
9
13
  return ____exports
@@ -0,0 +1,3 @@
1
+ import { CustomStage } from "../../interfaces/CustomStage";
2
+ export declare function playVersusScreenAnimation(customStage: CustomStage, force?: boolean): void;
3
+ export declare function versusScreenPostRender(): void;
@@ -0,0 +1,193 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Map = ____lualib.Map
3
+ local ____exports = {}
4
+ local getPlayerPNGPaths, getBossPNGPaths, DEFAULT_CHARACTER, PNG_PATH_PREFIX, PLAYER_PORTRAIT_PNG_PATH_PREFIX
5
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
6
+ local BossID = ____isaac_2Dtypescript_2Ddefinitions.BossID
7
+ local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
8
+ local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
9
+ local SoundEffect = ____isaac_2Dtypescript_2Ddefinitions.SoundEffect
10
+ local StageID = ____isaac_2Dtypescript_2Ddefinitions.StageID
11
+ local ____cachedClasses = require("cachedClasses")
12
+ local game = ____cachedClasses.game
13
+ local sfxManager = ____cachedClasses.sfxManager
14
+ local ____array = require("functions.array")
15
+ local arrayRemove = ____array.arrayRemove
16
+ local ____boss = require("functions.boss")
17
+ local getBosses = ____boss.getBosses
18
+ local ____entity = require("functions.entity")
19
+ local getEntityID = ____entity.getEntityID
20
+ local ____utils = require("functions.utils")
21
+ local erange = ____utils.erange
22
+ local ____bossNamePNGFileNames = require("objects.bossNamePNGFileNames")
23
+ local BOSS_NAME_PNG_FILE_NAMES = ____bossNamePNGFileNames.BOSS_NAME_PNG_FILE_NAMES
24
+ local ____bossPortraitPNGFileNames = require("objects.bossPortraitPNGFileNames")
25
+ local BOSS_PORTRAIT_PNG_FILE_NAMES = ____bossPortraitPNGFileNames.BOSS_PORTRAIT_PNG_FILE_NAMES
26
+ local ____playerNamePNGFileNames = require("objects.playerNamePNGFileNames")
27
+ local PLAYER_NAME_PNG_FILE_NAMES = ____playerNamePNGFileNames.PLAYER_NAME_PNG_FILE_NAMES
28
+ local ____playerPortraitPNGFileNames = require("objects.playerPortraitPNGFileNames")
29
+ local PLAYER_PORTRAIT_PNG_FILE_NAMES = ____playerPortraitPNGFileNames.PLAYER_PORTRAIT_PNG_FILE_NAMES
30
+ local ____versusScreenBackgroundColors = require("objects.versusScreenBackgroundColors")
31
+ local VERSUS_SCREEN_BACKGROUND_COLORS = ____versusScreenBackgroundColors.VERSUS_SCREEN_BACKGROUND_COLORS
32
+ local ____versusScreenDirtSpotColors = require("objects.versusScreenDirtSpotColors")
33
+ local VERSUS_SCREEN_DIRT_SPOT_COLORS = ____versusScreenDirtSpotColors.VERSUS_SCREEN_DIRT_SPOT_COLORS
34
+ local ____pause = require("features.pause")
35
+ local pause = ____pause.pause
36
+ local unpause = ____pause.unpause
37
+ local ____customStageConstants = require("features.customStage.customStageConstants")
38
+ local ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH = ____customStageConstants.ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH
39
+ local ____v = require("features.customStage.v")
40
+ local v = ____v.default
41
+ local customBossPNGPaths = ____v.customBossPNGPaths
42
+ function getPlayerPNGPaths(self)
43
+ local player = Isaac.GetPlayer()
44
+ local character = player:GetPlayerType()
45
+ local playerNamePNGFileName = PLAYER_NAME_PNG_FILE_NAMES[character]
46
+ if playerNamePNGFileName == nil then
47
+ playerNamePNGFileName = PLAYER_NAME_PNG_FILE_NAMES[DEFAULT_CHARACTER]
48
+ end
49
+ local playerNamePNGPath = (PNG_PATH_PREFIX .. "/") .. tostring(playerNamePNGFileName)
50
+ local playerPortraitFileName = PLAYER_PORTRAIT_PNG_FILE_NAMES[character]
51
+ if playerNamePNGFileName == nil then
52
+ playerPortraitFileName = PLAYER_PORTRAIT_PNG_FILE_NAMES[DEFAULT_CHARACTER]
53
+ end
54
+ local playerPortraitPNGPath = (PLAYER_PORTRAIT_PNG_PATH_PREFIX .. "/") .. tostring(playerPortraitFileName)
55
+ return {playerNamePNGPath, playerPortraitPNGPath}
56
+ end
57
+ function getBossPNGPaths(self)
58
+ local bosses = getBosses(nil)
59
+ local firstBoss = bosses[1]
60
+ if firstBoss ~= nil then
61
+ local entityID = getEntityID(nil, firstBoss)
62
+ local pngPaths = customBossPNGPaths:get(entityID)
63
+ if pngPaths ~= nil then
64
+ return pngPaths
65
+ end
66
+ end
67
+ local bossID = firstBoss == nil and 0 or firstBoss:GetBossID()
68
+ if bossID == 0 then
69
+ local questionMarkSprite = (PNG_PATH_PREFIX .. "/") .. BOSS_NAME_PNG_FILE_NAMES[BossID.BLUE_BABY]
70
+ local bossNamePNGPath = questionMarkSprite
71
+ local bossPortraitPNGPath = questionMarkSprite
72
+ return {bossNamePNGPath, bossPortraitPNGPath}
73
+ end
74
+ local bossNamePNGFileName = BOSS_NAME_PNG_FILE_NAMES[bossID]
75
+ local bossNamePNGPath = (PNG_PATH_PREFIX .. "/") .. bossNamePNGFileName
76
+ local bossPortraitPNGFileName = BOSS_PORTRAIT_PNG_FILE_NAMES[bossID]
77
+ local bossPortraitPNGPath = (PNG_PATH_PREFIX .. "/") .. bossPortraitPNGFileName
78
+ return {bossNamePNGPath, bossPortraitPNGPath}
79
+ end
80
+ DEFAULT_CHARACTER = PlayerType.ISAAC
81
+ local DEFAULT_STAGE_ID = StageID.BASEMENT
82
+ local VERSUS_SCREEN_ANIMATION_NAME = "Scene"
83
+ --- The layers range from 0 to 13.
84
+ local NUM_VERSUS_SCREEN_ANM2_LAYERS = 14
85
+ local BACKGROUND_ANM2_LAYER = 0
86
+ local BOSS_DIRT_SPOT_ANM2_LAYER = 2
87
+ local PLAYER_DIRT_SPOT_ANM2_LAYER = 3
88
+ local BOSS_PORTRAIT_ANM2_LAYER = 4
89
+ local PLAYER_PORTRAIT_ANM2_LAYER = 5
90
+ local PLAYER_NAME_ANM2_LAYER = 6
91
+ local BOSS_NAME_ANM2_LAYER = 7
92
+ local OVERLAY_ANM2_LAYER = 11
93
+ --- We only need to render either the normal player portrait layer or the alternate player portrait
94
+ -- layer. Rendering both will cause the player not to shake.
95
+ local PLAYER_PORTRAIT_ALT_ANM2_LAYER = 12
96
+ --- These are the non-special layers that we will render last.
97
+ local OTHER_ANM2_LAYERS = arrayRemove(
98
+ nil,
99
+ erange(nil, NUM_VERSUS_SCREEN_ANM2_LAYERS),
100
+ BACKGROUND_ANM2_LAYER,
101
+ BOSS_DIRT_SPOT_ANM2_LAYER,
102
+ PLAYER_DIRT_SPOT_ANM2_LAYER,
103
+ OVERLAY_ANM2_LAYER,
104
+ PLAYER_PORTRAIT_ALT_ANM2_LAYER
105
+ )
106
+ PNG_PATH_PREFIX = "gfx/ui/boss"
107
+ PLAYER_PORTRAIT_PNG_PATH_PREFIX = "gfx/ui/stage"
108
+ local VANILLA_VERSUS_PLAYBACK_SPEED = 0.5
109
+ local versusScreenSprite = Sprite()
110
+ versusScreenSprite:Load("gfx/ui/boss/versusscreen.anm2", false)
111
+ versusScreenSprite:ReplaceSpritesheet(OVERLAY_ANM2_LAYER, ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH .. "/overlay.png")
112
+ versusScreenSprite:LoadGraphics()
113
+ --- Unfortunately, we must split the background layer into an entirely different sprite so that we
114
+ -- can color it with the `Color` property.
115
+ local versusScreenBackgroundSprite = Sprite()
116
+ versusScreenBackgroundSprite:Load("gfx/ui/boss/versusscreen.anm2", true)
117
+ --- Unfortunately, we must split the dirt layer into an entirely different sprite so that we can
118
+ -- color it with the `Color` property.
119
+ local versusScreenDirtSpotSprite = Sprite()
120
+ versusScreenDirtSpotSprite:Load("gfx/ui/boss/versusscreen.anm2", true)
121
+ function ____exports.playVersusScreenAnimation(self, customStage, force)
122
+ if force == nil then
123
+ force = false
124
+ end
125
+ local room = game:GetRoom()
126
+ local roomType = room:GetType()
127
+ local hud = game:GetHUD()
128
+ if roomType ~= RoomType.BOSS and not force then
129
+ return
130
+ end
131
+ v.run.showingBossVersusScreen = true
132
+ pause(nil)
133
+ hud:SetVisible(false)
134
+ local playerNamePNGPath, playerPortraitPNGPath = table.unpack(getPlayerPNGPaths(nil))
135
+ versusScreenSprite:ReplaceSpritesheet(PLAYER_NAME_ANM2_LAYER, playerNamePNGPath)
136
+ versusScreenSprite:ReplaceSpritesheet(PLAYER_PORTRAIT_ANM2_LAYER, playerPortraitPNGPath)
137
+ local bossNamePNGPath, bossPortraitPNGPath = table.unpack(getBossPNGPaths(nil))
138
+ versusScreenSprite:ReplaceSpritesheet(BOSS_NAME_ANM2_LAYER, bossNamePNGPath)
139
+ versusScreenSprite:ReplaceSpritesheet(BOSS_PORTRAIT_ANM2_LAYER, bossPortraitPNGPath)
140
+ versusScreenSprite:LoadGraphics()
141
+ local backgroundColor = VERSUS_SCREEN_BACKGROUND_COLORS[DEFAULT_STAGE_ID]
142
+ if customStage.versusScreenBackgroundColor ~= nil then
143
+ local ____customStage_versusScreenBackgroundColor_0 = customStage.versusScreenBackgroundColor
144
+ local r = ____customStage_versusScreenBackgroundColor_0.r
145
+ local g = ____customStage_versusScreenBackgroundColor_0.g
146
+ local b = ____customStage_versusScreenBackgroundColor_0.b
147
+ backgroundColor = Color(r, g, b)
148
+ end
149
+ versusScreenBackgroundSprite.Color = backgroundColor
150
+ local dirtSpotColor = VERSUS_SCREEN_DIRT_SPOT_COLORS[DEFAULT_STAGE_ID]
151
+ if customStage.versusScreenDirtSpotColor ~= nil then
152
+ local ____customStage_versusScreenDirtSpotColor_1 = customStage.versusScreenDirtSpotColor
153
+ local r = ____customStage_versusScreenDirtSpotColor_1.r
154
+ local g = ____customStage_versusScreenDirtSpotColor_1.g
155
+ local b = ____customStage_versusScreenDirtSpotColor_1.b
156
+ dirtSpotColor = Color(r, g, b)
157
+ end
158
+ versusScreenDirtSpotSprite.Color = dirtSpotColor
159
+ for ____, sprite in ipairs({versusScreenBackgroundSprite, versusScreenDirtSpotSprite, versusScreenSprite}) do
160
+ sprite:Play(VERSUS_SCREEN_ANIMATION_NAME, true)
161
+ sprite.PlaybackSpeed = VANILLA_VERSUS_PLAYBACK_SPEED
162
+ end
163
+ end
164
+ local function finishVersusScreenAnimation(self)
165
+ local hud = game:GetHUD()
166
+ v.run.showingBossVersusScreen = false
167
+ unpause(nil)
168
+ hud:SetVisible(true)
169
+ sfxManager:Play(SoundEffect.CASTLE_PORTCULLIS)
170
+ end
171
+ function ____exports.versusScreenPostRender(self)
172
+ if not v.run.showingBossVersusScreen then
173
+ return
174
+ end
175
+ if versusScreenSprite:IsFinished(VERSUS_SCREEN_ANIMATION_NAME) then
176
+ finishVersusScreenAnimation(nil)
177
+ return
178
+ end
179
+ local room = game:GetRoom()
180
+ local centerPos = room:GetCenterPos()
181
+ local position = Isaac.WorldToRenderPosition(centerPos)
182
+ versusScreenBackgroundSprite:RenderLayer(BACKGROUND_ANM2_LAYER, position)
183
+ versusScreenBackgroundSprite:Update()
184
+ versusScreenSprite:RenderLayer(OVERLAY_ANM2_LAYER, position)
185
+ versusScreenDirtSpotSprite:RenderLayer(BOSS_DIRT_SPOT_ANM2_LAYER, position)
186
+ versusScreenDirtSpotSprite:RenderLayer(PLAYER_DIRT_SPOT_ANM2_LAYER, position)
187
+ versusScreenDirtSpotSprite:Update()
188
+ for ____, layerID in ipairs(OTHER_ANM2_LAYERS) do
189
+ versusScreenSprite:RenderLayer(layerID, position)
190
+ end
191
+ versusScreenSprite:Update()
192
+ end
193
+ return ____exports
@@ -11,6 +11,7 @@ local saveDataManager = ____exports.saveDataManager
11
11
  local ____v = require("features.debugDisplay.v")
12
12
  local v = ____v.default
13
13
  local debugDisplayTextCallbacks = ____v.debugDisplayTextCallbacks
14
+ local setDebugDisplayEnabled = ____v.setDebugDisplayEnabled
14
15
  function renderTextOnEntity(self, entity, text)
15
16
  if isReflectionRender(nil) then
16
17
  return
@@ -155,6 +156,7 @@ end
155
156
  --- The debug display feature is only initialized when the extra console commands feature is
156
157
  -- initialized.
157
158
  function ____exports.debugDisplayInit(self, mod)
159
+ setDebugDisplayEnabled(nil)
158
160
  saveDataManager(
159
161
  nil,
160
162
  "debugDisplay",
@@ -20,197 +20,305 @@
20
20
  * After using the "playerDisplay" console command, text will be drawn on each player for debugging
21
21
  * purposes. Use this function to specify a callback function that will returns the string that
22
22
  * should be drawn.
23
+ *
24
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
25
+ * mod in order for this console command to work.
23
26
  */
24
27
  export declare function setPlayerDisplay(textCallback: (player: EntityPlayer) => string): void;
25
28
  /**
26
29
  * After using the "tearDisplay" console command, text will be drawn on each tear for debugging
27
30
  * purposes. Use this function to specify a callback function that will returns the string that
28
31
  * should be drawn.
32
+ *
33
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
34
+ * mod in order for this console command to work.
29
35
  */
30
36
  export declare function setTearDisplay(textCallback: (tear: EntityTear) => string): void;
31
37
  /**
32
38
  * After using the "familiarDisplay" console command, text will be drawn on each familiar for
33
39
  * debugging purposes. Use this function to specify a callback function that will returns the string
34
40
  * that should be drawn.
41
+ *
42
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
43
+ * mod in order for this console command to work.
35
44
  */
36
45
  export declare function setFamiliarDisplay(textCallback: (familiar: EntityFamiliar) => string): void;
37
46
  /**
38
47
  * After using the "bombDisplay" console command, text will be drawn on each bomb for debugging
39
48
  * purposes. Use this function to specify a callback function that will returns the string that
40
49
  * should be drawn.
50
+ *
51
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
52
+ * mod in order for this console command to work.
41
53
  */
42
54
  export declare function setBombDisplay(textCallback: (bomb: EntityBomb) => string): void;
43
55
  /**
44
56
  * After using the "pickupDisplay" console command, text will be drawn on each pickup for debugging
45
57
  * purposes. Use this function to specify a callback function that will returns the string that
46
58
  * should be drawn.
59
+ *
60
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
61
+ * mod in order for this console command to work.
47
62
  */
48
63
  export declare function setPickupDisplay(textCallback: (pickup: EntityPickup) => string): void;
49
64
  /**
50
65
  * After using the "slotDisplay" console command, text will be drawn on each slot for debugging
51
66
  * purposes. Use this function to specify a callback function that will returns the string that
52
67
  * should be drawn.
68
+ *
69
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
70
+ * mod in order for this console command to work.
53
71
  */
54
72
  export declare function setSlotDisplay(textCallback: (slot: Entity) => string): void;
55
73
  /**
56
74
  * After using the "laserDisplay" console command, text will be drawn on each laser for debugging
57
75
  * purposes. Use this function to specify a callback function that will returns the string that
58
76
  * should be drawn.
77
+ *
78
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
79
+ * mod in order for this console command to work.
59
80
  */
60
81
  export declare function setLaserDisplay(textCallback: (laser: EntityLaser) => string): void;
61
82
  /**
62
83
  * After using the "knifeDisplay" console command, text will be drawn on each knife for debugging
63
84
  * purposes. Use this function to specify a callback function that will returns the string that
64
85
  * should be drawn.
86
+ *
87
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
88
+ * mod in order for this console command to work.
65
89
  */
66
90
  export declare function setKnifeDisplay(textCallback: (knife: EntityKnife) => string): void;
67
91
  /**
68
92
  * After using the "projectileDisplay" console command, text will be drawn on each projectile for
69
93
  * debugging purposes. Use this function to specify a callback function that will returns the string
70
94
  * that should be drawn.
95
+ *
96
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
97
+ * mod in order for this console command to work.
71
98
  */
72
99
  export declare function setProjectileDisplay(textCallback: (projectile: EntityProjectile) => string): void;
73
100
  /**
74
101
  * After using the "effectDisplay" console command, text will be drawn on each effect for debugging
75
102
  * purposes. Use this function to specify a callback function that will returns the string that
76
103
  * should be drawn.
104
+ *
105
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
106
+ * mod in order for this console command to work.
77
107
  */
78
108
  export declare function setEffectDisplay(textCallback: (effect: EntityEffect) => string): void;
79
109
  /**
80
110
  * After using the "npcDisplay" console command, text will be drawn on each NPC for debugging
81
111
  * purposes. Use this function to specify a callback function that will returns the string that
82
112
  * should be drawn.
113
+ *
114
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
115
+ * mod in order for this console command to work.
83
116
  */
84
117
  export declare function setNPCDisplay(textCallback: (npc: EntityNPC) => string): void;
85
118
  /**
86
119
  * After using the "rockDisplay" console command, text will be drawn on each rock for debugging
87
120
  * purposes. Use this function to specify a callback function that will returns the string that
88
121
  * should be drawn.
122
+ *
123
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
124
+ * mod in order for this console command to work.
89
125
  */
90
126
  export declare function setRockDisplay(textCallback: (rock: GridEntityRock) => string): void;
91
127
  /**
92
128
  * After using the "pitDisplay" console command, text will be drawn on each pit for debugging
93
129
  * purposes. Use this function to specify a callback function that will returns the string that
94
130
  * should be drawn.
131
+ *
132
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
133
+ * mod in order for this console command to work.
95
134
  */
96
135
  export declare function setPitDisplay(textCallback: (pit: GridEntityPit) => string): void;
97
136
  /**
98
137
  * After using the "spikesDisplay" console command, text will be drawn on each spikes for debugging
99
138
  * purposes. Use this function to specify a callback function that will returns the string that
100
139
  * should be drawn.
140
+ *
141
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
142
+ * mod in order for this console command to work.
101
143
  */
102
144
  export declare function setSpikesDisplay(textCallback: (spikes: GridEntitySpikes) => string): void;
103
145
  /**
104
146
  * After using the "tntDisplay" console command, text will be drawn on each TNT for debugging
105
147
  * purposes. Use this function to specify a callback function that will returns the string that
106
148
  * should be drawn.
149
+ *
150
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
151
+ * mod in order for this console command to work.
107
152
  */
108
153
  export declare function setTNTDisplay(textCallback: (tnt: GridEntityTNT) => string): void;
109
154
  /**
110
155
  * After using the "poopDisplay" console command, text will be drawn on each poop for debugging
111
156
  * purposes. Use this function to specify a callback function that will returns the string that
112
157
  * should be drawn.
158
+ *
159
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
160
+ * mod in order for this console command to work.
113
161
  */
114
162
  export declare function setPoopDisplay(textCallback: (poop: GridEntityPoop) => string): void;
115
163
  /**
116
164
  * After using the "poopDisplay" console command, text will be drawn on each poop for debugging
117
165
  * purposes. Use this function to specify a callback function that will returns the string that
118
166
  * should be drawn.
167
+ *
168
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
169
+ * mod in order for this console command to work.
119
170
  */
120
171
  export declare function setDoorDisplay(textCallback: (door: GridEntityDoor) => string): void;
121
172
  /**
122
173
  * After using the "pressurePlateDisplay" console command, text will be drawn on each pressure plate
123
174
  * for debugging purposes. Use this function to specify a callback function that will returns the
124
175
  * string that should be drawn.
176
+ *
177
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
178
+ * mod in order for this console command to work.
125
179
  */
126
180
  export declare function setPressurePlateDisplay(textCallback: (pressurePlate: GridEntityPressurePlate) => string): void;
127
181
  /**
128
182
  * Toggles the debug display for players. This is the function that runs when you use the
129
183
  * "playerDisplay" custom console command.
184
+ *
185
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
186
+ * mod in order for this feature to work.
130
187
  */
131
188
  export declare function togglePlayerDisplay(): void;
132
189
  /**
133
190
  * Toggles the debug display for tears. This is the function that runs when you use the
134
191
  * "tearDisplay" custom console command.
192
+ *
193
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
194
+ * mod in order for this feature to work.
135
195
  */
136
196
  export declare function toggleTearDisplay(): void;
137
197
  /**
138
198
  * Toggles the debug display for familiars. This is the function that runs when you use the
139
199
  * "familiarDisplay" custom console command.
200
+ *
201
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
202
+ * mod in order for this feature to work.
140
203
  */
141
204
  export declare function toggleFamiliarDisplay(): void;
142
205
  /**
143
206
  * Toggles the debug display for bombs. This is the function that runs when you use the
144
207
  * "bombDisplay" custom console command.
208
+ *
209
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
210
+ * mod in order for this feature to work.
145
211
  */
146
212
  export declare function toggleBombDisplay(): void;
147
213
  /**
148
214
  * Toggles the debug display for pickups. This is the function that runs when you use the
149
215
  * "pickupDisplay" custom console command.
216
+ *
217
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
218
+ * mod in order for this feature to work.
150
219
  */
151
220
  export declare function togglePickupDisplay(): void;
152
221
  /**
153
222
  * Toggles the debug display for slots. This is the function that runs when you use the
154
223
  * "slotDisplay" custom console command.
224
+ *
225
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
226
+ * mod in order for this feature to work.
155
227
  */
156
228
  export declare function toggleSlotDisplay(): void;
157
229
  /**
158
230
  * Toggles the debug display for lasers. This is the function that runs when you use the
159
231
  * "laserDisplay" custom console command.
232
+ *
233
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
234
+ * mod in order for this feature to work.
160
235
  */
161
236
  export declare function toggleLaserDisplay(): void;
162
237
  /**
163
238
  * Toggles the debug display for knives. This is the function that runs when you use the
164
239
  * "knifeDisplay" custom console command.
240
+ *
241
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
242
+ * mod in order for this feature to work.
165
243
  */
166
244
  export declare function toggleKnifeDisplay(): void;
167
245
  /**
168
246
  * Toggles the debug display for projectiles. This is the function that runs when you use the
169
247
  * "projectileDisplay" custom console command.
248
+ *
249
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
250
+ * mod in order for this feature to work.
170
251
  */
171
252
  export declare function toggleProjectileDisplay(): void;
172
253
  /**
173
254
  * Toggles the debug display for effects. This is the function that runs when you use the
174
255
  * "effectDisplay" custom console command.
256
+ *
257
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
258
+ * mod in order for this feature to work.
175
259
  */
176
260
  export declare function toggleEffectDisplay(): void;
177
261
  /**
178
262
  * Toggles the debug display for NPCs. This is the function that runs when you use the "npcDisplay"
179
263
  * custom console command.
264
+ *
265
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
266
+ * mod in order for this feature to work.
180
267
  */
181
268
  export declare function toggleNPCDisplay(): void;
182
269
  /**
183
270
  * Toggles the debug display for rocks. This is the function that runs when you use the
184
271
  * "rockDisplay" custom console command.
272
+ *
273
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
274
+ * mod in order for this feature to work.
185
275
  */
186
276
  export declare function toggleRockDisplay(): void;
187
277
  /**
188
278
  * Toggles the debug display for pits. This is the function that runs when you use the "pitDisplay"
189
279
  * custom console command.
280
+ *
281
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
282
+ * mod in order for this feature to work.
190
283
  */
191
284
  export declare function togglePitDisplay(): void;
192
285
  /**
193
286
  * Toggles the debug display for spikes. This is the function that runs when you use the
194
287
  * "spikesDisplay" custom console command.
288
+ *
289
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
290
+ * mod in order for this feature to work.
195
291
  */
196
292
  export declare function toggleSpikesDisplay(): void;
197
293
  /**
198
294
  * Toggles the debug display for TNT. This is the function that runs when you use the "tntDisplay"
199
295
  * custom console command.
296
+ *
297
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
298
+ * mod in order for this feature to work.
200
299
  */
201
300
  export declare function toggleTNTDisplay(): void;
202
301
  /**
203
302
  * Toggles the debug display for poop. This is the function that runs when you use the "poopDisplay"
204
303
  * custom console command.
304
+ *
305
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
306
+ * mod in order for this feature to work.
205
307
  */
206
308
  export declare function togglePoopDisplay(): void;
207
309
  /**
208
310
  * Toggles the debug display for doors. This is the function that runs when you use the
209
311
  * "doorDisplay" custom console command.
312
+ *
313
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
314
+ * mod in order for this feature to work.
210
315
  */
211
316
  export declare function toggleDoorDisplay(): void;
212
317
  /**
213
318
  * Toggles the debug display for pressure plates. This is the function that runs when you use the
214
319
  * "pressurePlateDisplay" custom console command.
320
+ *
321
+ * Note that you have to run the `enableExtraConsoleCommands` function once at the beginning of your
322
+ * mod in order for this feature to work.
215
323
  */
216
324
  export declare function togglePressurePlateDisplay(): void;