isaacscript-common 17.7.0 → 17.7.2
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 +1 -1
- package/dist/isaacscript-common.lua +11 -6
- package/dist/src/classes/ModFeature.d.ts +1 -1
- package/dist/src/classes/ModFeature.d.ts.map +1 -1
- package/dist/src/classes/features/other/PressInput.d.ts.map +1 -1
- package/dist/src/functions/globals.lua +8 -3
- package/package.json +2 -2
- package/src/classes/ModFeature.ts +1 -1
- package/src/classes/features/other/PressInput.ts +2 -1
- package/src/functions/globals.ts +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -11076,7 +11076,7 @@ export declare class ModFeature {
|
|
|
11076
11076
|
*
|
|
11077
11077
|
* By default, this is set to null. Override this property in your class if you need to use it.
|
|
11078
11078
|
*/
|
|
11079
|
-
|
|
11079
|
+
protected callbackConditionalFunc: (() => boolean) | null;
|
|
11080
11080
|
/**
|
|
11081
11081
|
* Whether or not the feature has registered its callbacks yet (and submitted its variables to the
|
|
11082
11082
|
* save data manager, if any).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 17.7.
|
|
3
|
+
isaacscript-common 17.7.2
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -12273,8 +12273,8 @@ ____exports.ModCallback.POST_ENTITY_KILL = 68
|
|
|
12273
12273
|
____exports.ModCallback[____exports.ModCallback.POST_ENTITY_KILL] = "POST_ENTITY_KILL"
|
|
12274
12274
|
____exports.ModCallback.PRE_NPC_UPDATE = 69
|
|
12275
12275
|
____exports.ModCallback[____exports.ModCallback.PRE_NPC_UPDATE] = "PRE_NPC_UPDATE"
|
|
12276
|
-
____exports.ModCallback.
|
|
12277
|
-
____exports.ModCallback[____exports.ModCallback.
|
|
12276
|
+
____exports.ModCallback.PRE_SPAWN_CLEAR_AWARD = 70
|
|
12277
|
+
____exports.ModCallback[____exports.ModCallback.PRE_SPAWN_CLEAR_AWARD] = "PRE_SPAWN_CLEAR_AWARD"
|
|
12278
12278
|
____exports.ModCallback.PRE_ROOM_ENTITY_SPAWN = 71
|
|
12279
12279
|
____exports.ModCallback[____exports.ModCallback.PRE_ROOM_ENTITY_SPAWN] = "PRE_ROOM_ENTITY_SPAWN"
|
|
12280
12280
|
____exports.ModCallback.PRE_ENTITY_DEVOLVE = 72
|
|
@@ -49955,13 +49955,11 @@ local DEFAULT_GLOBALS = __TS__New(Set, {
|
|
|
49955
49955
|
"assert",
|
|
49956
49956
|
"collectgarbage",
|
|
49957
49957
|
"coroutine",
|
|
49958
|
-
"dofile",
|
|
49959
49958
|
"error",
|
|
49960
49959
|
"getmetatable",
|
|
49961
49960
|
"include",
|
|
49962
49961
|
"ipairs",
|
|
49963
49962
|
"load",
|
|
49964
|
-
"loadfile",
|
|
49965
49963
|
"math",
|
|
49966
49964
|
"next",
|
|
49967
49965
|
"pairs",
|
|
@@ -49982,7 +49980,14 @@ local DEFAULT_GLOBALS = __TS__New(Set, {
|
|
|
49982
49980
|
"utf8",
|
|
49983
49981
|
"xpcall"
|
|
49984
49982
|
})
|
|
49985
|
-
local LUA_DEBUG_ADDED_GLOBALS = __TS__New(Set, {
|
|
49983
|
+
local LUA_DEBUG_ADDED_GLOBALS = __TS__New(Set, {
|
|
49984
|
+
"debug",
|
|
49985
|
+
"dofile",
|
|
49986
|
+
"loadfile",
|
|
49987
|
+
"io",
|
|
49988
|
+
"os",
|
|
49989
|
+
"package"
|
|
49990
|
+
})
|
|
49986
49991
|
local RACING_PLUS_SANDBOX_ADDED_GLOBALS = __TS__New(Set, {"sandboxTraceback", "sandboxGetTraceback", "getParentFunctionDescription"})
|
|
49987
49992
|
function ____exports.getDefaultGlobals(self)
|
|
49988
49993
|
local defaultGlobals = copySet(nil, DEFAULT_GLOBALS)
|
|
@@ -46,7 +46,7 @@ export declare class ModFeature {
|
|
|
46
46
|
*
|
|
47
47
|
* By default, this is set to null. Override this property in your class if you need to use it.
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
protected callbackConditionalFunc: (() => boolean) | null;
|
|
50
50
|
/**
|
|
51
51
|
* Whether or not the feature has registered its callbacks yet (and submitted its variables to the
|
|
52
52
|
* save data manager, if any).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModFeature.d.ts","sourceRoot":"","sources":["../../../src/classes/ModFeature.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,qBAAqB,sBAAsB,CAAC;AACzD,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAatE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,qBAAa,UAAU;IACrB,OAAO,CAAC,GAAG,CAAkB;IAE7B;;;;;;;;;OASG;IACH,
|
|
1
|
+
{"version":3,"file":"ModFeature.d.ts","sourceRoot":"","sources":["../../../src/classes/ModFeature.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,qBAAqB,sBAAsB,CAAC;AACzD,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAatE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,qBAAa,UAAU;IACrB,OAAO,CAAC,GAAG,CAAkB;IAE7B;;;;;;;;;OASG;IACH,SAAS,CAAC,uBAAuB,EAAE,CAAC,MAAM,OAAO,CAAC,GAAG,IAAI,CAAQ;IAEjE;;;;;;OAMG;IACI,WAAW,UAAS;gBAEf,GAAG,EAAE,eAAe,EAAE,IAAI,UAAO;IAQ7C;;;;;OAKG;IACI,IAAI,CAAC,IAAI,UAAO,GAAG,IAAI;IAqB9B;;;;;;OAMG;IACI,MAAM,IAAI,IAAI;CAGtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PressInput.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PressInput.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,UAAW,SAAQ,OAAO;IAsBrC,OAAO,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"PressInput.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PressInput.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,UAAW,SAAQ,OAAO;IAsBrC,OAAO,CAAC,iBAAiB,CA+BvB;IAEF;;;;;;OAMG;IAEI,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI;CAI1E"}
|
|
@@ -162,13 +162,11 @@ local DEFAULT_GLOBALS = __TS__New(Set, {
|
|
|
162
162
|
"assert",
|
|
163
163
|
"collectgarbage",
|
|
164
164
|
"coroutine",
|
|
165
|
-
"dofile",
|
|
166
165
|
"error",
|
|
167
166
|
"getmetatable",
|
|
168
167
|
"include",
|
|
169
168
|
"ipairs",
|
|
170
169
|
"load",
|
|
171
|
-
"loadfile",
|
|
172
170
|
"math",
|
|
173
171
|
"next",
|
|
174
172
|
"pairs",
|
|
@@ -189,7 +187,14 @@ local DEFAULT_GLOBALS = __TS__New(Set, {
|
|
|
189
187
|
"utf8",
|
|
190
188
|
"xpcall"
|
|
191
189
|
})
|
|
192
|
-
local LUA_DEBUG_ADDED_GLOBALS = __TS__New(Set, {
|
|
190
|
+
local LUA_DEBUG_ADDED_GLOBALS = __TS__New(Set, {
|
|
191
|
+
"debug",
|
|
192
|
+
"dofile",
|
|
193
|
+
"loadfile",
|
|
194
|
+
"io",
|
|
195
|
+
"os",
|
|
196
|
+
"package"
|
|
197
|
+
})
|
|
193
198
|
local RACING_PLUS_SANDBOX_ADDED_GLOBALS = __TS__New(Set, {"sandboxTraceback", "sandboxGetTraceback", "getParentFunctionDescription"})
|
|
194
199
|
--- Helper function to get a set containing all of the global variable names that are contained
|
|
195
200
|
-- within the Isaac environment by default.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "17.7.
|
|
3
|
+
"version": "17.7.2",
|
|
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": "^10.0.
|
|
25
|
+
"isaac-typescript-definitions": "^10.0.6"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -72,7 +72,7 @@ export class ModFeature {
|
|
|
72
72
|
*
|
|
73
73
|
* By default, this is set to null. Override this property in your class if you need to use it.
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
protected callbackConditionalFunc: (() => boolean) | null = null;
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
* Whether or not the feature has registered its callbacks yet (and submitted its variables to the
|
|
@@ -47,7 +47,8 @@ export class PressInput extends Feature {
|
|
|
47
47
|
const playerIndex = getPlayerIndex(player);
|
|
48
48
|
|
|
49
49
|
for (let i = this.v.run.buttonActionTuples.length - 1; i >= 0; i--) {
|
|
50
|
-
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
51
|
+
const tuple = this.v.run.buttonActionTuples[i]!;
|
|
51
52
|
const [tuplePlayerIndex, tupleButtonAction] = tuple;
|
|
52
53
|
|
|
53
54
|
if (
|
package/src/functions/globals.ts
CHANGED
|
@@ -145,13 +145,11 @@ const DEFAULT_GLOBALS: ReadonlySet<string> = new Set([
|
|
|
145
145
|
"assert",
|
|
146
146
|
"collectgarbage",
|
|
147
147
|
"coroutine",
|
|
148
|
-
"dofile",
|
|
149
148
|
"error",
|
|
150
149
|
"getmetatable",
|
|
151
150
|
"include",
|
|
152
151
|
"ipairs",
|
|
153
152
|
"load",
|
|
154
|
-
"loadfile",
|
|
155
153
|
"math",
|
|
156
154
|
"next",
|
|
157
155
|
"pairs",
|
|
@@ -175,6 +173,8 @@ const DEFAULT_GLOBALS: ReadonlySet<string> = new Set([
|
|
|
175
173
|
|
|
176
174
|
const LUA_DEBUG_ADDED_GLOBALS: ReadonlySet<string> = new Set([
|
|
177
175
|
"debug",
|
|
176
|
+
"dofile",
|
|
177
|
+
"loadfile",
|
|
178
178
|
"io",
|
|
179
179
|
"os",
|
|
180
180
|
"package",
|