isaacscript-common 15.2.1 → 15.3.1
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.
- package/dist/index.d.ts +76 -44
- package/dist/isaacscript-common.lua +148 -52
- package/dist/src/classes/ModFeature.d.ts +22 -1
- package/dist/src/classes/ModFeature.d.ts.map +1 -1
- package/dist/src/classes/ModFeature.lua +151 -49
- package/dist/src/classes/callbacks/PostNPCInitFilter.d.ts +0 -5
- package/dist/src/classes/callbacks/PostNPCInitFilter.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostNPCInitFilter.lua +0 -3
- package/dist/src/classes/callbacks/PostNPCUpdateFilter.d.ts +0 -5
- package/dist/src/classes/callbacks/PostNPCUpdateFilter.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostNPCUpdateFilter.lua +0 -3
- package/dist/src/classes/features/callbackLogic/GameReorderedCallbacks.d.ts +21 -13
- package/dist/src/classes/features/callbackLogic/GameReorderedCallbacks.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/GameReorderedCallbacks.lua +7 -1
- package/dist/src/classes/features/other/CustomPickups.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.d.ts +33 -30
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/classes/ModFeature.ts +192 -72
- package/src/classes/callbacks/PostNPCInitFilter.ts +0 -6
- package/src/classes/callbacks/PostNPCUpdateFilter.ts +0 -6
- package/src/classes/features/callbackLogic/GameReorderedCallbacks.ts +21 -13
- package/src/classes/features/other/CustomPickups.ts +0 -4
- package/src/enums/ModCallbackCustom.ts +33 -30
|
@@ -1,69 +1,121 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
2
|
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
+
local Map = ____lualib.Map
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
3
5
|
local ____exports = {}
|
|
4
|
-
local
|
|
6
|
+
local initDecoratedCallbacks, addCallback, removeCallback, initSaveDataManager, WRAPPED_CALLBACK_METHODS_KEY, WRAPPED_CUSTOM_CALLBACK_METHODS_KEY
|
|
7
|
+
local ____array = require("src.functions.array")
|
|
8
|
+
local isArray = ____array.isArray
|
|
9
|
+
local ____deepCopy = require("src.functions.deepCopy")
|
|
10
|
+
local deepCopy = ____deepCopy.deepCopy
|
|
5
11
|
local ____tstlClass = require("src.functions.tstlClass")
|
|
6
12
|
local getTSTLClassConstructor = ____tstlClass.getTSTLClassConstructor
|
|
7
13
|
local getTSTLClassName = ____tstlClass.getTSTLClassName
|
|
8
14
|
local ____types = require("src.functions.types")
|
|
15
|
+
local isFunction = ____types.isFunction
|
|
16
|
+
local isNumber = ____types.isNumber
|
|
9
17
|
local isTable = ____types.isTable
|
|
10
|
-
function
|
|
11
|
-
local
|
|
18
|
+
function initDecoratedCallbacks(self, modFeature, constructor, tstlClassName, vanilla, init)
|
|
19
|
+
local modFeatureConstructor = constructor
|
|
20
|
+
local argsKey = vanilla and ____exports.ADD_CALLBACK_ARGS_KEY or ____exports.ADD_CALLBACK_CUSTOM_ARGS_KEY
|
|
21
|
+
local addCallbackArgs = modFeatureConstructor[argsKey]
|
|
12
22
|
if addCallbackArgs == nil then
|
|
13
23
|
return
|
|
14
24
|
end
|
|
15
|
-
|
|
25
|
+
if not isArray(nil, addCallbackArgs) then
|
|
26
|
+
error(("Failed to initialize/uninitialize the decorated callbacks on a mod feature since the callback arguments on the key of \"" .. argsKey) .. "\" was not an array.")
|
|
27
|
+
end
|
|
16
28
|
for ____, args in ipairs(addCallbackArgs) do
|
|
17
|
-
|
|
29
|
+
if not isArray(nil, args) then
|
|
30
|
+
error("Failed to initialize/uninitialize the decorated callbacks on a mod feature since one of the callback arguments was not an array.")
|
|
31
|
+
end
|
|
32
|
+
local parameters = deepCopy(nil, args)
|
|
18
33
|
local modCallback = table.remove(parameters, 1)
|
|
19
|
-
if
|
|
20
|
-
error("Failed to get the
|
|
34
|
+
if not isNumber(nil, modCallback) then
|
|
35
|
+
error("Failed to get the callback number from the parameters for class: " .. tstlClassName)
|
|
21
36
|
end
|
|
22
37
|
local callback = table.remove(parameters, 1)
|
|
23
|
-
if
|
|
24
|
-
error("Failed to get the callback from the parameters for class: " .. tstlClassName)
|
|
38
|
+
if not isFunction(nil, callback) then
|
|
39
|
+
error("Failed to get the callback function from the parameters for class: " .. tstlClassName)
|
|
25
40
|
end
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
41
|
+
local mod = modFeature.mod
|
|
42
|
+
if init then
|
|
43
|
+
addCallback(
|
|
44
|
+
nil,
|
|
45
|
+
modFeature,
|
|
46
|
+
modFeatureConstructor,
|
|
47
|
+
mod,
|
|
48
|
+
modCallback,
|
|
49
|
+
callback,
|
|
50
|
+
parameters,
|
|
51
|
+
vanilla
|
|
52
|
+
)
|
|
53
|
+
else
|
|
54
|
+
removeCallback(
|
|
55
|
+
nil,
|
|
56
|
+
modFeatureConstructor,
|
|
57
|
+
mod,
|
|
58
|
+
modCallback,
|
|
59
|
+
vanilla
|
|
60
|
+
)
|
|
30
61
|
end
|
|
31
|
-
mod:AddCallback(
|
|
32
|
-
modCallback,
|
|
33
|
-
newCallback,
|
|
34
|
-
table.unpack(parameters)
|
|
35
|
-
)
|
|
36
62
|
end
|
|
37
63
|
end
|
|
38
|
-
function
|
|
39
|
-
local
|
|
40
|
-
|
|
41
|
-
return
|
|
64
|
+
function addCallback(self, modFeature, modFeatureConstructor, mod, modCallback, callback, parameters, vanilla)
|
|
65
|
+
local function wrappedCallback(____, ...)
|
|
66
|
+
callback(nil, modFeature, ...)
|
|
42
67
|
end
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
local
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
68
|
+
if vanilla then
|
|
69
|
+
local modCallbackVanilla = modCallback
|
|
70
|
+
local wrappedMethodsMap = modFeatureConstructor[WRAPPED_CALLBACK_METHODS_KEY]
|
|
71
|
+
if wrappedMethodsMap == nil then
|
|
72
|
+
wrappedMethodsMap = __TS__New(Map)
|
|
73
|
+
modFeatureConstructor[WRAPPED_CALLBACK_METHODS_KEY] = wrappedMethodsMap
|
|
49
74
|
end
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
callback(modFeature, ...)
|
|
75
|
+
wrappedMethodsMap:set(modCallbackVanilla, wrappedCallback)
|
|
76
|
+
else
|
|
77
|
+
local modCallbackCustom = modCallback
|
|
78
|
+
local wrappedMethodsMap = modFeatureConstructor[WRAPPED_CUSTOM_CALLBACK_METHODS_KEY]
|
|
79
|
+
if wrappedMethodsMap == nil then
|
|
80
|
+
wrappedMethodsMap = __TS__New(Map)
|
|
81
|
+
modFeatureConstructor[WRAPPED_CUSTOM_CALLBACK_METHODS_KEY] = wrappedMethodsMap
|
|
58
82
|
end
|
|
83
|
+
wrappedMethodsMap:set(modCallbackCustom, wrappedCallback)
|
|
84
|
+
end
|
|
85
|
+
if vanilla then
|
|
86
|
+
mod:AddCallback(
|
|
87
|
+
modCallback,
|
|
88
|
+
wrappedCallback,
|
|
89
|
+
table.unpack(parameters)
|
|
90
|
+
)
|
|
91
|
+
else
|
|
59
92
|
mod:AddCallbackCustom(
|
|
60
|
-
|
|
61
|
-
|
|
93
|
+
modCallback,
|
|
94
|
+
wrappedCallback,
|
|
62
95
|
table.unpack(parameters)
|
|
63
96
|
)
|
|
64
97
|
end
|
|
65
98
|
end
|
|
66
|
-
function
|
|
99
|
+
function removeCallback(self, modFeatureConstructor, mod, modCallback, vanilla)
|
|
100
|
+
if vanilla then
|
|
101
|
+
local modCallbackVanilla = modCallback
|
|
102
|
+
local wrappedMethodsMap = modFeatureConstructor[WRAPPED_CALLBACK_METHODS_KEY]
|
|
103
|
+
if wrappedMethodsMap == nil then
|
|
104
|
+
return
|
|
105
|
+
end
|
|
106
|
+
local wrappedCallback = wrappedMethodsMap:get(modCallbackVanilla)
|
|
107
|
+
mod:RemoveCallback(modCallback, wrappedCallback)
|
|
108
|
+
else
|
|
109
|
+
local modCallbackCustom = modCallback
|
|
110
|
+
local wrappedMethodsMap = modFeatureConstructor[WRAPPED_CUSTOM_CALLBACK_METHODS_KEY]
|
|
111
|
+
if wrappedMethodsMap == nil then
|
|
112
|
+
return
|
|
113
|
+
end
|
|
114
|
+
local wrappedCallback = wrappedMethodsMap:get(modCallbackCustom)
|
|
115
|
+
mod:RemoveCallbackCustom(modCallback, wrappedCallback)
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
function initSaveDataManager(self, modFeature, tstlClassName, init)
|
|
67
119
|
local ____modFeature_0 = modFeature
|
|
68
120
|
local v = ____modFeature_0.v
|
|
69
121
|
if v == nil then
|
|
@@ -72,16 +124,25 @@ function checkRegisterSaveDataManager(self, mod, modFeature)
|
|
|
72
124
|
if not isTable(nil, v) then
|
|
73
125
|
error("Failed to initialize a mod feature class due to having a \"v\" property that is not an object. (The \"v\" property is supposed to be an object that holds the variables for the class, managed by the save data manager.)")
|
|
74
126
|
end
|
|
75
|
-
local
|
|
76
|
-
local
|
|
77
|
-
|
|
127
|
+
local mod = modFeature.mod
|
|
128
|
+
local saveDataManagerMethodName = init and "saveDataManager" or "saveDataManagerRemove"
|
|
129
|
+
local saveDataManagerMethod = mod[saveDataManagerMethodName]
|
|
130
|
+
if saveDataManagerMethod == nil then
|
|
78
131
|
error("Failed to initialize a mod feature class due to having a \"v\" object and not having the save data manager initialized. You must pass \"ISCFeature.SAVE_DATA_MANAGER\" to the \"upgradeMod\" function.")
|
|
79
132
|
end
|
|
80
|
-
|
|
81
|
-
|
|
133
|
+
if type(saveDataManagerMethod) ~= "function" then
|
|
134
|
+
error(("The \"" .. saveDataManagerMethodName) .. "\" property of the \"ModUpgraded\" object was not a function.")
|
|
135
|
+
end
|
|
136
|
+
if init then
|
|
137
|
+
saveDataManagerMethod(nil, tstlClassName, v)
|
|
138
|
+
else
|
|
139
|
+
saveDataManagerMethod(nil, tstlClassName)
|
|
140
|
+
end
|
|
82
141
|
end
|
|
83
142
|
____exports.ADD_CALLBACK_ARGS_KEY = "__addCallbackArgs"
|
|
84
143
|
____exports.ADD_CALLBACK_CUSTOM_ARGS_KEY = "__addCallbackCustomArgs"
|
|
144
|
+
WRAPPED_CALLBACK_METHODS_KEY = "__wrappedCallbackMethods"
|
|
145
|
+
WRAPPED_CUSTOM_CALLBACK_METHODS_KEY = "__wrappedCustomCallbacksMethods"
|
|
85
146
|
--- Helper class for mods that wants to represent their individual features as classes. Extend your
|
|
86
147
|
-- mod features from this class in order to enable the `@Callback` and `@CustomCallback` decorators
|
|
87
148
|
-- that automatically subscribe to callbacks.
|
|
@@ -106,17 +167,58 @@ ____exports.ADD_CALLBACK_CUSTOM_ARGS_KEY = "__addCallbackCustomArgs"
|
|
|
106
167
|
-- }
|
|
107
168
|
-- }
|
|
108
169
|
-- ```
|
|
170
|
+
--
|
|
171
|
+
-- In almost all cases, you will want the callback functions to be immediately subscribed after
|
|
172
|
+
-- instantiating the class. However, if this is not the case, you can pass `false` as the optional
|
|
173
|
+
-- second argument to the constructor.
|
|
109
174
|
____exports.ModFeature = __TS__Class()
|
|
110
175
|
local ModFeature = ____exports.ModFeature
|
|
111
176
|
ModFeature.name = "ModFeature"
|
|
112
|
-
function ModFeature.prototype.____constructor(self, mod)
|
|
177
|
+
function ModFeature.prototype.____constructor(self, mod, init)
|
|
178
|
+
if init == nil then
|
|
179
|
+
init = true
|
|
180
|
+
end
|
|
181
|
+
self.initialized = false
|
|
182
|
+
self.mod = mod
|
|
183
|
+
if init then
|
|
184
|
+
self:init()
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
function ModFeature.prototype.init(self, init)
|
|
188
|
+
if init == nil then
|
|
189
|
+
init = true
|
|
190
|
+
end
|
|
191
|
+
if self.initialized == init then
|
|
192
|
+
return
|
|
193
|
+
end
|
|
194
|
+
self.initialized = init
|
|
113
195
|
local constructor = getTSTLClassConstructor(nil, self)
|
|
114
196
|
if constructor == nil then
|
|
115
197
|
error("Failed to get the TSTL class constructor for a mod feature.")
|
|
116
198
|
end
|
|
117
|
-
local
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
199
|
+
local tstlClassName = getTSTLClassName(nil, self)
|
|
200
|
+
if tstlClassName == nil then
|
|
201
|
+
error("Failed to get the TSTL class name for a mod feature.")
|
|
202
|
+
end
|
|
203
|
+
initDecoratedCallbacks(
|
|
204
|
+
nil,
|
|
205
|
+
self,
|
|
206
|
+
constructor,
|
|
207
|
+
tstlClassName,
|
|
208
|
+
true,
|
|
209
|
+
init
|
|
210
|
+
)
|
|
211
|
+
initDecoratedCallbacks(
|
|
212
|
+
nil,
|
|
213
|
+
self,
|
|
214
|
+
constructor,
|
|
215
|
+
tstlClassName,
|
|
216
|
+
false,
|
|
217
|
+
init
|
|
218
|
+
)
|
|
219
|
+
initSaveDataManager(nil, self, tstlClassName, init)
|
|
220
|
+
end
|
|
221
|
+
function ModFeature.prototype.uninit(self)
|
|
222
|
+
self:init(false)
|
|
121
223
|
end
|
|
122
224
|
return ____exports
|
|
@@ -2,11 +2,6 @@ import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
|
|
|
2
2
|
import { shouldFireNPC } from "../../shouldFire";
|
|
3
3
|
import { CustomCallback } from "../private/CustomCallback";
|
|
4
4
|
export declare class PostNPCInitFilter extends CustomCallback<ModCallbackCustom.POST_NPC_INIT_FILTER> {
|
|
5
|
-
v: {
|
|
6
|
-
room: {
|
|
7
|
-
firedSet: Set<PtrHash>;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
5
|
constructor();
|
|
11
6
|
protected shouldFire: typeof shouldFireNPC;
|
|
12
7
|
private postNPCInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostNPCInitFilter.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostNPCInitFilter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,oBAAoB,CAAC
|
|
1
|
+
{"version":3,"file":"PostNPCInitFilter.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostNPCInitFilter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,oBAAoB,CAAC;;IAS3F,UAAmB,UAAU,uBAAiB;IAG9C,OAAO,CAAC,WAAW,CAEjB;CACH"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
2
|
local __TS__Class = ____lualib.__TS__Class
|
|
3
3
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
|
-
local Set = ____lualib.Set
|
|
5
|
-
local __TS__New = ____lualib.__TS__New
|
|
6
4
|
local ____exports = {}
|
|
7
5
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
8
6
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -16,7 +14,6 @@ PostNPCInitFilter.name = "PostNPCInitFilter"
|
|
|
16
14
|
__TS__ClassExtends(PostNPCInitFilter, CustomCallback)
|
|
17
15
|
function PostNPCInitFilter.prototype.____constructor(self)
|
|
18
16
|
CustomCallback.prototype.____constructor(self)
|
|
19
|
-
self.v = {room = {firedSet = __TS__New(Set)}}
|
|
20
17
|
self.shouldFire = shouldFireNPC
|
|
21
18
|
self.postNPCInit = function(____, npc)
|
|
22
19
|
self:fire(npc)
|
|
@@ -2,11 +2,6 @@ import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
|
|
|
2
2
|
import { shouldFireNPC } from "../../shouldFire";
|
|
3
3
|
import { CustomCallback } from "../private/CustomCallback";
|
|
4
4
|
export declare class PostNPCUpdateFilter extends CustomCallback<ModCallbackCustom.POST_NPC_UPDATE_FILTER> {
|
|
5
|
-
v: {
|
|
6
|
-
room: {
|
|
7
|
-
firedSet: Set<PtrHash>;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
5
|
constructor();
|
|
11
6
|
protected shouldFire: typeof shouldFireNPC;
|
|
12
7
|
private postNPCUpdate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostNPCUpdateFilter.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostNPCUpdateFilter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,mBAAoB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,sBAAsB,CAAC
|
|
1
|
+
{"version":3,"file":"PostNPCUpdateFilter.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostNPCUpdateFilter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,mBAAoB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,sBAAsB,CAAC;;IAS/F,UAAmB,UAAU,uBAAiB;IAG9C,OAAO,CAAC,aAAa,CAEnB;CACH"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
2
|
local __TS__Class = ____lualib.__TS__Class
|
|
3
3
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
|
-
local Set = ____lualib.Set
|
|
5
|
-
local __TS__New = ____lualib.__TS__New
|
|
6
4
|
local ____exports = {}
|
|
7
5
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
8
6
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -16,7 +14,6 @@ PostNPCUpdateFilter.name = "PostNPCUpdateFilter"
|
|
|
16
14
|
__TS__ClassExtends(PostNPCUpdateFilter, CustomCallback)
|
|
17
15
|
function PostNPCUpdateFilter.prototype.____constructor(self)
|
|
18
16
|
CustomCallback.prototype.____constructor(self)
|
|
19
|
-
self.v = {room = {firedSet = __TS__New(Set)}}
|
|
20
17
|
self.shouldFire = shouldFireNPC
|
|
21
18
|
self.postNPCUpdate = function(____, npc)
|
|
22
19
|
self:fire(npc)
|
|
@@ -7,7 +7,13 @@ import { Feature } from "../../private/Feature";
|
|
|
7
7
|
* It is easier to write mod code if the callbacks run in a more logical order:
|
|
8
8
|
* - `POST_GAME_STARTED` --> `POST_NEW_LEVEL` --> `POST_NEW_ROOM`
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* `isaacscript-common` provides three new callbacks that change the order to this:
|
|
11
|
+
* - `POST_GAME_STARTED_REORDERED`
|
|
12
|
+
* - `POST_NEW_LEVEL_REORDERED`
|
|
13
|
+
* - `POST_NEW_ROOM_REORDERED`
|
|
14
|
+
*
|
|
15
|
+
* Additionally, there are some helper functions listed below that can deal with some edge cases
|
|
16
|
+
* that you may run into with these callbacks.
|
|
11
17
|
*/
|
|
12
18
|
export declare class GameReorderedCallbacks extends Feature {
|
|
13
19
|
private currentStage;
|
|
@@ -29,12 +35,13 @@ export declare class GameReorderedCallbacks extends Feature {
|
|
|
29
35
|
* the next `POST_NEW_LEVEL`.
|
|
30
36
|
*
|
|
31
37
|
* If some specific cases, mods can change the current level during run initialization on the 0th
|
|
32
|
-
* frame.
|
|
33
|
-
*
|
|
34
|
-
*
|
|
38
|
+
* frame. (For example, if you had a mod that made the player start the run in Caves instead of
|
|
39
|
+
* Basement.) However, due to how the callback reordering works, the `POST_NEW_LEVEL_REORDERED`
|
|
40
|
+
* callback will never fire on the 0th frame. To get around this, call this function before
|
|
41
|
+
* changing levels to temporarily force the callback to fire.
|
|
35
42
|
*
|
|
36
43
|
* In order to use this function, you must upgrade your mod with
|
|
37
|
-
* `ISCFeature.
|
|
44
|
+
* `ISCFeature.GAME_REORDERED_CALLBACKS`.
|
|
38
45
|
*/
|
|
39
46
|
forceNewLevelCallback(): void;
|
|
40
47
|
/**
|
|
@@ -42,23 +49,24 @@ export declare class GameReorderedCallbacks extends Feature {
|
|
|
42
49
|
* the next `POST_NEW_ROOM`.
|
|
43
50
|
*
|
|
44
51
|
* If some specific cases, mods can change the current room during run initialization on the 0th
|
|
45
|
-
* frame.
|
|
46
|
-
*
|
|
47
|
-
*
|
|
52
|
+
* frame. (For example, if you had a mod that made the player start the Treasure Room of Basement
|
|
53
|
+
* 1 instead of the normal starting room.) However, due to how the callback reordering works, the
|
|
54
|
+
* `POST_NEW_ROOM_REORDERED` callback will never fire on the 0th frame. To get around this, call
|
|
55
|
+
* this function before changing rooms to temporarily force the callback to fire.
|
|
48
56
|
*
|
|
49
57
|
* In order to use this function, you must upgrade your mod with
|
|
50
|
-
* `ISCFeature.
|
|
58
|
+
* `ISCFeature.GAME_REORDERED_CALLBACKS`.
|
|
51
59
|
*/
|
|
52
60
|
forceNewRoomCallback(): void;
|
|
53
61
|
/**
|
|
54
|
-
* Helper function to manually set the
|
|
62
|
+
* Helper function to manually set the variables that the reordered callback logic uses to track
|
|
55
63
|
* the current stage and stage type.
|
|
56
64
|
*
|
|
57
|
-
* This is useful because if the stage is changed with the `Game.SetStage` method
|
|
58
|
-
* callbacks will stop working.
|
|
65
|
+
* This is useful because if the stage is changed with the `Game.SetStage` method (or the
|
|
66
|
+
* `setStage` helper function), the reordered callbacks will stop working.
|
|
59
67
|
*
|
|
60
68
|
* In order to use this function, you must upgrade your mod with
|
|
61
|
-
* `ISCFeature.
|
|
69
|
+
* `ISCFeature.GAME_REORDERED_CALLBACKS`.
|
|
62
70
|
*/
|
|
63
71
|
reorderedCallbacksSetStage(stage: LevelStage, stageType: StageType): void;
|
|
64
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameReorderedCallbacks.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/GameReorderedCallbacks.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAEV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAOtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD
|
|
1
|
+
{"version":3,"file":"GameReorderedCallbacks.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/GameReorderedCallbacks.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAEV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAOtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,sBAAuB,SAAQ,OAAO;IACjD,OAAO,CAAC,YAAY,CAAoB;IACxC,OAAO,CAAC,gBAAgB,CAAoB;IAC5C,OAAO,CAAC,oBAAoB,CAAS;IACrC,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,YAAY,CAAS;IAE7B,OAAO,CAAC,wBAAwB,CAA2B;IAC3D,OAAO,CAAC,qBAAqB,CAAwB;IACrD,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,4BAA4B,CAA+B;IA6BnE,OAAO,CAAC,uBAAuB,CAM7B;IAGF,OAAO,CAAC,eAAe,CAMrB;IAGF,OAAO,CAAC,YAAY,CAYlB;IAGF,OAAO,CAAC,WAAW,CA+BjB;IAEF,OAAO,CAAC,kBAAkB;IAS1B;;;;;;;;;;;;OAYG;IAEI,qBAAqB,IAAI,IAAI;IAIpC;;;;;;;;;;;;OAYG;IAEI,oBAAoB,IAAI,IAAI;IAInC;;;;;;;;;OASG;IAEI,0BAA0B,CAC/B,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,GACnB,IAAI;CAIR"}
|
|
@@ -18,7 +18,13 @@ local Feature = ____Feature.Feature
|
|
|
18
18
|
-- It is easier to write mod code if the callbacks run in a more logical order:
|
|
19
19
|
-- - `POST_GAME_STARTED` --> `POST_NEW_LEVEL` --> `POST_NEW_ROOM`
|
|
20
20
|
--
|
|
21
|
-
--
|
|
21
|
+
-- `isaacscript-common` provides three new callbacks that change the order to this:
|
|
22
|
+
-- - `POST_GAME_STARTED_REORDERED`
|
|
23
|
+
-- - `POST_NEW_LEVEL_REORDERED`
|
|
24
|
+
-- - `POST_NEW_ROOM_REORDERED`
|
|
25
|
+
--
|
|
26
|
+
-- Additionally, there are some helper functions listed below that can deal with some edge cases
|
|
27
|
+
-- that you may run into with these callbacks.
|
|
22
28
|
____exports.GameReorderedCallbacks = __TS__Class()
|
|
23
29
|
local GameReorderedCallbacks = ____exports.GameReorderedCallbacks
|
|
24
30
|
GameReorderedCallbacks.name = "GameReorderedCallbacks"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomPickups.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CustomPickups.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CustomPickups.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CustomPickups.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EACd,MAAM,8BAA8B,CAAC;AAStC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAkBhD,qBAAa,aAAc,SAAQ,OAAO;IACxC,4BAA4B;IAC5B,OAAO,CAAC,wBAAwB,CAA4C;IAgB5E,OAAO,CAAC,kBAAkB,CAqCxB;IAKF,OAAO,CAAC,4BAA4B,CASlC;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IAEI,oBAAoB,CACzB,mBAAmB,EAAE,aAAa,EAClC,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,KAAK,IAAI,EACvD,aAAa,GAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,KAAK,OAAoB,GACxE,IAAI;CAYR"}
|
|
@@ -508,8 +508,8 @@ export declare enum ModCallbackCustom {
|
|
|
508
508
|
/**
|
|
509
509
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
510
510
|
*
|
|
511
|
-
* - in the `
|
|
512
|
-
* previously there on a previous room entry)
|
|
511
|
+
* - in the `POST_NEW_ROOM_REORDERED` callback (firing every time a room is entered, even if the
|
|
512
|
+
* entity was previously there on a previous room entry)
|
|
513
513
|
* - in the `POST_UPDATE` callback (if the entity appeared mid-way through the room, like when the
|
|
514
514
|
* trapdoor appears after defeating It Lives!)
|
|
515
515
|
*
|
|
@@ -609,8 +609,8 @@ export declare enum ModCallbackCustom {
|
|
|
609
609
|
*/
|
|
610
610
|
POST_GRID_ENTITY_UPDATE = 36,
|
|
611
611
|
/**
|
|
612
|
-
* Fires from the `
|
|
613
|
-
* collectible effect.
|
|
612
|
+
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
|
|
613
|
+
* temporary collectible effect.
|
|
614
614
|
*
|
|
615
615
|
* This callback is useful because you might want to have code that happens when the player is hit
|
|
616
616
|
* from an enemy. Normally, you would accomplish this via the `ENTITY_TAKE_DMG` callback, but that
|
|
@@ -632,8 +632,8 @@ export declare enum ModCallbackCustom {
|
|
|
632
632
|
*/
|
|
633
633
|
POST_HOLY_MANTLE_REMOVED = 37,
|
|
634
634
|
/**
|
|
635
|
-
* Fires from `
|
|
636
|
-
* collectible item, implying that the item was just used.
|
|
635
|
+
* Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
|
|
636
|
+
* active collectible item, implying that the item was just used.
|
|
637
637
|
*
|
|
638
638
|
* This callback is useful because the `USE_ITEM` callback does not fire when The Candle, Red
|
|
639
639
|
* Candle, and Bob's Rotten Brain are discharged.
|
|
@@ -655,9 +655,9 @@ export declare enum ModCallbackCustom {
|
|
|
655
655
|
*/
|
|
656
656
|
POST_ITEM_DISCHARGE = 38,
|
|
657
657
|
/**
|
|
658
|
-
* Fires from the `
|
|
659
|
-
* animation of the player holding the item above their head is finished and the item is
|
|
660
|
-
* added to the player's inventory).
|
|
658
|
+
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
|
|
659
|
+
* when the animation of the player holding the item above their head is finished and the item is
|
|
660
|
+
* actually added to the player's inventory).
|
|
661
661
|
*
|
|
662
662
|
* Note that this callback will only fire once per Forgotten/Soul pair.
|
|
663
663
|
*
|
|
@@ -940,8 +940,9 @@ export declare enum ModCallbackCustom {
|
|
|
940
940
|
*/
|
|
941
941
|
POST_PIT_UPDATE = 55,
|
|
942
942
|
/**
|
|
943
|
-
* Fires from the `
|
|
944
|
-
* than what it was on the previous frame. For more information, see the `PlayerHealth`
|
|
943
|
+
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
|
|
944
|
+
* different than what it was on the previous frame. For more information, see the `PlayerHealth`
|
|
945
|
+
* enum.
|
|
945
946
|
*
|
|
946
947
|
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
947
948
|
* - You can provide an optional third argument that will make the callback only fire if it
|
|
@@ -961,8 +962,8 @@ export declare enum ModCallbackCustom {
|
|
|
961
962
|
*/
|
|
962
963
|
POST_PLAYER_CHANGE_HEALTH = 56,
|
|
963
964
|
/**
|
|
964
|
-
* Fires from the `
|
|
965
|
-
* they were on the previous frame.
|
|
965
|
+
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
|
|
966
|
+
* from what they were on the previous frame.
|
|
966
967
|
*
|
|
967
968
|
* The type of `oldValue` and `newValue` will depend on what kind of stat it is. For example,
|
|
968
969
|
* `StatType.FLYING` will be a boolean. (You can use the "Types" helper functions to narrow the
|
|
@@ -991,7 +992,8 @@ export declare enum ModCallbackCustom {
|
|
|
991
992
|
*/
|
|
992
993
|
POST_PLAYER_CHANGE_STAT = 57,
|
|
993
994
|
/**
|
|
994
|
-
* Fires from the `
|
|
995
|
+
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
|
|
996
|
+
* type
|
|
995
997
|
* (i.e. character) from what it was on the previous frame. For example, it will fire after using
|
|
996
998
|
* Clicker, after dying with the Judas' Shadow collectible, etc.
|
|
997
999
|
*
|
|
@@ -1013,9 +1015,9 @@ export declare enum ModCallbackCustom {
|
|
|
1013
1015
|
*/
|
|
1014
1016
|
POST_PLAYER_CHANGE_TYPE = 58,
|
|
1015
1017
|
/**
|
|
1016
|
-
* Fires from the `
|
|
1017
|
-
* what it was on the previous frame, or when the active items change, or when the
|
|
1018
|
-
* rerolled.
|
|
1018
|
+
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
1019
|
+
* higher than what it was on the previous frame, or when the active items change, or when the
|
|
1020
|
+
* build is rerolled.
|
|
1019
1021
|
*
|
|
1020
1022
|
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
1021
1023
|
* - You can provide an optional third argument that will make the callback only fire if the
|
|
@@ -1030,9 +1032,9 @@ export declare enum ModCallbackCustom {
|
|
|
1030
1032
|
*/
|
|
1031
1033
|
POST_PLAYER_COLLECTIBLE_ADDED = 59,
|
|
1032
1034
|
/**
|
|
1033
|
-
* Fires from the `
|
|
1034
|
-
* what it was on the previous frame, or when the active items change, or when the
|
|
1035
|
-
* rerolled.
|
|
1035
|
+
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
1036
|
+
* lower than what it was on the previous frame, or when the active items change, or when the
|
|
1037
|
+
* build is rerolled.
|
|
1036
1038
|
*
|
|
1037
1039
|
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
1038
1040
|
* - You can provide an optional third argument that will make the callback only fire if the
|
|
@@ -1221,8 +1223,9 @@ export declare enum ModCallbackCustom {
|
|
|
1221
1223
|
*/
|
|
1222
1224
|
POST_PROJECTILE_INIT_LATE = 70,
|
|
1223
1225
|
/**
|
|
1224
|
-
* Fires from the `
|
|
1225
|
-
* pickup returned in the callback is assumed to be the first pickup that no longer
|
|
1226
|
+
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
1227
|
+
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
1228
|
+
* exists.
|
|
1226
1229
|
*
|
|
1227
1230
|
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
1228
1231
|
* - You can provide an optional third argument that will make the callback only fire if it
|
|
@@ -1351,8 +1354,8 @@ export declare enum ModCallbackCustom {
|
|
|
1351
1354
|
/**
|
|
1352
1355
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
1353
1356
|
*
|
|
1354
|
-
* - in the `
|
|
1355
|
-
* previously there on a previous room entry)
|
|
1357
|
+
* - in the `POST_NEW_ROOM_REORDERED` callback (firing every time a room is entered, even if the
|
|
1358
|
+
* entity was previously there on a previous room entry)
|
|
1356
1359
|
* - in the `POST_UPDATE` callback (if the entity appeared mid-way through the room, like when a
|
|
1357
1360
|
* Wheel of Fortune card is used)
|
|
1358
1361
|
*
|
|
@@ -1479,7 +1482,7 @@ export declare enum ModCallbackCustom {
|
|
|
1479
1482
|
*/
|
|
1480
1483
|
POST_TNT_UPDATE = 87,
|
|
1481
1484
|
/**
|
|
1482
|
-
* Fires from the `
|
|
1485
|
+
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
1483
1486
|
* transformation.
|
|
1484
1487
|
*
|
|
1485
1488
|
* Note that this callback will only fire once per Forgotten/Soul pair.
|
|
@@ -1513,9 +1516,9 @@ export declare enum ModCallbackCustom {
|
|
|
1513
1516
|
*/
|
|
1514
1517
|
POST_TRINKET_BREAK = 89,
|
|
1515
1518
|
/**
|
|
1516
|
-
* Fires from the `
|
|
1517
|
-
* the player is predicted to die (e.g. they currently have no health left or they took
|
|
1518
|
-
* a "Lost" form).
|
|
1519
|
+
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
1520
|
+
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
1521
|
+
* damage in a "Lost" form).
|
|
1519
1522
|
*
|
|
1520
1523
|
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
1521
1524
|
* - You can provide an optional third argument that will make the callback only fire if it
|
|
@@ -1568,8 +1571,8 @@ export declare enum ModCallbackCustom {
|
|
|
1568
1571
|
*/
|
|
1569
1572
|
PRE_GET_PEDESTAL = 92,
|
|
1570
1573
|
/**
|
|
1571
|
-
* Fires from the `
|
|
1572
|
-
* begins to hold the item above their head).
|
|
1574
|
+
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
1575
|
+
* the player begins to hold the item above their head).
|
|
1573
1576
|
*
|
|
1574
1577
|
* Note that this callback will only fire once per Forgotten/Soul pair.
|
|
1575
1578
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModCallbackCustom.d.ts","sourceRoot":"","sources":["../../../src/enums/ModCallbackCustom.ts"],"names":[],"mappings":"AAYA;;;;;;;GAOG;AACH,oBAAY,iBAAiB;IAC3B;;;;;;;;;;;OAWG;IACH,oBAAoB,IAAA;IAEpB;;;;;;;;;;;OAWG;IACH,mBAAmB,IAAA;IAEnB;;;;;;;;;;;;OAYG;IACH,kBAAkB,IAAA;IAElB;;;;;;;;;;;;;;;OAeG;IACH,mBAAmB,IAAA;IAEnB;;;;;;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-common",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.3.1",
|
|
4
4
|
"description": "Helper functions and features for IsaacScript mods.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"main": "dist/src/index",
|
|
23
23
|
"types": "dist/src/index.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"isaac-typescript-definitions": "^9.0.
|
|
25
|
+
"isaac-typescript-definitions": "^9.0.4"
|
|
26
26
|
}
|
|
27
27
|
}
|