isaacscript-common 1.2.287 → 1.2.290

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 (39) hide show
  1. package/dist/callbacks/postEffectStateChanged.d.ts +1 -0
  2. package/dist/callbacks/postEffectStateChanged.lua +35 -0
  3. package/dist/callbacks/postFamiliarStateChanged.d.ts +1 -0
  4. package/dist/callbacks/postFamiliarStateChanged.lua +35 -0
  5. package/dist/callbacks/postItemDischarged.d.ts +2 -0
  6. package/dist/callbacks/postItemDischarged.lua +83 -0
  7. package/dist/callbacks/postNPCStateChanged.d.ts +1 -0
  8. package/dist/callbacks/postNPCStateChanged.lua +35 -0
  9. package/dist/callbacks/postPickupStateChanged.d.ts +1 -0
  10. package/dist/callbacks/postPickupStateChanged.lua +35 -0
  11. package/dist/callbacks/subscriptions/postEffectStateChanged.d.ts +2 -0
  12. package/dist/callbacks/subscriptions/postEffectStateChanged.lua +23 -0
  13. package/dist/callbacks/subscriptions/postFamiliarStateChanged.d.ts +2 -0
  14. package/dist/callbacks/subscriptions/postFamiliarStateChanged.lua +23 -0
  15. package/dist/callbacks/subscriptions/postItemDischarged.d.ts +2 -0
  16. package/dist/callbacks/subscriptions/postItemDischarged.lua +23 -0
  17. package/dist/callbacks/subscriptions/postNPCStateChanged.d.ts +2 -0
  18. package/dist/callbacks/subscriptions/postNPCStateChanged.lua +27 -0
  19. package/dist/callbacks/subscriptions/postPickupStateChanged.d.ts +2 -0
  20. package/dist/callbacks/subscriptions/postPickupStateChanged.lua +23 -0
  21. package/dist/enums/ModCallbacksCustom.d.ts +18 -13
  22. package/dist/enums/ModCallbacksCustom.lua +23 -13
  23. package/dist/features/debugDisplay.d.ts +80 -0
  24. package/dist/features/debugDisplay.lua +230 -0
  25. package/dist/features/extraConsoleCommands/commands.d.ts +6 -0
  26. package/dist/features/extraConsoleCommands/commands.lua +18 -118
  27. package/dist/features/extraConsoleCommands/commandsDisplay.d.ts +99 -0
  28. package/dist/features/extraConsoleCommands/commandsDisplay.lua +81 -0
  29. package/dist/features/extraConsoleCommands/commandsSubroutines.d.ts +9 -0
  30. package/dist/features/extraConsoleCommands/commandsSubroutines.lua +126 -0
  31. package/dist/features/extraConsoleCommands/init.lua +26 -0
  32. package/dist/functions/utils.d.ts +2 -0
  33. package/dist/functions/utils.lua +4 -0
  34. package/dist/index.d.ts +1 -0
  35. package/dist/index.lua +25 -0
  36. package/dist/objects/callbackRegisterFunctions.lua +15 -0
  37. package/dist/types/AddCallbackParametersCustom.d.ts +26 -0
  38. package/dist/upgradeMod.lua +31 -10
  39. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,35 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local __TS__New = ____lualib.__TS__New
3
+ local ____exports = {}
4
+ local hasSubscriptions, postEffectUpdate, v
5
+ local ____DefaultMap = require("classes.DefaultMap")
6
+ local DefaultMap = ____DefaultMap.DefaultMap
7
+ local ____exports = require("features.saveDataManager.exports")
8
+ local saveDataManager = ____exports.saveDataManager
9
+ local ____postEffectStateChanged = require("callbacks.subscriptions.postEffectStateChanged")
10
+ local postEffectStateChangedFire = ____postEffectStateChanged.postEffectStateChangedFire
11
+ local postEffectStateChangedHasSubscriptions = ____postEffectStateChanged.postEffectStateChangedHasSubscriptions
12
+ function hasSubscriptions(self)
13
+ return postEffectStateChangedHasSubscriptions(nil)
14
+ end
15
+ function postEffectUpdate(self, effect)
16
+ if not hasSubscriptions(nil) then
17
+ return
18
+ end
19
+ local ptrHash = GetPtrHash(effect)
20
+ local previousState = v.run.effectStateMap:getAndSetDefault(ptrHash, effect.State)
21
+ local currentState = effect.State
22
+ v.run.effectStateMap:set(ptrHash, currentState)
23
+ if previousState ~= currentState then
24
+ postEffectStateChangedFire(nil, effect, previousState, currentState)
25
+ end
26
+ end
27
+ v = {run = {effectStateMap = __TS__New(
28
+ DefaultMap,
29
+ function(____, _ptrHash, state) return state end
30
+ )}}
31
+ function ____exports.postEffectStateChangedCallbackInit(self, mod)
32
+ saveDataManager(nil, "postEffectStateChanged", v, hasSubscriptions)
33
+ mod:AddCallback(ModCallbacks.MC_POST_EFFECT_UPDATE, postEffectUpdate)
34
+ end
35
+ return ____exports
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,35 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local __TS__New = ____lualib.__TS__New
3
+ local ____exports = {}
4
+ local hasSubscriptions, postFamiliarUpdate, v
5
+ local ____DefaultMap = require("classes.DefaultMap")
6
+ local DefaultMap = ____DefaultMap.DefaultMap
7
+ local ____exports = require("features.saveDataManager.exports")
8
+ local saveDataManager = ____exports.saveDataManager
9
+ local ____postFamiliarStateChanged = require("callbacks.subscriptions.postFamiliarStateChanged")
10
+ local postFamiliarStateChangedFire = ____postFamiliarStateChanged.postFamiliarStateChangedFire
11
+ local postFamiliarStateChangedHasSubscriptions = ____postFamiliarStateChanged.postFamiliarStateChangedHasSubscriptions
12
+ function hasSubscriptions(self)
13
+ return postFamiliarStateChangedHasSubscriptions(nil)
14
+ end
15
+ function postFamiliarUpdate(self, familiar)
16
+ if not hasSubscriptions(nil) then
17
+ return
18
+ end
19
+ local ptrHash = GetPtrHash(familiar)
20
+ local previousState = v.run.familiarStateMap:getAndSetDefault(ptrHash, familiar.State)
21
+ local currentState = familiar.State
22
+ v.run.familiarStateMap:set(ptrHash, currentState)
23
+ if previousState ~= currentState then
24
+ postFamiliarStateChangedFire(nil, familiar, previousState, currentState)
25
+ end
26
+ end
27
+ v = {run = {familiarStateMap = __TS__New(
28
+ DefaultMap,
29
+ function(____, _initSeed, state) return state end
30
+ )}}
31
+ function ____exports.postFamiliarStateChangedCallbackInit(self, mod)
32
+ saveDataManager(nil, "postFamiliarStateChanged", v, hasSubscriptions)
33
+ mod:AddCallback(ModCallbacks.MC_FAMILIAR_UPDATE, postFamiliarUpdate)
34
+ end
35
+ return ____exports
@@ -0,0 +1,2 @@
1
+ import { ModUpgraded } from "../classes/ModUpgraded";
2
+ export declare function postItemDischargeCallbackInit(mod: ModUpgraded): void;
@@ -0,0 +1,83 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local __TS__New = ____lualib.__TS__New
3
+ local Map = ____lualib.Map
4
+ local ____exports = {}
5
+ local hasSubscriptions, postPEffectUpdate, playerRecentlyCollidedWithBulb, preNPCCollision, v
6
+ local ____cachedClasses = require("cachedClasses")
7
+ local game = ____cachedClasses.game
8
+ local ____DefaultMap = require("classes.DefaultMap")
9
+ local DefaultMap = ____DefaultMap.DefaultMap
10
+ local ____exports = require("features.saveDataManager.exports")
11
+ local saveDataManager = ____exports.saveDataManager
12
+ local ____charge = require("functions.charge")
13
+ local getTotalCharge = ____charge.getTotalCharge
14
+ local ____playerDataStructures = require("functions.playerDataStructures")
15
+ local defaultMapGetPlayer = ____playerDataStructures.defaultMapGetPlayer
16
+ local mapGetPlayer = ____playerDataStructures.mapGetPlayer
17
+ local mapSetPlayer = ____playerDataStructures.mapSetPlayer
18
+ local ____utils = require("functions.utils")
19
+ local getEnumValues = ____utils.getEnumValues
20
+ local ____postItemDischarged = require("callbacks.subscriptions.postItemDischarged")
21
+ local postItemDischargeFire = ____postItemDischarged.postItemDischargeFire
22
+ local postItemDischargeHasSubscriptions = ____postItemDischarged.postItemDischargeHasSubscriptions
23
+ function hasSubscriptions(self)
24
+ return postItemDischargeHasSubscriptions(nil)
25
+ end
26
+ function postPEffectUpdate(self, player)
27
+ if not hasSubscriptions(nil) then
28
+ return
29
+ end
30
+ local chargeMap = defaultMapGetPlayer(nil, v.run.playersChargeMap, player)
31
+ for ____, activeSlot in ipairs(getEnumValues(nil, ActiveSlot)) do
32
+ do
33
+ local currentCharge = getTotalCharge(nil, player, activeSlot)
34
+ local previousCharge = chargeMap:getAndSetDefault(activeSlot, currentCharge)
35
+ chargeMap:set(activeSlot, currentCharge)
36
+ if playerRecentlyCollidedWithBulb(nil, player) then
37
+ goto __continue8
38
+ end
39
+ if currentCharge < previousCharge then
40
+ local collectibleType = player:GetActiveItem(activeSlot)
41
+ postItemDischargeFire(nil, player, collectibleType, activeSlot)
42
+ end
43
+ end
44
+ ::__continue8::
45
+ end
46
+ end
47
+ function playerRecentlyCollidedWithBulb(self, player)
48
+ local gameFrameCount = game:GetFrameCount()
49
+ local bulbLastCollisionFrame = mapGetPlayer(nil, v.room.playersBulbLastCollisionFrame, player)
50
+ local collidedOnThisFrame = gameFrameCount == bulbLastCollisionFrame
51
+ local collidedOnLastFrame = gameFrameCount - 1 == bulbLastCollisionFrame
52
+ return collidedOnThisFrame or collidedOnLastFrame
53
+ end
54
+ function preNPCCollision(self, npc, collider)
55
+ if not hasSubscriptions(nil) then
56
+ return
57
+ end
58
+ if npc.Variant ~= 5 then
59
+ return
60
+ end
61
+ local player = collider:ToPlayer()
62
+ if player == nil then
63
+ return
64
+ end
65
+ local gameFrameCount = game:GetFrameCount()
66
+ mapSetPlayer(nil, v.room.playersBulbLastCollisionFrame, player, gameFrameCount)
67
+ end
68
+ v = {
69
+ run = {playersChargeMap = __TS__New(
70
+ DefaultMap,
71
+ function() return __TS__New(
72
+ DefaultMap,
73
+ function(____, _playerIndex, charge) return charge end
74
+ ) end
75
+ )},
76
+ room = {playersBulbLastCollisionFrame = __TS__New(Map)}
77
+ }
78
+ function ____exports.postItemDischargeCallbackInit(self, mod)
79
+ saveDataManager(nil, "postItemDischarge", v, hasSubscriptions)
80
+ mod:AddCallback(ModCallbacks.MC_POST_PEFFECT_UPDATE, postPEffectUpdate)
81
+ mod:AddCallback(ModCallbacks.MC_PRE_NPC_COLLISION, preNPCCollision, EntityType.ENTITY_SUCKER)
82
+ end
83
+ return ____exports
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,35 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local __TS__New = ____lualib.__TS__New
3
+ local ____exports = {}
4
+ local hasSubscriptions, postNPCUpdate, v
5
+ local ____DefaultMap = require("classes.DefaultMap")
6
+ local DefaultMap = ____DefaultMap.DefaultMap
7
+ local ____exports = require("features.saveDataManager.exports")
8
+ local saveDataManager = ____exports.saveDataManager
9
+ local ____postNPCStateChanged = require("callbacks.subscriptions.postNPCStateChanged")
10
+ local postNPCStateChangedFire = ____postNPCStateChanged.postNPCStateChangedFire
11
+ local postNPCStateChangedHasSubscriptions = ____postNPCStateChanged.postNPCStateChangedHasSubscriptions
12
+ function hasSubscriptions(self)
13
+ return postNPCStateChangedHasSubscriptions(nil)
14
+ end
15
+ function postNPCUpdate(self, npc)
16
+ if not hasSubscriptions(nil) then
17
+ return
18
+ end
19
+ local ptrHash = GetPtrHash(npc)
20
+ local previousState = v.run.npcStateMap:getAndSetDefault(ptrHash, npc.State)
21
+ local currentState = npc.State
22
+ v.run.npcStateMap:set(ptrHash, currentState)
23
+ if previousState ~= currentState then
24
+ postNPCStateChangedFire(nil, npc, previousState, currentState)
25
+ end
26
+ end
27
+ v = {run = {npcStateMap = __TS__New(
28
+ DefaultMap,
29
+ function(____, _ptrHash, state) return state end
30
+ )}}
31
+ function ____exports.postNPCStateChangedCallbackInit(self, mod)
32
+ saveDataManager(nil, "postNPCStateChanged", v, hasSubscriptions)
33
+ mod:AddCallback(ModCallbacks.MC_NPC_UPDATE, postNPCUpdate)
34
+ end
35
+ return ____exports
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,35 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local __TS__New = ____lualib.__TS__New
3
+ local ____exports = {}
4
+ local hasSubscriptions, postPickupUpdate, v
5
+ local ____DefaultMap = require("classes.DefaultMap")
6
+ local DefaultMap = ____DefaultMap.DefaultMap
7
+ local ____exports = require("features.saveDataManager.exports")
8
+ local saveDataManager = ____exports.saveDataManager
9
+ local ____postPickupStateChanged = require("callbacks.subscriptions.postPickupStateChanged")
10
+ local postPickupStateChangedFire = ____postPickupStateChanged.postPickupStateChangedFire
11
+ local postPickupStateChangedHasSubscriptions = ____postPickupStateChanged.postPickupStateChangedHasSubscriptions
12
+ function hasSubscriptions(self)
13
+ return postPickupStateChangedHasSubscriptions(nil)
14
+ end
15
+ function postPickupUpdate(self, pickup)
16
+ if not hasSubscriptions(nil) then
17
+ return
18
+ end
19
+ local ptrHash = GetPtrHash(pickup)
20
+ local previousState = v.run.pickupStateMap:getAndSetDefault(ptrHash, pickup.State)
21
+ local currentState = pickup.State
22
+ v.run.pickupStateMap:set(ptrHash, currentState)
23
+ if previousState ~= currentState then
24
+ postPickupStateChangedFire(nil, pickup, previousState, currentState)
25
+ end
26
+ end
27
+ v = {run = {pickupStateMap = __TS__New(
28
+ DefaultMap,
29
+ function(____, _ptrHash, state) return state end
30
+ )}}
31
+ function ____exports.postPickupStateChangedCallbackInit(self, mod)
32
+ saveDataManager(nil, "postPickupStateChanged", v, hasSubscriptions)
33
+ mod:AddCallback(ModCallbacks.MC_POST_PICKUP_UPDATE, postPickupUpdate)
34
+ end
35
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare type PostEffectStateChangedCallbackType = (effect: EntityEffect, previousState: int, currentState: int) => void;
@@ -0,0 +1,23 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____exports = {}
3
+ local subscriptions = {}
4
+ function ____exports.postEffectStateChangedHasSubscriptions(self)
5
+ return #subscriptions > 0
6
+ end
7
+ function ____exports.postEffectStateChangedRegister(self, callback, effectVariant)
8
+ subscriptions[#subscriptions + 1] = {callback, effectVariant}
9
+ end
10
+ function ____exports.postEffectStateChangedFire(self, effect, previousState, currentState)
11
+ for ____, ____value in ipairs(subscriptions) do
12
+ local callback = ____value[1]
13
+ local effectVariant = ____value[2]
14
+ do
15
+ if effectVariant ~= nil and effectVariant ~= effect.Variant then
16
+ goto __continue5
17
+ end
18
+ callback(nil, effect, previousState, currentState)
19
+ end
20
+ ::__continue5::
21
+ end
22
+ end
23
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare type PostFamiliarStateChangedCallbackType = (familiar: EntityFamiliar, previousState: int, currentState: int) => void;
@@ -0,0 +1,23 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____exports = {}
3
+ local subscriptions = {}
4
+ function ____exports.postFamiliarStateChangedHasSubscriptions(self)
5
+ return #subscriptions > 0
6
+ end
7
+ function ____exports.postFamiliarStateChangedRegister(self, callback, familiarVariant)
8
+ subscriptions[#subscriptions + 1] = {callback, familiarVariant}
9
+ end
10
+ function ____exports.postFamiliarStateChangedFire(self, familiar, previousState, currentState)
11
+ for ____, ____value in ipairs(subscriptions) do
12
+ local callback = ____value[1]
13
+ local familiarVariant = ____value[2]
14
+ do
15
+ if familiarVariant ~= nil and familiarVariant ~= familiar.Variant then
16
+ goto __continue5
17
+ end
18
+ callback(nil, familiar, previousState, currentState)
19
+ end
20
+ ::__continue5::
21
+ end
22
+ end
23
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare type PostItemDischargedCallbackType = (player: EntityPlayer, collectibleType: CollectibleType | int, activeSlot: ActiveSlot) => void;
@@ -0,0 +1,23 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____exports = {}
3
+ local subscriptions = {}
4
+ function ____exports.postItemDischargeHasSubscriptions(self)
5
+ return #subscriptions > 0
6
+ end
7
+ function ____exports.postItemDischargeRegister(self, callback, activeSlot)
8
+ subscriptions[#subscriptions + 1] = {callback, activeSlot}
9
+ end
10
+ function ____exports.postItemDischargeFire(self, player, collectibleType, activeSlot)
11
+ for ____, ____value in ipairs(subscriptions) do
12
+ local callback = ____value[1]
13
+ local callbackCollectibleType = ____value[2]
14
+ do
15
+ if callbackCollectibleType ~= nil and callbackCollectibleType ~= collectibleType then
16
+ goto __continue5
17
+ end
18
+ callback(nil, player, collectibleType, activeSlot)
19
+ end
20
+ ::__continue5::
21
+ end
22
+ end
23
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare type PostNPCStateChangedCallbackType = (npc: EntityNPC, previousState: int, currentState: int) => void;
@@ -0,0 +1,27 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____exports = {}
3
+ local subscriptions = {}
4
+ function ____exports.postNPCStateChangedHasSubscriptions(self)
5
+ return #subscriptions > 0
6
+ end
7
+ function ____exports.postNPCStateChangedRegister(self, callback, entityType, variant)
8
+ subscriptions[#subscriptions + 1] = {callback, entityType, variant}
9
+ end
10
+ function ____exports.postNPCStateChangedFire(self, npc, previousState, currentState)
11
+ for ____, ____value in ipairs(subscriptions) do
12
+ local callback = ____value[1]
13
+ local entityType = ____value[2]
14
+ local variant = ____value[3]
15
+ do
16
+ if entityType ~= nil and entityType ~= npc.Type then
17
+ goto __continue5
18
+ end
19
+ if variant ~= nil and variant ~= npc.Variant then
20
+ goto __continue5
21
+ end
22
+ callback(nil, npc, previousState, currentState)
23
+ end
24
+ ::__continue5::
25
+ end
26
+ end
27
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare type PostPickupStateChangedCallbackType = (pickup: EntityPickup, previousState: int, currentState: int) => void;
@@ -0,0 +1,23 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____exports = {}
3
+ local subscriptions = {}
4
+ function ____exports.postPickupStateChangedHasSubscriptions(self)
5
+ return #subscriptions > 0
6
+ end
7
+ function ____exports.postPickupStateChangedRegister(self, callback, pickupVariant)
8
+ subscriptions[#subscriptions + 1] = {callback, pickupVariant}
9
+ end
10
+ function ____exports.postPickupStateChangedFire(self, pickup, previousState, currentState)
11
+ for ____, ____value in ipairs(subscriptions) do
12
+ local callback = ____value[1]
13
+ local pickupVariant = ____value[2]
14
+ do
15
+ if pickupVariant ~= nil and pickupVariant ~= pickup.Variant then
16
+ goto __continue5
17
+ end
18
+ callback(nil, pickup, previousState, currentState)
19
+ end
20
+ ::__continue5::
21
+ end
22
+ end
23
+ return ____exports
@@ -46,17 +46,22 @@ export declare enum ModCallbacksCustom {
46
46
  MC_POST_SACRIFICE = 37,
47
47
  MC_POST_CURSED_TELEPORT = 38,
48
48
  MC_POST_TRINKET_BREAK = 39,
49
- MC_POST_SLOT_INIT = 40,
50
- MC_POST_SLOT_UPDATE = 41,
51
- MC_POST_SLOT_RENDER = 42,
52
- MC_POST_SLOT_ANIMATION_CHANGED = 43,
53
- MC_POST_SLOT_DESTROYED = 44,
54
- MC_POST_GRID_ENTITY_INIT = 45,
55
- MC_POST_GRID_ENTITY_UPDATE = 46,
56
- MC_POST_GRID_ENTITY_REMOVE = 47,
57
- MC_POST_GRID_ENTITY_STATE_CHANGE = 48,
58
- MC_POST_GRID_ENTITY_BROKEN = 49,
59
- MC_POST_GRID_ENTITY_COLLISION = 50,
60
- MC_POST_BONE_SWING = 51,
61
- MC_POST_CUSTOM_DOOR_ENTER = 52
49
+ MC_POST_ITEM_DISCHARGE = 40,
50
+ MC_POST_SLOT_INIT = 41,
51
+ MC_POST_SLOT_UPDATE = 42,
52
+ MC_POST_SLOT_RENDER = 43,
53
+ MC_POST_SLOT_ANIMATION_CHANGED = 44,
54
+ MC_POST_SLOT_DESTROYED = 45,
55
+ MC_POST_FAMILIAR_STATE_CHANGED = 46,
56
+ MC_POST_PICKUP_STATE_CHANGED = 47,
57
+ MC_POST_EFFECT_STATE_CHANGED = 48,
58
+ MC_POST_NPC_STATE_CHANGED = 49,
59
+ MC_POST_GRID_ENTITY_INIT = 50,
60
+ MC_POST_GRID_ENTITY_UPDATE = 51,
61
+ MC_POST_GRID_ENTITY_REMOVE = 52,
62
+ MC_POST_GRID_ENTITY_STATE_CHANGE = 53,
63
+ MC_POST_GRID_ENTITY_BROKEN = 54,
64
+ MC_POST_GRID_ENTITY_COLLISION = 55,
65
+ MC_POST_BONE_SWING = 56,
66
+ MC_POST_CUSTOM_DOOR_ENTER = 57
62
67
  }
@@ -81,30 +81,40 @@ ____exports.ModCallbacksCustom.MC_POST_CURSED_TELEPORT = 38
81
81
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_CURSED_TELEPORT] = "MC_POST_CURSED_TELEPORT"
82
82
  ____exports.ModCallbacksCustom.MC_POST_TRINKET_BREAK = 39
83
83
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_TRINKET_BREAK] = "MC_POST_TRINKET_BREAK"
84
- ____exports.ModCallbacksCustom.MC_POST_SLOT_INIT = 40
84
+ ____exports.ModCallbacksCustom.MC_POST_ITEM_DISCHARGE = 40
85
+ ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_ITEM_DISCHARGE] = "MC_POST_ITEM_DISCHARGE"
86
+ ____exports.ModCallbacksCustom.MC_POST_SLOT_INIT = 41
85
87
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_INIT] = "MC_POST_SLOT_INIT"
86
- ____exports.ModCallbacksCustom.MC_POST_SLOT_UPDATE = 41
88
+ ____exports.ModCallbacksCustom.MC_POST_SLOT_UPDATE = 42
87
89
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_UPDATE] = "MC_POST_SLOT_UPDATE"
88
- ____exports.ModCallbacksCustom.MC_POST_SLOT_RENDER = 42
90
+ ____exports.ModCallbacksCustom.MC_POST_SLOT_RENDER = 43
89
91
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_RENDER] = "MC_POST_SLOT_RENDER"
90
- ____exports.ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED = 43
92
+ ____exports.ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED = 44
91
93
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED] = "MC_POST_SLOT_ANIMATION_CHANGED"
92
- ____exports.ModCallbacksCustom.MC_POST_SLOT_DESTROYED = 44
94
+ ____exports.ModCallbacksCustom.MC_POST_SLOT_DESTROYED = 45
93
95
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_DESTROYED] = "MC_POST_SLOT_DESTROYED"
94
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT = 45
96
+ ____exports.ModCallbacksCustom.MC_POST_FAMILIAR_STATE_CHANGED = 46
97
+ ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_FAMILIAR_STATE_CHANGED] = "MC_POST_FAMILIAR_STATE_CHANGED"
98
+ ____exports.ModCallbacksCustom.MC_POST_PICKUP_STATE_CHANGED = 47
99
+ ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PICKUP_STATE_CHANGED] = "MC_POST_PICKUP_STATE_CHANGED"
100
+ ____exports.ModCallbacksCustom.MC_POST_EFFECT_STATE_CHANGED = 48
101
+ ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_EFFECT_STATE_CHANGED] = "MC_POST_EFFECT_STATE_CHANGED"
102
+ ____exports.ModCallbacksCustom.MC_POST_NPC_STATE_CHANGED = 49
103
+ ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_NPC_STATE_CHANGED] = "MC_POST_NPC_STATE_CHANGED"
104
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT = 50
95
105
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT] = "MC_POST_GRID_ENTITY_INIT"
96
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE = 46
106
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE = 51
97
107
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE] = "MC_POST_GRID_ENTITY_UPDATE"
98
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE = 47
108
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE = 52
99
109
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE] = "MC_POST_GRID_ENTITY_REMOVE"
100
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_STATE_CHANGE = 48
110
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_STATE_CHANGE = 53
101
111
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_STATE_CHANGE] = "MC_POST_GRID_ENTITY_STATE_CHANGE"
102
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_BROKEN = 49
112
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_BROKEN = 54
103
113
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_BROKEN] = "MC_POST_GRID_ENTITY_BROKEN"
104
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION = 50
114
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION = 55
105
115
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION] = "MC_POST_GRID_ENTITY_COLLISION"
106
- ____exports.ModCallbacksCustom.MC_POST_BONE_SWING = 51
116
+ ____exports.ModCallbacksCustom.MC_POST_BONE_SWING = 56
107
117
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_BONE_SWING] = "MC_POST_BONE_SWING"
108
- ____exports.ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER = 52
118
+ ____exports.ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER = 57
109
119
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER] = "MC_POST_CUSTOM_DOOR_ENTER"
110
120
  return ____exports
@@ -0,0 +1,80 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ import { ModUpgraded } from "../classes/ModUpgraded";
3
+ export declare function debugDisplayInit(mod: ModUpgraded): void;
4
+ export declare function togglePlayerDisplay(): void;
5
+ export declare function toggleTearDisplay(): void;
6
+ export declare function toggleFamiliarDisplay(): void;
7
+ export declare function toggleBombDisplay(): void;
8
+ export declare function togglePickupDisplay(): void;
9
+ export declare function toggleSlotDisplay(): void;
10
+ export declare function toggleLaserDisplay(): void;
11
+ export declare function toggleKnifeDisplay(): void;
12
+ export declare function toggleProjectileDisplay(): void;
13
+ export declare function toggleEffectDisplay(): void;
14
+ export declare function toggleNPCDisplay(): void;
15
+ /**
16
+ * After using the "playerdisplay" console command, text will be drawn on each player for debugging
17
+ * purposes. Use this function to specify a callback function that will returns the string that
18
+ * should be drawn.
19
+ */
20
+ export declare function setPlayerDisplay(textCallback: (player: EntityPlayer) => string): void;
21
+ /**
22
+ * After using the "teardisplay" console command, text will be drawn on each tear for debugging
23
+ * purposes. Use this function to specify a callback function that will returns the string that
24
+ * should be drawn.
25
+ */
26
+ export declare function setTearDisplay(textCallback: (tear: EntityTear) => string): void;
27
+ /**
28
+ * After using the "familiardisplay" console command, text will be drawn on each familiar for
29
+ * debugging purposes. Use this function to specify a callback function that will returns the string
30
+ * that should be drawn.
31
+ */
32
+ export declare function setFamiliarDisplay(textCallback: (familiar: EntityFamiliar) => string): void;
33
+ /**
34
+ * After using the "bombdisplay" console command, text will be drawn on each bomb for debugging
35
+ * purposes. Use this function to specify a callback function that will returns the string that
36
+ * should be drawn.
37
+ */
38
+ export declare function setBombDisplay(textCallback: (bomb: EntityBomb) => string): void;
39
+ /**
40
+ * After using the "pickupdisplay" console command, text will be drawn on each pickup for debugging
41
+ * purposes. Use this function to specify a callback function that will returns the string that
42
+ * should be drawn.
43
+ */
44
+ export declare function setPickupDisplay(textCallback: (pickup: EntityPickup) => string): void;
45
+ /**
46
+ * After using the "slotdisplay" console command, text will be drawn on each slot for debugging
47
+ * purposes. Use this function to specify a callback function that will returns the string that
48
+ * should be drawn.
49
+ */
50
+ export declare function setSlotDisplay(textCallback: (slot: Entity) => string): void;
51
+ /**
52
+ * After using the "laserdisplay" console command, text will be drawn on each laser for debugging
53
+ * purposes. Use this function to specify a callback function that will returns the string that
54
+ * should be drawn.
55
+ */
56
+ export declare function setLaserDisplay(textCallback: (laser: EntityLaser) => string): void;
57
+ /**
58
+ * After using the "knifedisplay" console command, text will be drawn on each knife for debugging
59
+ * purposes. Use this function to specify a callback function that will returns the string that
60
+ * should be drawn.
61
+ */
62
+ export declare function setKnifeDisplay(textCallback: (knife: EntityKnife) => string): void;
63
+ /**
64
+ * After using the "projectiledisplay" console command, text will be drawn on each projectile for
65
+ * debugging purposes. Use this function to specify a callback function that will returns the string
66
+ * that should be drawn.
67
+ */
68
+ export declare function setProjectileDisplay(textCallback: (projectile: EntityProjectile) => string): void;
69
+ /**
70
+ * After using the "effectdisplay" console command, text will be drawn on each effect for debugging
71
+ * purposes. Use this function to specify a callback function that will returns the string that
72
+ * should be drawn.
73
+ */
74
+ export declare function setEffectDisplay(textCallback: (effect: EntityEffect) => string): void;
75
+ /**
76
+ * After using the "npcdisplay" console command, text will be drawn on each NPC for debugging
77
+ * purposes. Use this function to specify a callback function that will returns the string that
78
+ * should be drawn.
79
+ */
80
+ export declare function setNPCDisplay(textCallback: (npc: EntityNPC) => string): void;