isaacscript-common 1.2.288 → 1.2.289

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.
@@ -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 @@
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 PostNPCStateChangedCallbackType = (npc: EntityNPC, 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.postNPCStateChangedHasSubscriptions(self)
5
+ return #subscriptions > 0
6
+ end
7
+ function ____exports.postNPCStateChangedRegister(self, callback, entityType)
8
+ subscriptions[#subscriptions + 1] = {callback, entityType}
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
+ do
15
+ if entityType ~= nil and entityType ~= npc.Type then
16
+ goto __continue5
17
+ end
18
+ callback(nil, npc, 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 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
@@ -51,12 +51,16 @@ export declare enum ModCallbacksCustom {
51
51
  MC_POST_SLOT_RENDER = 42,
52
52
  MC_POST_SLOT_ANIMATION_CHANGED = 43,
53
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
54
+ MC_POST_FAMILIAR_STATE_CHANGED = 45,
55
+ MC_POST_PICKUP_STATE_CHANGED = 46,
56
+ MC_POST_EFFECT_STATE_CHANGED = 47,
57
+ MC_POST_NPC_STATE_CHANGED = 48,
58
+ MC_POST_GRID_ENTITY_INIT = 49,
59
+ MC_POST_GRID_ENTITY_UPDATE = 50,
60
+ MC_POST_GRID_ENTITY_REMOVE = 51,
61
+ MC_POST_GRID_ENTITY_STATE_CHANGE = 52,
62
+ MC_POST_GRID_ENTITY_BROKEN = 53,
63
+ MC_POST_GRID_ENTITY_COLLISION = 54,
64
+ MC_POST_BONE_SWING = 55,
65
+ MC_POST_CUSTOM_DOOR_ENTER = 56
62
66
  }
@@ -91,20 +91,28 @@ ____exports.ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED = 43
91
91
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED] = "MC_POST_SLOT_ANIMATION_CHANGED"
92
92
  ____exports.ModCallbacksCustom.MC_POST_SLOT_DESTROYED = 44
93
93
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_DESTROYED] = "MC_POST_SLOT_DESTROYED"
94
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT = 45
94
+ ____exports.ModCallbacksCustom.MC_POST_FAMILIAR_STATE_CHANGED = 45
95
+ ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_FAMILIAR_STATE_CHANGED] = "MC_POST_FAMILIAR_STATE_CHANGED"
96
+ ____exports.ModCallbacksCustom.MC_POST_PICKUP_STATE_CHANGED = 46
97
+ ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PICKUP_STATE_CHANGED] = "MC_POST_PICKUP_STATE_CHANGED"
98
+ ____exports.ModCallbacksCustom.MC_POST_EFFECT_STATE_CHANGED = 47
99
+ ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_EFFECT_STATE_CHANGED] = "MC_POST_EFFECT_STATE_CHANGED"
100
+ ____exports.ModCallbacksCustom.MC_POST_NPC_STATE_CHANGED = 48
101
+ ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_NPC_STATE_CHANGED] = "MC_POST_NPC_STATE_CHANGED"
102
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT = 49
95
103
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT] = "MC_POST_GRID_ENTITY_INIT"
96
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE = 46
104
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE = 50
97
105
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE] = "MC_POST_GRID_ENTITY_UPDATE"
98
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE = 47
106
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE = 51
99
107
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE] = "MC_POST_GRID_ENTITY_REMOVE"
100
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_STATE_CHANGE = 48
108
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_STATE_CHANGE = 52
101
109
  ____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
110
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_BROKEN = 53
103
111
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_BROKEN] = "MC_POST_GRID_ENTITY_BROKEN"
104
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION = 50
112
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION = 54
105
113
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION] = "MC_POST_GRID_ENTITY_COLLISION"
106
- ____exports.ModCallbacksCustom.MC_POST_BONE_SWING = 51
114
+ ____exports.ModCallbacksCustom.MC_POST_BONE_SWING = 55
107
115
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_BONE_SWING] = "MC_POST_BONE_SWING"
108
- ____exports.ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER = 52
116
+ ____exports.ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER = 56
109
117
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER] = "MC_POST_CUSTOM_DOOR_ENTER"
110
118
  return ____exports
@@ -14,10 +14,14 @@ local ____postCustomRevive = require("callbacks.subscriptions.postCustomRevive")
14
14
  local postCustomReviveRegister = ____postCustomRevive.postCustomReviveRegister
15
15
  local ____postEffectInitLate = require("callbacks.subscriptions.postEffectInitLate")
16
16
  local postEffectInitLateRegister = ____postEffectInitLate.postEffectInitLateRegister
17
+ local ____postEffectStateChanged = require("callbacks.subscriptions.postEffectStateChanged")
18
+ local postEffectStateChangedRegister = ____postEffectStateChanged.postEffectStateChangedRegister
17
19
  local ____postEsauJr = require("callbacks.subscriptions.postEsauJr")
18
20
  local postEsauJrRegister = ____postEsauJr.postEsauJrRegister
19
21
  local ____postFamiliarInitLate = require("callbacks.subscriptions.postFamiliarInitLate")
20
22
  local postFamiliarInitLateRegister = ____postFamiliarInitLate.postFamiliarInitLateRegister
23
+ local ____postFamiliarStateChanged = require("callbacks.subscriptions.postFamiliarStateChanged")
24
+ local postFamiliarStateChangedRegister = ____postFamiliarStateChanged.postFamiliarStateChangedRegister
21
25
  local ____postFirstEsauJr = require("callbacks.subscriptions.postFirstEsauJr")
22
26
  local postFirstEsauJrRegister = ____postFirstEsauJr.postFirstEsauJrRegister
23
27
  local ____postFirstFlip = require("callbacks.subscriptions.postFirstFlip")
@@ -52,12 +56,16 @@ local ____postNewRoomReordered = require("callbacks.subscriptions.postNewRoomReo
52
56
  local postNewRoomReorderedRegister = ____postNewRoomReordered.postNewRoomReorderedRegister
53
57
  local ____postNPCInitLate = require("callbacks.subscriptions.postNPCInitLate")
54
58
  local postNPCInitLateRegister = ____postNPCInitLate.postNPCInitLateRegister
59
+ local ____postNPCStateChanged = require("callbacks.subscriptions.postNPCStateChanged")
60
+ local postNPCStateChangedRegister = ____postNPCStateChanged.postNPCStateChangedRegister
55
61
  local ____postPEffectUpdateReordered = require("callbacks.subscriptions.postPEffectUpdateReordered")
56
62
  local postPEffectUpdateReorderedRegister = ____postPEffectUpdateReordered.postPEffectUpdateReorderedRegister
57
63
  local ____postPickupCollect = require("callbacks.subscriptions.postPickupCollect")
58
64
  local postPickupCollectRegister = ____postPickupCollect.postPickupCollectRegister
59
65
  local ____postPickupInitLate = require("callbacks.subscriptions.postPickupInitLate")
60
66
  local postPickupInitLateRegister = ____postPickupInitLate.postPickupInitLateRegister
67
+ local ____postPickupStateChanged = require("callbacks.subscriptions.postPickupStateChanged")
68
+ local postPickupStateChangedRegister = ____postPickupStateChanged.postPickupStateChangedRegister
61
69
  local ____postPlayerChangeHealth = require("callbacks.subscriptions.postPlayerChangeHealth")
62
70
  local postPlayerChangeHealthRegister = ____postPlayerChangeHealth.postPlayerChangeHealthRegister
63
71
  local ____postPlayerChangeType = require("callbacks.subscriptions.postPlayerChangeType")
@@ -154,6 +162,10 @@ ____exports.CALLBACK_REGISTER_FUNCTIONS = {
154
162
  [ModCallbacksCustom.MC_POST_SLOT_RENDER] = postSlotRenderRegister,
155
163
  [ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED] = postSlotAnimationChangedRegister,
156
164
  [ModCallbacksCustom.MC_POST_SLOT_DESTROYED] = postSlotDestroyedRegister,
165
+ [ModCallbacksCustom.MC_POST_FAMILIAR_STATE_CHANGED] = postFamiliarStateChangedRegister,
166
+ [ModCallbacksCustom.MC_POST_PICKUP_STATE_CHANGED] = postPickupStateChangedRegister,
167
+ [ModCallbacksCustom.MC_POST_EFFECT_STATE_CHANGED] = postEffectStateChangedRegister,
168
+ [ModCallbacksCustom.MC_POST_NPC_STATE_CHANGED] = postNPCStateChangedRegister,
157
169
  [ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT] = postGridEntityInitRegister,
158
170
  [ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE] = postGridEntityUpdateRegister,
159
171
  [ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE] = postGridEntityRemoveRegister,
@@ -6,8 +6,10 @@ import { PostCursedTeleportCallbackType } from "../callbacks/subscriptions/postC
6
6
  import { PostCustomDoorEnterCallbackType } from "../callbacks/subscriptions/postCustomDoorEnter";
7
7
  import { PostCustomReviveCallbackType } from "../callbacks/subscriptions/postCustomRevive";
8
8
  import { PostEffectInitLateCallbackType } from "../callbacks/subscriptions/postEffectInitLate";
9
+ import { PostEffectStateChangedCallbackType } from "../callbacks/subscriptions/postEffectStateChanged";
9
10
  import { PostEsauJrCallbackType } from "../callbacks/subscriptions/postEsauJr";
10
11
  import { PostFamiliarInitLateCallbackType } from "../callbacks/subscriptions/postFamiliarInitLate";
12
+ import { PostFamiliarStateChangedCallbackType } from "../callbacks/subscriptions/postFamiliarStateChanged";
11
13
  import { PostFirstEsauJrCallbackType } from "../callbacks/subscriptions/postFirstEsauJr";
12
14
  import { PostFirstFlipCallbackType } from "../callbacks/subscriptions/postFirstFlip";
13
15
  import { PostFlipCallbackType } from "../callbacks/subscriptions/postFlip";
@@ -25,9 +27,11 @@ import { PostNewLevelReorderedCallbackType } from "../callbacks/subscriptions/po
25
27
  import { PostNewRoomEarlyCallbackType } from "../callbacks/subscriptions/postNewRoomEarly";
26
28
  import { PostNewRoomReorderedCallbackType } from "../callbacks/subscriptions/postNewRoomReordered";
27
29
  import { PostNPCInitLateCallbackType } from "../callbacks/subscriptions/postNPCInitLate";
30
+ import { PostNPCStateChangedCallbackType } from "../callbacks/subscriptions/postNPCStateChanged";
28
31
  import { PostPEffectUpdateReorderedCallbackType } from "../callbacks/subscriptions/postPEffectUpdateReordered";
29
32
  import { PostPickupCollectCallbackType } from "../callbacks/subscriptions/postPickupCollect";
30
33
  import { PostPickupInitLateCallbackType } from "../callbacks/subscriptions/postPickupInitLate";
34
+ import { PostPickupStateChangedCallbackType } from "../callbacks/subscriptions/postPickupStateChanged";
31
35
  import { PostPlayerChangeHealthCallbackType } from "../callbacks/subscriptions/postPlayerChangeHealth";
32
36
  import { PostPlayerChangeTypeCallbackType } from "../callbacks/subscriptions/postPlayerChangeType";
33
37
  import { PostPlayerFatalDamageCallbackType } from "../callbacks/subscriptions/postPlayerFatalDamage";
@@ -214,6 +218,22 @@ export interface AddCallbackParametersCustom {
214
218
  callback: PostSlotDestroyedCallbackType,
215
219
  slotVariant?: SlotVariant
216
220
  ];
221
+ [ModCallbacksCustom.MC_POST_FAMILIAR_STATE_CHANGED]: [
222
+ callback: PostFamiliarStateChangedCallbackType,
223
+ familiarVariant?: FamiliarVariant
224
+ ];
225
+ [ModCallbacksCustom.MC_POST_PICKUP_STATE_CHANGED]: [
226
+ callback: PostPickupStateChangedCallbackType,
227
+ pickupVariant?: PickupVariant
228
+ ];
229
+ [ModCallbacksCustom.MC_POST_EFFECT_STATE_CHANGED]: [
230
+ callback: PostEffectStateChangedCallbackType,
231
+ effectVariant?: EffectVariant
232
+ ];
233
+ [ModCallbacksCustom.MC_POST_NPC_STATE_CHANGED]: [
234
+ callback: PostNPCStateChangedCallbackType,
235
+ entityType?: EntityType
236
+ ];
217
237
  [ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT]: [
218
238
  callback: PostGridEntityInitCallbackType,
219
239
  gridEntityType?: GridEntityType
@@ -18,10 +18,14 @@ local ____postCustomDoorEnter = require("callbacks.postCustomDoorEnter")
18
18
  local postCustomDoorEnterCallbackInit = ____postCustomDoorEnter.postCustomDoorEnterCallbackInit
19
19
  local ____postEffectInitLate = require("callbacks.postEffectInitLate")
20
20
  local postEffectInitLateCallbackInit = ____postEffectInitLate.postEffectInitLateCallbackInit
21
+ local ____postEffectStateChanged = require("callbacks.postEffectStateChanged")
22
+ local postEffectStateChangedCallbackInit = ____postEffectStateChanged.postEffectStateChangedCallbackInit
21
23
  local ____postEsauJr = require("callbacks.postEsauJr")
22
24
  local postEsauJrCallbacksInit = ____postEsauJr.postEsauJrCallbacksInit
23
25
  local ____postFamiliarInitLate = require("callbacks.postFamiliarInitLate")
24
26
  local postFamiliarInitLateCallbackInit = ____postFamiliarInitLate.postFamiliarInitLateCallbackInit
27
+ local ____postFamiliarStateChanged = require("callbacks.postFamiliarStateChanged")
28
+ local postFamiliarStateChangedCallbackInit = ____postFamiliarStateChanged.postFamiliarStateChangedCallbackInit
25
29
  local ____postFlip = require("callbacks.postFlip")
26
30
  local postFlipCallbacksInit = ____postFlip.postFlipCallbacksInit
27
31
  local ____postGridEntity = require("callbacks.postGridEntity")
@@ -36,10 +40,14 @@ local ____postNewRoomEarly = require("callbacks.postNewRoomEarly")
36
40
  local postNewRoomEarlyCallbackInit = ____postNewRoomEarly.postNewRoomEarlyCallbackInit
37
41
  local ____postNPCInitLate = require("callbacks.postNPCInitLate")
38
42
  local postNPCInitLateCallbackInit = ____postNPCInitLate.postNPCInitLateCallbackInit
43
+ local ____postNPCStateChanged = require("callbacks.postNPCStateChanged")
44
+ local postNPCStateChangedCallbackInit = ____postNPCStateChanged.postNPCStateChangedCallbackInit
39
45
  local ____postPickupCollect = require("callbacks.postPickupCollect")
40
46
  local postPickupCollectCallbackInit = ____postPickupCollect.postPickupCollectCallbackInit
41
47
  local ____postPickupInitLate = require("callbacks.postPickupInitLate")
42
48
  local postPickupInitLateCallbackInit = ____postPickupInitLate.postPickupInitLateCallbackInit
49
+ local ____postPickupStateChanged = require("callbacks.postPickupStateChanged")
50
+ local postPickupStateChangedCallbackInit = ____postPickupStateChanged.postPickupStateChangedCallbackInit
43
51
  local ____postPlayerChangeHealth = require("callbacks.postPlayerChangeHealth")
44
52
  local postPlayerChangeHealthCallbackInit = ____postPlayerChangeHealth.postPlayerChangeHealthCallbackInit
45
53
  local ____postPlayerChangeType = require("callbacks.postPlayerChangeType")
@@ -150,6 +158,10 @@ function initCustomCallbacks(self, mod)
150
158
  postCursedTeleportCallbackInit(nil, mod)
151
159
  postSlotInitUpdateCallbacksInit(nil, mod)
152
160
  postSlotRenderCallbacksInit(nil, mod)
161
+ postFamiliarStateChangedCallbackInit(nil, mod)
162
+ postPickupStateChangedCallbackInit(nil, mod)
163
+ postEffectStateChangedCallbackInit(nil, mod)
164
+ postNPCStateChangedCallbackInit(nil, mod)
153
165
  postGridEntityCallbacksInit(nil, mod)
154
166
  postGridEntityCollisionInit(nil, mod)
155
167
  postBoneSwingCallbackInit(nil, mod)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.288",
3
+ "version": "1.2.289",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",