isaacscript-common 4.0.0 → 4.0.1-dev.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/cachedClasses.ts +39 -0
- package/callbacks/customRevive.lua +2 -1
- package/callbacks/customRevive.ts +215 -0
- package/callbacks/itemPickup.ts +101 -0
- package/callbacks/postAmbush.ts +73 -0
- package/callbacks/postBombExploded.ts +26 -0
- package/callbacks/postBombInitLate.ts +36 -0
- package/callbacks/postBoneSwing.ts +64 -0
- package/callbacks/postCollectibleInitFirst.ts +40 -0
- package/callbacks/postCursedTeleport.ts +183 -0
- package/callbacks/postCustomDoorEnter.lua +0 -7
- package/callbacks/postCustomDoorEnter.ts +292 -0
- package/callbacks/postDiceRoomActivated.ts +60 -0
- package/callbacks/postDoorRender.ts +26 -0
- package/callbacks/postDoorUpdate.ts +26 -0
- package/callbacks/postEffectInitLate.ts +36 -0
- package/callbacks/postEffectStateChanged.ts +43 -0
- package/callbacks/postEsauJr.ts +107 -0
- package/callbacks/postFamiliarInitLate.ts +36 -0
- package/callbacks/postFamiliarStateChanged.ts +43 -0
- package/callbacks/postFlip.ts +88 -0
- package/callbacks/postGreedModeWave.ts +41 -0
- package/callbacks/postGridEntity.ts +164 -0
- package/callbacks/postGridEntityCollision.ts +69 -0
- package/callbacks/postGridEntityRender.ts +26 -0
- package/callbacks/postHolyMantleRemoved.ts +55 -0
- package/callbacks/postItemDischarged.ts +149 -0
- package/callbacks/postKnifeInitLate.ts +36 -0
- package/callbacks/postLaserInitLate.ts +36 -0
- package/callbacks/postNPCInitLate.ts +36 -0
- package/callbacks/postNPCStateChanged.ts +42 -0
- package/callbacks/postNewRoomEarly.ts +90 -0
- package/callbacks/postPickupCollect.ts +48 -0
- package/callbacks/postPickupInitFirst.ts +70 -0
- package/callbacks/postPickupInitLate.ts +36 -0
- package/callbacks/postPickupStateChanged.ts +43 -0
- package/callbacks/postPitRender.ts +26 -0
- package/callbacks/postPitUpdate.ts +26 -0
- package/callbacks/postPlayerChangeHealth.ts +62 -0
- package/callbacks/postPlayerChangeType.ts +56 -0
- package/callbacks/postPlayerCollectible.ts +113 -0
- package/callbacks/postPlayerFatalDamage.ts +141 -0
- package/callbacks/postPlayerInitLate.ts +37 -0
- package/callbacks/postPlayerReordered.ts +142 -0
- package/callbacks/postPoopRender.ts +26 -0
- package/callbacks/postPoopUpdate.ts +26 -0
- package/callbacks/postPressurePlateRender.ts +26 -0
- package/callbacks/postPressurePlateUpdate.ts +26 -0
- package/callbacks/postProjectileInitLate.ts +36 -0
- package/callbacks/postPurchase.ts +64 -0
- package/callbacks/postRockRender.ts +26 -0
- package/callbacks/postRockUpdate.ts +26 -0
- package/callbacks/postRoomClearChanged.ts +57 -0
- package/callbacks/postSacrifice.ts +62 -0
- package/callbacks/postSlotDestroyed.ts +92 -0
- package/callbacks/postSlotInitUpdate.ts +68 -0
- package/callbacks/postSlotRender.ts +69 -0
- package/callbacks/postSpikesRender.ts +26 -0
- package/callbacks/postSpikesUpdate.ts +26 -0
- package/callbacks/postTNTRender.ts +26 -0
- package/callbacks/postTNTUpdate.ts +26 -0
- package/callbacks/postTearInitLate.ts +36 -0
- package/callbacks/postTearInitVeryLate.ts +41 -0
- package/callbacks/postTransformation.ts +59 -0
- package/callbacks/postTrinketBreak.ts +110 -0
- package/callbacks/preBerserkDeath.ts +49 -0
- package/callbacks/preNewLevel.ts +55 -0
- package/callbacks/reorderedCallbacks.ts +166 -0
- package/callbacks/subscriptions/postAmbushFinished.ts +32 -0
- package/callbacks/subscriptions/postAmbushStarted.ts +32 -0
- package/callbacks/subscriptions/postBombInitLate.ts +32 -0
- package/callbacks/subscriptions/postBoneExploded.ts +32 -0
- package/callbacks/subscriptions/postBoneSwing.ts +24 -0
- package/callbacks/subscriptions/postCollectibleInitFirst.ts +37 -0
- package/callbacks/subscriptions/postCursedTeleport.ts +24 -0
- package/callbacks/subscriptions/postCustomDoorEnter.ts +45 -0
- package/callbacks/subscriptions/postCustomRevive.ts +36 -0
- package/callbacks/subscriptions/postDiceRoomActivated.ts +38 -0
- package/callbacks/subscriptions/postDoorRender.ts +35 -0
- package/callbacks/subscriptions/postDoorUpdate.ts +35 -0
- package/callbacks/subscriptions/postEffectInitLate.ts +32 -0
- package/callbacks/subscriptions/postEffectStateChanged.ts +40 -0
- package/callbacks/subscriptions/postEsauJr.ts +24 -0
- package/callbacks/subscriptions/postFamiliarInitLate.ts +32 -0
- package/callbacks/subscriptions/postFamiliarStateChanged.ts +40 -0
- package/callbacks/subscriptions/postFirstEsauJr.ts +24 -0
- package/callbacks/subscriptions/postFirstFlip.ts +24 -0
- package/callbacks/subscriptions/postFlip.ts +22 -0
- package/callbacks/subscriptions/postGameStartedReordered.ts +24 -0
- package/callbacks/subscriptions/postGreedModeWave.ts +24 -0
- package/callbacks/subscriptions/postGridEntityBroken.ts +51 -0
- package/callbacks/subscriptions/postGridEntityCollision.ts +54 -0
- package/callbacks/subscriptions/postGridEntityInit.ts +51 -0
- package/callbacks/subscriptions/postGridEntityRemove.ts +52 -0
- package/callbacks/subscriptions/postGridEntityRender.ts +51 -0
- package/callbacks/subscriptions/postGridEntityStateChanged.ts +55 -0
- package/callbacks/subscriptions/postGridEntityUpdate.ts +51 -0
- package/callbacks/subscriptions/postHolyMantleRemoved.ts +48 -0
- package/callbacks/subscriptions/postItemDischarged.ts +43 -0
- package/callbacks/subscriptions/postItemPickup.ts +64 -0
- package/callbacks/subscriptions/postKnifeInitLate.ts +32 -0
- package/callbacks/subscriptions/postLaserInitLate.ts +32 -0
- package/callbacks/subscriptions/postNPCInitLate.ts +32 -0
- package/callbacks/subscriptions/postNPCStateChanged.ts +42 -0
- package/callbacks/subscriptions/postNewLevelReordered.ts +22 -0
- package/callbacks/subscriptions/postNewRoomEarly.ts +22 -0
- package/callbacks/subscriptions/postNewRoomReordered.ts +22 -0
- package/callbacks/subscriptions/postPEffectUpdateReordered.ts +40 -0
- package/callbacks/subscriptions/postPickupCollect.ts +35 -0
- package/callbacks/subscriptions/postPickupInitFirst.ts +32 -0
- package/callbacks/subscriptions/postPickupInitLate.ts +32 -0
- package/callbacks/subscriptions/postPickupStateChanged.ts +40 -0
- package/callbacks/subscriptions/postPitRender.ts +35 -0
- package/callbacks/subscriptions/postPitUpdate.ts +35 -0
- package/callbacks/subscriptions/postPlayerChangeHealth.ts +49 -0
- package/callbacks/subscriptions/postPlayerChangeType.ts +40 -0
- package/callbacks/subscriptions/postPlayerCollectibleAdded.ts +38 -0
- package/callbacks/subscriptions/postPlayerCollectibleRemoved.ts +38 -0
- package/callbacks/subscriptions/postPlayerFatalDamage.d.ts +1 -1
- package/callbacks/subscriptions/postPlayerFatalDamage.ts +68 -0
- package/callbacks/subscriptions/postPlayerInitLate.ts +40 -0
- package/callbacks/subscriptions/postPlayerInitReordered.ts +40 -0
- package/callbacks/subscriptions/postPlayerRenderReordered.ts +40 -0
- package/callbacks/subscriptions/postPlayerUpdateReordered.ts +40 -0
- package/callbacks/subscriptions/postPoopRender.ts +35 -0
- package/callbacks/subscriptions/postPoopUpdate.ts +35 -0
- package/callbacks/subscriptions/postPressurePlateRender.ts +37 -0
- package/callbacks/subscriptions/postPressurePlateUpdate.ts +37 -0
- package/callbacks/subscriptions/postProjectileInitLate.ts +35 -0
- package/callbacks/subscriptions/postPurchase.ts +31 -0
- package/callbacks/subscriptions/postRockRender.ts +35 -0
- package/callbacks/subscriptions/postRockUpdate.ts +35 -0
- package/callbacks/subscriptions/postRoomClearChanged.ts +30 -0
- package/callbacks/subscriptions/postSacrifice.ts +43 -0
- package/callbacks/subscriptions/postSlotAnimationChanged.ts +40 -0
- package/callbacks/subscriptions/postSlotDestroyed.ts +55 -0
- package/callbacks/subscriptions/postSlotInit.ts +32 -0
- package/callbacks/subscriptions/postSlotRender.ts +32 -0
- package/callbacks/subscriptions/postSlotUpdate.ts +32 -0
- package/callbacks/subscriptions/postSpikesRender.ts +35 -0
- package/callbacks/subscriptions/postSpikesUpdate.ts +35 -0
- package/callbacks/subscriptions/postTNTRender.ts +35 -0
- package/callbacks/subscriptions/postTNTUpdate.ts +35 -0
- package/callbacks/subscriptions/postTearInitLate.ts +32 -0
- package/callbacks/subscriptions/postTearInitVeryLate.ts +32 -0
- package/callbacks/subscriptions/postTransformation.ts +40 -0
- package/callbacks/subscriptions/postTrinketBreak.ts +38 -0
- package/callbacks/subscriptions/preBerserkDeath.ts +42 -0
- package/callbacks/subscriptions/preCustomRevive.d.ts +1 -1
- package/callbacks/subscriptions/preCustomRevive.ts +46 -0
- package/callbacks/subscriptions/preItemPickup.ts +64 -0
- package/callbacks/subscriptions/preNewLevel.ts +24 -0
- package/classes/DefaultMap.ts +174 -0
- package/classes/ModUpgraded.ts +77 -0
- package/constants.ts +162 -0
- package/constantsFirstLast.ts +217 -0
- package/enums/AmbushType.ts +4 -0
- package/enums/HealthType.ts +16 -0
- package/enums/ModCallbackCustom.d.ts +2 -2
- package/enums/ModCallbackCustom.ts +1278 -0
- package/enums/PocketItemType.ts +8 -0
- package/enums/SerializationType.ts +5 -0
- package/enums/SlotDestructionType.ts +4 -0
- package/enums/private/CopyableIsaacAPIClassType.ts +7 -0
- package/enums/private/SaveDataKey.ts +14 -0
- package/enums/private/SerializationBrand.ts +42 -0
- package/features/characterHealthConversion.lua +2 -9
- package/features/characterHealthConversion.ts +111 -0
- package/features/characterStats.ts +61 -0
- package/features/debugDisplay/debugDisplay.ts +221 -0
- package/features/debugDisplay/exports.ts +368 -0
- package/features/debugDisplay/v.ts +65 -0
- package/features/deployJSONRoom.ts +743 -0
- package/features/disableInputs.ts +193 -0
- package/features/disableSound.ts +77 -0
- package/features/extraConsoleCommands/commandsDisplay.ts +290 -0
- package/features/extraConsoleCommands/commandsSubroutines.ts +139 -0
- package/features/extraConsoleCommands/init.ts +334 -0
- package/features/extraConsoleCommands/listCommands.ts +1299 -0
- package/features/extraConsoleCommands/v.ts +14 -0
- package/features/fadeInRemover.ts +60 -0
- package/features/fastReset.ts +75 -0
- package/features/forgottenSwitch.ts +50 -0
- package/features/getCollectibleItemPoolType.ts +66 -0
- package/features/persistentEntities.ts +183 -0
- package/features/playerInventory.ts +133 -0
- package/features/ponyDetection.ts +74 -0
- package/features/preventCollectibleRotation.ts +115 -0
- package/features/runInNFrames.ts +148 -0
- package/features/saveDataManager/constants.ts +4 -0
- package/features/saveDataManager/exports.ts +229 -0
- package/features/saveDataManager/load.ts +99 -0
- package/features/saveDataManager/main.ts +195 -0
- package/features/saveDataManager/maps.ts +13 -0
- package/features/saveDataManager/merge.ts +194 -0
- package/features/saveDataManager/save.ts +74 -0
- package/features/saveDataManager/serializationBrand.ts +16 -0
- package/features/sirenHelpers.ts +129 -0
- package/features/taintedLazarusPlayers.ts +113 -0
- package/featuresInitialized.ts +20 -0
- package/functions/ambush.ts +47 -0
- package/functions/array.ts +410 -0
- package/functions/benchmark.ts +36 -0
- package/functions/bitwise.ts +24 -0
- package/functions/bombs.ts +12 -0
- package/functions/boss.ts +227 -0
- package/functions/cacheFlag.ts +12 -0
- package/functions/cards.ts +271 -0
- package/functions/challenges.ts +13 -0
- package/functions/character.ts +126 -0
- package/functions/charge.ts +237 -0
- package/functions/chargeBar.ts +67 -0
- package/functions/collectibleCacheFlag.ts +90 -0
- package/functions/collectibleSet.ts +56 -0
- package/functions/collectibleTag.ts +89 -0
- package/functions/collectibles.ts +659 -0
- package/functions/color.lua +0 -7
- package/functions/color.ts +128 -0
- package/functions/debug.ts +68 -0
- package/functions/deepCopy.lua +46 -51
- package/functions/deepCopy.ts +535 -0
- package/functions/deepCopyTests.ts +386 -0
- package/functions/direction.ts +49 -0
- package/functions/doors.ts +347 -0
- package/functions/easing.ts +182 -0
- package/functions/eden.ts +47 -0
- package/functions/effects.ts +20 -0
- package/functions/entity.ts +439 -0
- package/functions/entitySpecific.ts +889 -0
- package/functions/entityTypes.ts +6 -0
- package/functions/enums.ts +146 -0
- package/functions/familiars.ts +106 -0
- package/functions/flag.ts +165 -0
- package/functions/flying.ts +117 -0
- package/functions/globals.ts +242 -0
- package/functions/gridEntity.ts +511 -0
- package/functions/gridEntitySpecific.ts +112 -0
- package/functions/input.ts +139 -0
- package/functions/isaacAPIClass.ts +67 -0
- package/functions/jsonHelpers.ts +45 -0
- package/functions/jsonRoom.ts +100 -0
- package/functions/kColor.lua +0 -7
- package/functions/kColor.ts +129 -0
- package/functions/language.ts +13 -0
- package/functions/level.ts +31 -0
- package/functions/log.ts +720 -0
- package/functions/map.ts +56 -0
- package/functions/math.ts +149 -0
- package/functions/mergeTests.ts +288 -0
- package/functions/npc.ts +148 -0
- package/functions/pickupVariants.ts +60 -0
- package/functions/pickups.ts +499 -0
- package/functions/pills.ts +205 -0
- package/functions/player.lua +0 -6
- package/functions/player.ts +1060 -0
- package/functions/playerDataStructures.ts +150 -0
- package/functions/playerHealth.lua +28 -39
- package/functions/playerHealth.ts +382 -0
- package/functions/playerIndex.ts +195 -0
- package/functions/pocketItems.ts +149 -0
- package/functions/positionVelocity.ts +188 -0
- package/functions/random.ts +77 -0
- package/functions/revive.ts +201 -0
- package/functions/rng.lua +0 -7
- package/functions/rng.ts +172 -0
- package/functions/roomData.ts +199 -0
- package/functions/roomGrid.ts +109 -0
- package/functions/roomShape.ts +80 -0
- package/functions/rooms.ts +648 -0
- package/functions/run.ts +36 -0
- package/functions/saveFile.ts +128 -0
- package/functions/seeds.ts +19 -0
- package/functions/serialization.ts +91 -0
- package/functions/set.ts +95 -0
- package/functions/sound.ts +9 -0
- package/functions/spawnCollectible.ts +104 -0
- package/functions/sprite.ts +107 -0
- package/functions/stage.ts +125 -0
- package/functions/string.ts +47 -0
- package/functions/table.ts +189 -0
- package/functions/tears.ts +32 -0
- package/functions/transformations.ts +131 -0
- package/functions/trinketCacheFlag.ts +60 -0
- package/functions/trinketGive.ts +157 -0
- package/functions/trinkets.ts +215 -0
- package/functions/tstlClass.ts +157 -0
- package/functions/types.ts +36 -0
- package/functions/ui.ts +138 -0
- package/functions/utils.d.ts +0 -37
- package/functions/utils.lua +0 -35
- package/functions/utils.ts +189 -0
- package/functions/vector.lua +0 -7
- package/functions/vector.ts +126 -0
- package/index.ts +172 -0
- package/initCustomCallbacks.ts +132 -0
- package/initFeatures.ts +39 -0
- package/interfaces/AddCallbackParameterCustom.ts +188 -0
- package/interfaces/ChargeBarSprites.ts +12 -0
- package/interfaces/JSONDoor.d.ts +3 -3
- package/interfaces/JSONDoor.ts +13 -0
- package/interfaces/JSONEntity.d.ts +4 -4
- package/interfaces/JSONEntity.ts +16 -0
- package/interfaces/JSONRoom.d.ts +8 -8
- package/interfaces/JSONRoom.ts +36 -0
- package/interfaces/JSONRooms.ts +12 -0
- package/interfaces/JSONSpawn.d.ts +2 -2
- package/interfaces/JSONSpawn.ts +14 -0
- package/interfaces/PlayerHealth.ts +16 -0
- package/interfaces/PocketItemDescription.ts +9 -0
- package/interfaces/SaveData.ts +29 -0
- package/interfaces/TrinketSituation.ts +9 -0
- package/interfaces/private/TSTLClassMetatable.ts +8 -0
- package/maps/PHDPillConversions.ts +21 -0
- package/maps/cardMap.ts +209 -0
- package/maps/characterMap.ts +87 -0
- package/maps/collectibleDescriptionMap.ts +732 -0
- package/maps/collectibleNameMap.ts +731 -0
- package/maps/defaultPlayerStatMap.ts +17 -0
- package/maps/falsePHDPillConversions.ts +35 -0
- package/maps/gridEntityTypeToBrokenStateMap.ts +50 -0
- package/maps/gridEntityXMLMap.ts +176 -0
- package/maps/pillEffectMap.ts +88 -0
- package/maps/roomShapeToTopLeftWallGridIndexMap.ts +18 -0
- package/maps/roomTypeMap.ts +40 -0
- package/maps/trinketDescriptionMap.ts +200 -0
- package/maps/trinketNameMap.ts +198 -0
- package/objects/LRoomShapeToRectangles.ts +44 -0
- package/objects/callbackRegisterFunctions.ts +187 -0
- package/objects/cardDescriptions.ts +105 -0
- package/objects/cardNames.ts +105 -0
- package/objects/cardTypes.ts +104 -0
- package/objects/challengeNames.ts +52 -0
- package/objects/characterNames.ts +48 -0
- package/objects/coinSubTypeToValue.ts +14 -0
- package/objects/colors.ts +16 -0
- package/objects/directionNames.ts +11 -0
- package/objects/directionToDegrees.ts +11 -0
- package/objects/directionToVector.ts +12 -0
- package/objects/doorSlotFlagToDoorSlot.ts +16 -0
- package/objects/doorSlotToDirection.ts +14 -0
- package/objects/isaacAPIClassTypeToBrand.ts +11 -0
- package/objects/isaacAPIClassTypeToCopyFunction.ts +18 -0
- package/objects/languageNames.ts +13 -0
- package/objects/oppositeDoorSlots.ts +15 -0
- package/objects/pillEffectClasses.ts +63 -0
- package/objects/pillEffectNames.ts +57 -0
- package/objects/pillEffectTypes.ts +62 -0
- package/objects/roomShapeBounds.ts +71 -0
- package/objects/roomShapeLayoutSizes.ts +45 -0
- package/objects/roomShapeToBottomRightPosition.ts +25 -0
- package/objects/roomShapeToDoorSlots.ts +83 -0
- package/objects/roomShapeToDoorSlotsToGridIndexDelta.ts +127 -0
- package/objects/roomShapeToGridWidth.ts +21 -0
- package/objects/roomShapeToTopLeftPosition.ts +26 -0
- package/objects/roomShapeVolumes.ts +38 -0
- package/objects/roomTypeNames.ts +36 -0
- package/objects/serializedIsaacAPIClassTypeToIdentityFunction.ts +14 -0
- package/objects/stageTypeToLetter.ts +15 -0
- package/objects/transformationNames.d.ts +0 -1
- package/objects/transformationNames.lua +0 -1
- package/objects/transformationNames.ts +18 -0
- package/package.json +1 -1
- package/patchErrorFunctions.ts +92 -0
- package/sets/LRoomShapesSet.ts +8 -0
- package/sets/bossSets.ts +470 -0
- package/sets/charactersThatStartWithAnActiveItemSet.ts +16 -0
- package/sets/charactersWithBlackHeartFromEternalHeartSet.ts +7 -0
- package/sets/charactersWithFreeDevilDealsSet.ts +4 -0
- package/sets/charactersWithNoRedHeartsSet.ts +17 -0
- package/sets/charactersWithNoSoulHeartsSet.ts +14 -0
- package/sets/chestPickupVariantsSet.ts +16 -0
- package/sets/familiarsThatShootPlayerTearsSet.ts +13 -0
- package/sets/lostStyleCharactersSet.ts +13 -0
- package/sets/mineShaftRoomSubTypesSet.ts +10 -0
- package/sets/redHeartSubTypesSet.ts +7 -0
- package/sets/sinEntityTypesSet.ts +11 -0
- package/sets/singleUseActiveCollectibleTypesSet.ts +13 -0
- package/sets/storyBossesSet.ts +17 -0
- package/types/AnyEntity.ts +12 -0
- package/types/AwaitingTextInput.d.ts +2 -0
- package/types/CollectibleIndex.ts +16 -0
- package/types/PickingUpItem.ts +89 -0
- package/types/PlayerIndex.ts +13 -0
- package/types/private/IsaacAPIClass.ts +3 -0
- package/types/private/SerializedIsaacAPIClass.ts +3 -0
- package/types/private/TSTLClass.ts +3 -0
- package/upgradeMod.ts +55 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { PostAmbushFinishedRegisterParameters } from "../callbacks/subscriptions/postAmbushFinished";
|
|
2
|
+
import { PostAmbushStartedRegisterParameters } from "../callbacks/subscriptions/postAmbushStarted";
|
|
3
|
+
import { PostBombInitRegisterParameters } from "../callbacks/subscriptions/postBombInitLate";
|
|
4
|
+
import { PostBombExplodedRegisterParameters } from "../callbacks/subscriptions/postBoneExploded";
|
|
5
|
+
import { PostBoneSwingRegisterParameters } from "../callbacks/subscriptions/postBoneSwing";
|
|
6
|
+
import { PostCollectibleInitFirstRegisterParameters } from "../callbacks/subscriptions/postCollectibleInitFirst";
|
|
7
|
+
import { PostCursedTeleportRegisterParameters } from "../callbacks/subscriptions/postCursedTeleport";
|
|
8
|
+
import { PostCustomDoorEnterRegisterParameters } from "../callbacks/subscriptions/postCustomDoorEnter";
|
|
9
|
+
import { PostCustomReviveRegisterParameters } from "../callbacks/subscriptions/postCustomRevive";
|
|
10
|
+
import { PostDiceRoomActivatedRegisterParameters } from "../callbacks/subscriptions/postDiceRoomActivated";
|
|
11
|
+
import { PostDoorRenderRegisterParameters } from "../callbacks/subscriptions/postDoorRender";
|
|
12
|
+
import { PostDoorUpdateRegisterParameters } from "../callbacks/subscriptions/postDoorUpdate";
|
|
13
|
+
import { PostEffectInitLateRegisterParameters } from "../callbacks/subscriptions/postEffectInitLate";
|
|
14
|
+
import { PostEffectStateChangedRegisterParameters } from "../callbacks/subscriptions/postEffectStateChanged";
|
|
15
|
+
import { PostEsauJrRegisterParameters } from "../callbacks/subscriptions/postEsauJr";
|
|
16
|
+
import { PostFamiliarInitLateRegisterParameters } from "../callbacks/subscriptions/postFamiliarInitLate";
|
|
17
|
+
import { PostFamiliarStateChangedRegisterParameters } from "../callbacks/subscriptions/postFamiliarStateChanged";
|
|
18
|
+
import { PostFirstEsauJrRegisterParameters } from "../callbacks/subscriptions/postFirstEsauJr";
|
|
19
|
+
import { PostFirstFlipRegisterParameters } from "../callbacks/subscriptions/postFirstFlip";
|
|
20
|
+
import { PostFlipRegisterParameters } from "../callbacks/subscriptions/postFlip";
|
|
21
|
+
import { PostGameStartedReorderedRegisterParameters } from "../callbacks/subscriptions/postGameStartedReordered";
|
|
22
|
+
import { PostGreedModeWaveRegisterParameters } from "../callbacks/subscriptions/postGreedModeWave";
|
|
23
|
+
import { PostGridEntityBrokenRegisterParameters } from "../callbacks/subscriptions/postGridEntityBroken";
|
|
24
|
+
import { PostGridEntityCollisionRegisterParameters } from "../callbacks/subscriptions/postGridEntityCollision";
|
|
25
|
+
import { PostGridEntityInitRegisterParameters } from "../callbacks/subscriptions/postGridEntityInit";
|
|
26
|
+
import { PostGridEntityRemoveRegisterParameters } from "../callbacks/subscriptions/postGridEntityRemove";
|
|
27
|
+
import { PostGridEntityRenderRegisterParameters } from "../callbacks/subscriptions/postGridEntityRender";
|
|
28
|
+
import { PostGridEntityStateChangedRegisterParameters } from "../callbacks/subscriptions/postGridEntityStateChanged";
|
|
29
|
+
import { PostGridEntityUpdateRegisterParameters } from "../callbacks/subscriptions/postGridEntityUpdate";
|
|
30
|
+
import { PostHolyMantleRemovedRegisterParameters } from "../callbacks/subscriptions/postHolyMantleRemoved";
|
|
31
|
+
import { PostItemDischargedRegisterParameters } from "../callbacks/subscriptions/postItemDischarged";
|
|
32
|
+
import { PostItemPickupRegisterParameters } from "../callbacks/subscriptions/postItemPickup";
|
|
33
|
+
import { PostKnifeInitLateRegisterParameters } from "../callbacks/subscriptions/postKnifeInitLate";
|
|
34
|
+
import { PostLaserInitLateRegisterParameters } from "../callbacks/subscriptions/postLaserInitLate";
|
|
35
|
+
import { PostNewLevelReorderedRegisterParameters } from "../callbacks/subscriptions/postNewLevelReordered";
|
|
36
|
+
import { PostNewRoomEarlyRegisterParameters } from "../callbacks/subscriptions/postNewRoomEarly";
|
|
37
|
+
import { PostNewRoomReorderedRegisterParameters } from "../callbacks/subscriptions/postNewRoomReordered";
|
|
38
|
+
import { PostNPCInitLateRegisterParameters } from "../callbacks/subscriptions/postNPCInitLate";
|
|
39
|
+
import { PostNPCStateChangedRegisterParameters } from "../callbacks/subscriptions/postNPCStateChanged";
|
|
40
|
+
import { PostPEffectUpdateReorderedRegisterParameters } from "../callbacks/subscriptions/postPEffectUpdateReordered";
|
|
41
|
+
import { PostPickupCollectRegisterParameters } from "../callbacks/subscriptions/postPickupCollect";
|
|
42
|
+
import { PostPickupInitFirstRegisterParameters } from "../callbacks/subscriptions/postPickupInitFirst";
|
|
43
|
+
import { PostPickupInitLateRegisterParameters } from "../callbacks/subscriptions/postPickupInitLate";
|
|
44
|
+
import { PostPickupStateChangedRegisterParameters } from "../callbacks/subscriptions/postPickupStateChanged";
|
|
45
|
+
import { PostPitRenderRegisterParameters } from "../callbacks/subscriptions/postPitRender";
|
|
46
|
+
import { PostPitUpdateRegisterParameters } from "../callbacks/subscriptions/postPitUpdate";
|
|
47
|
+
import { PostPlayerChangeHealthRegisterParameters } from "../callbacks/subscriptions/postPlayerChangeHealth";
|
|
48
|
+
import { PostPlayerChangeTypeRegisterParameters } from "../callbacks/subscriptions/postPlayerChangeType";
|
|
49
|
+
import { PostPlayerCollectibleAddedRegisterParameters } from "../callbacks/subscriptions/postPlayerCollectibleAdded";
|
|
50
|
+
import { PostPlayerCollectibleRemovedRegisterParameters } from "../callbacks/subscriptions/postPlayerCollectibleRemoved";
|
|
51
|
+
import { PostPlayerFatalDamageRegisterParameters } from "../callbacks/subscriptions/postPlayerFatalDamage";
|
|
52
|
+
import { PostPlayerInitLateRegisterParameters } from "../callbacks/subscriptions/postPlayerInitLate";
|
|
53
|
+
import { PostPlayerInitReorderedRegisterParameters } from "../callbacks/subscriptions/postPlayerInitReordered";
|
|
54
|
+
import { PostPlayerRenderReorderedRegisterParameters } from "../callbacks/subscriptions/postPlayerRenderReordered";
|
|
55
|
+
import { PostPlayerUpdateReorderedRegisterParameters } from "../callbacks/subscriptions/postPlayerUpdateReordered";
|
|
56
|
+
import { PostPoopRenderRegisterParameters } from "../callbacks/subscriptions/postPoopRender";
|
|
57
|
+
import { PostPoopUpdateRegisterParameters } from "../callbacks/subscriptions/postPoopUpdate";
|
|
58
|
+
import { PostPressurePlateRenderRegisterParameters } from "../callbacks/subscriptions/postPressurePlateRender";
|
|
59
|
+
import { PostPressurePlateUpdateRegisterParameters } from "../callbacks/subscriptions/postPressurePlateUpdate";
|
|
60
|
+
import { PostProjectileInitLateRegisterParameters } from "../callbacks/subscriptions/postProjectileInitLate";
|
|
61
|
+
import { PostPurchaseRegisterParameters } from "../callbacks/subscriptions/postPurchase";
|
|
62
|
+
import { PostRockRenderRegisterParameters } from "../callbacks/subscriptions/postRockRender";
|
|
63
|
+
import { PostRockUpdateRegisterParameters } from "../callbacks/subscriptions/postRockUpdate";
|
|
64
|
+
import { PostRoomClearChangedRegisterParameters } from "../callbacks/subscriptions/postRoomClearChanged";
|
|
65
|
+
import { PostSacrificeRegisterParameters } from "../callbacks/subscriptions/postSacrifice";
|
|
66
|
+
import { PostSlotAnimationChangedRegisterParameters } from "../callbacks/subscriptions/postSlotAnimationChanged";
|
|
67
|
+
import { PostSlotDestroyedRegisterParameters } from "../callbacks/subscriptions/postSlotDestroyed";
|
|
68
|
+
import { PostSlotInitRegisterParameters } from "../callbacks/subscriptions/postSlotInit";
|
|
69
|
+
import { PostSlotRenderRegisterParameters } from "../callbacks/subscriptions/postSlotRender";
|
|
70
|
+
import { PostSlotUpdateRegisterParameters } from "../callbacks/subscriptions/postSlotUpdate";
|
|
71
|
+
import { PostSpikesRenderRegisterParameters } from "../callbacks/subscriptions/postSpikesRender";
|
|
72
|
+
import { PostSpikesUpdateRegisterParameters } from "../callbacks/subscriptions/postSpikesUpdate";
|
|
73
|
+
import { PostTearInitLateRegisterParameters } from "../callbacks/subscriptions/postTearInitLate";
|
|
74
|
+
import { PostTearInitVeryLateRegisterParameters } from "../callbacks/subscriptions/postTearInitVeryLate";
|
|
75
|
+
import { PostTNTRenderRegisterParameters } from "../callbacks/subscriptions/postTNTRender";
|
|
76
|
+
import { PostTNTUpdateRegisterParameters } from "../callbacks/subscriptions/postTNTUpdate";
|
|
77
|
+
import { PostTransformationRegisterParameters } from "../callbacks/subscriptions/postTransformation";
|
|
78
|
+
import { PostTrinketBreakRegisterParameters } from "../callbacks/subscriptions/postTrinketBreak";
|
|
79
|
+
import { PreBerserkDeathRegisterParameters } from "../callbacks/subscriptions/preBerserkDeath";
|
|
80
|
+
import { PreCustomReviveRegisterParameters } from "../callbacks/subscriptions/preCustomRevive";
|
|
81
|
+
import { PreItemPickupRegisterParameters } from "../callbacks/subscriptions/preItemPickup";
|
|
82
|
+
import { PreNewLevelRegisterParameters } from "../callbacks/subscriptions/preNewLevel";
|
|
83
|
+
import { ModCallbackCustom } from "../enums/ModCallbackCustom";
|
|
84
|
+
|
|
85
|
+
export interface AddCallbackParameterCustom {
|
|
86
|
+
[ModCallbackCustom.POST_AMBUSH_FINISHED]: PostAmbushFinishedRegisterParameters;
|
|
87
|
+
[ModCallbackCustom.POST_AMBUSH_STARTED]: PostAmbushStartedRegisterParameters;
|
|
88
|
+
[ModCallbackCustom.POST_BOMB_EXPLODED]: PostBombExplodedRegisterParameters;
|
|
89
|
+
[ModCallbackCustom.POST_BOMB_INIT_LATE]: PostBombInitRegisterParameters;
|
|
90
|
+
[ModCallbackCustom.POST_BONE_SWING]: PostBoneSwingRegisterParameters;
|
|
91
|
+
[ModCallbackCustom.POST_COLLECTIBLE_INIT_FIRST]: PostCollectibleInitFirstRegisterParameters;
|
|
92
|
+
[ModCallbackCustom.POST_CURSED_TELEPORT]: PostCursedTeleportRegisterParameters;
|
|
93
|
+
[ModCallbackCustom.POST_CUSTOM_DOOR_ENTER]: PostCustomDoorEnterRegisterParameters;
|
|
94
|
+
[ModCallbackCustom.POST_CUSTOM_REVIVE]: PostCustomReviveRegisterParameters;
|
|
95
|
+
[ModCallbackCustom.POST_DICE_ROOM_ACTIVATED]: PostDiceRoomActivatedRegisterParameters;
|
|
96
|
+
[ModCallbackCustom.POST_DOOR_RENDER]: PostDoorRenderRegisterParameters;
|
|
97
|
+
[ModCallbackCustom.POST_DOOR_UPDATE]: PostDoorUpdateRegisterParameters;
|
|
98
|
+
[ModCallbackCustom.POST_EFFECT_INIT_LATE]: PostEffectInitLateRegisterParameters;
|
|
99
|
+
[ModCallbackCustom.POST_EFFECT_STATE_CHANGED]: PostEffectStateChangedRegisterParameters;
|
|
100
|
+
[ModCallbackCustom.POST_ESAU_JR]: PostEsauJrRegisterParameters;
|
|
101
|
+
[ModCallbackCustom.POST_FAMILIAR_INIT_LATE]: PostFamiliarInitLateRegisterParameters;
|
|
102
|
+
[ModCallbackCustom.POST_FAMILIAR_STATE_CHANGED]: PostFamiliarStateChangedRegisterParameters;
|
|
103
|
+
[ModCallbackCustom.POST_FIRST_ESAU_JR]: PostFirstEsauJrRegisterParameters;
|
|
104
|
+
[ModCallbackCustom.POST_FIRST_FLIP]: PostFirstFlipRegisterParameters;
|
|
105
|
+
[ModCallbackCustom.POST_FLIP]: PostFlipRegisterParameters;
|
|
106
|
+
[ModCallbackCustom.POST_GAME_STARTED_REORDERED]: PostGameStartedReorderedRegisterParameters;
|
|
107
|
+
[ModCallbackCustom.POST_GREED_MODE_WAVE]: PostGreedModeWaveRegisterParameters;
|
|
108
|
+
[ModCallbackCustom.POST_GRID_ENTITY_BROKEN]: PostGridEntityBrokenRegisterParameters;
|
|
109
|
+
[ModCallbackCustom.POST_GRID_ENTITY_COLLISION]: PostGridEntityCollisionRegisterParameters;
|
|
110
|
+
[ModCallbackCustom.POST_GRID_ENTITY_INIT]: PostGridEntityInitRegisterParameters;
|
|
111
|
+
[ModCallbackCustom.POST_GRID_ENTITY_REMOVE]: PostGridEntityRemoveRegisterParameters;
|
|
112
|
+
[ModCallbackCustom.POST_GRID_ENTITY_RENDER]: PostGridEntityRenderRegisterParameters;
|
|
113
|
+
[ModCallbackCustom.POST_GRID_ENTITY_STATE_CHANGED]: PostGridEntityStateChangedRegisterParameters;
|
|
114
|
+
[ModCallbackCustom.POST_GRID_ENTITY_UPDATE]: PostGridEntityUpdateRegisterParameters;
|
|
115
|
+
[ModCallbackCustom.POST_HOLY_MANTLE_REMOVED]: PostHolyMantleRemovedRegisterParameters;
|
|
116
|
+
[ModCallbackCustom.POST_ITEM_DISCHARGE]: PostItemDischargedRegisterParameters;
|
|
117
|
+
[ModCallbackCustom.POST_ITEM_PICKUP]: PostItemPickupRegisterParameters;
|
|
118
|
+
[ModCallbackCustom.POST_KNIFE_INIT_LATE]: PostKnifeInitLateRegisterParameters;
|
|
119
|
+
[ModCallbackCustom.POST_LASER_INIT_LATE]: PostLaserInitLateRegisterParameters;
|
|
120
|
+
[ModCallbackCustom.POST_NEW_LEVEL_REORDERED]: PostNewLevelReorderedRegisterParameters;
|
|
121
|
+
[ModCallbackCustom.POST_NEW_ROOM_EARLY]: PostNewRoomEarlyRegisterParameters;
|
|
122
|
+
[ModCallbackCustom.POST_NEW_ROOM_REORDERED]: PostNewRoomReorderedRegisterParameters;
|
|
123
|
+
[ModCallbackCustom.POST_NPC_INIT_LATE]: PostNPCInitLateRegisterParameters;
|
|
124
|
+
[ModCallbackCustom.POST_NPC_STATE_CHANGED]: PostNPCStateChangedRegisterParameters;
|
|
125
|
+
[ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED]: PostPEffectUpdateReorderedRegisterParameters;
|
|
126
|
+
[ModCallbackCustom.POST_PICKUP_COLLECT]: PostPickupCollectRegisterParameters;
|
|
127
|
+
[ModCallbackCustom.POST_PICKUP_INIT_FIRST]: PostPickupInitFirstRegisterParameters;
|
|
128
|
+
[ModCallbackCustom.POST_PICKUP_INIT_LATE]: PostPickupInitLateRegisterParameters;
|
|
129
|
+
[ModCallbackCustom.POST_PICKUP_STATE_CHANGED]: PostPickupStateChangedRegisterParameters;
|
|
130
|
+
[ModCallbackCustom.POST_PIT_RENDER]: PostPitRenderRegisterParameters;
|
|
131
|
+
[ModCallbackCustom.POST_PIT_UPDATE]: PostPitUpdateRegisterParameters;
|
|
132
|
+
[ModCallbackCustom.POST_PLAYER_CHANGE_HEALTH]: PostPlayerChangeHealthRegisterParameters;
|
|
133
|
+
[ModCallbackCustom.POST_PLAYER_CHANGE_TYPE]: PostPlayerChangeTypeRegisterParameters;
|
|
134
|
+
[ModCallbackCustom.POST_PLAYER_COLLECTIBLE_ADDED]: PostPlayerCollectibleAddedRegisterParameters;
|
|
135
|
+
[ModCallbackCustom.POST_PLAYER_COLLECTIBLE_REMOVED]: PostPlayerCollectibleRemovedRegisterParameters;
|
|
136
|
+
[ModCallbackCustom.POST_PLAYER_FATAL_DAMAGE]: PostPlayerFatalDamageRegisterParameters;
|
|
137
|
+
[ModCallbackCustom.POST_PLAYER_INIT_LATE]: PostPlayerInitLateRegisterParameters;
|
|
138
|
+
[ModCallbackCustom.POST_PLAYER_INIT_REORDERED]: PostPlayerInitReorderedRegisterParameters;
|
|
139
|
+
[ModCallbackCustom.POST_PLAYER_RENDER_REORDERED]: PostPlayerRenderReorderedRegisterParameters;
|
|
140
|
+
[ModCallbackCustom.POST_PLAYER_UPDATE_REORDERED]: PostPlayerUpdateReorderedRegisterParameters;
|
|
141
|
+
[ModCallbackCustom.POST_POOP_RENDER]: PostPoopRenderRegisterParameters;
|
|
142
|
+
[ModCallbackCustom.POST_POOP_UPDATE]: PostPoopUpdateRegisterParameters;
|
|
143
|
+
[ModCallbackCustom.POST_PRESSURE_PLATE_RENDER]: PostPressurePlateRenderRegisterParameters;
|
|
144
|
+
[ModCallbackCustom.POST_PRESSURE_PLATE_UPDATE]: PostPressurePlateUpdateRegisterParameters;
|
|
145
|
+
[ModCallbackCustom.POST_PROJECTILE_INIT_LATE]: PostProjectileInitLateRegisterParameters;
|
|
146
|
+
[ModCallbackCustom.POST_PURCHASE]: PostPurchaseRegisterParameters;
|
|
147
|
+
[ModCallbackCustom.POST_ROCK_RENDER]: PostRockRenderRegisterParameters;
|
|
148
|
+
[ModCallbackCustom.POST_ROCK_UPDATE]: PostRockUpdateRegisterParameters;
|
|
149
|
+
[ModCallbackCustom.POST_ROOM_CLEAR_CHANGED]: PostRoomClearChangedRegisterParameters;
|
|
150
|
+
[ModCallbackCustom.POST_SACRIFICE]: PostSacrificeRegisterParameters;
|
|
151
|
+
[ModCallbackCustom.POST_SLOT_ANIMATION_CHANGED]: PostSlotAnimationChangedRegisterParameters;
|
|
152
|
+
[ModCallbackCustom.POST_SLOT_DESTROYED]: PostSlotDestroyedRegisterParameters;
|
|
153
|
+
[ModCallbackCustom.POST_SLOT_INIT]: PostSlotInitRegisterParameters;
|
|
154
|
+
[ModCallbackCustom.POST_SLOT_RENDER]: PostSlotRenderRegisterParameters;
|
|
155
|
+
[ModCallbackCustom.POST_SLOT_UPDATE]: PostSlotUpdateRegisterParameters;
|
|
156
|
+
[ModCallbackCustom.POST_SPIKES_RENDER]: PostSpikesRenderRegisterParameters;
|
|
157
|
+
[ModCallbackCustom.POST_SPIKES_UPDATE]: PostSpikesUpdateRegisterParameters;
|
|
158
|
+
[ModCallbackCustom.POST_TEAR_INIT_LATE]: PostTearInitLateRegisterParameters;
|
|
159
|
+
[ModCallbackCustom.POST_TEAR_INIT_VERY_LATE]: PostTearInitVeryLateRegisterParameters;
|
|
160
|
+
[ModCallbackCustom.POST_TNT_RENDER]: PostTNTRenderRegisterParameters;
|
|
161
|
+
[ModCallbackCustom.POST_TNT_UPDATE]: PostTNTUpdateRegisterParameters;
|
|
162
|
+
[ModCallbackCustom.POST_TRANSFORMATION]: PostTransformationRegisterParameters;
|
|
163
|
+
[ModCallbackCustom.POST_TRINKET_BREAK]: PostTrinketBreakRegisterParameters;
|
|
164
|
+
[ModCallbackCustom.PRE_BERSERK_DEATH]: PreBerserkDeathRegisterParameters;
|
|
165
|
+
[ModCallbackCustom.PRE_CUSTOM_REVIVE]: PreCustomReviveRegisterParameters;
|
|
166
|
+
[ModCallbackCustom.PRE_ITEM_PICKUP]: PreItemPickupRegisterParameters;
|
|
167
|
+
[ModCallbackCustom.PRE_NEW_LEVEL]: PreNewLevelRegisterParameters;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// Make copies of the objects we need to verify so that we can easily re-use the code block below.
|
|
171
|
+
type EnumToCheck = ModCallbackCustom;
|
|
172
|
+
type InterfaceToCheck = AddCallbackParameterCustom;
|
|
173
|
+
|
|
174
|
+
// Throw a compiler error if InterfaceToCheck does not match the values of EnumToCheck.
|
|
175
|
+
// From: https://stackoverflow.com/questions/51829842
|
|
176
|
+
type KeysMissing = Exclude<EnumToCheck, keyof InterfaceToCheck>;
|
|
177
|
+
type ExtraKeys = {
|
|
178
|
+
[K in keyof InterfaceToCheck]: Extract<EnumToCheck, K> extends never
|
|
179
|
+
? K
|
|
180
|
+
: never;
|
|
181
|
+
}[keyof InterfaceToCheck];
|
|
182
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
183
|
+
type Verify<
|
|
184
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
185
|
+
_Missing extends never = KeysMissing,
|
|
186
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
187
|
+
_Extra extends never = ExtraKeys,
|
|
188
|
+
> = 0;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A collection of the four sprites necessary in order to render a charge bar.
|
|
3
|
+
*
|
|
4
|
+
* Used in the `newChargeBarSprites` and related helper functions.
|
|
5
|
+
*/
|
|
6
|
+
export interface ChargeBarSprites {
|
|
7
|
+
back: Sprite;
|
|
8
|
+
meter: Sprite;
|
|
9
|
+
meterBattery: Sprite;
|
|
10
|
+
lines: Sprite;
|
|
11
|
+
maxCharges: int;
|
|
12
|
+
}
|
package/interfaces/JSONDoor.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** Part of `JSONRooms`. */
|
|
2
2
|
export interface JSONDoor {
|
|
3
3
|
$: {
|
|
4
|
-
/** Equal to "True" or "False". */
|
|
4
|
+
/** Equal to "True" or "False". Needs to be converted to an `boolean`. */
|
|
5
5
|
exists: string;
|
|
6
|
-
/** Needs to be converted to an int
|
|
6
|
+
/** Needs to be converted to an `int`. */
|
|
7
7
|
x: string;
|
|
8
|
-
/** Needs to be converted to an int
|
|
8
|
+
/** Needs to be converted to an `int`. */
|
|
9
9
|
y: string;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Part of `JSONRooms`. */
|
|
2
|
+
export interface JSONDoor {
|
|
3
|
+
$: {
|
|
4
|
+
/** Equal to "True" or "False". Needs to be converted to an `boolean`. */
|
|
5
|
+
exists: string;
|
|
6
|
+
|
|
7
|
+
/** Needs to be converted to an `int`. */
|
|
8
|
+
x: string;
|
|
9
|
+
|
|
10
|
+
/** Needs to be converted to an `int`. */
|
|
11
|
+
y: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/** Part of `JSONRooms`. */
|
|
2
2
|
export interface JSONEntity {
|
|
3
3
|
$: {
|
|
4
|
-
/** Needs to be converted to an int
|
|
4
|
+
/** Needs to be converted to an `int`. */
|
|
5
5
|
type: string;
|
|
6
|
-
/** Needs to be converted to an int
|
|
6
|
+
/** Needs to be converted to an `int`. */
|
|
7
7
|
variant: string;
|
|
8
|
-
/** Needs to be converted to an int
|
|
8
|
+
/** Needs to be converted to an `int`. */
|
|
9
9
|
subtype: string;
|
|
10
|
-
/** Needs to be converted to a float
|
|
10
|
+
/** Needs to be converted to a `float`. */
|
|
11
11
|
weight: string;
|
|
12
12
|
};
|
|
13
13
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Part of `JSONRooms`. */
|
|
2
|
+
export interface JSONEntity {
|
|
3
|
+
$: {
|
|
4
|
+
/** Needs to be converted to an `int`. */
|
|
5
|
+
type: string;
|
|
6
|
+
|
|
7
|
+
/** Needs to be converted to an `int`. */
|
|
8
|
+
variant: string;
|
|
9
|
+
|
|
10
|
+
/** Needs to be converted to an `int`. */
|
|
11
|
+
subtype: string;
|
|
12
|
+
|
|
13
|
+
/** Needs to be converted to a `float`. */
|
|
14
|
+
weight: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
package/interfaces/JSONRoom.d.ts
CHANGED
|
@@ -3,22 +3,22 @@ import { JSONSpawn } from "./JSONSpawn";
|
|
|
3
3
|
/** Part of `JSONRooms`. */
|
|
4
4
|
export interface JSONRoom {
|
|
5
5
|
$: {
|
|
6
|
-
/** Needs to be converted to an int
|
|
6
|
+
/** Needs to be converted to an `int`. */
|
|
7
7
|
difficulty: string;
|
|
8
|
-
/** Needs to be converted to an int
|
|
8
|
+
/** Needs to be converted to an `int`. */
|
|
9
9
|
height: string;
|
|
10
10
|
name: string;
|
|
11
|
-
/** Needs to be converted to an int
|
|
11
|
+
/** Needs to be converted to an `int`. */
|
|
12
12
|
shape: string;
|
|
13
|
-
/** Needs to be converted to an int
|
|
13
|
+
/** Needs to be converted to an `int`. */
|
|
14
14
|
subtype: string;
|
|
15
|
-
/** Needs to be converted to an int
|
|
15
|
+
/** Needs to be converted to an `int`. */
|
|
16
16
|
type: string;
|
|
17
|
-
/** Needs to be converted to an int
|
|
17
|
+
/** Needs to be converted to an `int`. */
|
|
18
18
|
variant: string;
|
|
19
|
-
/** Needs to be converted to a float
|
|
19
|
+
/** Needs to be converted to a `float`. */
|
|
20
20
|
weight: string;
|
|
21
|
-
/** Needs to be converted to an int
|
|
21
|
+
/** Needs to be converted to an `int`. */
|
|
22
22
|
width: string;
|
|
23
23
|
};
|
|
24
24
|
door: JSONDoor[];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { JSONDoor } from "./JSONDoor";
|
|
2
|
+
import { JSONSpawn } from "./JSONSpawn";
|
|
3
|
+
|
|
4
|
+
/** Part of `JSONRooms`. */
|
|
5
|
+
export interface JSONRoom {
|
|
6
|
+
$: {
|
|
7
|
+
/** Needs to be converted to an `int`. */
|
|
8
|
+
difficulty: string;
|
|
9
|
+
|
|
10
|
+
/** Needs to be converted to an `int`. */
|
|
11
|
+
height: string;
|
|
12
|
+
|
|
13
|
+
name: string;
|
|
14
|
+
|
|
15
|
+
/** Needs to be converted to an `int`. */
|
|
16
|
+
shape: string;
|
|
17
|
+
|
|
18
|
+
/** Needs to be converted to an `int`. */
|
|
19
|
+
subtype: string;
|
|
20
|
+
|
|
21
|
+
/** Needs to be converted to an `int`. */
|
|
22
|
+
type: string;
|
|
23
|
+
|
|
24
|
+
/** Needs to be converted to an `int`. */
|
|
25
|
+
variant: string;
|
|
26
|
+
|
|
27
|
+
/** Needs to be converted to a `float`. */
|
|
28
|
+
weight: string;
|
|
29
|
+
|
|
30
|
+
/** Needs to be converted to an `int`. */
|
|
31
|
+
width: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
door: JSONDoor[];
|
|
35
|
+
spawn: JSONSpawn[];
|
|
36
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSONRoom } from "./JSONRoom";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Custom rooms are created with the Basement Renovator program, which outputs XML files and STB
|
|
5
|
+
* files. A `JSONRooms` object is simply an XML file converted to JSON. You can convert your XML
|
|
6
|
+
* files using the following command: `npx convert-xml-to-json foo.xml foo.json`
|
|
7
|
+
*/
|
|
8
|
+
export interface JSONRooms {
|
|
9
|
+
rooms: {
|
|
10
|
+
room: JSONRoom[];
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -2,9 +2,9 @@ import { JSONEntity } from "./JSONEntity";
|
|
|
2
2
|
/** Part of `JSONRooms`. */
|
|
3
3
|
export interface JSONSpawn {
|
|
4
4
|
$: {
|
|
5
|
-
/** Needs to be converted to an int
|
|
5
|
+
/** Needs to be converted to an `int`. */
|
|
6
6
|
x: string;
|
|
7
|
-
/** Needs to be converted to an int
|
|
7
|
+
/** Needs to be converted to an `int`. */
|
|
8
8
|
y: string;
|
|
9
9
|
};
|
|
10
10
|
entity: JSONEntity[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { JSONEntity } from "./JSONEntity";
|
|
2
|
+
|
|
3
|
+
/** Part of `JSONRooms`. */
|
|
4
|
+
export interface JSONSpawn {
|
|
5
|
+
$: {
|
|
6
|
+
/** Needs to be converted to an `int`. */
|
|
7
|
+
x: string;
|
|
8
|
+
|
|
9
|
+
/** Needs to be converted to an `int`. */
|
|
10
|
+
y: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
entity: JSONEntity[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HeartSubType } from "isaac-typescript-definitions";
|
|
2
|
+
|
|
3
|
+
/** Used by the `getPlayerHealth` and `setPlayerHealth` helper functions. */
|
|
4
|
+
export interface PlayerHealth {
|
|
5
|
+
maxHearts: int;
|
|
6
|
+
hearts: int;
|
|
7
|
+
eternalHearts: int;
|
|
8
|
+
soulHearts: int;
|
|
9
|
+
boneHearts: int;
|
|
10
|
+
goldenHearts: int;
|
|
11
|
+
rottenHearts: int;
|
|
12
|
+
brokenHearts: int;
|
|
13
|
+
soulCharges: int;
|
|
14
|
+
bloodCharges: int;
|
|
15
|
+
soulHeartTypes: HeartSubType[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PocketItemSlot } from "isaac-typescript-definitions";
|
|
2
|
+
import { PocketItemType } from "../enums/PocketItemType";
|
|
3
|
+
|
|
4
|
+
/** Used by the `getPocketItems` and related helper functions. */
|
|
5
|
+
export interface PocketItemDescription {
|
|
6
|
+
slot: PocketItemSlot;
|
|
7
|
+
type: PocketItemType;
|
|
8
|
+
subType: int;
|
|
9
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is the format of the object that you give to the save data manager. It will contains all of
|
|
3
|
+
* the variables for the particular mod feature.
|
|
4
|
+
*
|
|
5
|
+
* Depending on which object keys you use, the variables will be automatically reset at certain
|
|
6
|
+
* times and automatically saved to disk.
|
|
7
|
+
*
|
|
8
|
+
* Each sub-object of save data has a string as a key and arbitrary data as a value. However, the
|
|
9
|
+
* data has to be serializable. Specifically, this means that you can only use the following types:
|
|
10
|
+
*
|
|
11
|
+
* - `boolean`
|
|
12
|
+
* - `number`
|
|
13
|
+
* - `string`
|
|
14
|
+
* - `Map` / `DefaultMap`
|
|
15
|
+
* - `Set`
|
|
16
|
+
* - serializable Isaac API classes (such as `Color`)
|
|
17
|
+
* - TSTL classes (i.e. classes that you made yourself)
|
|
18
|
+
* - sub-objects or a `LuaTable` that contains the above values
|
|
19
|
+
*
|
|
20
|
+
* (Unfortunately, it is not possible to create a recursive type definition that matches these
|
|
21
|
+
* properties. This means that the TypeScript compiler will not be able to validate that you are
|
|
22
|
+
* passing in serializable data.)
|
|
23
|
+
*/
|
|
24
|
+
export interface SaveData {
|
|
25
|
+
persistent?: Record<string, unknown>;
|
|
26
|
+
run?: Record<string, unknown>;
|
|
27
|
+
level?: Record<string, unknown>;
|
|
28
|
+
room?: Record<string, unknown>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TrinketType } from "isaac-typescript-definitions";
|
|
2
|
+
|
|
3
|
+
/** Used by the `temporarilyRemoveTrinkets` and related helper functions. */
|
|
4
|
+
export interface TrinketSituation {
|
|
5
|
+
trinketTypeRemoved: TrinketType;
|
|
6
|
+
trinketType1: TrinketType;
|
|
7
|
+
trinketType2: TrinketType;
|
|
8
|
+
numSmeltedTrinkets: int;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PillEffect } from "isaac-typescript-definitions";
|
|
2
|
+
|
|
3
|
+
export const PHD_PILL_CONVERSIONS: ReadonlyMap<PillEffect, PillEffect> =
|
|
4
|
+
new Map([
|
|
5
|
+
[PillEffect.BAD_TRIP, PillEffect.BALLS_OF_STEEL], // 1
|
|
6
|
+
[PillEffect.HEALTH_DOWN, PillEffect.HEALTH_UP], // 6
|
|
7
|
+
[PillEffect.RANGE_DOWN, PillEffect.RANGE_UP], // 11
|
|
8
|
+
[PillEffect.SPEED_DOWN, PillEffect.SPEED_UP], // 13
|
|
9
|
+
[PillEffect.TEARS_DOWN, PillEffect.TEARS_UP], // 15
|
|
10
|
+
[PillEffect.LUCK_DOWN, PillEffect.LUCK_UP], // 17
|
|
11
|
+
[PillEffect.PARALYSIS, PillEffect.PHEROMONES], // 22
|
|
12
|
+
[PillEffect.AMNESIA, PillEffect.I_CAN_SEE_FOREVER], // 25
|
|
13
|
+
[PillEffect.R_U_A_WIZARD, PillEffect.POWER], // 27
|
|
14
|
+
[PillEffect.ADDICTED, PillEffect.PERCS], // 29
|
|
15
|
+
[PillEffect.QUESTION_MARKS, PillEffect.TELEPILLS], // 31
|
|
16
|
+
[PillEffect.RETRO_VISION, PillEffect.I_CAN_SEE_FOREVER], // 37
|
|
17
|
+
[PillEffect.X_LAX, PillEffect.SOMETHINGS_WRONG], // 39
|
|
18
|
+
[PillEffect.IM_EXCITED, PillEffect.IM_DROWSY], // 42
|
|
19
|
+
[PillEffect.HORF, PillEffect.GULP], // 44
|
|
20
|
+
[PillEffect.SHOT_SPEED_DOWN, PillEffect.SHOT_SPEED_UP], // 47
|
|
21
|
+
]);
|