isaacscript-common 31.4.0 → 31.5.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 (77) hide show
  1. package/dist/index.rollup.d.ts +12 -0
  2. package/dist/isaacscript-common.lua +97 -40
  3. package/dist/src/classes/features/other/debugDisplay/DebugDisplayBomb.d.ts.map +1 -1
  4. package/dist/src/classes/features/other/debugDisplay/DebugDisplayBomb.lua +2 -1
  5. package/dist/src/classes/features/other/debugDisplay/DebugDisplayDoor.d.ts.map +1 -1
  6. package/dist/src/classes/features/other/debugDisplay/DebugDisplayDoor.lua +2 -1
  7. package/dist/src/classes/features/other/debugDisplay/DebugDisplayEffect.d.ts.map +1 -1
  8. package/dist/src/classes/features/other/debugDisplay/DebugDisplayEffect.lua +2 -1
  9. package/dist/src/classes/features/other/debugDisplay/DebugDisplayFamiliar.d.ts.map +1 -1
  10. package/dist/src/classes/features/other/debugDisplay/DebugDisplayFamiliar.lua +2 -1
  11. package/dist/src/classes/features/other/debugDisplay/DebugDisplayKnife.d.ts.map +1 -1
  12. package/dist/src/classes/features/other/debugDisplay/DebugDisplayKnife.lua +2 -1
  13. package/dist/src/classes/features/other/debugDisplay/DebugDisplayLaser.d.ts.map +1 -1
  14. package/dist/src/classes/features/other/debugDisplay/DebugDisplayLaser.lua +2 -1
  15. package/dist/src/classes/features/other/debugDisplay/DebugDisplayNPC.d.ts.map +1 -1
  16. package/dist/src/classes/features/other/debugDisplay/DebugDisplayNPC.lua +2 -1
  17. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPickup.d.ts.map +1 -1
  18. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPickup.lua +2 -1
  19. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPit.d.ts.map +1 -1
  20. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPit.lua +2 -1
  21. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPlayer.d.ts.map +1 -1
  22. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPlayer.lua +2 -1
  23. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPoop.d.ts.map +1 -1
  24. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPoop.lua +2 -1
  25. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPressurePlate.d.ts.map +1 -1
  26. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPressurePlate.lua +2 -1
  27. package/dist/src/classes/features/other/debugDisplay/DebugDisplayProjectile.d.ts.map +1 -1
  28. package/dist/src/classes/features/other/debugDisplay/DebugDisplayProjectile.lua +2 -1
  29. package/dist/src/classes/features/other/debugDisplay/DebugDisplayRock.d.ts.map +1 -1
  30. package/dist/src/classes/features/other/debugDisplay/DebugDisplayRock.lua +2 -1
  31. package/dist/src/classes/features/other/debugDisplay/DebugDisplaySlot.d.ts.map +1 -1
  32. package/dist/src/classes/features/other/debugDisplay/DebugDisplaySlot.lua +2 -1
  33. package/dist/src/classes/features/other/debugDisplay/DebugDisplaySpikes.d.ts.map +1 -1
  34. package/dist/src/classes/features/other/debugDisplay/DebugDisplaySpikes.lua +2 -1
  35. package/dist/src/classes/features/other/debugDisplay/DebugDisplayTNT.d.ts.map +1 -1
  36. package/dist/src/classes/features/other/debugDisplay/DebugDisplayTNT.lua +2 -1
  37. package/dist/src/classes/features/other/debugDisplay/DebugDisplayTear.d.ts.map +1 -1
  38. package/dist/src/classes/features/other/debugDisplay/DebugDisplayTear.lua +2 -1
  39. package/dist/src/classes/features/other/debugDisplay/utils.d.ts +0 -1
  40. package/dist/src/classes/features/other/debugDisplay/utils.d.ts.map +1 -1
  41. package/dist/src/classes/features/other/debugDisplay/utils.lua +0 -17
  42. package/dist/src/functions/render.d.ts +16 -0
  43. package/dist/src/functions/render.d.ts.map +1 -0
  44. package/dist/src/functions/render.lua +50 -0
  45. package/dist/src/functions/utils.d.ts +0 -10
  46. package/dist/src/functions/utils.d.ts.map +1 -1
  47. package/dist/src/functions/utils.lua +0 -16
  48. package/dist/src/index.d.ts +2 -0
  49. package/dist/src/index.d.ts.map +1 -1
  50. package/dist/src/index.lua +8 -0
  51. package/dist/src/types/Expand.d.ts +8 -0
  52. package/dist/src/types/Expand.d.ts.map +1 -0
  53. package/dist/src/types/Expand.lua +2 -0
  54. package/package.json +1 -1
  55. package/src/classes/features/other/debugDisplay/DebugDisplayBomb.ts +2 -1
  56. package/src/classes/features/other/debugDisplay/DebugDisplayDoor.ts +2 -1
  57. package/src/classes/features/other/debugDisplay/DebugDisplayEffect.ts +2 -1
  58. package/src/classes/features/other/debugDisplay/DebugDisplayFamiliar.ts +2 -1
  59. package/src/classes/features/other/debugDisplay/DebugDisplayKnife.ts +2 -1
  60. package/src/classes/features/other/debugDisplay/DebugDisplayLaser.ts +2 -1
  61. package/src/classes/features/other/debugDisplay/DebugDisplayNPC.ts +2 -1
  62. package/src/classes/features/other/debugDisplay/DebugDisplayPickup.ts +2 -1
  63. package/src/classes/features/other/debugDisplay/DebugDisplayPit.ts +2 -1
  64. package/src/classes/features/other/debugDisplay/DebugDisplayPlayer.ts +2 -1
  65. package/src/classes/features/other/debugDisplay/DebugDisplayPoop.ts +2 -1
  66. package/src/classes/features/other/debugDisplay/DebugDisplayPressurePlate.ts +2 -1
  67. package/src/classes/features/other/debugDisplay/DebugDisplayProjectile.ts +2 -1
  68. package/src/classes/features/other/debugDisplay/DebugDisplayRock.ts +2 -1
  69. package/src/classes/features/other/debugDisplay/DebugDisplaySlot.ts +2 -1
  70. package/src/classes/features/other/debugDisplay/DebugDisplaySpikes.ts +2 -1
  71. package/src/classes/features/other/debugDisplay/DebugDisplayTNT.ts +2 -1
  72. package/src/classes/features/other/debugDisplay/DebugDisplayTear.ts +2 -1
  73. package/src/classes/features/other/debugDisplay/utils.ts +0 -13
  74. package/src/functions/render.ts +53 -0
  75. package/src/functions/utils.ts +0 -17
  76. package/src/index.ts +2 -0
  77. package/src/types/Expand.ts +5 -0
@@ -4,11 +4,12 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
4
  local ____exports = {}
5
5
  local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
6
6
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
7
+ local ____render = require("src.functions.render")
8
+ local renderTextOnEntity = ____render.renderTextOnEntity
7
9
  local ____Feature = require("src.classes.private.Feature")
8
10
  local Feature = ____Feature.Feature
9
11
  local ____utils = require("src.classes.features.other.debugDisplay.utils")
10
12
  local defaultGridEntityDisplayCallback = ____utils.defaultGridEntityDisplayCallback
11
- local renderTextOnEntity = ____utils.renderTextOnEntity
12
13
  ____exports.DebugDisplayPoop = __TS__Class()
13
14
  local DebugDisplayPoop = ____exports.DebugDisplayPoop
14
15
  DebugDisplayPoop.name = "DebugDisplayPoop"
@@ -1 +1 @@
1
- {"version":3,"file":"DebugDisplayPressurePlate.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/debugDisplay/DebugDisplayPressurePlate.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,yBAA0B,SAAQ,OAAO;IAC7C,YAAY,EAAE,CAAC,aAAa,EAAE,uBAAuB,KAAK,MAAM,CACpC;;IAcnC,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAKtC;CACH"}
1
+ {"version":3,"file":"DebugDisplayPressurePlate.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/debugDisplay/DebugDisplayPressurePlate.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,yBAA0B,SAAQ,OAAO;IAC7C,YAAY,EAAE,CAAC,aAAa,EAAE,uBAAuB,KAAK,MAAM,CACpC;;IAcnC,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAKtC;CACH"}
@@ -4,11 +4,12 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
4
  local ____exports = {}
5
5
  local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
6
6
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
7
+ local ____render = require("src.functions.render")
8
+ local renderTextOnEntity = ____render.renderTextOnEntity
7
9
  local ____Feature = require("src.classes.private.Feature")
8
10
  local Feature = ____Feature.Feature
9
11
  local ____utils = require("src.classes.features.other.debugDisplay.utils")
10
12
  local defaultGridEntityDisplayCallback = ____utils.defaultGridEntityDisplayCallback
11
- local renderTextOnEntity = ____utils.renderTextOnEntity
12
13
  ____exports.DebugDisplayPressurePlate = __TS__Class()
13
14
  local DebugDisplayPressurePlate = ____exports.DebugDisplayPressurePlate
14
15
  DebugDisplayPressurePlate.name = "DebugDisplayPressurePlate"
@@ -1 +1 @@
1
- {"version":3,"file":"DebugDisplayProjectile.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/debugDisplay/DebugDisplayProjectile.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,sBAAuB,SAAQ,OAAO;IAC1C,YAAY,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,MAAM,CAC9B;;IAY/B,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAGnC;CACH"}
1
+ {"version":3,"file":"DebugDisplayProjectile.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/debugDisplay/DebugDisplayProjectile.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,sBAAuB,SAAQ,OAAO;IAC1C,YAAY,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,MAAM,CAC9B;;IAY/B,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAGnC;CACH"}
@@ -4,11 +4,12 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
4
  local ____exports = {}
5
5
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
6
6
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
7
+ local ____render = require("src.functions.render")
8
+ local renderTextOnEntity = ____render.renderTextOnEntity
7
9
  local ____Feature = require("src.classes.private.Feature")
8
10
  local Feature = ____Feature.Feature
9
11
  local ____utils = require("src.classes.features.other.debugDisplay.utils")
10
12
  local defaultEntityDisplayCallback = ____utils.defaultEntityDisplayCallback
11
- local renderTextOnEntity = ____utils.renderTextOnEntity
12
13
  ____exports.DebugDisplayProjectile = __TS__Class()
13
14
  local DebugDisplayProjectile = ____exports.DebugDisplayProjectile
14
15
  DebugDisplayProjectile.name = "DebugDisplayProjectile"
@@ -1 +1 @@
1
- {"version":3,"file":"DebugDisplayRock.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/debugDisplay/DebugDisplayRock.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,gBAAiB,SAAQ,OAAO;IACpC,YAAY,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,MAAM,CAClB;;IAWnC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAG7B;CACH"}
1
+ {"version":3,"file":"DebugDisplayRock.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/debugDisplay/DebugDisplayRock.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,gBAAiB,SAAQ,OAAO;IACpC,YAAY,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,MAAM,CAClB;;IAWnC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAG7B;CACH"}
@@ -4,11 +4,12 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
4
  local ____exports = {}
5
5
  local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
6
6
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
7
+ local ____render = require("src.functions.render")
8
+ local renderTextOnEntity = ____render.renderTextOnEntity
7
9
  local ____Feature = require("src.classes.private.Feature")
8
10
  local Feature = ____Feature.Feature
9
11
  local ____utils = require("src.classes.features.other.debugDisplay.utils")
10
12
  local defaultGridEntityDisplayCallback = ____utils.defaultGridEntityDisplayCallback
11
- local renderTextOnEntity = ____utils.renderTextOnEntity
12
13
  ____exports.DebugDisplayRock = __TS__Class()
13
14
  local DebugDisplayRock = ____exports.DebugDisplayRock
14
15
  DebugDisplayRock.name = "DebugDisplayRock"
@@ -1 +1 @@
1
- {"version":3,"file":"DebugDisplaySlot.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/debugDisplay/DebugDisplaySlot.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,gBAAiB,SAAQ,OAAO;IACpC,YAAY,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,MAAM,CAClB;;IAW/B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAG7B;CACH"}
1
+ {"version":3,"file":"DebugDisplaySlot.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/debugDisplay/DebugDisplaySlot.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,gBAAiB,SAAQ,OAAO;IACpC,YAAY,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,MAAM,CAClB;;IAW/B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAG7B;CACH"}
@@ -4,11 +4,12 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
4
  local ____exports = {}
5
5
  local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
6
6
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
7
+ local ____render = require("src.functions.render")
8
+ local renderTextOnEntity = ____render.renderTextOnEntity
7
9
  local ____Feature = require("src.classes.private.Feature")
8
10
  local Feature = ____Feature.Feature
9
11
  local ____utils = require("src.classes.features.other.debugDisplay.utils")
10
12
  local defaultEntityDisplayCallback = ____utils.defaultEntityDisplayCallback
11
- local renderTextOnEntity = ____utils.renderTextOnEntity
12
13
  ____exports.DebugDisplaySlot = __TS__Class()
13
14
  local DebugDisplaySlot = ____exports.DebugDisplaySlot
14
15
  DebugDisplaySlot.name = "DebugDisplaySlot"
@@ -1 +1 @@
1
- {"version":3,"file":"DebugDisplaySpikes.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/debugDisplay/DebugDisplaySpikes.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,kBAAmB,SAAQ,OAAO;IACtC,YAAY,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,MAAM,CACtB;;IAWnC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAG/B;CACH"}
1
+ {"version":3,"file":"DebugDisplaySpikes.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/debugDisplay/DebugDisplaySpikes.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,kBAAmB,SAAQ,OAAO;IACtC,YAAY,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,MAAM,CACtB;;IAWnC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAG/B;CACH"}
@@ -4,11 +4,12 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
4
  local ____exports = {}
5
5
  local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
6
6
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
7
+ local ____render = require("src.functions.render")
8
+ local renderTextOnEntity = ____render.renderTextOnEntity
7
9
  local ____Feature = require("src.classes.private.Feature")
8
10
  local Feature = ____Feature.Feature
9
11
  local ____utils = require("src.classes.features.other.debugDisplay.utils")
10
12
  local defaultGridEntityDisplayCallback = ____utils.defaultGridEntityDisplayCallback
11
- local renderTextOnEntity = ____utils.renderTextOnEntity
12
13
  ____exports.DebugDisplaySpikes = __TS__Class()
13
14
  local DebugDisplaySpikes = ____exports.DebugDisplaySpikes
14
15
  DebugDisplaySpikes.name = "DebugDisplaySpikes"
@@ -1 +1 @@
1
- {"version":3,"file":"DebugDisplayTNT.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/debugDisplay/DebugDisplayTNT.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,eAAgB,SAAQ,OAAO;IACnC,YAAY,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,MAAM,CAChB;;IAWnC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAG5B;CACH"}
1
+ {"version":3,"file":"DebugDisplayTNT.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/debugDisplay/DebugDisplayTNT.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,eAAgB,SAAQ,OAAO;IACnC,YAAY,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,MAAM,CAChB;;IAWnC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAG5B;CACH"}
@@ -4,11 +4,12 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
4
  local ____exports = {}
5
5
  local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
6
6
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
7
+ local ____render = require("src.functions.render")
8
+ local renderTextOnEntity = ____render.renderTextOnEntity
7
9
  local ____Feature = require("src.classes.private.Feature")
8
10
  local Feature = ____Feature.Feature
9
11
  local ____utils = require("src.classes.features.other.debugDisplay.utils")
10
12
  local defaultGridEntityDisplayCallback = ____utils.defaultGridEntityDisplayCallback
11
- local renderTextOnEntity = ____utils.renderTextOnEntity
12
13
  ____exports.DebugDisplayTNT = __TS__Class()
13
14
  local DebugDisplayTNT = ____exports.DebugDisplayTNT
14
15
  DebugDisplayTNT.name = "DebugDisplayTNT"
@@ -1 +1 @@
1
- {"version":3,"file":"DebugDisplayTear.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/debugDisplay/DebugDisplayTear.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,gBAAiB,SAAQ,OAAO;IACpC,YAAY,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,MAAM,CAClB;;IAY/B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAG7B;CACH"}
1
+ {"version":3,"file":"DebugDisplayTear.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/debugDisplay/DebugDisplayTear.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,gBAAiB,SAAQ,OAAO;IACpC,YAAY,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,MAAM,CAClB;;IAY/B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAG7B;CACH"}
@@ -4,11 +4,12 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
4
  local ____exports = {}
5
5
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
6
6
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
7
+ local ____render = require("src.functions.render")
8
+ local renderTextOnEntity = ____render.renderTextOnEntity
7
9
  local ____Feature = require("src.classes.private.Feature")
8
10
  local Feature = ____Feature.Feature
9
11
  local ____utils = require("src.classes.features.other.debugDisplay.utils")
10
12
  local defaultEntityDisplayCallback = ____utils.defaultEntityDisplayCallback
11
- local renderTextOnEntity = ____utils.renderTextOnEntity
12
13
  ____exports.DebugDisplayTear = __TS__Class()
13
14
  local DebugDisplayTear = ____exports.DebugDisplayTear
14
15
  DebugDisplayTear.name = "DebugDisplayTear"
@@ -2,5 +2,4 @@
2
2
  /// <reference types="isaac-typescript-definitions" />
3
3
  export declare function defaultEntityDisplayCallback(entity: Entity): string;
4
4
  export declare function defaultGridEntityDisplayCallback(gridEntity: GridEntity): string;
5
- export declare function renderTextOnEntity(entity: Entity | GridEntity, text: string): void;
6
5
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/debugDisplay/utils.ts"],"names":[],"mappings":";;AAIA,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEnE;AAED,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,UAAU,GACrB,MAAM,CAER;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,GAAG,UAAU,EAC3B,IAAI,EAAE,MAAM,GACX,IAAI,CAON"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/debugDisplay/utils.ts"],"names":[],"mappings":";;AAGA,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEnE;AAED,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,UAAU,GACrB,MAAM,CAER"}
@@ -3,27 +3,10 @@ local ____entities = require("src.functions.entities")
3
3
  local getEntityID = ____entities.getEntityID
4
4
  local ____gridEntities = require("src.functions.gridEntities")
5
5
  local getGridEntityID = ____gridEntities.getGridEntityID
6
- local ____utils = require("src.functions.utils")
7
- local isReflectionRender = ____utils.isReflectionRender
8
6
  function ____exports.defaultEntityDisplayCallback(self, entity)
9
7
  return getEntityID(nil, entity)
10
8
  end
11
9
  function ____exports.defaultGridEntityDisplayCallback(self, gridEntity)
12
10
  return getGridEntityID(nil, gridEntity)
13
11
  end
14
- function ____exports.renderTextOnEntity(self, entity, text)
15
- if isReflectionRender(nil) then
16
- return
17
- end
18
- local position = Isaac.WorldToScreen(entity.Position)
19
- Isaac.RenderText(
20
- text,
21
- position.X,
22
- position.Y,
23
- 1,
24
- 1,
25
- 1,
26
- 1
27
- )
28
- end
29
12
  return ____exports
@@ -0,0 +1,16 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ /// <reference types="isaac-typescript-definitions" />
3
+ /// <reference types="isaac-typescript-definitions" />
4
+ /**
5
+ * Helper function to see if the current render callback is rendering a water reflection.
6
+ *
7
+ * When the player is in a room with water, things will be rendered twice: once for the normal
8
+ * rendering, and once for the reflecting rendering. Thus, any mod code in a render callback will
9
+ * run twice per frame in these situations, which may be unexpected or cause bugs.
10
+ *
11
+ * This function is typically used to early return from a render function if it returns true.
12
+ */
13
+ export declare function isReflectionRender(): boolean;
14
+ export declare function renderScaledTextOnEntity(entity: Entity | GridEntity, text: string, scaleX: float, scaleY: float): void;
15
+ export declare function renderTextOnEntity(entity: Entity | GridEntity, text: string): void;
16
+ //# sourceMappingURL=render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../src/functions/render.ts"],"names":[],"mappings":";;;AAGA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CAI5C;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,GAAG,UAAU,EAC3B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,EACb,MAAM,EAAE,KAAK,GACZ,IAAI,CAiBN;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,GAAG,UAAU,EAC3B,IAAI,EAAE,MAAM,GACX,IAAI,CAON"}
@@ -0,0 +1,50 @@
1
+ local ____exports = {}
2
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
3
+ local RenderMode = ____isaac_2Dtypescript_2Ddefinitions.RenderMode
4
+ local ____cachedClasses = require("src.core.cachedClasses")
5
+ local game = ____cachedClasses.game
6
+ --- Helper function to see if the current render callback is rendering a water reflection.
7
+ --
8
+ -- When the player is in a room with water, things will be rendered twice: once for the normal
9
+ -- rendering, and once for the reflecting rendering. Thus, any mod code in a render callback will
10
+ -- run twice per frame in these situations, which may be unexpected or cause bugs.
11
+ --
12
+ -- This function is typically used to early return from a render function if it returns true.
13
+ function ____exports.isReflectionRender(self)
14
+ local room = game:GetRoom()
15
+ local renderMode = room:GetRenderMode()
16
+ return renderMode == RenderMode.WATER_REFLECT
17
+ end
18
+ function ____exports.renderScaledTextOnEntity(self, entity, text, scaleX, scaleY)
19
+ if ____exports.isReflectionRender(nil) then
20
+ return
21
+ end
22
+ local position = Isaac.WorldToScreen(entity.Position)
23
+ Isaac.RenderScaledText(
24
+ text,
25
+ position.X,
26
+ position.Y,
27
+ scaleX,
28
+ scaleY,
29
+ 1,
30
+ 1,
31
+ 1,
32
+ 1
33
+ )
34
+ end
35
+ function ____exports.renderTextOnEntity(self, entity, text)
36
+ if ____exports.isReflectionRender(nil) then
37
+ return
38
+ end
39
+ local position = Isaac.WorldToScreen(entity.Position)
40
+ Isaac.RenderText(
41
+ text,
42
+ position.X,
43
+ position.Y,
44
+ 1,
45
+ 1,
46
+ 1,
47
+ 1
48
+ )
49
+ end
50
+ return ____exports
@@ -68,16 +68,6 @@ export declare function inRange(num: int, start: int, end: int): boolean;
68
68
  * `POST_PLAYER_INIT_FIRST` callback (or some other callback like `POST_UPDATE`).
69
69
  */
70
70
  export declare function isMultiplayer(): boolean;
71
- /**
72
- * Helper function to see if the current render callback is rendering a water reflection.
73
- *
74
- * When the player is in a room with water, things will be rendered twice: once for the normal
75
- * rendering, and once for the reflecting rendering. Thus, any mod code in a render callback will
76
- * run twice per frame in these situations, which may be unexpected or cause bugs.
77
- *
78
- * This function is typically used to early return from a render function if it returns true.
79
- */
80
- export declare function isReflectionRender(): boolean;
81
71
  /**
82
72
  * Helper function to check if the player is using Afterbirth+ or Repentance.
83
73
  *
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/functions/utils.ts"],"names":[],"mappings":";AAMA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,GAAG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;;;;;;;;;;;;GAmBG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,SAAS,SAAI,GAAG,GAAG,EAAE,CAQlE;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,OAAO,CAE/D;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,IAAI,OAAO,CAMvC;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAetC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,GAAG,IAAI,CAI3D;AAED;;;;;;;;;;;;;;GAcG;AAEH,wBAAgB,IAAI,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAG"}
@@ -2,10 +2,6 @@ local ____lualib = require("lualib_bundle")
2
2
  local __TS__ArrayMap = ____lualib.__TS__ArrayMap
3
3
  local __TS__New = ____lualib.__TS__New
4
4
  local ____exports = {}
5
- local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
6
- local RenderMode = ____isaac_2Dtypescript_2Ddefinitions.RenderMode
7
- local ____cachedClasses = require("src.core.cachedClasses")
8
- local game = ____cachedClasses.game
9
5
  local ____ReadonlySet = require("src.types.ReadonlySet")
10
6
  local ReadonlySet = ____ReadonlySet.ReadonlySet
11
7
  local ____playerIndex = require("src.functions.playerIndex")
@@ -123,18 +119,6 @@ function ____exports.isMultiplayer(self)
123
119
  local controllerIndexesSet = __TS__New(ReadonlySet, controllerIndexes)
124
120
  return controllerIndexesSet.size > 1
125
121
  end
126
- --- Helper function to see if the current render callback is rendering a water reflection.
127
- --
128
- -- When the player is in a room with water, things will be rendered twice: once for the normal
129
- -- rendering, and once for the reflecting rendering. Thus, any mod code in a render callback will
130
- -- run twice per frame in these situations, which may be unexpected or cause bugs.
131
- --
132
- -- This function is typically used to early return from a render function if it returns true.
133
- function ____exports.isReflectionRender(self)
134
- local room = game:GetRoom()
135
- local renderMode = room:GetRenderMode()
136
- return renderMode == RenderMode.WATER_REFLECT
137
- end
138
122
  --- Helper function to check if the player is using Afterbirth+ or Repentance.
139
123
  --
140
124
  -- This function should always be used over the `REPENTANCE` constant, since the latter is not safe.
@@ -95,6 +95,7 @@ export * from "./functions/pressurePlate";
95
95
  export * from "./functions/projectiles";
96
96
  export * from "./functions/random";
97
97
  export * from "./functions/readOnly";
98
+ export * from "./functions/render";
98
99
  export * from "./functions/revive";
99
100
  export * from "./functions/rng";
100
101
  export * from "./functions/rockAlt";
@@ -157,6 +158,7 @@ export * from "./types/AnyGridEntity";
157
158
  export * from "./types/ConversionHeartSubType";
158
159
  export * from "./types/Decrement";
159
160
  export * from "./types/EntityID";
161
+ export * from "./types/Expand";
160
162
  export * from "./types/FunctionTuple";
161
163
  export * from "./types/GridEntityID";
162
164
  export * from "./types/HasFunction";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAA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CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yCAAyC,CAAC;AACxD,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
@@ -775,6 +775,14 @@ do
775
775
  end
776
776
  end
777
777
  end
778
+ do
779
+ local ____export = require("src.functions.render")
780
+ for ____exportKey, ____exportValue in pairs(____export) do
781
+ if ____exportKey ~= "default" then
782
+ ____exports[____exportKey] = ____exportValue
783
+ end
784
+ end
785
+ end
778
786
  do
779
787
  local ____export = require("src.functions.revive")
780
788
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -0,0 +1,8 @@
1
+ /**
2
+ * From:
3
+ * https://stackoverflow.com/questions/57683303/how-can-i-see-the-full-expanded-contract-of-a-typescript-type
4
+ */
5
+ export type Expand<T> = T extends infer O ? {
6
+ [K in keyof O]: O[K];
7
+ } : never;
8
+ //# sourceMappingURL=Expand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Expand.d.ts","sourceRoot":"","sources":["../../../src/types/Expand.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,CAAC,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG,KAAK,CAAC"}
@@ -0,0 +1,2 @@
1
+ local ____exports = {}
2
+ return ____exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "31.4.0",
3
+ "version": "31.5.0",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -1,6 +1,7 @@
1
1
  import { ModCallback } from "isaac-typescript-definitions";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplayBomb extends Feature {
6
7
  public textCallback: (bomb: EntityBomb) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallbackCustom } from "../../../../enums/ModCallbackCustom";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultGridEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultGridEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplayDoor extends Feature {
6
7
  public textCallback: (door: GridEntityDoor) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallback } from "isaac-typescript-definitions";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplayEffect extends Feature {
6
7
  public textCallback: (effect: EntityEffect) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallback } from "isaac-typescript-definitions";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplayFamiliar extends Feature {
6
7
  public textCallback: (familiar: EntityFamiliar) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallback } from "isaac-typescript-definitions";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplayKnife extends Feature {
6
7
  public textCallback: (knife: EntityKnife) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallback } from "isaac-typescript-definitions";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplayLaser extends Feature {
6
7
  public textCallback: (laser: EntityLaser) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallback } from "isaac-typescript-definitions";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplayNPC extends Feature {
6
7
  public textCallback: (npc: EntityNPC) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallback } from "isaac-typescript-definitions";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplayPickup extends Feature {
6
7
  public textCallback: (pickup: EntityPickup) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallbackCustom } from "../../../../enums/ModCallbackCustom";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultGridEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultGridEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplayPit extends Feature {
6
7
  public textCallback: (pit: GridEntityPit) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallbackCustom } from "../../../../enums/ModCallbackCustom";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplayPlayer extends Feature {
6
7
  public textCallback: (player: EntityPlayer) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallbackCustom } from "../../../../enums/ModCallbackCustom";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultGridEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultGridEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplayPoop extends Feature {
6
7
  public textCallback: (poop: GridEntityPoop) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallbackCustom } from "../../../../enums/ModCallbackCustom";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultGridEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultGridEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplayPressurePlate extends Feature {
6
7
  public textCallback: (pressurePlate: GridEntityPressurePlate) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallback } from "isaac-typescript-definitions";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplayProjectile extends Feature {
6
7
  public textCallback: (projectile: EntityProjectile) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallbackCustom } from "../../../../enums/ModCallbackCustom";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultGridEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultGridEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplayRock extends Feature {
6
7
  public textCallback: (rock: GridEntityRock) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallbackCustom } from "../../../../enums/ModCallbackCustom";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplaySlot extends Feature {
6
7
  public textCallback: (slot: EntitySlot) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallbackCustom } from "../../../../enums/ModCallbackCustom";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultGridEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultGridEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplaySpikes extends Feature {
6
7
  public textCallback: (spikes: GridEntitySpikes) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallbackCustom } from "../../../../enums/ModCallbackCustom";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultGridEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultGridEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplayTNT extends Feature {
6
7
  public textCallback: (tnt: GridEntityTNT) => string =
@@ -1,6 +1,7 @@
1
1
  import { ModCallback } from "isaac-typescript-definitions";
2
+ import { renderTextOnEntity } from "../../../../functions/render";
2
3
  import { Feature } from "../../../private/Feature";
3
- import { defaultEntityDisplayCallback, renderTextOnEntity } from "./utils";
4
+ import { defaultEntityDisplayCallback } from "./utils";
4
5
 
5
6
  export class DebugDisplayTear extends Feature {
6
7
  public textCallback: (tear: EntityTear) => string =