isaacscript-common 20.18.0 → 21.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +23 -33
- package/dist/isaacscript-common.lua +676 -508
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostBoneSwing.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostBoneSwing.lua +3 -2
- package/dist/src/classes/callbacks/PreNewLevel.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PreNewLevel.lua +3 -2
- package/dist/src/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomTrapdoors.lua +4 -2
- package/dist/src/classes/features/other/DeployJSONRoom.d.ts.map +1 -1
- package/dist/src/classes/features/other/DeployJSONRoom.lua +3 -2
- package/dist/src/classes/features/other/ModdedElementSets.d.ts.map +1 -1
- package/dist/src/classes/features/other/ModdedElementSets.lua +7 -4
- package/dist/src/classes/features/other/SaveDataManager.d.ts.map +1 -1
- package/dist/src/classes/features/other/SaveDataManager.lua +3 -2
- package/dist/src/classes/features/other/customStages/backdrop.lua +3 -2
- package/dist/src/classes/features/other/customStages/shadows.d.ts.map +1 -1
- package/dist/src/classes/features/other/customStages/streakText.d.ts.map +1 -1
- package/dist/src/classes/features/other/saveDataManager/restoreDefaults.d.ts.map +1 -1
- package/dist/src/classes/features/other/saveDataManager/restoreDefaults.lua +3 -2
- package/dist/src/core/constants.d.ts +4 -6
- package/dist/src/core/constants.d.ts.map +1 -1
- package/dist/src/core/constants.lua +17 -13
- package/dist/src/features.d.ts.map +1 -1
- package/dist/src/functions/bosses.d.ts.map +1 -1
- package/dist/src/functions/bosses.lua +3 -2
- package/dist/src/functions/cards.lua +3 -3
- package/dist/src/functions/characters.d.ts.map +1 -1
- package/dist/src/functions/characters.lua +3 -2
- package/dist/src/functions/doors.d.ts.map +1 -1
- package/dist/src/functions/doors.lua +9 -7
- package/dist/src/functions/emptyRoom.d.ts.map +1 -1
- package/dist/src/functions/emptyRoom.lua +3 -2
- package/dist/src/functions/entities.d.ts.map +1 -1
- package/dist/src/functions/entities.lua +67 -64
- package/dist/src/functions/globals.d.ts.map +1 -1
- package/dist/src/functions/globals.lua +6 -4
- package/dist/src/functions/gridEntities.d.ts.map +1 -1
- package/dist/src/functions/gridEntities.lua +5 -3
- package/dist/src/functions/input.d.ts.map +1 -1
- package/dist/src/functions/input.lua +4 -3
- package/dist/src/functions/logEntities.d.ts.map +1 -1
- package/dist/src/functions/logEntities.lua +3 -2
- package/dist/src/functions/npcs.d.ts.map +1 -1
- package/dist/src/functions/npcs.lua +4 -3
- package/dist/src/functions/playerIndex.d.ts.map +1 -1
- package/dist/src/functions/playerIndex.lua +3 -2
- package/dist/src/functions/readOnly.d.ts +26 -0
- package/dist/src/functions/readOnly.d.ts.map +1 -0
- package/dist/src/functions/readOnly.lua +31 -0
- package/dist/src/functions/roomGrid.lua +4 -1
- package/dist/src/functions/roomShapeWalls.d.ts.map +1 -1
- package/dist/src/functions/roomShapeWalls.lua +9 -10
- package/dist/src/functions/serialization.d.ts.map +1 -1
- package/dist/src/functions/serialization.lua +3 -2
- package/dist/src/functions/slots.d.ts.map +1 -1
- package/dist/src/functions/slots.lua +3 -2
- package/dist/src/functions/stats.d.ts.map +1 -1
- package/dist/src/functions/stats.lua +3 -2
- package/dist/src/functions/transformations.d.ts.map +1 -1
- package/dist/src/functions/transformations.lua +6 -3
- package/dist/src/functions/utils.d.ts +1 -1
- package/dist/src/functions/utils.lua +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.lua +16 -0
- package/dist/src/maps/PHDPillConversions.d.ts.map +1 -1
- package/dist/src/maps/PHDPillConversions.lua +3 -2
- package/dist/src/maps/cardNameToTypeMap.d.ts.map +1 -1
- package/dist/src/maps/cardNameToTypeMap.lua +3 -2
- package/dist/src/maps/characterNameToTypeMap.d.ts.map +1 -1
- package/dist/src/maps/characterNameToTypeMap.lua +3 -2
- package/dist/src/maps/collectibleDescriptionMap.d.ts.map +1 -1
- package/dist/src/maps/collectibleDescriptionMap.lua +3 -2
- package/dist/src/maps/collectibleNameToTypeMap.d.ts +5 -0
- package/dist/src/maps/collectibleNameToTypeMap.d.ts.map +1 -1
- package/dist/src/maps/collectibleNameToTypeMap.lua +10 -8
- package/dist/src/maps/collectibleTypeToNameMap.d.ts.map +1 -1
- package/dist/src/maps/collectibleTypeToNameMap.lua +3 -2
- package/dist/src/maps/defaultPlayerStatMap.d.ts +5 -2
- package/dist/src/maps/defaultPlayerStatMap.d.ts.map +1 -1
- package/dist/src/maps/defaultPlayerStatMap.lua +3 -2
- package/dist/src/maps/falsePHDPillConversions.d.ts.map +1 -1
- package/dist/src/maps/falsePHDPillConversions.lua +3 -2
- package/dist/src/maps/gridEntityTypeToBrokenStateMap.d.ts +1 -1
- package/dist/src/maps/gridEntityTypeToBrokenStateMap.d.ts.map +1 -1
- package/dist/src/maps/gridEntityTypeToBrokenStateMap.lua +3 -2
- package/dist/src/maps/gridEntityXMLMap.d.ts +1 -4
- package/dist/src/maps/gridEntityXMLMap.d.ts.map +1 -1
- package/dist/src/maps/gridEntityXMLMap.lua +3 -2
- package/dist/src/maps/keyboardToString.d.ts.map +1 -1
- package/dist/src/maps/keyboardToString.lua +3 -2
- package/dist/src/maps/pillNameToEffectMap.d.ts.map +1 -1
- package/dist/src/maps/pillNameToEffectMap.lua +3 -2
- package/dist/src/maps/roomNameToTypeMap.d.ts.map +1 -1
- package/dist/src/maps/roomNameToTypeMap.lua +3 -2
- package/dist/src/maps/roomShapeToTopLeftWallGridIndexMap.d.ts +1 -1
- package/dist/src/maps/roomShapeToTopLeftWallGridIndexMap.d.ts.map +1 -1
- package/dist/src/maps/roomShapeToTopLeftWallGridIndexMap.lua +3 -2
- package/dist/src/maps/transformationNameToPlayerFormMap.d.ts.map +1 -1
- package/dist/src/maps/transformationNameToPlayerFormMap.lua +3 -2
- package/dist/src/maps/trinketDescriptionMap.d.ts.map +1 -1
- package/dist/src/maps/trinketDescriptionMap.lua +3 -2
- package/dist/src/maps/trinketNameToTypeMap.d.ts +5 -0
- package/dist/src/maps/trinketNameToTypeMap.d.ts.map +1 -1
- package/dist/src/maps/trinketNameToTypeMap.lua +10 -8
- package/dist/src/maps/trinketTypeToNameMap.d.ts.map +1 -1
- package/dist/src/maps/trinketTypeToNameMap.lua +3 -2
- package/dist/src/objects/LRoomShapeToRectangles.d.ts +8 -6
- package/dist/src/objects/LRoomShapeToRectangles.d.ts.map +1 -1
- package/dist/src/objects/LRoomShapeToRectangles.lua +19 -17
- package/dist/src/objects/backdropTypeToRockAltType.d.ts.map +1 -1
- package/dist/src/objects/bossNamePNGFileNames.d.ts.map +1 -1
- package/dist/src/objects/bossPortraitPNGFileNames.d.ts.map +1 -1
- package/dist/src/objects/cardDescriptions.d.ts.map +1 -1
- package/dist/src/objects/cardNames.d.ts.map +1 -1
- package/dist/src/objects/challengeNames.d.ts.map +1 -1
- package/dist/src/objects/characterDamageMultipliers.d.ts.map +1 -1
- package/dist/src/objects/characterNames.d.ts.map +1 -1
- package/dist/src/objects/coinSubTypeToValue.d.ts.map +1 -1
- package/dist/src/objects/directionNames.d.ts.map +1 -1
- package/dist/src/objects/directionToDegrees.d.ts.map +1 -1
- package/dist/src/objects/directionToMoveAction.d.ts.map +1 -1
- package/dist/src/objects/directionToShootAction.d.ts.map +1 -1
- package/dist/src/objects/directionToVector.d.ts +5 -2
- package/dist/src/objects/directionToVector.d.ts.map +1 -1
- package/dist/src/objects/directionToVector.lua +6 -4
- package/dist/src/objects/doorSlotFlagToDoorSlot.d.ts.map +1 -1
- package/dist/src/objects/doorSlotToDirection.d.ts.map +1 -1
- package/dist/src/objects/doorSlotToDoorSlotFlag.d.ts.map +1 -1
- package/dist/src/objects/isaacAPIClassTypeToBrand.d.ts.map +1 -1
- package/dist/src/objects/languageNames.d.ts.map +1 -1
- package/dist/src/objects/oppositeDoorSlots.d.ts.map +1 -1
- package/dist/src/objects/pillEffectClasses.d.ts.map +1 -1
- package/dist/src/objects/pillEffectNames.d.ts.map +1 -1
- package/dist/src/objects/pillEffectTypes.d.ts.map +1 -1
- package/dist/src/objects/playerNamePNGFileNames.d.ts.map +1 -1
- package/dist/src/objects/playerPortraitPNGFileNames.d.ts.map +1 -1
- package/dist/src/objects/roomShapeBounds.d.ts +12 -2
- package/dist/src/objects/roomShapeBounds.d.ts.map +1 -1
- package/dist/src/objects/roomShapeCorners.d.ts +237 -3
- package/dist/src/objects/roomShapeCorners.d.ts.map +1 -1
- package/dist/src/objects/roomShapeCorners.lua +58 -56
- package/dist/src/objects/roomShapeLayoutSizes.d.ts +12 -2
- package/dist/src/objects/roomShapeLayoutSizes.d.ts.map +1 -1
- package/dist/src/objects/roomShapeToBottomRightPosition.d.ts +12 -2
- package/dist/src/objects/roomShapeToBottomRightPosition.d.ts.map +1 -1
- package/dist/src/objects/roomShapeToBottomRightPosition.lua +10 -8
- package/dist/src/objects/roomShapeToDoorSlotCoordinates.d.ts +88 -2
- package/dist/src/objects/roomShapeToDoorSlotCoordinates.d.ts.map +1 -1
- package/dist/src/objects/roomShapeToDoorSlotCoordinates.lua +71 -74
- package/dist/src/objects/roomShapeToDoorSlots.d.ts +13 -2
- package/dist/src/objects/roomShapeToDoorSlots.d.ts.map +1 -1
- package/dist/src/objects/roomShapeToDoorSlots.lua +10 -9
- package/dist/src/objects/roomShapeToDoorSlotsToGridIndexDelta.d.ts.map +1 -1
- package/dist/src/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +14 -13
- package/dist/src/objects/roomShapeToGridWidth.d.ts.map +1 -1
- package/dist/src/objects/roomShapeToTopLeftPosition.d.ts +12 -2
- package/dist/src/objects/roomShapeToTopLeftPosition.d.ts.map +1 -1
- package/dist/src/objects/roomShapeToTopLeftPosition.lua +5 -3
- package/dist/src/objects/roomShapeVolumes.d.ts.map +1 -1
- package/dist/src/objects/roomTypeGotoPrefixes.d.ts.map +1 -1
- package/dist/src/objects/roomTypeNames.d.ts.map +1 -1
- package/dist/src/objects/stageToMusic.d.ts.map +1 -1
- package/dist/src/objects/stageTypeSuffixes.d.ts.map +1 -1
- package/dist/src/objects/stageTypeToLetter.d.ts.map +1 -1
- package/dist/src/objects/transformationNames.d.ts.map +1 -1
- package/dist/src/objects/versusScreenBackgroundColors.d.ts +29 -2
- package/dist/src/objects/versusScreenBackgroundColors.d.ts.map +1 -1
- package/dist/src/objects/versusScreenBackgroundColors.lua +29 -27
- package/dist/src/objects/versusScreenDirtSpotColors.d.ts +29 -2
- package/dist/src/objects/versusScreenDirtSpotColors.d.ts.map +1 -1
- package/dist/src/objects/versusScreenDirtSpotColors.lua +29 -27
- package/dist/src/sets/LRoomShapesSet.d.ts.map +1 -1
- package/dist/src/sets/LRoomShapesSet.lua +3 -2
- package/dist/src/sets/bossSets.d.ts +2 -3
- package/dist/src/sets/bossSets.d.ts.map +1 -1
- package/dist/src/sets/bossSets.lua +52 -49
- package/dist/src/sets/charactersThatStartWithAnActiveItemSet.d.ts.map +1 -1
- package/dist/src/sets/charactersThatStartWithAnActiveItemSet.lua +3 -2
- package/dist/src/sets/charactersWithBlackHeartFromEternalHeartSet.d.ts.map +1 -1
- package/dist/src/sets/charactersWithBlackHeartFromEternalHeartSet.lua +3 -2
- package/dist/src/sets/charactersWithFreeDevilDealsSet.d.ts.map +1 -1
- package/dist/src/sets/charactersWithFreeDevilDealsSet.lua +3 -2
- package/dist/src/sets/charactersWithNoRedHeartsSet.d.ts.map +1 -1
- package/dist/src/sets/charactersWithNoRedHeartsSet.lua +3 -2
- package/dist/src/sets/charactersWithNoSoulHeartsSet.d.ts.map +1 -1
- package/dist/src/sets/charactersWithNoSoulHeartsSet.lua +3 -2
- package/dist/src/sets/chestPickupVariantsSet.d.ts.map +1 -1
- package/dist/src/sets/chestPickupVariantsSet.lua +3 -2
- package/dist/src/sets/consoleCommandsSet.d.ts.map +1 -1
- package/dist/src/sets/consoleCommandsSet.lua +3 -2
- package/dist/src/sets/entitiesWithArmorSet.d.ts.map +1 -1
- package/dist/src/sets/entitiesWithArmorSet.lua +3 -2
- package/dist/src/sets/familiarsThatShootPlayerTearsSet.d.ts.map +1 -1
- package/dist/src/sets/familiarsThatShootPlayerTearsSet.lua +3 -2
- package/dist/src/sets/itemConfigCardTypesForCardsSet.d.ts +4 -0
- package/dist/src/sets/itemConfigCardTypesForCardsSet.d.ts.map +1 -0
- package/dist/src/sets/itemConfigCardTypesForCardsSet.lua +10 -0
- package/dist/src/sets/lostStyleCharactersSet.d.ts.map +1 -1
- package/dist/src/sets/lostStyleCharactersSet.lua +3 -2
- package/dist/src/sets/mineShaftRoomSubTypesSet.d.ts.map +1 -1
- package/dist/src/sets/mineShaftRoomSubTypesSet.lua +3 -2
- package/dist/src/sets/narrowRoomShapesSet.d.ts.map +1 -1
- package/dist/src/sets/narrowRoomShapesSet.lua +3 -2
- package/dist/src/sets/redHeartSubTypesSet.d.ts.map +1 -1
- package/dist/src/sets/redHeartSubTypesSet.lua +3 -2
- package/dist/src/sets/sinEntityTypesSet.d.ts.map +1 -1
- package/dist/src/sets/sinEntityTypesSet.lua +3 -2
- package/dist/src/sets/singleUseActiveCollectibleTypesSet.d.ts.map +1 -1
- package/dist/src/sets/singleUseActiveCollectibleTypesSet.lua +3 -2
- package/dist/src/sets/storyBossesSet.d.ts.map +1 -1
- package/dist/src/sets/storyBossesSet.lua +3 -2
- package/dist/src/types/PickingUpItem.d.ts.map +1 -1
- package/dist/src/types/PickingUpItem.lua +3 -2
- package/dist/src/types/ReadonlyMap.d.ts +9 -0
- package/dist/src/types/ReadonlyMap.d.ts.map +1 -0
- package/dist/src/types/ReadonlyMap.lua +6 -0
- package/dist/src/types/ReadonlySet.d.ts +8 -0
- package/dist/src/types/ReadonlySet.d.ts.map +1 -0
- package/dist/src/types/ReadonlySet.lua +6 -0
- package/package.json +1 -1
- package/src/callbacks.ts +1 -2
- package/src/classes/callbacks/PostBoneSwing.ts +2 -1
- package/src/classes/callbacks/PreNewLevel.ts +2 -1
- package/src/classes/features/other/CustomTrapdoors.ts +2 -1
- package/src/classes/features/other/DeployJSONRoom.ts +5 -2
- package/src/classes/features/other/ModdedElementSets.ts +20 -22
- package/src/classes/features/other/SaveDataManager.ts +2 -1
- package/src/classes/features/other/customStages/backdrop.ts +3 -3
- package/src/classes/features/other/customStages/shadows.ts +1 -2
- package/src/classes/features/other/customStages/streakText.ts +1 -2
- package/src/classes/features/other/saveDataManager/restoreDefaults.ts +2 -1
- package/src/core/constants.ts +18 -17
- package/src/features.ts +1 -2
- package/src/functions/bosses.ts +2 -1
- package/src/functions/cards.ts +2 -2
- package/src/functions/characters.ts +2 -1
- package/src/functions/doors.ts +15 -4
- package/src/functions/emptyRoom.ts +2 -1
- package/src/functions/entities.ts +3 -2
- package/src/functions/globals.ts +4 -3
- package/src/functions/gridEntities.ts +5 -4
- package/src/functions/input.ts +3 -2
- package/src/functions/logEntities.ts +2 -1
- package/src/functions/npcs.ts +3 -2
- package/src/functions/playerIndex.ts +2 -1
- package/src/functions/readOnly.ts +42 -0
- package/src/functions/roomGrid.ts +2 -2
- package/src/functions/roomShapeWalls.ts +3 -5
- package/src/functions/serialization.ts +2 -3
- package/src/functions/slots.ts +2 -1
- package/src/functions/stats.ts +2 -1
- package/src/functions/transformations.ts +19 -18
- package/src/functions/utils.ts +1 -1
- package/src/index.ts +2 -1
- package/src/maps/PHDPillConversions.ts +19 -19
- package/src/maps/cardNameToTypeMap.ts +2 -1
- package/src/maps/characterNameToTypeMap.ts +86 -86
- package/src/maps/collectibleDescriptionMap.ts +726 -724
- package/src/maps/collectibleNameToTypeMap.ts +10 -7
- package/src/maps/collectibleTypeToNameMap.ts +3 -4
- package/src/maps/defaultPlayerStatMap.ts +2 -1
- package/src/maps/falsePHDPillConversions.ts +36 -33
- package/src/maps/gridEntityTypeToBrokenStateMap.ts +3 -2
- package/src/maps/gridEntityXMLMap.ts +3 -2
- package/src/maps/keyboardToString.ts +3 -2
- package/src/maps/pillNameToEffectMap.ts +85 -86
- package/src/maps/roomNameToTypeMap.ts +2 -1
- package/src/maps/roomShapeToTopLeftWallGridIndexMap.ts +3 -2
- package/src/maps/transformationNameToPlayerFormMap.ts +3 -2
- package/src/maps/trinketDescriptionMap.ts +191 -192
- package/src/maps/trinketNameToTypeMap.ts +10 -7
- package/src/maps/trinketTypeToNameMap.ts +191 -193
- package/src/objects/LRoomShapeToRectangles.ts +35 -28
- package/src/objects/backdropTypeToRockAltType.ts +1 -2
- package/src/objects/bossNamePNGFileNames.ts +1 -2
- package/src/objects/bossPortraitPNGFileNames.ts +1 -2
- package/src/objects/cardDescriptions.ts +1 -2
- package/src/objects/cardNames.ts +1 -2
- package/src/objects/challengeNames.ts +1 -2
- package/src/objects/characterDamageMultipliers.ts +1 -2
- package/src/objects/characterNames.ts +1 -2
- package/src/objects/coinSubTypeToValue.ts +1 -2
- package/src/objects/directionNames.ts +1 -2
- package/src/objects/directionToDegrees.ts +1 -2
- package/src/objects/directionToMoveAction.ts +1 -2
- package/src/objects/directionToShootAction.ts +1 -2
- package/src/objects/directionToVector.ts +7 -10
- package/src/objects/doorSlotFlagToDoorSlot.ts +1 -2
- package/src/objects/doorSlotToDirection.ts +1 -2
- package/src/objects/doorSlotToDoorSlotFlag.ts +1 -2
- package/src/objects/isaacAPIClassTypeToBrand.ts +1 -5
- package/src/objects/languageNames.ts +1 -2
- package/src/objects/oppositeDoorSlots.ts +1 -2
- package/src/objects/pillEffectClasses.ts +1 -2
- package/src/objects/pillEffectNames.ts +1 -2
- package/src/objects/pillEffectTypes.ts +1 -2
- package/src/objects/playerNamePNGFileNames.ts +1 -2
- package/src/objects/playerPortraitPNGFileNames.ts +1 -2
- package/src/objects/roomShapeBounds.ts +3 -7
- package/src/objects/roomShapeCorners.ts +59 -62
- package/src/objects/roomShapeLayoutSizes.ts +6 -10
- package/src/objects/roomShapeToBottomRightPosition.ts +11 -17
- package/src/objects/roomShapeToDoorSlotCoordinates.ts +93 -94
- package/src/objects/roomShapeToDoorSlots.ts +11 -14
- package/src/objects/roomShapeToDoorSlotsToGridIndexDelta.ts +15 -14
- package/src/objects/roomShapeToGridWidth.ts +1 -2
- package/src/objects/roomShapeToTopLeftPosition.ts +6 -9
- package/src/objects/roomShapeVolumes.ts +1 -2
- package/src/objects/roomTypeGotoPrefixes.ts +1 -2
- package/src/objects/roomTypeNames.ts +1 -2
- package/src/objects/stageToMusic.ts +10 -11
- package/src/objects/stageTypeSuffixes.ts +1 -2
- package/src/objects/stageTypeToLetter.ts +1 -2
- package/src/objects/transformationNames.ts +1 -2
- package/src/objects/versusScreenBackgroundColors.ts +30 -33
- package/src/objects/versusScreenDirtSpotColors.ts +30 -33
- package/src/sets/LRoomShapesSet.ts +2 -1
- package/src/sets/bossSets.ts +51 -49
- package/src/sets/charactersThatStartWithAnActiveItemSet.ts +3 -2
- package/src/sets/charactersWithBlackHeartFromEternalHeartSet.ts +3 -2
- package/src/sets/charactersWithFreeDevilDealsSet.ts +4 -2
- package/src/sets/charactersWithNoRedHeartsSet.ts +11 -11
- package/src/sets/charactersWithNoSoulHeartsSet.ts +8 -8
- package/src/sets/chestPickupVariantsSet.ts +2 -1
- package/src/sets/consoleCommandsSet.ts +3 -1
- package/src/sets/entitiesWithArmorSet.ts +2 -1
- package/src/sets/familiarsThatShootPlayerTearsSet.ts +3 -2
- package/src/sets/itemConfigCardTypesForCardsSet.ts +11 -0
- package/src/sets/lostStyleCharactersSet.ts +2 -1
- package/src/sets/mineShaftRoomSubTypesSet.ts +8 -8
- package/src/sets/narrowRoomShapesSet.ts +2 -1
- package/src/sets/redHeartSubTypesSet.ts +2 -1
- package/src/sets/sinEntityTypesSet.ts +2 -1
- package/src/sets/singleUseActiveCollectibleTypesSet.ts +3 -2
- package/src/sets/storyBossesSet.ts +2 -1
- package/src/types/PickingUpItem.ts +2 -1
- package/src/types/ReadonlyMap.ts +13 -0
- package/src/types/ReadonlySet.ts +9 -0
- package/dist/src/types/HasAllEnumKeys.d.ts +0 -26
- package/dist/src/types/HasAllEnumKeys.d.ts.map +0 -1
- package/dist/src/types/HasAllEnumKeys.lua +0 -2
- package/src/types/HasAllEnumKeys.ts +0 -25
|
@@ -3,6 +3,8 @@ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitio
|
|
|
3
3
|
local RoomShape = ____isaac_2Dtypescript_2Ddefinitions.RoomShape
|
|
4
4
|
local ____CornerType = require("src.enums.CornerType")
|
|
5
5
|
local CornerType = ____CornerType.CornerType
|
|
6
|
+
local ____readOnly = require("src.functions.readOnly")
|
|
7
|
+
local newReadonlyVector = ____readOnly.newReadonlyVector
|
|
6
8
|
--- The locations of the corners for each room shape.
|
|
7
9
|
--
|
|
8
10
|
-- Note that these corner locations are not accurate for the Mother Boss Room and the Home closet
|
|
@@ -12,304 +14,304 @@ ____exports.ROOM_SHAPE_CORNERS = {
|
|
|
12
14
|
{
|
|
13
15
|
type = CornerType.TOP_LEFT,
|
|
14
16
|
gridIndex = 0,
|
|
15
|
-
position =
|
|
17
|
+
position = newReadonlyVector(nil, 60, 140)
|
|
16
18
|
},
|
|
17
19
|
{
|
|
18
20
|
type = CornerType.TOP_RIGHT,
|
|
19
21
|
gridIndex = 14,
|
|
20
|
-
position =
|
|
22
|
+
position = newReadonlyVector(nil, 580, 140)
|
|
21
23
|
},
|
|
22
24
|
{
|
|
23
25
|
type = CornerType.BOTTOM_LEFT,
|
|
24
26
|
gridIndex = 120,
|
|
25
|
-
position =
|
|
27
|
+
position = newReadonlyVector(nil, 60, 420)
|
|
26
28
|
},
|
|
27
29
|
{
|
|
28
30
|
type = CornerType.BOTTOM_RIGHT,
|
|
29
31
|
gridIndex = 134,
|
|
30
|
-
position =
|
|
32
|
+
position = newReadonlyVector(nil, 580, 420)
|
|
31
33
|
}
|
|
32
34
|
},
|
|
33
35
|
[RoomShape.IH] = {
|
|
34
36
|
{
|
|
35
37
|
type = CornerType.TOP_LEFT,
|
|
36
38
|
gridIndex = 30,
|
|
37
|
-
position =
|
|
39
|
+
position = newReadonlyVector(nil, 60, 220)
|
|
38
40
|
},
|
|
39
41
|
{
|
|
40
42
|
type = CornerType.TOP_RIGHT,
|
|
41
43
|
gridIndex = 44,
|
|
42
|
-
position =
|
|
44
|
+
position = newReadonlyVector(nil, 580, 220)
|
|
43
45
|
},
|
|
44
46
|
{
|
|
45
47
|
type = CornerType.BOTTOM_LEFT,
|
|
46
48
|
gridIndex = 90,
|
|
47
|
-
position =
|
|
49
|
+
position = newReadonlyVector(nil, 60, 340)
|
|
48
50
|
},
|
|
49
51
|
{
|
|
50
52
|
type = CornerType.BOTTOM_RIGHT,
|
|
51
53
|
gridIndex = 104,
|
|
52
|
-
position =
|
|
54
|
+
position = newReadonlyVector(nil, 580, 340)
|
|
53
55
|
}
|
|
54
56
|
},
|
|
55
57
|
[RoomShape.IV] = {
|
|
56
58
|
{
|
|
57
59
|
type = CornerType.TOP_LEFT,
|
|
58
60
|
gridIndex = 4,
|
|
59
|
-
position =
|
|
61
|
+
position = newReadonlyVector(nil, 220, 140)
|
|
60
62
|
},
|
|
61
63
|
{
|
|
62
64
|
type = CornerType.TOP_RIGHT,
|
|
63
65
|
gridIndex = 10,
|
|
64
|
-
position =
|
|
66
|
+
position = newReadonlyVector(nil, 420, 140)
|
|
65
67
|
},
|
|
66
68
|
{
|
|
67
69
|
type = CornerType.BOTTOM_LEFT,
|
|
68
70
|
gridIndex = 124,
|
|
69
|
-
position =
|
|
71
|
+
position = newReadonlyVector(nil, 220, 420)
|
|
70
72
|
},
|
|
71
73
|
{
|
|
72
74
|
type = CornerType.BOTTOM_RIGHT,
|
|
73
75
|
gridIndex = 130,
|
|
74
|
-
position =
|
|
76
|
+
position = newReadonlyVector(nil, 420, 420)
|
|
75
77
|
}
|
|
76
78
|
},
|
|
77
79
|
[RoomShape.SHAPE_1x2] = {
|
|
78
80
|
{
|
|
79
81
|
type = CornerType.TOP_LEFT,
|
|
80
82
|
gridIndex = 0,
|
|
81
|
-
position =
|
|
83
|
+
position = newReadonlyVector(nil, 60, 140)
|
|
82
84
|
},
|
|
83
85
|
{
|
|
84
86
|
type = CornerType.TOP_RIGHT,
|
|
85
87
|
gridIndex = 14,
|
|
86
|
-
position =
|
|
88
|
+
position = newReadonlyVector(nil, 580, 140)
|
|
87
89
|
},
|
|
88
90
|
{
|
|
89
91
|
type = CornerType.BOTTOM_LEFT,
|
|
90
92
|
gridIndex = 225,
|
|
91
|
-
position =
|
|
93
|
+
position = newReadonlyVector(nil, 60, 700)
|
|
92
94
|
},
|
|
93
95
|
{
|
|
94
96
|
type = CornerType.BOTTOM_RIGHT,
|
|
95
97
|
gridIndex = 239,
|
|
96
|
-
position =
|
|
98
|
+
position = newReadonlyVector(nil, 580, 700)
|
|
97
99
|
}
|
|
98
100
|
},
|
|
99
101
|
[RoomShape.IIV] = {
|
|
100
102
|
{
|
|
101
103
|
type = CornerType.TOP_LEFT,
|
|
102
104
|
gridIndex = 4,
|
|
103
|
-
position =
|
|
105
|
+
position = newReadonlyVector(nil, 220, 140)
|
|
104
106
|
},
|
|
105
107
|
{
|
|
106
108
|
type = CornerType.TOP_RIGHT,
|
|
107
109
|
gridIndex = 10,
|
|
108
|
-
position =
|
|
110
|
+
position = newReadonlyVector(nil, 420, 140)
|
|
109
111
|
},
|
|
110
112
|
{
|
|
111
113
|
type = CornerType.BOTTOM_LEFT,
|
|
112
114
|
gridIndex = 229,
|
|
113
|
-
position =
|
|
115
|
+
position = newReadonlyVector(nil, 220, 700)
|
|
114
116
|
},
|
|
115
117
|
{
|
|
116
118
|
type = CornerType.BOTTOM_RIGHT,
|
|
117
119
|
gridIndex = 235,
|
|
118
|
-
position =
|
|
120
|
+
position = newReadonlyVector(nil, 420, 700)
|
|
119
121
|
}
|
|
120
122
|
},
|
|
121
123
|
[RoomShape.SHAPE_2x1] = {
|
|
122
124
|
{
|
|
123
125
|
type = CornerType.TOP_LEFT,
|
|
124
126
|
gridIndex = 0,
|
|
125
|
-
position =
|
|
127
|
+
position = newReadonlyVector(nil, 60, 140)
|
|
126
128
|
},
|
|
127
129
|
{
|
|
128
130
|
type = CornerType.TOP_RIGHT,
|
|
129
131
|
gridIndex = 27,
|
|
130
|
-
position =
|
|
132
|
+
position = newReadonlyVector(nil, 1100, 140)
|
|
131
133
|
},
|
|
132
134
|
{
|
|
133
135
|
type = CornerType.BOTTOM_LEFT,
|
|
134
136
|
gridIndex = 224,
|
|
135
|
-
position =
|
|
137
|
+
position = newReadonlyVector(nil, 60, 420)
|
|
136
138
|
},
|
|
137
139
|
{
|
|
138
140
|
type = CornerType.BOTTOM_RIGHT,
|
|
139
141
|
gridIndex = 251,
|
|
140
|
-
position =
|
|
142
|
+
position = newReadonlyVector(nil, 1100, 420)
|
|
141
143
|
}
|
|
142
144
|
},
|
|
143
145
|
[RoomShape.IIH] = {
|
|
144
146
|
{
|
|
145
147
|
type = CornerType.TOP_LEFT,
|
|
146
148
|
gridIndex = 56,
|
|
147
|
-
position =
|
|
149
|
+
position = newReadonlyVector(nil, 60, 220)
|
|
148
150
|
},
|
|
149
151
|
{
|
|
150
152
|
type = CornerType.TOP_RIGHT,
|
|
151
153
|
gridIndex = 83,
|
|
152
|
-
position =
|
|
154
|
+
position = newReadonlyVector(nil, 1100, 220)
|
|
153
155
|
},
|
|
154
156
|
{
|
|
155
157
|
type = CornerType.BOTTOM_LEFT,
|
|
156
158
|
gridIndex = 168,
|
|
157
|
-
position =
|
|
159
|
+
position = newReadonlyVector(nil, 60, 340)
|
|
158
160
|
},
|
|
159
161
|
{
|
|
160
162
|
type = CornerType.BOTTOM_RIGHT,
|
|
161
163
|
gridIndex = 195,
|
|
162
|
-
position =
|
|
164
|
+
position = newReadonlyVector(nil, 1100, 340)
|
|
163
165
|
}
|
|
164
166
|
},
|
|
165
167
|
[RoomShape.SHAPE_2x2] = {
|
|
166
168
|
{
|
|
167
169
|
type = CornerType.TOP_LEFT,
|
|
168
170
|
gridIndex = 0,
|
|
169
|
-
position =
|
|
171
|
+
position = newReadonlyVector(nil, 60, 140)
|
|
170
172
|
},
|
|
171
173
|
{
|
|
172
174
|
type = CornerType.TOP_RIGHT,
|
|
173
175
|
gridIndex = 27,
|
|
174
|
-
position =
|
|
176
|
+
position = newReadonlyVector(nil, 1100, 140)
|
|
175
177
|
},
|
|
176
178
|
{
|
|
177
179
|
type = CornerType.BOTTOM_LEFT,
|
|
178
180
|
gridIndex = 420,
|
|
179
|
-
position =
|
|
181
|
+
position = newReadonlyVector(nil, 60, 700)
|
|
180
182
|
},
|
|
181
183
|
{
|
|
182
184
|
type = CornerType.BOTTOM_RIGHT,
|
|
183
185
|
gridIndex = 447,
|
|
184
|
-
position =
|
|
186
|
+
position = newReadonlyVector(nil, 1100, 700)
|
|
185
187
|
}
|
|
186
188
|
},
|
|
187
189
|
[RoomShape.LTL] = {
|
|
188
190
|
{
|
|
189
191
|
type = CornerType.TOP_LEFT,
|
|
190
192
|
gridIndex = 13,
|
|
191
|
-
position =
|
|
193
|
+
position = newReadonlyVector(nil, 580, 140)
|
|
192
194
|
},
|
|
193
195
|
{
|
|
194
196
|
type = CornerType.TOP_RIGHT,
|
|
195
197
|
gridIndex = 27,
|
|
196
|
-
position =
|
|
198
|
+
position = newReadonlyVector(nil, 1100, 140)
|
|
197
199
|
},
|
|
198
200
|
{
|
|
199
201
|
type = CornerType.TOP_LEFT,
|
|
200
202
|
gridIndex = 196,
|
|
201
|
-
position =
|
|
203
|
+
position = newReadonlyVector(nil, 60, 420)
|
|
202
204
|
},
|
|
203
205
|
{
|
|
204
206
|
type = CornerType.BOTTOM_RIGHT,
|
|
205
207
|
gridIndex = 209,
|
|
206
|
-
position =
|
|
208
|
+
position = newReadonlyVector(nil, 580, 420)
|
|
207
209
|
},
|
|
208
210
|
{
|
|
209
211
|
type = CornerType.BOTTOM_LEFT,
|
|
210
212
|
gridIndex = 420,
|
|
211
|
-
position =
|
|
213
|
+
position = newReadonlyVector(nil, 60, 700)
|
|
212
214
|
},
|
|
213
215
|
{
|
|
214
216
|
type = CornerType.BOTTOM_RIGHT,
|
|
215
217
|
gridIndex = 447,
|
|
216
|
-
position =
|
|
218
|
+
position = newReadonlyVector(nil, 1100, 700)
|
|
217
219
|
}
|
|
218
220
|
},
|
|
219
221
|
[RoomShape.LTR] = {
|
|
220
222
|
{
|
|
221
223
|
type = CornerType.TOP_LEFT,
|
|
222
224
|
gridIndex = 0,
|
|
223
|
-
position =
|
|
225
|
+
position = newReadonlyVector(nil, 60, 140)
|
|
224
226
|
},
|
|
225
227
|
{
|
|
226
228
|
type = CornerType.TOP_RIGHT,
|
|
227
229
|
gridIndex = 14,
|
|
228
|
-
position =
|
|
230
|
+
position = newReadonlyVector(nil, 580, 140)
|
|
229
231
|
},
|
|
230
232
|
{
|
|
231
233
|
type = CornerType.BOTTOM_LEFT,
|
|
232
234
|
gridIndex = 210,
|
|
233
|
-
position =
|
|
235
|
+
position = newReadonlyVector(nil, 580, 420)
|
|
234
236
|
},
|
|
235
237
|
{
|
|
236
238
|
type = CornerType.TOP_RIGHT,
|
|
237
239
|
gridIndex = 223,
|
|
238
|
-
position =
|
|
240
|
+
position = newReadonlyVector(nil, 1100, 420)
|
|
239
241
|
},
|
|
240
242
|
{
|
|
241
243
|
type = CornerType.BOTTOM_LEFT,
|
|
242
244
|
gridIndex = 420,
|
|
243
|
-
position =
|
|
245
|
+
position = newReadonlyVector(nil, 60, 700)
|
|
244
246
|
},
|
|
245
247
|
{
|
|
246
248
|
type = CornerType.BOTTOM_RIGHT,
|
|
247
249
|
gridIndex = 447,
|
|
248
|
-
position =
|
|
250
|
+
position = newReadonlyVector(nil, 1100, 700)
|
|
249
251
|
}
|
|
250
252
|
},
|
|
251
253
|
[RoomShape.LBL] = {
|
|
252
254
|
{
|
|
253
255
|
type = CornerType.TOP_LEFT,
|
|
254
256
|
gridIndex = 0,
|
|
255
|
-
position =
|
|
257
|
+
position = newReadonlyVector(nil, 60, 140)
|
|
256
258
|
},
|
|
257
259
|
{
|
|
258
260
|
type = CornerType.TOP_RIGHT,
|
|
259
261
|
gridIndex = 27,
|
|
260
|
-
position =
|
|
262
|
+
position = newReadonlyVector(nil, 1100, 140)
|
|
261
263
|
},
|
|
262
264
|
{
|
|
263
265
|
type = CornerType.BOTTOM_LEFT,
|
|
264
266
|
gridIndex = 224,
|
|
265
|
-
position =
|
|
267
|
+
position = newReadonlyVector(nil, 580, 140)
|
|
266
268
|
},
|
|
267
269
|
{
|
|
268
270
|
type = CornerType.TOP_RIGHT,
|
|
269
271
|
gridIndex = 237,
|
|
270
|
-
position =
|
|
272
|
+
position = newReadonlyVector(nil, 580, 420)
|
|
271
273
|
},
|
|
272
274
|
{
|
|
273
275
|
type = CornerType.BOTTOM_LEFT,
|
|
274
276
|
gridIndex = 433,
|
|
275
|
-
position =
|
|
277
|
+
position = newReadonlyVector(nil, 580, 700)
|
|
276
278
|
},
|
|
277
279
|
{
|
|
278
280
|
type = CornerType.BOTTOM_RIGHT,
|
|
279
281
|
gridIndex = 447,
|
|
280
|
-
position =
|
|
282
|
+
position = newReadonlyVector(nil, 1100, 700)
|
|
281
283
|
}
|
|
282
284
|
},
|
|
283
285
|
[RoomShape.LBR] = {
|
|
284
286
|
{
|
|
285
287
|
type = CornerType.TOP_LEFT,
|
|
286
288
|
gridIndex = 0,
|
|
287
|
-
position =
|
|
289
|
+
position = newReadonlyVector(nil, 60, 140)
|
|
288
290
|
},
|
|
289
291
|
{
|
|
290
292
|
type = CornerType.TOP_RIGHT,
|
|
291
293
|
gridIndex = 27,
|
|
292
|
-
position =
|
|
294
|
+
position = newReadonlyVector(nil, 1100, 140)
|
|
293
295
|
},
|
|
294
296
|
{
|
|
295
297
|
type = CornerType.TOP_LEFT,
|
|
296
298
|
gridIndex = 238,
|
|
297
|
-
position =
|
|
299
|
+
position = newReadonlyVector(nil, 580, 420)
|
|
298
300
|
},
|
|
299
301
|
{
|
|
300
302
|
type = CornerType.BOTTOM_RIGHT,
|
|
301
303
|
gridIndex = 251,
|
|
302
|
-
position =
|
|
304
|
+
position = newReadonlyVector(nil, 1100, 420)
|
|
303
305
|
},
|
|
304
306
|
{
|
|
305
307
|
type = CornerType.BOTTOM_LEFT,
|
|
306
308
|
gridIndex = 420,
|
|
307
|
-
position =
|
|
309
|
+
position = newReadonlyVector(nil, 60, 700)
|
|
308
310
|
},
|
|
309
311
|
{
|
|
310
312
|
type = CornerType.BOTTOM_RIGHT,
|
|
311
313
|
gridIndex = 434,
|
|
312
|
-
position =
|
|
314
|
+
position = newReadonlyVector(nil, 580, 700)
|
|
313
315
|
}
|
|
314
316
|
}
|
|
315
317
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { RoomShape } from "isaac-typescript-definitions";
|
|
2
1
|
/**
|
|
3
2
|
* The dimensions of a room shape's layout. This is NOT the size of the room's actual contents! For
|
|
4
3
|
* that, use `ROOM_SHAPE_BOUNDS`.
|
|
@@ -6,6 +5,17 @@ import { RoomShape } from "isaac-typescript-definitions";
|
|
|
6
5
|
* For example, a horizontal narrow room has a layout size of equal to that of a 1x1 room.
|
|
7
6
|
*/
|
|
8
7
|
export declare const ROOM_SHAPE_LAYOUT_SIZES: {
|
|
9
|
-
readonly
|
|
8
|
+
readonly 1: readonly [13, 7];
|
|
9
|
+
readonly 2: readonly [13, 7];
|
|
10
|
+
readonly 3: readonly [13, 7];
|
|
11
|
+
readonly 4: readonly [13, number];
|
|
12
|
+
readonly 5: readonly [13, number];
|
|
13
|
+
readonly 6: readonly [number, 7];
|
|
14
|
+
readonly 7: readonly [number, 7];
|
|
15
|
+
readonly 8: readonly [number, number];
|
|
16
|
+
readonly 9: readonly [number, number];
|
|
17
|
+
readonly 10: readonly [number, number];
|
|
18
|
+
readonly 11: readonly [number, number];
|
|
19
|
+
readonly 12: readonly [number, number];
|
|
10
20
|
};
|
|
11
21
|
//# sourceMappingURL=roomShapeLayoutSizes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roomShapeLayoutSizes.d.ts","sourceRoot":"","sources":["../../../src/objects/roomShapeLayoutSizes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"roomShapeLayoutSizes.d.ts","sourceRoot":"","sources":["../../../src/objects/roomShapeLayoutSizes.ts"],"names":[],"mappings":"AAuBA;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;CAauB,CAAC"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
import { RoomShape } from "isaac-typescript-definitions";
|
|
2
1
|
/**
|
|
3
2
|
* "Vector(0, 0)" corresponds to the top left tile of a room, not including the walls. (The top-left
|
|
4
3
|
* wall would be at "Vector(-1, -1)".)
|
|
5
4
|
*/
|
|
6
5
|
export declare const ROOM_SHAPE_TO_BOTTOM_RIGHT_POSITION: {
|
|
7
|
-
readonly
|
|
6
|
+
readonly 1: Readonly<Vector>;
|
|
7
|
+
readonly 2: Readonly<Vector>;
|
|
8
|
+
readonly 3: Readonly<Vector>;
|
|
9
|
+
readonly 4: Readonly<Vector>;
|
|
10
|
+
readonly 5: Readonly<Vector>;
|
|
11
|
+
readonly 6: Readonly<Vector>;
|
|
12
|
+
readonly 7: Readonly<Vector>;
|
|
13
|
+
readonly 8: Readonly<Vector>;
|
|
14
|
+
readonly 9: Readonly<Vector>;
|
|
15
|
+
readonly 10: Readonly<Vector>;
|
|
16
|
+
readonly 11: Readonly<Vector>;
|
|
17
|
+
readonly 12: Readonly<Vector>;
|
|
8
18
|
};
|
|
9
19
|
//# sourceMappingURL=roomShapeToBottomRightPosition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roomShapeToBottomRightPosition.d.ts","sourceRoot":"","sources":["../../../src/objects/roomShapeToBottomRightPosition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"roomShapeToBottomRightPosition.d.ts","sourceRoot":"","sources":["../../../src/objects/roomShapeToBottomRightPosition.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;CAaQ,CAAC"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local RoomShape = ____isaac_2Dtypescript_2Ddefinitions.RoomShape
|
|
4
|
-
local
|
|
5
|
-
local
|
|
4
|
+
local ____readOnly = require("src.functions.readOnly")
|
|
5
|
+
local newReadonlyVector = ____readOnly.newReadonlyVector
|
|
6
|
+
local TWO_BY_TWO_BOTTOM_RIGHT_POSITION = newReadonlyVector(nil, 25, 13)
|
|
7
|
+
local ONE_BY_TWO_VERTICAL_BOTTOM_RIGHT_POSITION = newReadonlyVector(nil, 12, 13)
|
|
6
8
|
--- "Vector(0, 0)" corresponds to the top left tile of a room, not including the walls. (The top-left
|
|
7
9
|
-- wall would be at "Vector(-1, -1)".)
|
|
8
10
|
____exports.ROOM_SHAPE_TO_BOTTOM_RIGHT_POSITION = {
|
|
9
|
-
[RoomShape.SHAPE_1x1] =
|
|
10
|
-
[RoomShape.IH] =
|
|
11
|
-
[RoomShape.IV] =
|
|
11
|
+
[RoomShape.SHAPE_1x1] = newReadonlyVector(nil, 12, 6),
|
|
12
|
+
[RoomShape.IH] = newReadonlyVector(nil, 12, 4),
|
|
13
|
+
[RoomShape.IV] = newReadonlyVector(nil, 8, 6),
|
|
12
14
|
[RoomShape.SHAPE_1x2] = ONE_BY_TWO_VERTICAL_BOTTOM_RIGHT_POSITION,
|
|
13
|
-
[RoomShape.IIV] =
|
|
14
|
-
[RoomShape.SHAPE_2x1] =
|
|
15
|
-
[RoomShape.IIH] =
|
|
15
|
+
[RoomShape.IIV] = newReadonlyVector(nil, 8, 13),
|
|
16
|
+
[RoomShape.SHAPE_2x1] = newReadonlyVector(nil, 25, 6),
|
|
17
|
+
[RoomShape.IIH] = newReadonlyVector(nil, 25, 4),
|
|
16
18
|
[RoomShape.SHAPE_2x2] = TWO_BY_TWO_BOTTOM_RIGHT_POSITION,
|
|
17
19
|
[RoomShape.LTL] = TWO_BY_TWO_BOTTOM_RIGHT_POSITION,
|
|
18
20
|
[RoomShape.LTR] = TWO_BY_TWO_BOTTOM_RIGHT_POSITION,
|
|
@@ -1,10 +1,96 @@
|
|
|
1
|
-
import { DoorSlot, RoomShape } from "isaac-typescript-definitions";
|
|
2
1
|
/**
|
|
3
2
|
* The coordinates correspond to the x and y values that are present in a room's XML file.
|
|
4
3
|
*
|
|
5
4
|
* e.g. `<door exists="False" x="-1" y="3" />`
|
|
6
5
|
*/
|
|
7
6
|
export declare const ROOM_SHAPE_TO_DOOR_SLOT_COORDINATES: {
|
|
8
|
-
readonly
|
|
7
|
+
readonly 1: {
|
|
8
|
+
readonly 0: readonly [-1, 3];
|
|
9
|
+
readonly 1: readonly [6, -1];
|
|
10
|
+
readonly 2: readonly [13, 3];
|
|
11
|
+
readonly 3: readonly [6, 7];
|
|
12
|
+
};
|
|
13
|
+
readonly 2: {
|
|
14
|
+
readonly 0: readonly [-1, 3];
|
|
15
|
+
readonly 2: readonly [13, 3];
|
|
16
|
+
};
|
|
17
|
+
readonly 3: {
|
|
18
|
+
readonly 1: readonly [6, -1];
|
|
19
|
+
readonly 3: readonly [6, 7];
|
|
20
|
+
};
|
|
21
|
+
readonly 4: {
|
|
22
|
+
readonly 0: readonly [-1, 3];
|
|
23
|
+
readonly 1: readonly [6, -1];
|
|
24
|
+
readonly 2: readonly [13, 3];
|
|
25
|
+
readonly 3: readonly [6, 14];
|
|
26
|
+
readonly 4: readonly [-1, 10];
|
|
27
|
+
readonly 6: readonly [13, 10];
|
|
28
|
+
};
|
|
29
|
+
readonly 5: {
|
|
30
|
+
readonly 1: readonly [6, -1];
|
|
31
|
+
readonly 3: readonly [6, 14];
|
|
32
|
+
};
|
|
33
|
+
readonly 6: {
|
|
34
|
+
readonly 0: readonly [-1, 3];
|
|
35
|
+
readonly 1: readonly [6, -1];
|
|
36
|
+
readonly 2: readonly [26, 3];
|
|
37
|
+
readonly 3: readonly [6, 7];
|
|
38
|
+
readonly 5: readonly [19, -1];
|
|
39
|
+
readonly 7: readonly [19, 7];
|
|
40
|
+
};
|
|
41
|
+
readonly 7: {
|
|
42
|
+
readonly 0: readonly [-1, 3];
|
|
43
|
+
readonly 2: readonly [26, 3];
|
|
44
|
+
};
|
|
45
|
+
readonly 8: {
|
|
46
|
+
readonly 0: readonly [-1, 3];
|
|
47
|
+
readonly 1: readonly [6, -1];
|
|
48
|
+
readonly 2: readonly [26, 3];
|
|
49
|
+
readonly 3: readonly [6, 14];
|
|
50
|
+
readonly 4: readonly [-1, 10];
|
|
51
|
+
readonly 5: readonly [19, -1];
|
|
52
|
+
readonly 6: readonly [26, 10];
|
|
53
|
+
readonly 7: readonly [19, 14];
|
|
54
|
+
};
|
|
55
|
+
readonly 9: {
|
|
56
|
+
readonly 0: readonly [12, 3];
|
|
57
|
+
readonly 1: readonly [6, 6];
|
|
58
|
+
readonly 2: readonly [26, 3];
|
|
59
|
+
readonly 3: readonly [6, 14];
|
|
60
|
+
readonly 4: readonly [-1, 10];
|
|
61
|
+
readonly 5: readonly [19, -1];
|
|
62
|
+
readonly 6: readonly [26, 10];
|
|
63
|
+
readonly 7: readonly [19, 14];
|
|
64
|
+
};
|
|
65
|
+
readonly 10: {
|
|
66
|
+
readonly 0: readonly [-1, 3];
|
|
67
|
+
readonly 1: readonly [6, -1];
|
|
68
|
+
readonly 2: readonly [13, 3];
|
|
69
|
+
readonly 3: readonly [6, 14];
|
|
70
|
+
readonly 4: readonly [-1, 10];
|
|
71
|
+
readonly 5: readonly [19, 6];
|
|
72
|
+
readonly 6: readonly [26, 10];
|
|
73
|
+
readonly 7: readonly [19, 14];
|
|
74
|
+
};
|
|
75
|
+
readonly 11: {
|
|
76
|
+
readonly 0: readonly [-1, 3];
|
|
77
|
+
readonly 1: readonly [6, -1];
|
|
78
|
+
readonly 2: readonly [26, 3];
|
|
79
|
+
readonly 3: readonly [6, 7];
|
|
80
|
+
readonly 4: readonly [12, 10];
|
|
81
|
+
readonly 5: readonly [19, -1];
|
|
82
|
+
readonly 6: readonly [26, 10];
|
|
83
|
+
readonly 7: readonly [19, 14];
|
|
84
|
+
};
|
|
85
|
+
readonly 12: {
|
|
86
|
+
readonly 0: readonly [-1, 3];
|
|
87
|
+
readonly 1: readonly [6, -1];
|
|
88
|
+
readonly 2: readonly [26, 3];
|
|
89
|
+
readonly 3: readonly [6, 14];
|
|
90
|
+
readonly 4: readonly [-1, 10];
|
|
91
|
+
readonly 5: readonly [19, -1];
|
|
92
|
+
readonly 6: readonly [13, 10];
|
|
93
|
+
readonly 7: readonly [19, 7];
|
|
94
|
+
};
|
|
9
95
|
};
|
|
10
96
|
//# sourceMappingURL=roomShapeToDoorSlotCoordinates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roomShapeToDoorSlotCoordinates.d.ts","sourceRoot":"","sources":["../../../src/objects/roomShapeToDoorSlotCoordinates.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"roomShapeToDoorSlotCoordinates.d.ts","sourceRoot":"","sources":["../../../src/objects/roomShapeToDoorSlotCoordinates.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmH/C,CAAC"}
|