isaacscript-common 2.0.33 → 2.2.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/README.md +1 -1
- package/callbacks/customRevive.lua +11 -11
- package/callbacks/itemPickup.lua +7 -7
- package/callbacks/postBombInitLate.lua +2 -2
- package/callbacks/postBoneSwing.lua +2 -2
- package/callbacks/postCollectibleInitFirst.lua +3 -3
- package/callbacks/postCursedTeleport.lua +6 -6
- package/callbacks/postCustomDoorEnter.lua +9 -9
- package/callbacks/postDoorRender.lua +2 -2
- package/callbacks/postDoorUpdate.lua +2 -2
- package/callbacks/postEffectInitLate.lua +2 -2
- package/callbacks/postEffectStateChanged.lua +3 -3
- package/callbacks/postEsauJr.lua +5 -5
- package/callbacks/postFamiliarInitLate.lua +2 -2
- package/callbacks/postFamiliarStateChanged.lua +3 -3
- package/callbacks/postFlip.lua +4 -4
- package/callbacks/postGreedModeWave.lua +3 -3
- package/callbacks/postGridEntity.lua +7 -7
- package/callbacks/postGridEntityCollision.lua +4 -4
- package/callbacks/postGridEntityRender.lua +2 -2
- package/callbacks/postHolyMantleRemoved.lua +5 -5
- package/callbacks/postItemDischarged.lua +7 -7
- package/callbacks/postKnifeInitLate.lua +2 -2
- package/callbacks/postLaserInitLate.lua +2 -2
- package/callbacks/postNPCInitLate.lua +2 -2
- package/callbacks/postNPCStateChanged.lua +3 -3
- package/callbacks/postNewRoomEarly.lua +4 -4
- package/callbacks/postPickupCollect.lua +3 -3
- package/callbacks/postPickupInitLate.lua +2 -2
- package/callbacks/postPickupStateChanged.lua +3 -3
- package/callbacks/postPitRender.lua +2 -2
- package/callbacks/postPitUpdate.lua +2 -2
- package/callbacks/postPlayerChangeHealth.lua +8 -8
- package/callbacks/postPlayerChangeType.lua +5 -5
- package/callbacks/postPlayerFatalDamage.lua +6 -6
- package/callbacks/postPlayerInitLate.lua +3 -3
- package/callbacks/postPlayerReordered.lua +7 -7
- package/callbacks/postPoopRender.lua +2 -2
- package/callbacks/postPoopUpdate.lua +2 -2
- package/callbacks/postPressurePlateRender.lua +2 -2
- package/callbacks/postPressurePlateUpdate.lua +2 -2
- package/callbacks/postProjectileInitLate.lua +2 -2
- package/callbacks/postPurchase.lua +6 -6
- package/callbacks/postRockRender.lua +2 -2
- package/callbacks/postRockUpdate.lua +2 -2
- package/callbacks/postRoomClearChanged.lua +3 -3
- package/callbacks/postSacrifice.lua +4 -4
- package/callbacks/postSlotInitUpdate.lua +4 -4
- package/callbacks/postSlotRender.lua +6 -6
- package/callbacks/postSpikesRender.lua +2 -2
- package/callbacks/postSpikesUpdate.lua +2 -2
- package/callbacks/postTNTRender.lua +2 -2
- package/callbacks/postTNTUpdate.lua +2 -2
- package/callbacks/postTearInitLate.lua +2 -2
- package/callbacks/postTearInitVeryLate.lua +2 -2
- package/callbacks/postTransformation.lua +6 -6
- package/callbacks/postTrinketBreak.lua +5 -5
- package/callbacks/preBerserkDeath.lua +5 -5
- package/callbacks/preNewLevel.lua +3 -3
- package/callbacks/reorderedCallbacks.lua +4 -4
- package/classes/DefaultMap.d.ts +11 -7
- package/classes/ModUpgraded.d.ts +8 -2
- package/classes/ModUpgraded.lua +1 -1
- package/constants.d.ts +5 -5
- package/constants.lua +2 -2
- package/{constantsMax.d.ts → constantsFirstLast.d.ts} +0 -0
- package/{constantsMax.lua → constantsFirstLast.lua} +2 -2
- package/enums/HealthType.d.ts +2 -2
- package/enums/ModCallbackCustom.d.ts +753 -2
- package/features/characterHealthConversion.d.ts +1 -2
- package/features/characterHealthConversion.lua +3 -3
- package/features/characterStats.lua +3 -3
- package/features/debugDisplay/debugDisplay.lua +4 -4
- package/features/debugDisplay/exports.d.ts +36 -36
- package/features/debugDisplay/exports.lua +2 -2
- package/features/debugDisplay/v.lua +2 -2
- package/features/deployJSONRoom.d.ts +1 -1
- package/features/deployJSONRoom.lua +15 -15
- package/features/disableInputs.d.ts +5 -5
- package/features/disableInputs.lua +3 -3
- package/features/disableSound.d.ts +2 -2
- package/features/disableSound.lua +4 -4
- package/features/extraConsoleCommands/commandsDisplay.d.ts +18 -18
- package/features/extraConsoleCommands/commandsDisplay.lua +1 -1
- package/features/extraConsoleCommands/commandsSubroutines.lua +10 -10
- package/features/extraConsoleCommands/init.d.ts +3 -2
- package/features/extraConsoleCommands/init.lua +83 -83
- package/features/extraConsoleCommands/{commands.d.ts → listCommands.d.ts} +17 -17
- package/features/extraConsoleCommands/{commands.lua → listCommands.lua} +36 -36
- package/features/fadeInRemover.lua +3 -3
- package/features/fastReset.lua +4 -4
- package/features/forgottenSwitch.lua +2 -2
- package/features/getCollectibleItemPoolType.lua +6 -6
- package/features/playerInventory.lua +10 -10
- package/features/{isPonyActive.d.ts → ponyDetection.d.ts} +0 -0
- package/features/{isPonyActive.lua → ponyDetection.lua} +7 -7
- package/features/{preventCollectibleRotate.d.ts → preventCollectibleRotation.d.ts} +1 -1
- package/features/{preventCollectibleRotate.lua → preventCollectibleRotation.lua} +9 -9
- package/features/runInNFrames.lua +3 -3
- package/features/saveDataManager/exports.d.ts +15 -12
- package/features/saveDataManager/exports.lua +6 -6
- package/features/saveDataManager/load.d.ts +1 -1
- package/features/saveDataManager/load.lua +4 -4
- package/features/saveDataManager/main.d.ts +1 -1
- package/features/saveDataManager/main.lua +11 -11
- package/features/saveDataManager/maps.d.ts +1 -1
- package/features/saveDataManager/merge.lua +10 -10
- package/features/saveDataManager/save.d.ts +1 -1
- package/features/saveDataManager/save.lua +5 -5
- package/features/saveDataManager/serializationBrand.lua +2 -2
- package/features/sirenHelpers.lua +3 -3
- package/features/taintedLazarusPlayers.lua +2 -2
- package/functions/array.lua +3 -3
- package/functions/benchmark.lua +1 -1
- package/functions/boss.lua +7 -7
- package/functions/cacheFlag.lua +1 -1
- package/functions/cards.d.ts +1 -1
- package/functions/cards.lua +13 -13
- package/functions/challenges.lua +1 -1
- package/functions/character.lua +9 -9
- package/functions/charge.lua +3 -3
- package/functions/chargeBar.d.ts +1 -8
- package/functions/chargeBar.lua +1 -1
- package/functions/collectibleCacheFlag.d.ts +4 -4
- package/functions/collectibleCacheFlag.lua +6 -6
- package/functions/collectibleSet.lua +5 -5
- package/functions/collectibleTag.lua +6 -6
- package/functions/collectibles.lua +15 -15
- package/functions/color.d.ts +17 -3
- package/functions/color.lua +5 -5
- package/functions/debug.lua +1 -1
- package/functions/deepCopy.lua +13 -13
- package/functions/deepCopyTests.lua +6 -6
- package/functions/direction.lua +3 -3
- package/functions/doors.lua +6 -6
- package/functions/eden.lua +5 -5
- package/functions/entity.lua +5 -5
- package/functions/entitySpecific.d.ts +15 -1
- package/functions/entitySpecific.lua +10 -2
- package/functions/enums.d.ts +3 -3
- package/functions/enums.lua +2 -2
- package/functions/familiars.lua +2 -2
- package/functions/flying.lua +2 -2
- package/functions/globals.lua +3 -3
- package/functions/gridEntity.lua +10 -10
- package/functions/gridEntitySpecific.lua +2 -2
- package/functions/input.lua +4 -4
- package/functions/jsonHelpers.lua +1 -1
- package/functions/jsonRoom.d.ts +1 -1
- package/functions/jsonRoom.lua +4 -4
- package/functions/kColor.d.ts +1 -1
- package/functions/kColor.lua +5 -5
- package/functions/level.lua +3 -3
- package/functions/log.lua +15 -15
- package/functions/math.lua +1 -1
- package/functions/mergeTests.lua +7 -7
- package/functions/npc.lua +3 -3
- package/functions/pickups.lua +6 -6
- package/functions/pills.lua +15 -15
- package/functions/player.lua +11 -11
- package/functions/playerDataStructures.d.ts +51 -0
- package/functions/playerDataStructures.lua +5 -1
- package/functions/playerHealth.d.ts +1 -1
- package/functions/playerHealth.lua +4 -4
- package/functions/playerIndex.lua +1 -1
- package/functions/pocketItems.d.ts +1 -1
- package/functions/pocketItems.lua +3 -3
- package/functions/positionVelocity.lua +6 -6
- package/functions/random.lua +1 -1
- package/functions/revive.lua +6 -6
- package/functions/rng.d.ts +1 -1
- package/functions/rng.lua +6 -6
- package/functions/roomData.lua +4 -4
- package/functions/roomGrid.lua +3 -3
- package/functions/roomShape.lua +8 -8
- package/functions/rooms.lua +12 -12
- package/functions/run.lua +4 -4
- package/functions/seeds.lua +2 -2
- package/functions/serialization.lua +5 -5
- package/functions/set.lua +2 -2
- package/functions/sound.lua +2 -2
- package/functions/spawnCollectible.lua +10 -10
- package/functions/sprite.lua +3 -3
- package/functions/stage.lua +2 -2
- package/functions/transformations.lua +6 -6
- package/functions/trinketCacheFlag.lua +3 -3
- package/functions/trinketGive.d.ts +1 -1
- package/functions/trinketGive.lua +3 -3
- package/functions/trinkets.d.ts +3 -3
- package/functions/trinkets.lua +14 -14
- package/functions/tstlClass.lua +1 -1
- package/functions/ui.lua +3 -3
- package/functions/utils.d.ts +2 -2
- package/functions/utils.lua +1 -1
- package/functions/vector.d.ts +1 -1
- package/functions/vector.lua +5 -5
- package/index.d.ts +14 -13
- package/index.lua +123 -123
- package/initCustomCallbacks.lua +58 -58
- package/initFeatures.lua +19 -19
- package/{types → interfaces}/AddCallbackParameterCustom.d.ts +0 -0
- package/{types → interfaces}/AddCallbackParameterCustom.lua +1 -1
- package/interfaces/ChargeBarSprites.d.ts +13 -0
- package/{types/JSONDoor.lua → interfaces/ChargeBarSprites.lua} +0 -0
- package/{types → interfaces}/JSONDoor.d.ts +1 -0
- package/{types/JSONEntity.lua → interfaces/JSONDoor.lua} +0 -0
- package/{types → interfaces}/JSONEntity.d.ts +1 -0
- package/{types/JSONRoom.lua → interfaces/JSONEntity.lua} +0 -0
- package/{types → interfaces}/JSONRoom.d.ts +1 -5
- package/{types/JSONRooms.lua → interfaces/JSONRoom.lua} +0 -0
- package/{types → interfaces}/JSONRooms.d.ts +0 -0
- package/{types/JSONSpawn.lua → interfaces/JSONRooms.lua} +0 -0
- package/{types → interfaces}/JSONSpawn.d.ts +1 -0
- package/{types/PlayerHealth.lua → interfaces/JSONSpawn.lua} +0 -0
- package/{types → interfaces}/PlayerHealth.d.ts +1 -0
- package/{types/PocketItemDescription.lua → interfaces/PlayerHealth.lua} +0 -0
- package/{types → interfaces}/PocketItemDescription.d.ts +1 -0
- package/{types/Primitive.lua → interfaces/PocketItemDescription.lua} +0 -0
- package/interfaces/SaveData.d.ts +29 -0
- package/{types/private → interfaces}/SaveData.lua +0 -0
- package/{types → interfaces}/TrinketSituation.d.ts +1 -0
- package/{types → interfaces}/TrinketSituation.lua +0 -0
- package/{types → interfaces}/private/TSTLClassMetatable.d.ts +0 -0
- package/{types → interfaces}/private/TSTLClassMetatable.lua +0 -0
- package/maps/cardMap.lua +85 -85
- package/maps/characterMap.lua +58 -58
- package/maps/defaultPlayerStatMap.lua +1 -1
- package/maps/pillEffectMap.lua +39 -39
- package/maps/roomTypeMap.lua +12 -12
- package/objects/LRoomShapeToRectangles.lua +1 -1
- package/objects/callbackRegisterFunctions.d.ts +1 -1
- package/objects/callbackRegisterFunctions.lua +76 -76
- package/objects/directionToVector.lua +1 -1
- package/objects/isaacAPIClassTypeToBrand.lua +2 -2
- package/objects/isaacAPIClassTypeToCopyFunction.lua +5 -5
- package/objects/roomShapeBounds.lua +1 -1
- package/objects/roomShapeLayoutSizes.lua +1 -1
- package/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +1 -1
- package/objects/roomShapeToTopLeftPosition.lua +1 -1
- package/objects/roomTypeNames.lua +1 -1
- package/objects/serializedIsaacAPIClassTypeToIdentityFunction.lua +5 -5
- package/package.json +2 -2
- package/patchErrorFunctions.lua +1 -1
- package/types/CollectibleIndex.d.ts +2 -2
- package/types/PickingUpItem.d.ts +12 -2
- package/types/PickingUpItem.lua +3 -0
- package/types/PlayerIndex.d.ts +2 -2
- package/types/private/IsaacAPIClass.d.ts +1 -1
- package/types/private/SerializedIsaacAPIClass.d.ts +1 -1
- package/types/private/TSTLClass.d.ts +1 -1
- package/upgradeMod.d.ts +2 -1
- package/upgradeMod.lua +7 -7
- package/types/Primitive.d.ts +0 -1
- package/types/private/SaveData.d.ts +0 -22
|
@@ -1,155 +1,155 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
|
-
local ____postBombInitLate = require("
|
|
2
|
+
local ____postBombInitLate = require("callbacks.subscriptions.postBombInitLate")
|
|
3
3
|
local postBombInitLateRegister = ____postBombInitLate.postBombInitLateRegister
|
|
4
|
-
local ____postBoneSwing = require("
|
|
4
|
+
local ____postBoneSwing = require("callbacks.subscriptions.postBoneSwing")
|
|
5
5
|
local postBoneSwingRegister = ____postBoneSwing.postBoneSwingRegister
|
|
6
|
-
local ____postCollectibleInitFirst = require("
|
|
6
|
+
local ____postCollectibleInitFirst = require("callbacks.subscriptions.postCollectibleInitFirst")
|
|
7
7
|
local postCollectibleInitFirstRegister = ____postCollectibleInitFirst.postCollectibleInitFirstRegister
|
|
8
|
-
local ____postCursedTeleport = require("
|
|
8
|
+
local ____postCursedTeleport = require("callbacks.subscriptions.postCursedTeleport")
|
|
9
9
|
local postCursedTeleportRegister = ____postCursedTeleport.postCursedTeleportRegister
|
|
10
|
-
local ____postCustomDoorEnter = require("
|
|
10
|
+
local ____postCustomDoorEnter = require("callbacks.subscriptions.postCustomDoorEnter")
|
|
11
11
|
local postCustomDoorEnterRegister = ____postCustomDoorEnter.postCustomDoorEnterRegister
|
|
12
|
-
local ____postCustomRevive = require("
|
|
12
|
+
local ____postCustomRevive = require("callbacks.subscriptions.postCustomRevive")
|
|
13
13
|
local postCustomReviveRegister = ____postCustomRevive.postCustomReviveRegister
|
|
14
|
-
local ____postDoorRender = require("
|
|
14
|
+
local ____postDoorRender = require("callbacks.subscriptions.postDoorRender")
|
|
15
15
|
local postDoorRenderRegister = ____postDoorRender.postDoorRenderRegister
|
|
16
|
-
local ____postDoorUpdate = require("
|
|
16
|
+
local ____postDoorUpdate = require("callbacks.subscriptions.postDoorUpdate")
|
|
17
17
|
local postDoorUpdateRegister = ____postDoorUpdate.postDoorUpdateRegister
|
|
18
|
-
local ____postEffectInitLate = require("
|
|
18
|
+
local ____postEffectInitLate = require("callbacks.subscriptions.postEffectInitLate")
|
|
19
19
|
local postEffectInitLateRegister = ____postEffectInitLate.postEffectInitLateRegister
|
|
20
|
-
local ____postEffectStateChanged = require("
|
|
20
|
+
local ____postEffectStateChanged = require("callbacks.subscriptions.postEffectStateChanged")
|
|
21
21
|
local postEffectStateChangedRegister = ____postEffectStateChanged.postEffectStateChangedRegister
|
|
22
|
-
local ____postEsauJr = require("
|
|
22
|
+
local ____postEsauJr = require("callbacks.subscriptions.postEsauJr")
|
|
23
23
|
local postEsauJrRegister = ____postEsauJr.postEsauJrRegister
|
|
24
|
-
local ____postFamiliarInitLate = require("
|
|
24
|
+
local ____postFamiliarInitLate = require("callbacks.subscriptions.postFamiliarInitLate")
|
|
25
25
|
local postFamiliarInitLateRegister = ____postFamiliarInitLate.postFamiliarInitLateRegister
|
|
26
|
-
local ____postFamiliarStateChanged = require("
|
|
26
|
+
local ____postFamiliarStateChanged = require("callbacks.subscriptions.postFamiliarStateChanged")
|
|
27
27
|
local postFamiliarStateChangedRegister = ____postFamiliarStateChanged.postFamiliarStateChangedRegister
|
|
28
|
-
local ____postFirstEsauJr = require("
|
|
28
|
+
local ____postFirstEsauJr = require("callbacks.subscriptions.postFirstEsauJr")
|
|
29
29
|
local postFirstEsauJrRegister = ____postFirstEsauJr.postFirstEsauJrRegister
|
|
30
|
-
local ____postFirstFlip = require("
|
|
30
|
+
local ____postFirstFlip = require("callbacks.subscriptions.postFirstFlip")
|
|
31
31
|
local postFirstFlipRegister = ____postFirstFlip.postFirstFlipRegister
|
|
32
|
-
local ____postFlip = require("
|
|
32
|
+
local ____postFlip = require("callbacks.subscriptions.postFlip")
|
|
33
33
|
local postFlipRegister = ____postFlip.postFlipRegister
|
|
34
|
-
local ____postGameStartedReordered = require("
|
|
34
|
+
local ____postGameStartedReordered = require("callbacks.subscriptions.postGameStartedReordered")
|
|
35
35
|
local postGameStartedReorderedRegister = ____postGameStartedReordered.postGameStartedReorderedRegister
|
|
36
|
-
local ____postGreedModeWave = require("
|
|
36
|
+
local ____postGreedModeWave = require("callbacks.subscriptions.postGreedModeWave")
|
|
37
37
|
local postGreedModeWaveRegister = ____postGreedModeWave.postGreedModeWaveRegister
|
|
38
|
-
local ____postGridEntityBroken = require("
|
|
38
|
+
local ____postGridEntityBroken = require("callbacks.subscriptions.postGridEntityBroken")
|
|
39
39
|
local postGridEntityBrokenRegister = ____postGridEntityBroken.postGridEntityBrokenRegister
|
|
40
|
-
local ____postGridEntityCollision = require("
|
|
40
|
+
local ____postGridEntityCollision = require("callbacks.subscriptions.postGridEntityCollision")
|
|
41
41
|
local postGridEntityCollisionRegister = ____postGridEntityCollision.postGridEntityCollisionRegister
|
|
42
|
-
local ____postGridEntityInit = require("
|
|
42
|
+
local ____postGridEntityInit = require("callbacks.subscriptions.postGridEntityInit")
|
|
43
43
|
local postGridEntityInitRegister = ____postGridEntityInit.postGridEntityInitRegister
|
|
44
|
-
local ____postGridEntityRemove = require("
|
|
44
|
+
local ____postGridEntityRemove = require("callbacks.subscriptions.postGridEntityRemove")
|
|
45
45
|
local postGridEntityRemoveRegister = ____postGridEntityRemove.postGridEntityRemoveRegister
|
|
46
|
-
local ____postGridEntityRender = require("
|
|
46
|
+
local ____postGridEntityRender = require("callbacks.subscriptions.postGridEntityRender")
|
|
47
47
|
local postGridEntityRenderRegister = ____postGridEntityRender.postGridEntityRenderRegister
|
|
48
|
-
local ____postGridEntityStateChanged = require("
|
|
48
|
+
local ____postGridEntityStateChanged = require("callbacks.subscriptions.postGridEntityStateChanged")
|
|
49
49
|
local postGridEntityStateChangedRegister = ____postGridEntityStateChanged.postGridEntityStateChangedRegister
|
|
50
|
-
local ____postGridEntityUpdate = require("
|
|
50
|
+
local ____postGridEntityUpdate = require("callbacks.subscriptions.postGridEntityUpdate")
|
|
51
51
|
local postGridEntityUpdateRegister = ____postGridEntityUpdate.postGridEntityUpdateRegister
|
|
52
|
-
local ____postHolyMantleRemoved = require("
|
|
52
|
+
local ____postHolyMantleRemoved = require("callbacks.subscriptions.postHolyMantleRemoved")
|
|
53
53
|
local postHolyMantleRemovedRegister = ____postHolyMantleRemoved.postHolyMantleRemovedRegister
|
|
54
|
-
local ____postItemDischarged = require("
|
|
54
|
+
local ____postItemDischarged = require("callbacks.subscriptions.postItemDischarged")
|
|
55
55
|
local postItemDischargeRegister = ____postItemDischarged.postItemDischargeRegister
|
|
56
|
-
local ____postItemPickup = require("
|
|
56
|
+
local ____postItemPickup = require("callbacks.subscriptions.postItemPickup")
|
|
57
57
|
local postItemPickupRegister = ____postItemPickup.postItemPickupRegister
|
|
58
|
-
local ____postKnifeInitLate = require("
|
|
58
|
+
local ____postKnifeInitLate = require("callbacks.subscriptions.postKnifeInitLate")
|
|
59
59
|
local postKnifeInitLateRegister = ____postKnifeInitLate.postKnifeInitLateRegister
|
|
60
|
-
local ____postLaserInitLate = require("
|
|
60
|
+
local ____postLaserInitLate = require("callbacks.subscriptions.postLaserInitLate")
|
|
61
61
|
local postLaserInitLateRegister = ____postLaserInitLate.postLaserInitLateRegister
|
|
62
|
-
local ____postNewLevelReordered = require("
|
|
62
|
+
local ____postNewLevelReordered = require("callbacks.subscriptions.postNewLevelReordered")
|
|
63
63
|
local postNewLevelReorderedRegister = ____postNewLevelReordered.postNewLevelReorderedRegister
|
|
64
|
-
local ____postNewRoomEarly = require("
|
|
64
|
+
local ____postNewRoomEarly = require("callbacks.subscriptions.postNewRoomEarly")
|
|
65
65
|
local postNewRoomEarlyRegister = ____postNewRoomEarly.postNewRoomEarlyRegister
|
|
66
|
-
local ____postNewRoomReordered = require("
|
|
66
|
+
local ____postNewRoomReordered = require("callbacks.subscriptions.postNewRoomReordered")
|
|
67
67
|
local postNewRoomReorderedRegister = ____postNewRoomReordered.postNewRoomReorderedRegister
|
|
68
|
-
local ____postNPCInitLate = require("
|
|
68
|
+
local ____postNPCInitLate = require("callbacks.subscriptions.postNPCInitLate")
|
|
69
69
|
local postNPCInitLateRegister = ____postNPCInitLate.postNPCInitLateRegister
|
|
70
|
-
local ____postNPCStateChanged = require("
|
|
70
|
+
local ____postNPCStateChanged = require("callbacks.subscriptions.postNPCStateChanged")
|
|
71
71
|
local postNPCStateChangedRegister = ____postNPCStateChanged.postNPCStateChangedRegister
|
|
72
|
-
local ____postPEffectUpdateReordered = require("
|
|
72
|
+
local ____postPEffectUpdateReordered = require("callbacks.subscriptions.postPEffectUpdateReordered")
|
|
73
73
|
local postPEffectUpdateReorderedRegister = ____postPEffectUpdateReordered.postPEffectUpdateReorderedRegister
|
|
74
|
-
local ____postPickupCollect = require("
|
|
74
|
+
local ____postPickupCollect = require("callbacks.subscriptions.postPickupCollect")
|
|
75
75
|
local postPickupCollectRegister = ____postPickupCollect.postPickupCollectRegister
|
|
76
|
-
local ____postPickupInitLate = require("
|
|
76
|
+
local ____postPickupInitLate = require("callbacks.subscriptions.postPickupInitLate")
|
|
77
77
|
local postPickupInitLateRegister = ____postPickupInitLate.postPickupInitLateRegister
|
|
78
|
-
local ____postPickupStateChanged = require("
|
|
78
|
+
local ____postPickupStateChanged = require("callbacks.subscriptions.postPickupStateChanged")
|
|
79
79
|
local postPickupStateChangedRegister = ____postPickupStateChanged.postPickupStateChangedRegister
|
|
80
|
-
local ____postPitRender = require("
|
|
80
|
+
local ____postPitRender = require("callbacks.subscriptions.postPitRender")
|
|
81
81
|
local postPitRenderRegister = ____postPitRender.postPitRenderRegister
|
|
82
|
-
local ____postPitUpdate = require("
|
|
82
|
+
local ____postPitUpdate = require("callbacks.subscriptions.postPitUpdate")
|
|
83
83
|
local postPitUpdateRegister = ____postPitUpdate.postPitUpdateRegister
|
|
84
|
-
local ____postPlayerChangeHealth = require("
|
|
84
|
+
local ____postPlayerChangeHealth = require("callbacks.subscriptions.postPlayerChangeHealth")
|
|
85
85
|
local postPlayerChangeHealthRegister = ____postPlayerChangeHealth.postPlayerChangeHealthRegister
|
|
86
|
-
local ____postPlayerChangeType = require("
|
|
86
|
+
local ____postPlayerChangeType = require("callbacks.subscriptions.postPlayerChangeType")
|
|
87
87
|
local postPlayerChangeTypeRegister = ____postPlayerChangeType.postPlayerChangeTypeRegister
|
|
88
|
-
local ____postPlayerFatalDamage = require("
|
|
88
|
+
local ____postPlayerFatalDamage = require("callbacks.subscriptions.postPlayerFatalDamage")
|
|
89
89
|
local postPlayerFatalDamageRegister = ____postPlayerFatalDamage.postPlayerFatalDamageRegister
|
|
90
|
-
local ____postPlayerInitLate = require("
|
|
90
|
+
local ____postPlayerInitLate = require("callbacks.subscriptions.postPlayerInitLate")
|
|
91
91
|
local postPlayerInitLateRegister = ____postPlayerInitLate.postPlayerInitLateRegister
|
|
92
|
-
local ____postPlayerInitReordered = require("
|
|
92
|
+
local ____postPlayerInitReordered = require("callbacks.subscriptions.postPlayerInitReordered")
|
|
93
93
|
local postPlayerInitReorderedRegister = ____postPlayerInitReordered.postPlayerInitReorderedRegister
|
|
94
|
-
local ____postPlayerRenderReordered = require("
|
|
94
|
+
local ____postPlayerRenderReordered = require("callbacks.subscriptions.postPlayerRenderReordered")
|
|
95
95
|
local postPlayerRenderReorderedRegister = ____postPlayerRenderReordered.postPlayerRenderReorderedRegister
|
|
96
|
-
local ____postPlayerUpdateReordered = require("
|
|
96
|
+
local ____postPlayerUpdateReordered = require("callbacks.subscriptions.postPlayerUpdateReordered")
|
|
97
97
|
local postPlayerUpdateReorderedRegister = ____postPlayerUpdateReordered.postPlayerUpdateReorderedRegister
|
|
98
|
-
local ____postPoopRender = require("
|
|
98
|
+
local ____postPoopRender = require("callbacks.subscriptions.postPoopRender")
|
|
99
99
|
local postPoopRenderRegister = ____postPoopRender.postPoopRenderRegister
|
|
100
|
-
local ____postPoopUpdate = require("
|
|
100
|
+
local ____postPoopUpdate = require("callbacks.subscriptions.postPoopUpdate")
|
|
101
101
|
local postPoopUpdateRegister = ____postPoopUpdate.postPoopUpdateRegister
|
|
102
|
-
local ____postPressurePlateRender = require("
|
|
102
|
+
local ____postPressurePlateRender = require("callbacks.subscriptions.postPressurePlateRender")
|
|
103
103
|
local postPressurePlateRenderRegister = ____postPressurePlateRender.postPressurePlateRenderRegister
|
|
104
|
-
local ____postPressurePlateUpdate = require("
|
|
104
|
+
local ____postPressurePlateUpdate = require("callbacks.subscriptions.postPressurePlateUpdate")
|
|
105
105
|
local postPressurePlateUpdateRegister = ____postPressurePlateUpdate.postPressurePlateUpdateRegister
|
|
106
|
-
local ____postProjectileInitLate = require("
|
|
106
|
+
local ____postProjectileInitLate = require("callbacks.subscriptions.postProjectileInitLate")
|
|
107
107
|
local postProjectileInitLateRegister = ____postProjectileInitLate.postProjectileInitLateRegister
|
|
108
|
-
local ____postPurchase = require("
|
|
108
|
+
local ____postPurchase = require("callbacks.subscriptions.postPurchase")
|
|
109
109
|
local postPurchaseRegister = ____postPurchase.postPurchaseRegister
|
|
110
|
-
local ____postRockRender = require("
|
|
110
|
+
local ____postRockRender = require("callbacks.subscriptions.postRockRender")
|
|
111
111
|
local postRockRenderRegister = ____postRockRender.postRockRenderRegister
|
|
112
|
-
local ____postRockUpdate = require("
|
|
112
|
+
local ____postRockUpdate = require("callbacks.subscriptions.postRockUpdate")
|
|
113
113
|
local postRockUpdateRegister = ____postRockUpdate.postRockUpdateRegister
|
|
114
|
-
local ____postRoomClearChanged = require("
|
|
114
|
+
local ____postRoomClearChanged = require("callbacks.subscriptions.postRoomClearChanged")
|
|
115
115
|
local postRoomClearChangedRegister = ____postRoomClearChanged.postRoomClearChangedRegister
|
|
116
|
-
local ____postSacrifice = require("
|
|
116
|
+
local ____postSacrifice = require("callbacks.subscriptions.postSacrifice")
|
|
117
117
|
local postSacrificeRegister = ____postSacrifice.postSacrificeRegister
|
|
118
|
-
local ____postSlotAnimationChanged = require("
|
|
118
|
+
local ____postSlotAnimationChanged = require("callbacks.subscriptions.postSlotAnimationChanged")
|
|
119
119
|
local postSlotAnimationChangedRegister = ____postSlotAnimationChanged.postSlotAnimationChangedRegister
|
|
120
|
-
local ____postSlotDestroyed = require("
|
|
120
|
+
local ____postSlotDestroyed = require("callbacks.subscriptions.postSlotDestroyed")
|
|
121
121
|
local postSlotDestroyedRegister = ____postSlotDestroyed.postSlotDestroyedRegister
|
|
122
|
-
local ____postSlotInit = require("
|
|
122
|
+
local ____postSlotInit = require("callbacks.subscriptions.postSlotInit")
|
|
123
123
|
local postSlotInitRegister = ____postSlotInit.postSlotInitRegister
|
|
124
|
-
local ____postSlotRender = require("
|
|
124
|
+
local ____postSlotRender = require("callbacks.subscriptions.postSlotRender")
|
|
125
125
|
local postSlotRenderRegister = ____postSlotRender.postSlotRenderRegister
|
|
126
|
-
local ____postSlotUpdate = require("
|
|
126
|
+
local ____postSlotUpdate = require("callbacks.subscriptions.postSlotUpdate")
|
|
127
127
|
local postSlotUpdateRegister = ____postSlotUpdate.postSlotUpdateRegister
|
|
128
|
-
local ____postSpikesRender = require("
|
|
128
|
+
local ____postSpikesRender = require("callbacks.subscriptions.postSpikesRender")
|
|
129
129
|
local postSpikesRenderRegister = ____postSpikesRender.postSpikesRenderRegister
|
|
130
|
-
local ____postSpikesUpdate = require("
|
|
130
|
+
local ____postSpikesUpdate = require("callbacks.subscriptions.postSpikesUpdate")
|
|
131
131
|
local postSpikesUpdateRegister = ____postSpikesUpdate.postSpikesUpdateRegister
|
|
132
|
-
local ____postTearInitLate = require("
|
|
132
|
+
local ____postTearInitLate = require("callbacks.subscriptions.postTearInitLate")
|
|
133
133
|
local postTearInitLateRegister = ____postTearInitLate.postTearInitLateRegister
|
|
134
|
-
local ____postTearInitVeryLate = require("
|
|
134
|
+
local ____postTearInitVeryLate = require("callbacks.subscriptions.postTearInitVeryLate")
|
|
135
135
|
local postTearInitVeryLateRegister = ____postTearInitVeryLate.postTearInitVeryLateRegister
|
|
136
|
-
local ____postTNTRender = require("
|
|
136
|
+
local ____postTNTRender = require("callbacks.subscriptions.postTNTRender")
|
|
137
137
|
local postTNTRenderRegister = ____postTNTRender.postTNTRenderRegister
|
|
138
|
-
local ____postTNTUpdate = require("
|
|
138
|
+
local ____postTNTUpdate = require("callbacks.subscriptions.postTNTUpdate")
|
|
139
139
|
local postTNTUpdateRegister = ____postTNTUpdate.postTNTUpdateRegister
|
|
140
|
-
local ____postTransformation = require("
|
|
140
|
+
local ____postTransformation = require("callbacks.subscriptions.postTransformation")
|
|
141
141
|
local postTransformationRegister = ____postTransformation.postTransformationRegister
|
|
142
|
-
local ____postTrinketBreak = require("
|
|
142
|
+
local ____postTrinketBreak = require("callbacks.subscriptions.postTrinketBreak")
|
|
143
143
|
local postTrinketBreakRegister = ____postTrinketBreak.postTrinketBreakRegister
|
|
144
|
-
local ____preBerserkDeath = require("
|
|
144
|
+
local ____preBerserkDeath = require("callbacks.subscriptions.preBerserkDeath")
|
|
145
145
|
local preBerserkDeathRegister = ____preBerserkDeath.preBerserkDeathRegister
|
|
146
|
-
local ____preCustomRevive = require("
|
|
146
|
+
local ____preCustomRevive = require("callbacks.subscriptions.preCustomRevive")
|
|
147
147
|
local preCustomReviveRegister = ____preCustomRevive.preCustomReviveRegister
|
|
148
|
-
local ____preItemPickup = require("
|
|
148
|
+
local ____preItemPickup = require("callbacks.subscriptions.preItemPickup")
|
|
149
149
|
local preItemPickupRegister = ____preItemPickup.preItemPickupRegister
|
|
150
|
-
local ____preNewLevel = require("
|
|
150
|
+
local ____preNewLevel = require("callbacks.subscriptions.preNewLevel")
|
|
151
151
|
local preNewLevelRegister = ____preNewLevel.preNewLevelRegister
|
|
152
|
-
local ____ModCallbackCustom = require("
|
|
152
|
+
local ____ModCallbackCustom = require("enums.ModCallbackCustom")
|
|
153
153
|
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
154
154
|
____exports.CALLBACK_REGISTER_FUNCTIONS = {
|
|
155
155
|
[ModCallbackCustom.POST_BOMB_INIT_LATE] = postBombInitLateRegister,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local Direction = ____isaac_2Dtypescript_2Ddefinitions.Direction
|
|
4
|
-
local ____constants = require("
|
|
4
|
+
local ____constants = require("constants")
|
|
5
5
|
local VectorZero = ____constants.VectorZero
|
|
6
6
|
____exports.DIRECTION_TO_VECTOR = {
|
|
7
7
|
[Direction.NO_DIRECTION] = VectorZero,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
|
-
local ____CopyableIsaacAPIClassType = require("
|
|
2
|
+
local ____CopyableIsaacAPIClassType = require("enums.private.CopyableIsaacAPIClassType")
|
|
3
3
|
local CopyableIsaacAPIClassType = ____CopyableIsaacAPIClassType.CopyableIsaacAPIClassType
|
|
4
|
-
local ____SerializationBrand = require("
|
|
4
|
+
local ____SerializationBrand = require("enums.private.SerializationBrand")
|
|
5
5
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
6
6
|
____exports.ISAAC_API_CLASS_TYPE_TO_BRAND = {[CopyableIsaacAPIClassType.COLOR] = SerializationBrand.COLOR, [CopyableIsaacAPIClassType.K_COLOR] = SerializationBrand.K_COLOR, [CopyableIsaacAPIClassType.RNG] = SerializationBrand.RNG, [CopyableIsaacAPIClassType.VECTOR] = SerializationBrand.VECTOR}
|
|
7
7
|
return ____exports
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
|
-
local ____CopyableIsaacAPIClassType = require("
|
|
2
|
+
local ____CopyableIsaacAPIClassType = require("enums.private.CopyableIsaacAPIClassType")
|
|
3
3
|
local CopyableIsaacAPIClassType = ____CopyableIsaacAPIClassType.CopyableIsaacAPIClassType
|
|
4
|
-
local ____color = require("
|
|
4
|
+
local ____color = require("functions.color")
|
|
5
5
|
local copyColor = ____color.copyColor
|
|
6
|
-
local ____kColor = require("
|
|
6
|
+
local ____kColor = require("functions.kColor")
|
|
7
7
|
local copyKColor = ____kColor.copyKColor
|
|
8
|
-
local ____rng = require("
|
|
8
|
+
local ____rng = require("functions.rng")
|
|
9
9
|
local copyRNG = ____rng.copyRNG
|
|
10
|
-
local ____vector = require("
|
|
10
|
+
local ____vector = require("functions.vector")
|
|
11
11
|
local copyVector = ____vector.copyVector
|
|
12
12
|
____exports.ISAAC_API_CLASS_TYPE_TO_COPY_FUNCTION = {[CopyableIsaacAPIClassType.COLOR] = copyColor, [CopyableIsaacAPIClassType.K_COLOR] = copyKColor, [CopyableIsaacAPIClassType.RNG] = copyRNG, [CopyableIsaacAPIClassType.VECTOR] = copyVector}
|
|
13
13
|
return ____exports
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local RoomShape = ____isaac_2Dtypescript_2Ddefinitions.RoomShape
|
|
4
|
-
local ____roomShapeVolumes = require("
|
|
4
|
+
local ____roomShapeVolumes = require("objects.roomShapeVolumes")
|
|
5
5
|
local NARROW_CONTENTS_HEIGHT = ____roomShapeVolumes.NARROW_CONTENTS_HEIGHT
|
|
6
6
|
local NARROW_CONTENTS_WIDTH = ____roomShapeVolumes.NARROW_CONTENTS_WIDTH
|
|
7
7
|
local ONE_BY_ONE_CONTENTS_HEIGHT = ____roomShapeVolumes.ONE_BY_ONE_CONTENTS_HEIGHT
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local RoomShape = ____isaac_2Dtypescript_2Ddefinitions.RoomShape
|
|
4
|
-
local ____roomShapeVolumes = require("
|
|
4
|
+
local ____roomShapeVolumes = require("objects.roomShapeVolumes")
|
|
5
5
|
local ONE_BY_ONE_CONTENTS_HEIGHT = ____roomShapeVolumes.ONE_BY_ONE_CONTENTS_HEIGHT
|
|
6
6
|
local ONE_BY_ONE_CONTENTS_WIDTH = ____roomShapeVolumes.ONE_BY_ONE_CONTENTS_WIDTH
|
|
7
7
|
local ONE_BY_ONE_LAYOUT_SIZE = Vector(ONE_BY_ONE_CONTENTS_WIDTH, ONE_BY_ONE_CONTENTS_HEIGHT)
|
|
@@ -5,7 +5,7 @@ local ____exports = {}
|
|
|
5
5
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
6
|
local DoorSlot = ____isaac_2Dtypescript_2Ddefinitions.DoorSlot
|
|
7
7
|
local RoomShape = ____isaac_2Dtypescript_2Ddefinitions.RoomShape
|
|
8
|
-
local ____constants = require("
|
|
8
|
+
local ____constants = require("constants")
|
|
9
9
|
local LEVEL_GRID_ROW_WIDTH = ____constants.LEVEL_GRID_ROW_WIDTH
|
|
10
10
|
local LEFT = -1
|
|
11
11
|
local UP = -LEVEL_GRID_ROW_WIDTH
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local RoomShape = ____isaac_2Dtypescript_2Ddefinitions.RoomShape
|
|
4
|
-
local ____constants = require("
|
|
4
|
+
local ____constants = require("constants")
|
|
5
5
|
local VectorZero = ____constants.VectorZero
|
|
6
6
|
local NARROW_HORIZONTAL_TOP_LEFT_POSITION = Vector(0, 2)
|
|
7
7
|
local NARROW_VERTICAL_TOP_LEFT_POSITION = Vector(4, 0)
|
|
@@ -6,7 +6,7 @@ ____exports.ROOM_TYPE_NAMES = {
|
|
|
6
6
|
[RoomType.NULL] = "null room",
|
|
7
7
|
[RoomType.DEFAULT] = "default room",
|
|
8
8
|
[RoomType.SHOP] = "shop",
|
|
9
|
-
[RoomType.ERROR] = "
|
|
9
|
+
[RoomType.ERROR] = "I AM ERROR Room",
|
|
10
10
|
[RoomType.TREASURE] = "Treasure Room",
|
|
11
11
|
[RoomType.BOSS] = "Boss Room",
|
|
12
12
|
[RoomType.MINI_BOSS] = "Miniboss Room",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
|
-
local ____CopyableIsaacAPIClassType = require("
|
|
2
|
+
local ____CopyableIsaacAPIClassType = require("enums.private.CopyableIsaacAPIClassType")
|
|
3
3
|
local CopyableIsaacAPIClassType = ____CopyableIsaacAPIClassType.CopyableIsaacAPIClassType
|
|
4
|
-
local ____color = require("
|
|
4
|
+
local ____color = require("functions.color")
|
|
5
5
|
local isSerializedColor = ____color.isSerializedColor
|
|
6
|
-
local ____kColor = require("
|
|
6
|
+
local ____kColor = require("functions.kColor")
|
|
7
7
|
local isSerializedKColor = ____kColor.isSerializedKColor
|
|
8
|
-
local ____rng = require("
|
|
8
|
+
local ____rng = require("functions.rng")
|
|
9
9
|
local isSerializedRNG = ____rng.isSerializedRNG
|
|
10
|
-
local ____vector = require("
|
|
10
|
+
local ____vector = require("functions.vector")
|
|
11
11
|
local isSerializedVector = ____vector.isSerializedVector
|
|
12
12
|
____exports.SERIALIZED_ISAAC_API_CLASS_TYPE_TO_IDENTITY_FUNCTION = {[CopyableIsaacAPIClassType.COLOR] = isSerializedColor, [CopyableIsaacAPIClassType.K_COLOR] = isSerializedKColor, [CopyableIsaacAPIClassType.RNG] = isSerializedRNG, [CopyableIsaacAPIClassType.VECTOR] = isSerializedVector}
|
|
13
13
|
return ____exports
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Helper functions and features for IsaacScript mods.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"main": "index",
|
|
23
23
|
"types": "index.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"isaac-typescript-definitions": "^2.0.
|
|
25
|
+
"isaac-typescript-definitions": "^2.0.53"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/patchErrorFunctions.lua
CHANGED
|
@@ -4,7 +4,7 @@ local __TS__StringIncludes = ____lualib.__TS__StringIncludes
|
|
|
4
4
|
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
5
5
|
local ____exports = {}
|
|
6
6
|
local errorWithTraceback, slimTracebackOutput, removeLinesContaining, LINE_SEPARATOR, USELESS_TRACEBACK_MESSAGES, vanillaError
|
|
7
|
-
local ____debug = require("
|
|
7
|
+
local ____debug = require("functions.debug")
|
|
8
8
|
local getTraceback = ____debug.getTraceback
|
|
9
9
|
local isLuaDebugEnabled = ____debug.isLuaDebugEnabled
|
|
10
10
|
function errorWithTraceback(message, level)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* CollectibleIndex is a specific type of string; see the documentation for the
|
|
3
|
-
*
|
|
3
|
+
* `getCollectibleIndex` function. Mods can signify that data structures handle collectibles by
|
|
4
4
|
* using this type.
|
|
5
5
|
*
|
|
6
6
|
* For example:
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
* This type is branded for extra type safety.
|
|
13
13
|
*/
|
|
14
14
|
export declare type CollectibleIndex = string & {
|
|
15
|
-
__collectibleIndexBrand:
|
|
15
|
+
__collectibleIndexBrand: void;
|
|
16
16
|
};
|
package/types/PickingUpItem.d.ts
CHANGED
|
@@ -1,24 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is the type that is fed to the `PRE_ITEM_PICKUP` and `POST_ITEM_PICKUP` custom callbacks.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
1
6
|
import { CollectibleType, ItemType, TrinketType } from "isaac-typescript-definitions";
|
|
2
7
|
export declare type PickingUpItem = PickingUpItemNull | PickingUpItemCollectible | PickingUpItemTrinket;
|
|
8
|
+
/** Part of {@link PickingUpItem}. */
|
|
3
9
|
export interface PickingUpItemNull {
|
|
4
10
|
/** Needed so that we can distinguish between picking up a collectible and a trinket. */
|
|
5
11
|
itemType: ItemType.NULL;
|
|
6
12
|
/** Equal to either the collectible type, the trinket type, or 0. */
|
|
7
13
|
subType: 0;
|
|
8
14
|
}
|
|
15
|
+
/** Part of {@link PickingUpItem}. */
|
|
9
16
|
export interface PickingUpItemCollectible {
|
|
10
17
|
/** Needed so that we can distinguish between picking up a collectible and a trinket. */
|
|
11
18
|
itemType: ItemType.PASSIVE | ItemType.ACTIVE | ItemType.FAMILIAR;
|
|
12
19
|
/** Equal to either the collectible type, the trinket type, or 0. */
|
|
13
20
|
subType: CollectibleType;
|
|
14
21
|
}
|
|
22
|
+
/** Part of {@link PickingUpItem}. */
|
|
15
23
|
export interface PickingUpItemTrinket {
|
|
16
24
|
/** Needed so that we can distinguish between picking up a collectible and a trinket. */
|
|
17
25
|
itemType: ItemType.TRINKET;
|
|
18
26
|
/** Equal to either the collectible type, the trinket type, or 0. */
|
|
19
27
|
subType: TrinketType;
|
|
20
28
|
}
|
|
21
|
-
|
|
22
|
-
export declare function
|
|
29
|
+
/** Helper function to narrow the type of `PickingUpItem`. */
|
|
30
|
+
export declare function pickingUpItemIsNull(pickingUpItem: PickingUpItem): pickingUpItem is PickingUpItemTrinket;
|
|
31
|
+
/** Helper function to narrow the type of `PickingUpItem`. */
|
|
23
32
|
export declare function pickingUpItemIsCollectible(pickingUpItem: PickingUpItem): pickingUpItem is PickingUpItemCollectible;
|
|
33
|
+
/** Helper function to narrow the type of `PickingUpItem`. */
|
|
24
34
|
export declare function pickingUpItemIsTrinket(pickingUpItem: PickingUpItem): pickingUpItem is PickingUpItemTrinket;
|
package/types/PickingUpItem.lua
CHANGED
|
@@ -15,6 +15,9 @@ function ____exports.resetPickingUpItem(self, pickingUpItem)
|
|
|
15
15
|
pickingUpItem.subType = DEFAULT_SUB_TYPE
|
|
16
16
|
end
|
|
17
17
|
local COLLECTIBLE_ITEM_TYPES = __TS__New(Set, {ItemType.PASSIVE, ItemType.ACTIVE, ItemType.FAMILIAR})
|
|
18
|
+
function ____exports.pickingUpItemIsNull(self, pickingUpItem)
|
|
19
|
+
return pickingUpItem.itemType == ItemType.NULL
|
|
20
|
+
end
|
|
18
21
|
function ____exports.pickingUpItemIsCollectible(self, pickingUpItem)
|
|
19
22
|
return COLLECTIBLE_ITEM_TYPES:has(pickingUpItem.itemType)
|
|
20
23
|
end
|
package/types/PlayerIndex.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
/**
|
|
3
|
-
* PlayerIndex is a specific type of string; see the documentation for the
|
|
3
|
+
* PlayerIndex is a specific type of string; see the documentation for the `getPlayerIndex`
|
|
4
4
|
* function. Mods can signify that data structures handle `EntityPlayer` by using this type.
|
|
5
5
|
*
|
|
6
6
|
* For example:
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
* This type is branded for extra type safety.
|
|
13
13
|
*/
|
|
14
14
|
export declare type PlayerIndex = int & {
|
|
15
|
-
__playerIndexBrand:
|
|
15
|
+
__playerIndexBrand: void;
|
|
16
16
|
};
|
package/upgradeMod.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
import { ModUpgraded } from "./classes/ModUpgraded";
|
|
3
3
|
/**
|
|
4
|
-
* Use this function to enable the custom
|
|
4
|
+
* Use this function to enable the custom callbacks and other optional features provided by
|
|
5
|
+
* `isaacscript-common`.
|
|
5
6
|
*
|
|
6
7
|
* For example:
|
|
7
8
|
*
|
package/upgradeMod.lua
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
2
|
local __TS__New = ____lualib.__TS__New
|
|
3
3
|
local ____exports = {}
|
|
4
|
-
local ____postNewRoomEarly = require("
|
|
4
|
+
local ____postNewRoomEarly = require("callbacks.postNewRoomEarly")
|
|
5
5
|
local postNewRoomEarlyCallbackInit = ____postNewRoomEarly.postNewRoomEarlyCallbackInit
|
|
6
|
-
local ____ModUpgraded = require("
|
|
6
|
+
local ____ModUpgraded = require("classes.ModUpgraded")
|
|
7
7
|
local ModUpgraded = ____ModUpgraded.ModUpgraded
|
|
8
|
-
local ____main = require("
|
|
8
|
+
local ____main = require("features.saveDataManager.main")
|
|
9
9
|
local saveDataManagerInit = ____main.saveDataManagerInit
|
|
10
|
-
local ____featuresInitialized = require("
|
|
10
|
+
local ____featuresInitialized = require("featuresInitialized")
|
|
11
11
|
local areFeaturesInitialized = ____featuresInitialized.areFeaturesInitialized
|
|
12
12
|
local setFeaturesInitialized = ____featuresInitialized.setFeaturesInitialized
|
|
13
|
-
local ____initCustomCallbacks = require("
|
|
13
|
+
local ____initCustomCallbacks = require("initCustomCallbacks")
|
|
14
14
|
local initCustomCallbacks = ____initCustomCallbacks.initCustomCallbacks
|
|
15
|
-
local ____initFeatures = require("
|
|
15
|
+
local ____initFeatures = require("initFeatures")
|
|
16
16
|
local initFeaturesMajor = ____initFeatures.initFeaturesMajor
|
|
17
17
|
local initFeaturesMinor = ____initFeatures.initFeaturesMinor
|
|
18
|
-
local ____patchErrorFunctions = require("
|
|
18
|
+
local ____patchErrorFunctions = require("patchErrorFunctions")
|
|
19
19
|
local patchErrorFunction = ____patchErrorFunctions.patchErrorFunction
|
|
20
20
|
function ____exports.upgradeMod(self, modVanilla)
|
|
21
21
|
patchErrorFunction(nil)
|
package/types/Primitive.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type Primitive = boolean | number | string;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Primitive } from "../Primitive";
|
|
2
|
-
/**
|
|
3
|
-
* I don't know how to create a recursive type definition for only primitive values. For now, this
|
|
4
|
-
* is typed as "unknown", which provides no type safety.
|
|
5
|
-
*/
|
|
6
|
-
declare type Serializable = Primitive | unknown;
|
|
7
|
-
/**
|
|
8
|
-
* Each sub-object of save data has a string as a key, without arbitrary data as a value. However,
|
|
9
|
-
* the data has to be serializable (i.e. no `userdata` objects).
|
|
10
|
-
*/
|
|
11
|
-
declare type SaveDataGroup = Record<string, Serializable>;
|
|
12
|
-
/**
|
|
13
|
-
* The object that contains all of the variables that will be managed by the save data manager.
|
|
14
|
-
* Depending on which property is used, the variables will be reset at certain times.
|
|
15
|
-
*/
|
|
16
|
-
export interface SaveData {
|
|
17
|
-
persistent?: SaveDataGroup;
|
|
18
|
-
run?: SaveDataGroup;
|
|
19
|
-
level?: SaveDataGroup;
|
|
20
|
-
room?: SaveDataGroup;
|
|
21
|
-
}
|
|
22
|
-
export {};
|