isaacscript-common 6.11.2 → 6.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/callbacks/postGridEntityCustomRender.d.ts +2 -0
- package/dist/callbacks/postGridEntityCustomRender.d.ts.map +1 -0
- package/dist/callbacks/postGridEntityCustomRender.lua +36 -0
- package/dist/callbacks/postGridEntityCustomUpdate.d.ts +2 -0
- package/dist/callbacks/postGridEntityCustomUpdate.d.ts.map +1 -0
- package/dist/callbacks/postGridEntityCustomUpdate.lua +36 -0
- package/dist/callbacks/postNewRoomEarly.lua +2 -2
- package/dist/callbacks/postPickupInitFirst.lua +1 -20
- package/dist/callbacks/reorderedCallbacks.d.ts +5 -5
- package/dist/callbacks/reorderedCallbacks.d.ts.map +1 -1
- package/dist/callbacks/reorderedCallbacks.lua +5 -5
- package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts +6 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRender.lua +29 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts +6 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.lua +29 -0
- package/dist/constants.d.ts +1 -5
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.lua +0 -7
- package/dist/constantsFirstLast.d.ts +5 -1
- package/dist/constantsFirstLast.d.ts.map +1 -1
- package/dist/constantsFirstLast.lua +6 -0
- package/dist/enums/ModCallbackCustom.d.ts +89 -66
- package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/enums/ModCallbackCustom.lua +62 -58
- package/dist/features/customGridEntity.d.ts +9 -0
- package/dist/features/customGridEntity.d.ts.map +1 -1
- package/dist/features/customGridEntity.lua +20 -0
- package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts +2 -2
- package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts.map +1 -1
- package/dist/features/customTrapdoor/customTrapdoorConstants.lua +2 -2
- package/dist/features/customTrapdoor/init.d.ts.map +1 -1
- package/dist/features/customTrapdoor/init.lua +4 -3
- package/dist/features/customTrapdoor/touched.d.ts.map +1 -1
- package/dist/features/customTrapdoor/touched.lua +51 -33
- package/dist/features/deployJSONRoom.d.ts +2 -2
- package/dist/features/deployJSONRoom.lua +2 -2
- package/dist/features/extraConsoleCommands/listCommands.d.ts.map +1 -1
- package/dist/features/extraConsoleCommands/listCommands.lua +4 -4
- package/dist/features/pause.d.ts +1 -1
- package/dist/features/pause.d.ts.map +1 -1
- package/dist/features/pause.lua +87 -8
- package/dist/features/persistentEntities.d.ts.map +1 -1
- package/dist/features/persistentEntities.lua +7 -7
- package/dist/features/pickupIndex.d.ts +19 -0
- package/dist/features/pickupIndex.d.ts.map +1 -0
- package/dist/features/pickupIndex.lua +197 -0
- package/dist/features/roomHistory.d.ts +24 -0
- package/dist/features/roomHistory.d.ts.map +1 -0
- package/dist/features/roomHistory.lua +89 -0
- package/dist/functions/collectibles.d.ts +26 -13
- package/dist/functions/collectibles.d.ts.map +1 -1
- package/dist/functions/collectibles.lua +26 -13
- package/dist/functions/entities.d.ts +3 -3
- package/dist/functions/entities.d.ts.map +1 -1
- package/dist/functions/entities.lua +8 -3
- package/dist/functions/gridEntities.d.ts +2 -2
- package/dist/functions/gridEntities.lua +2 -2
- package/dist/functions/isaacAPIClass.d.ts +64 -0
- package/dist/functions/isaacAPIClass.d.ts.map +1 -1
- package/dist/functions/isaacAPIClass.lua +84 -1
- package/dist/functions/pickupVariants.d.ts +2 -2
- package/dist/functions/pickupVariants.d.ts.map +1 -1
- package/dist/functions/pickupVariants.lua +2 -2
- package/dist/functions/playerCenter.lua +2 -2
- package/dist/functions/playerIndex.d.ts +0 -3
- package/dist/functions/playerIndex.d.ts.map +1 -1
- package/dist/functions/playerIndex.lua +4 -23
- package/dist/functions/roomData.d.ts +3 -2
- package/dist/functions/roomData.d.ts.map +1 -1
- package/dist/functions/roomData.lua +3 -2
- package/dist/functions/rooms.d.ts +6 -6
- package/dist/functions/rooms.lua +6 -6
- package/dist/functions/stage.d.ts +1 -0
- package/dist/functions/stage.d.ts.map +1 -1
- package/dist/functions/stage.lua +4 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.lua +23 -0
- package/dist/initCustomCallbacks.d.ts.map +1 -1
- package/dist/initCustomCallbacks.lua +6 -0
- package/dist/initFeatures.d.ts.map +1 -1
- package/dist/initFeatures.lua +6 -0
- package/dist/interfaces/AddCallbackParameterCustom.d.ts +4 -0
- package/dist/interfaces/AddCallbackParameterCustom.d.ts.map +1 -1
- package/dist/interfaces/RoomDescription.d.ts +14 -0
- package/dist/interfaces/RoomDescription.d.ts.map +1 -0
- package/dist/interfaces/RoomDescription.lua +2 -0
- package/dist/objects/callbackRegisterFunctions.d.ts.map +1 -1
- package/dist/objects/callbackRegisterFunctions.lua +6 -0
- package/dist/types/CollectibleIndex.d.ts +1 -1
- package/dist/types/PickupIndex.d.ts +17 -0
- package/dist/types/PickupIndex.d.ts.map +1 -0
- package/dist/types/PickupIndex.lua +2 -0
- package/dist/types/PlayerIndex.d.ts +1 -1
- package/dist/upgradeMod.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/callbacks/postGridEntityCustomRender.ts +44 -0
- package/src/callbacks/postGridEntityCustomUpdate.ts +44 -0
- package/src/callbacks/postNewRoomEarly.ts +2 -2
- package/src/callbacks/postPickupInitFirst.ts +1 -32
- package/src/callbacks/postPlayerReorderedCallbacks.ts +3 -3
- package/src/callbacks/reorderedCallbacks.ts +9 -8
- package/src/callbacks/subscriptions/postGridEntityCustomRender.ts +41 -0
- package/src/callbacks/subscriptions/postGridEntityCustomUpdate.ts +41 -0
- package/src/constants.ts +1 -9
- package/src/constantsFirstLast.ts +16 -0
- package/src/enums/ModCallbackCustom.ts +33 -8
- package/src/features/customGridEntity.ts +25 -0
- package/src/features/customTrapdoor/customTrapdoorConstants.ts +2 -2
- package/src/features/customTrapdoor/init.ts +7 -5
- package/src/features/customTrapdoor/touched.ts +59 -39
- package/src/features/deployJSONRoom.ts +4 -4
- package/src/features/extraConsoleCommands/listCommands.ts +5 -7
- package/src/features/pause.ts +97 -7
- package/src/features/persistentEntities.ts +9 -8
- package/src/features/pickupIndex.ts +257 -0
- package/src/features/playerInventory.ts +2 -2
- package/src/features/roomHistory.ts +113 -0
- package/src/features/saveDataManager/main.ts +2 -2
- package/src/features/taintedLazarusPlayers.ts +5 -5
- package/src/functions/collectibles.ts +26 -13
- package/src/functions/entities.ts +6 -3
- package/src/functions/gridEntities.ts +2 -2
- package/src/functions/isaacAPIClass.ts +106 -1
- package/src/functions/pickupVariants.ts +2 -2
- package/src/functions/playerCenter.ts +2 -2
- package/src/functions/playerIndex.ts +8 -21
- package/src/functions/roomData.ts +3 -2
- package/src/functions/rooms.ts +6 -6
- package/src/functions/stage.ts +10 -1
- package/src/index.ts +3 -0
- package/src/initCustomCallbacks.ts +4 -0
- package/src/initFeatures.ts +4 -0
- package/src/interfaces/AddCallbackParameterCustom.ts +4 -0
- package/src/interfaces/RoomDescription.ts +19 -0
- package/src/objects/callbackRegisterFunctions.ts +6 -0
- package/src/types/CollectibleIndex.ts +1 -1
- package/src/types/PickupIndex.ts +15 -0
- package/src/types/PlayerIndex.ts +1 -1
- package/src/upgradeMod.ts +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postGridEntityCustomRender.d.ts","sourceRoot":"","sources":["../../src/callbacks/postGridEntityCustomRender.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local Map = ____lualib.Map
|
|
3
|
+
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local ____exports = {}
|
|
5
|
+
local hasSubscriptions, postRender
|
|
6
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
7
|
+
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
8
|
+
local ____customGridEntity = require("features.customGridEntity")
|
|
9
|
+
local getCustomGridEntities = ____customGridEntity.getCustomGridEntities
|
|
10
|
+
local ____exports = require("features.saveDataManager.exports")
|
|
11
|
+
local saveDataManager = ____exports.saveDataManager
|
|
12
|
+
local ____postGridEntityCustomRender = require("callbacks.subscriptions.postGridEntityCustomRender")
|
|
13
|
+
local postGridEntityCustomRenderFire = ____postGridEntityCustomRender.postGridEntityCustomRenderFire
|
|
14
|
+
local postGridEntityCustomRenderHasSubscriptions = ____postGridEntityCustomRender.postGridEntityCustomRenderHasSubscriptions
|
|
15
|
+
function hasSubscriptions(self)
|
|
16
|
+
return postGridEntityCustomRenderHasSubscriptions(nil)
|
|
17
|
+
end
|
|
18
|
+
function postRender(self)
|
|
19
|
+
if not hasSubscriptions(nil) then
|
|
20
|
+
return
|
|
21
|
+
end
|
|
22
|
+
local customGridEntities = getCustomGridEntities(nil)
|
|
23
|
+
for ____, ____value in ipairs(customGridEntities) do
|
|
24
|
+
local gridEntity = ____value[1]
|
|
25
|
+
local data = ____value[2]
|
|
26
|
+
postGridEntityCustomRenderFire(nil, gridEntity, data.gridEntityTypeCustom)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
local v = {room = {initializedGridEntities = __TS__New(Map)}}
|
|
30
|
+
---
|
|
31
|
+
-- @internal
|
|
32
|
+
function ____exports.postGridEntityCustomRenderInit(self, mod)
|
|
33
|
+
saveDataManager(nil, "postGridEntityCustomRender", v, hasSubscriptions)
|
|
34
|
+
mod:AddCallback(ModCallback.POST_RENDER, postRender)
|
|
35
|
+
end
|
|
36
|
+
return ____exports
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postGridEntityCustomUpdate.d.ts","sourceRoot":"","sources":["../../src/callbacks/postGridEntityCustomUpdate.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local Map = ____lualib.Map
|
|
3
|
+
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local ____exports = {}
|
|
5
|
+
local hasSubscriptions, postUpdate
|
|
6
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
7
|
+
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
8
|
+
local ____customGridEntity = require("features.customGridEntity")
|
|
9
|
+
local getCustomGridEntities = ____customGridEntity.getCustomGridEntities
|
|
10
|
+
local ____exports = require("features.saveDataManager.exports")
|
|
11
|
+
local saveDataManager = ____exports.saveDataManager
|
|
12
|
+
local ____postGridEntityCustomUpdate = require("callbacks.subscriptions.postGridEntityCustomUpdate")
|
|
13
|
+
local postGridEntityCustomUpdateFire = ____postGridEntityCustomUpdate.postGridEntityCustomUpdateFire
|
|
14
|
+
local postGridEntityCustomUpdateHasSubscriptions = ____postGridEntityCustomUpdate.postGridEntityCustomUpdateHasSubscriptions
|
|
15
|
+
function hasSubscriptions(self)
|
|
16
|
+
return postGridEntityCustomUpdateHasSubscriptions(nil)
|
|
17
|
+
end
|
|
18
|
+
function postUpdate(self)
|
|
19
|
+
if not hasSubscriptions(nil) then
|
|
20
|
+
return
|
|
21
|
+
end
|
|
22
|
+
local customGridEntities = getCustomGridEntities(nil)
|
|
23
|
+
for ____, ____value in ipairs(customGridEntities) do
|
|
24
|
+
local gridEntity = ____value[1]
|
|
25
|
+
local data = ____value[2]
|
|
26
|
+
postGridEntityCustomUpdateFire(nil, gridEntity, data.gridEntityTypeCustom)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
local v = {room = {initializedGridEntities = __TS__New(Map)}}
|
|
30
|
+
---
|
|
31
|
+
-- @internal
|
|
32
|
+
function ____exports.postGridEntityCustomUpdateInit(self, mod)
|
|
33
|
+
saveDataManager(nil, "postGridEntityCustomUpdate", v, hasSubscriptions)
|
|
34
|
+
mod:AddCallback(ModCallback.POST_UPDATE, postUpdate)
|
|
35
|
+
end
|
|
36
|
+
return ____exports
|
|
@@ -38,14 +38,14 @@ function checkRoomChanged(self)
|
|
|
38
38
|
if topLeftWall == nil then
|
|
39
39
|
topLeftWall = spawnGridEntity(nil, GridEntityType.WALL, topLeftWallGridIndex)
|
|
40
40
|
if topLeftWall == nil then
|
|
41
|
-
logError("Failed to spawn a new wall (1) for the
|
|
41
|
+
logError("Failed to spawn a new wall (1) for the POST_NEW_ROOM_EARLY callback.")
|
|
42
42
|
return
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
if topLeftWall2 == nil then
|
|
46
46
|
topLeftWall2 = spawnGridEntity(nil, GridEntityType.WALL, rightOfTopWallGridIndex)
|
|
47
47
|
if topLeftWall2 == nil then
|
|
48
|
-
logError("Failed to spawn a new wall (2) for the
|
|
48
|
+
logError("Failed to spawn a new wall (2) for the POST_NEW_ROOM_EARLY callback.")
|
|
49
49
|
return
|
|
50
50
|
end
|
|
51
51
|
end
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
local ____lualib = require("lualib_bundle")
|
|
2
|
-
local Set = ____lualib.Set
|
|
3
|
-
local __TS__New = ____lualib.__TS__New
|
|
4
1
|
local ____exports = {}
|
|
5
|
-
local hasSubscriptions, postPickupInit
|
|
2
|
+
local hasSubscriptions, postPickupInit
|
|
6
3
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
7
|
-
local GameStateFlag = ____isaac_2Dtypescript_2Ddefinitions.GameStateFlag
|
|
8
4
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
9
|
-
local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
|
|
10
5
|
local ____cachedClasses = require("cachedClasses")
|
|
11
6
|
local game = ____cachedClasses.game
|
|
12
|
-
local ____exports = require("features.saveDataManager.exports")
|
|
13
|
-
local saveDataManager = ____exports.saveDataManager
|
|
14
7
|
local ____roomData = require("functions.roomData")
|
|
15
8
|
local getRoomVisitedCount = ____roomData.getRoomVisitedCount
|
|
16
9
|
local ____postPickupInitFirst = require("callbacks.subscriptions.postPickupInitFirst")
|
|
@@ -24,12 +17,7 @@ function postPickupInit(self, pickup)
|
|
|
24
17
|
return
|
|
25
18
|
end
|
|
26
19
|
local room = game:GetRoom()
|
|
27
|
-
local roomType = room:GetType()
|
|
28
20
|
local roomFrameCount = room:GetFrameCount()
|
|
29
|
-
local previouslySeen = v.run.postAscentPickupInitSeeds:has(pickup.InitSeed)
|
|
30
|
-
if POST_ASCENT_ROOM_TYPES:has(roomType) then
|
|
31
|
-
v.run.postAscentPickupInitSeeds:add(pickup.InitSeed)
|
|
32
|
-
end
|
|
33
21
|
if roomFrameCount > 0 then
|
|
34
22
|
postPickupInitFirstFire(nil, pickup)
|
|
35
23
|
return
|
|
@@ -38,18 +26,11 @@ function postPickupInit(self, pickup)
|
|
|
38
26
|
if roomVisitedCount > 0 then
|
|
39
27
|
return
|
|
40
28
|
end
|
|
41
|
-
local onAscent = game:GetStateFlag(GameStateFlag.BACKWARDS_PATH)
|
|
42
|
-
if onAscent and POST_ASCENT_ROOM_TYPES:has(roomType) and previouslySeen then
|
|
43
|
-
return
|
|
44
|
-
end
|
|
45
29
|
postPickupInitFirstFire(nil, pickup)
|
|
46
30
|
end
|
|
47
|
-
POST_ASCENT_ROOM_TYPES = __TS__New(Set, {RoomType.TREASURE, RoomType.BOSS})
|
|
48
|
-
v = {run = {postAscentPickupInitSeeds = __TS__New(Set)}}
|
|
49
31
|
---
|
|
50
32
|
-- @internal
|
|
51
33
|
function ____exports.postPickupInitFirstInit(self, mod)
|
|
52
|
-
saveDataManager(nil, "postPickupInitFirst", v, hasSubscriptions)
|
|
53
34
|
mod:AddCallback(ModCallback.POST_PICKUP_INIT, postPickupInit)
|
|
54
35
|
end
|
|
55
36
|
return ____exports
|
|
@@ -4,9 +4,9 @@ import { LevelStage, StageType } from "isaac-typescript-definitions";
|
|
|
4
4
|
* callback.
|
|
5
5
|
*
|
|
6
6
|
* If some specific cases, mods can change the current level during run initialization on the 0th
|
|
7
|
-
* frame. However, due to how the callback reordering works, the custom
|
|
8
|
-
* never fire on the 0th frame. To get around this, call this function before changing levels
|
|
9
|
-
* temporarily force the callback to fire.
|
|
7
|
+
* frame. However, due to how the callback reordering works, the custom `POST_NEW_LEVEL` callback
|
|
8
|
+
* will never fire on the 0th frame. To get around this, call this function before changing levels
|
|
9
|
+
* to temporarily force the callback to fire.
|
|
10
10
|
*/
|
|
11
11
|
export declare function forceNewLevelCallback(): void;
|
|
12
12
|
/**
|
|
@@ -14,8 +14,8 @@ export declare function forceNewLevelCallback(): void;
|
|
|
14
14
|
* callback.
|
|
15
15
|
*
|
|
16
16
|
* If some specific cases, mods can change the current room during run initialization on the 0th
|
|
17
|
-
* frame. However, due to how the callback reordering works, the custom
|
|
18
|
-
* never fire on the 0th frame. To get around this, call this function before changing rooms to
|
|
17
|
+
* frame. However, due to how the callback reordering works, the custom `POST_NEW_ROOM` callback
|
|
18
|
+
* will never fire on the 0th frame. To get around this, call this function before changing rooms to
|
|
19
19
|
* temporarily force the callback to fire.
|
|
20
20
|
*/
|
|
21
21
|
export declare function forceNewRoomCallback(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reorderedCallbacks.d.ts","sourceRoot":"","sources":["../../src/callbacks/reorderedCallbacks.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,UAAU,EAEV,SAAS,EACV,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"reorderedCallbacks.d.ts","sourceRoot":"","sources":["../../src/callbacks/reorderedCallbacks.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,UAAU,EAEV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAiItC;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,GACnB,IAAI,CAGN"}
|
|
@@ -90,9 +90,9 @@ end
|
|
|
90
90
|
-- callback.
|
|
91
91
|
--
|
|
92
92
|
-- If some specific cases, mods can change the current level during run initialization on the 0th
|
|
93
|
-
-- frame. However, due to how the callback reordering works, the custom
|
|
94
|
-
-- never fire on the 0th frame. To get around this, call this function before changing levels
|
|
95
|
-
-- temporarily force the callback to fire.
|
|
93
|
+
-- frame. However, due to how the callback reordering works, the custom `POST_NEW_LEVEL` callback
|
|
94
|
+
-- will never fire on the 0th frame. To get around this, call this function before changing levels
|
|
95
|
+
-- to temporarily force the callback to fire.
|
|
96
96
|
function ____exports.forceNewLevelCallback(self)
|
|
97
97
|
forceNewLevel = true
|
|
98
98
|
end
|
|
@@ -100,8 +100,8 @@ end
|
|
|
100
100
|
-- callback.
|
|
101
101
|
--
|
|
102
102
|
-- If some specific cases, mods can change the current room during run initialization on the 0th
|
|
103
|
-
-- frame. However, due to how the callback reordering works, the custom
|
|
104
|
-
-- never fire on the 0th frame. To get around this, call this function before changing rooms to
|
|
103
|
+
-- frame. However, due to how the callback reordering works, the custom `POST_NEW_ROOM` callback
|
|
104
|
+
-- will never fire on the 0th frame. To get around this, call this function before changing rooms to
|
|
105
105
|
-- temporarily force the callback to fire.
|
|
106
106
|
function ____exports.forceNewRoomCallback(self)
|
|
107
107
|
forceNewRoom = true
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GridEntityType } from "isaac-typescript-definitions";
|
|
2
|
+
export declare type PostGridEntityCustomRenderRegisterParameters = [
|
|
3
|
+
callback: (gridEntity: GridEntity, gridEntityTypeCustom: GridEntityType) => void,
|
|
4
|
+
gridEntityTypeCustom?: GridEntityType
|
|
5
|
+
];
|
|
6
|
+
//# sourceMappingURL=postGridEntityCustomRender.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postGridEntityCustomRender.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postGridEntityCustomRender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,oBAAY,4CAA4C,GAAG;IACzD,QAAQ,EAAE,CACR,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAAE,cAAc,KACjC,IAAI;IACT,oBAAoB,CAAC,EAAE,cAAc;CACtC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
local ____exports = {}
|
|
2
|
+
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
5
|
+
function ____exports.postGridEntityCustomRenderHasSubscriptions(self)
|
|
6
|
+
return #subscriptions > 0
|
|
7
|
+
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
10
|
+
function ____exports.postGridEntityCustomRenderRegister(self, ...)
|
|
11
|
+
local args = {...}
|
|
12
|
+
subscriptions[#subscriptions + 1] = args
|
|
13
|
+
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
16
|
+
function ____exports.postGridEntityCustomRenderFire(self, gridEntity, gridEntityTypeCustom)
|
|
17
|
+
for ____, ____value in ipairs(subscriptions) do
|
|
18
|
+
local callback = ____value[1]
|
|
19
|
+
local callbackGridEntityTypeCustom = ____value[2]
|
|
20
|
+
do
|
|
21
|
+
if callbackGridEntityTypeCustom ~= nil and callbackGridEntityTypeCustom ~= gridEntityTypeCustom then
|
|
22
|
+
goto __continue5
|
|
23
|
+
end
|
|
24
|
+
callback(nil, gridEntity, gridEntityTypeCustom)
|
|
25
|
+
end
|
|
26
|
+
::__continue5::
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
return ____exports
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GridEntityType } from "isaac-typescript-definitions";
|
|
2
|
+
export declare type PostGridEntityCustomUpdateRegisterParameters = [
|
|
3
|
+
callback: (gridEntity: GridEntity, gridEntityTypeCustom: GridEntityType) => void,
|
|
4
|
+
gridEntityTypeCustom?: GridEntityType
|
|
5
|
+
];
|
|
6
|
+
//# sourceMappingURL=postGridEntityCustomUpdate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postGridEntityCustomUpdate.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postGridEntityCustomUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,oBAAY,4CAA4C,GAAG;IACzD,QAAQ,EAAE,CACR,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAAE,cAAc,KACjC,IAAI;IACT,oBAAoB,CAAC,EAAE,cAAc;CACtC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
local ____exports = {}
|
|
2
|
+
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
5
|
+
function ____exports.postGridEntityCustomUpdateHasSubscriptions(self)
|
|
6
|
+
return #subscriptions > 0
|
|
7
|
+
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
10
|
+
function ____exports.postGridEntityCustomUpdateRegister(self, ...)
|
|
11
|
+
local args = {...}
|
|
12
|
+
subscriptions[#subscriptions + 1] = args
|
|
13
|
+
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
16
|
+
function ____exports.postGridEntityCustomUpdateFire(self, gridEntity, gridEntityTypeCustom)
|
|
17
|
+
for ____, ____value in ipairs(subscriptions) do
|
|
18
|
+
local callback = ____value[1]
|
|
19
|
+
local callbackGridEntityTypeCustom = ____value[2]
|
|
20
|
+
do
|
|
21
|
+
if callbackGridEntityTypeCustom ~= nil and callbackGridEntityTypeCustom ~= gridEntityTypeCustom then
|
|
22
|
+
goto __continue5
|
|
23
|
+
end
|
|
24
|
+
callback(nil, gridEntity, gridEntityTypeCustom)
|
|
25
|
+
end
|
|
26
|
+
::__continue5::
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
return ____exports
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectibleType, ItemPoolType
|
|
1
|
+
import { CollectibleType, ItemPoolType } from "isaac-typescript-definitions";
|
|
2
2
|
/**
|
|
3
3
|
* The distance of the laser when Azazel does not have any range up items yet. For more info, see
|
|
4
4
|
* the documentation for the `getAzazelBrimstoneDistance` function.
|
|
@@ -78,8 +78,6 @@ export declare const MAX_PLAYER_TRINKET_SLOTS: number;
|
|
|
78
78
|
export declare const MIN_PLAYER_SHOT_SPEED_STAT = 0.6;
|
|
79
79
|
/** If you set `EntityPlayer.Speed` lower than this value, it will have no effect. */
|
|
80
80
|
export declare const MIN_PLAYER_SPEED_STAT = 0.1;
|
|
81
|
-
export declare const FIRST_ROOM_TYPE = RoomType.DEFAULT;
|
|
82
|
-
export declare const LAST_ROOM_TYPE: RoomType;
|
|
83
81
|
/**
|
|
84
82
|
* The maximum speed stat that a player can have. Any additional speed beyond this will not take
|
|
85
83
|
* effect.
|
|
@@ -94,8 +92,6 @@ export declare const NEW_FLOOR_STARTING_POSITION_GREED_MODE: Vector;
|
|
|
94
92
|
* (like they do when getting to a new stage) so that the controls graphic is more visible.
|
|
95
93
|
*/
|
|
96
94
|
export declare const NEW_RUN_PLAYER_STARTING_POSITION: Vector;
|
|
97
|
-
export declare const FIRST_STAGE = LevelStage.BASEMENT_1;
|
|
98
|
-
export declare const LAST_STAGE: LevelStage;
|
|
99
95
|
/** Corresponds to the maximum value for `EntityPlayer.SamsonBerserkCharge`. */
|
|
100
96
|
export declare const MAX_TAINTED_SAMSON_BERSERK_CHARGE = 100000;
|
|
101
97
|
export declare const NUM_DIMENSIONS: number;
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO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AAC;AAEnE,yFAAyF;AACzF,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C,qFAAqF;AACrF,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,cAAc,IAAM,CAAC;AAElC,yCAAyC;AACzC,eAAO,MAAM,uCAAuC,QAAmB,CAAC;AAExE,iCAAiC;AACjC,eAAO,MAAM,sCAAsC,QAAmB,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,gCAAgC,QAAmB,CAAC;AAEjE,+EAA+E;AAC/E,eAAO,MAAM,iCAAiC,SAAS,CAAC;AAExD,eAAO,MAAM,cAAc,QAA+B,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAyB,CAAC;AAExD,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,sBAAsB,QAA8B,CAAC;AAElE,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,6FAA6F;AAC7F,eAAO,MAAM,gDAAgD,QAAQ,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAgB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAgB,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAkB,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAsB,CAAC"}
|
package/dist/constants.lua
CHANGED
|
@@ -2,14 +2,11 @@ local ____exports = {}
|
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local Dimension = ____isaac_2Dtypescript_2Ddefinitions.Dimension
|
|
4
4
|
local ItemPoolType = ____isaac_2Dtypescript_2Ddefinitions.ItemPoolType
|
|
5
|
-
local LevelStage = ____isaac_2Dtypescript_2Ddefinitions.LevelStage
|
|
6
|
-
local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
|
|
7
5
|
local TrinketSlot = ____isaac_2Dtypescript_2Ddefinitions.TrinketSlot
|
|
8
6
|
local ____constantsFirstLast = require("constantsFirstLast")
|
|
9
7
|
local NUM_NORMAL_PILL_COLORS = ____constantsFirstLast.NUM_NORMAL_PILL_COLORS
|
|
10
8
|
local ____enums = require("functions.enums")
|
|
11
9
|
local getEnumLength = ____enums.getEnumLength
|
|
12
|
-
local getLastEnumValue = ____enums.getLastEnumValue
|
|
13
10
|
--- The distance of the laser when Azazel does not have any range up items yet. For more info, see
|
|
14
11
|
-- the documentation for the `getAzazelBrimstoneDistance` function.
|
|
15
12
|
____exports.AZAZEL_DEFAULT_BRIMSTONE_DISTANCE = 75.125
|
|
@@ -69,8 +66,6 @@ ____exports.MAX_PLAYER_TRINKET_SLOTS = getEnumLength(nil, TrinketSlot)
|
|
|
69
66
|
____exports.MIN_PLAYER_SHOT_SPEED_STAT = 0.6
|
|
70
67
|
--- If you set `EntityPlayer.Speed` lower than this value, it will have no effect.
|
|
71
68
|
____exports.MIN_PLAYER_SPEED_STAT = 0.1
|
|
72
|
-
____exports.FIRST_ROOM_TYPE = RoomType.DEFAULT
|
|
73
|
-
____exports.LAST_ROOM_TYPE = getLastEnumValue(nil, RoomType)
|
|
74
69
|
--- The maximum speed stat that a player can have. Any additional speed beyond this will not take
|
|
75
70
|
-- effect.
|
|
76
71
|
____exports.MAX_SPEED_STAT = 2
|
|
@@ -81,8 +76,6 @@ ____exports.NEW_FLOOR_STARTING_POSITION_GREED_MODE = Vector(320, 280)
|
|
|
81
76
|
--- This is next to the bottom door. Presumably, the player does not start in the center of the room
|
|
82
77
|
-- (like they do when getting to a new stage) so that the controls graphic is more visible.
|
|
83
78
|
____exports.NEW_RUN_PLAYER_STARTING_POSITION = Vector(320, 380)
|
|
84
|
-
____exports.FIRST_STAGE = LevelStage.BASEMENT_1
|
|
85
|
-
____exports.LAST_STAGE = getLastEnumValue(nil, LevelStage)
|
|
86
79
|
--- Corresponds to the maximum value for `EntityPlayer.SamsonBerserkCharge`.
|
|
87
80
|
____exports.MAX_TAINTED_SAMSON_BERSERK_CHARGE = 100000
|
|
88
81
|
____exports.NUM_DIMENSIONS = getEnumLength(nil, Dimension) - 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Card, CollectibleType, PillColor, PillEffect, PlayerType, TrinketType } from "isaac-typescript-definitions";
|
|
1
|
+
import { Card, CollectibleType, LevelStage, PillColor, PillEffect, PlayerType, RoomType, TrinketType } from "isaac-typescript-definitions";
|
|
2
2
|
/** Equal to `CollectibleType.SAD_ONION`. */
|
|
3
3
|
export declare const FIRST_COLLECTIBLE_TYPE = CollectibleType.SAD_ONION;
|
|
4
4
|
/**
|
|
@@ -128,4 +128,8 @@ export declare const LAST_VANILLA_CHARACTER: PlayerType;
|
|
|
128
128
|
* If there are no modded characters, this constant will represent a character that does not exist.
|
|
129
129
|
*/
|
|
130
130
|
export declare const FIRST_MODDED_CHARACTER: PlayerType;
|
|
131
|
+
export declare const FIRST_ROOM_TYPE = RoomType.DEFAULT;
|
|
132
|
+
export declare const LAST_ROOM_TYPE: RoomType;
|
|
133
|
+
export declare const FIRST_STAGE = LevelStage.BASEMENT_1;
|
|
134
|
+
export declare const LAST_STAGE: LevelStage;
|
|
131
135
|
//# sourceMappingURL=constantsFirstLast.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constantsFirstLast.d.ts","sourceRoot":"","sources":["../src/constantsFirstLast.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,eAAe,EACf,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACZ,MAAM,8BAA8B,CAAC;AAQtC,4CAA4C;AAC5C,eAAO,MAAM,sBAAsB,4BAA4B,CAAC;AAEhE;;;;;GAKG;AACH,e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AAEhE;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,+BAA+B,CAAC;AAElE,eAAO,MAAM,sBAAsB,QAA4C,CAAC;AAMhF,mCAAmC;AACnC,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAIhD,6CAA6C;AAC7C,eAAO,MAAM,sBAAsB,YAA+B,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,sBAAsB,YACjB,CAAC;AAMnB,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,cAAc,UAA6B,CAAC;AAMzD,eAAO,MAAM,WAAW,wBAAwB,CAAC;AACjD,eAAO,MAAM,UAAU,YAA+B,CAAC"}
|
|
@@ -2,9 +2,11 @@ local ____exports = {}
|
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local Card = ____isaac_2Dtypescript_2Ddefinitions.Card
|
|
4
4
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
5
|
+
local LevelStage = ____isaac_2Dtypescript_2Ddefinitions.LevelStage
|
|
5
6
|
local PillColor = ____isaac_2Dtypescript_2Ddefinitions.PillColor
|
|
6
7
|
local PillEffect = ____isaac_2Dtypescript_2Ddefinitions.PillEffect
|
|
7
8
|
local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
|
|
9
|
+
local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
|
|
8
10
|
local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
|
|
9
11
|
local ____cachedClasses = require("cachedClasses")
|
|
10
12
|
local itemConfig = ____cachedClasses.itemConfig
|
|
@@ -110,4 +112,8 @@ ____exports.FIRST_CHARACTER = PlayerType.ISAAC
|
|
|
110
112
|
____exports.LAST_VANILLA_CHARACTER = getLastEnumValue(nil, PlayerType)
|
|
111
113
|
--- If there are no modded characters, this constant will represent a character that does not exist.
|
|
112
114
|
____exports.FIRST_MODDED_CHARACTER = ____exports.LAST_VANILLA_CHARACTER + 1
|
|
115
|
+
____exports.FIRST_ROOM_TYPE = RoomType.DEFAULT
|
|
116
|
+
____exports.LAST_ROOM_TYPE = getLastEnumValue(nil, RoomType)
|
|
117
|
+
____exports.FIRST_STAGE = LevelStage.BASEMENT_1
|
|
118
|
+
____exports.LAST_STAGE = getLastEnumValue(nil, LevelStage)
|
|
113
119
|
return ____exports
|