isaacscript-common 1.2.292 → 2.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/README.md +2 -2
- package/dist/cachedClasses.d.ts +1 -1
- package/dist/cachedClasses.lua +0 -1
- package/dist/callbacks/customRevive.lua +13 -8
- package/dist/callbacks/itemPickup.lua +3 -1
- package/dist/callbacks/postBombInitLate.lua +3 -1
- package/dist/callbacks/postBoneSwing.lua +5 -2
- package/dist/callbacks/postCollectibleInitFirst.lua +4 -1
- package/dist/callbacks/postCursedTeleport.lua +16 -8
- package/dist/callbacks/postCustomDoorEnter.d.ts +1 -1
- package/dist/callbacks/postCustomDoorEnter.lua +16 -10
- package/dist/callbacks/postEffectInitLate.lua +3 -1
- package/dist/callbacks/postEffectStateChanged.lua +3 -1
- package/dist/callbacks/postEsauJr.lua +5 -2
- package/dist/callbacks/postFamiliarInitLate.lua +3 -1
- package/dist/callbacks/postFamiliarStateChanged.lua +3 -1
- package/dist/callbacks/postFlip.lua +9 -5
- package/dist/callbacks/postGreedModeWave.d.ts +1 -0
- package/dist/callbacks/postGreedModeWave.lua +32 -0
- package/dist/callbacks/postGreedWave.d.ts +1 -0
- package/dist/callbacks/postGreedWave.lua +31 -0
- package/dist/callbacks/postGridEntity.lua +4 -2
- package/dist/callbacks/postGridEntityCollision.lua +5 -2
- package/dist/callbacks/postHolyMantleRemoved.lua +3 -1
- package/dist/callbacks/postItemDischarged.lua +10 -5
- package/dist/callbacks/postKnifeInitLate.lua +3 -1
- package/dist/callbacks/postLaserInitLate.lua +3 -1
- package/dist/callbacks/postNPCInitLate.lua +3 -1
- package/dist/callbacks/postNPCStateChanged.lua +3 -1
- package/dist/callbacks/postNewRoomEarly.lua +7 -5
- package/dist/callbacks/postPickupCollect.lua +3 -1
- package/dist/callbacks/postPickupInitLate.lua +3 -1
- package/dist/callbacks/postPickupStateChanged.lua +3 -1
- package/dist/callbacks/postPlayerChangeHealth.lua +2 -2
- package/dist/callbacks/postPlayerFatalDamage.lua +4 -1
- package/dist/callbacks/postPlayerInitLate.lua +3 -1
- package/dist/callbacks/postPlayerReordered.lua +7 -6
- package/dist/callbacks/postProjectileInitLate.lua +3 -1
- package/dist/callbacks/postRoomClearChanged.lua +4 -3
- package/dist/callbacks/postSacrifice.lua +8 -4
- package/dist/callbacks/postSlotInitUpdate.lua +4 -2
- package/dist/callbacks/postSlotRender.lua +3 -1
- package/dist/callbacks/postTearInitLate.lua +3 -1
- package/dist/callbacks/postTearInitVeryLate.lua +3 -1
- package/dist/callbacks/postTransformation.lua +7 -12
- package/dist/callbacks/postTrinketBreak.lua +8 -3
- package/dist/callbacks/preBerserkDeath.lua +3 -2
- package/dist/callbacks/preNewLevel.lua +5 -3
- package/dist/callbacks/reorderedCallbacks.lua +7 -5
- package/dist/callbacks/subscriptions/postBombInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postBombInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postBoneSwing.d.ts +3 -1
- package/dist/callbacks/subscriptions/postBoneSwing.lua +3 -3
- package/dist/callbacks/subscriptions/postCollectibleInitFirst.d.ts +5 -2
- package/dist/callbacks/subscriptions/postCollectibleInitFirst.lua +3 -3
- package/dist/callbacks/subscriptions/postCursedTeleport.d.ts +3 -1
- package/dist/callbacks/subscriptions/postCursedTeleport.lua +3 -3
- package/dist/callbacks/subscriptions/postCustomDoorEnter.d.ts +5 -2
- package/dist/callbacks/subscriptions/postCustomDoorEnter.lua +3 -3
- package/dist/callbacks/subscriptions/postCustomRevive.d.ts +4 -1
- package/dist/callbacks/subscriptions/postCustomRevive.lua +3 -3
- package/dist/callbacks/subscriptions/postEffectInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postEffectInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postEffectStateChanged.d.ts +5 -2
- package/dist/callbacks/subscriptions/postEffectStateChanged.lua +3 -3
- package/dist/callbacks/subscriptions/postEsauJr.d.ts +3 -1
- package/dist/callbacks/subscriptions/postEsauJr.lua +3 -3
- package/dist/callbacks/subscriptions/postFamiliarInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postFamiliarStateChanged.d.ts +5 -2
- package/dist/callbacks/subscriptions/postFamiliarStateChanged.lua +3 -3
- package/dist/callbacks/subscriptions/postFirstEsauJr.d.ts +3 -1
- package/dist/callbacks/subscriptions/postFirstEsauJr.lua +3 -3
- package/dist/callbacks/subscriptions/postFirstFlip.d.ts +3 -1
- package/dist/callbacks/subscriptions/postFirstFlip.lua +3 -3
- package/dist/callbacks/subscriptions/postFlip.d.ts +3 -1
- package/dist/callbacks/subscriptions/postFlip.lua +3 -3
- package/dist/callbacks/subscriptions/postGameStartedReordered.d.ts +3 -1
- package/dist/callbacks/subscriptions/postGameStartedReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postGreedModeWave.d.ts +4 -0
- package/dist/callbacks/subscriptions/postGreedModeWave.lua +16 -0
- package/dist/callbacks/subscriptions/postGreedWave.d.ts +2 -0
- package/dist/callbacks/subscriptions/postGreedWave.lua +16 -0
- package/dist/callbacks/subscriptions/postGridEntityBroken.d.ts +5 -2
- package/dist/callbacks/subscriptions/postGridEntityBroken.lua +3 -3
- package/dist/callbacks/subscriptions/postGridEntityCollision.d.ts +5 -2
- package/dist/callbacks/subscriptions/postGridEntityCollision.lua +3 -3
- package/dist/callbacks/subscriptions/postGridEntityInit.d.ts +5 -2
- package/dist/callbacks/subscriptions/postGridEntityInit.lua +3 -3
- package/dist/callbacks/subscriptions/postGridEntityRemove.d.ts +5 -2
- package/dist/callbacks/subscriptions/postGridEntityRemove.lua +3 -3
- package/dist/callbacks/subscriptions/postGridEntityStateChanged.d.ts +5 -2
- package/dist/callbacks/subscriptions/postGridEntityStateChanged.lua +3 -3
- package/dist/callbacks/subscriptions/postGridEntityUpdate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +3 -3
- package/dist/callbacks/subscriptions/postHolyMantleRemoved.d.ts +6 -2
- package/dist/callbacks/subscriptions/postHolyMantleRemoved.lua +16 -4
- package/dist/callbacks/subscriptions/postItemDischarged.d.ts +5 -2
- package/dist/callbacks/subscriptions/postItemDischarged.lua +3 -3
- package/dist/callbacks/subscriptions/postItemPickup.d.ts +6 -2
- package/dist/callbacks/subscriptions/postItemPickup.lua +3 -3
- package/dist/callbacks/subscriptions/postKnifeInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postKnifeInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postLaserInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postLaserInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postNPCInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postNPCInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postNPCStateChanged.d.ts +6 -2
- package/dist/callbacks/subscriptions/postNPCStateChanged.lua +3 -3
- package/dist/callbacks/subscriptions/postNewLevelReordered.d.ts +1 -1
- package/dist/callbacks/subscriptions/postNewLevelReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postNewRoomEarly.d.ts +1 -1
- package/dist/callbacks/subscriptions/postNewRoomEarly.lua +3 -3
- package/dist/callbacks/subscriptions/postNewRoomReordered.d.ts +1 -1
- package/dist/callbacks/subscriptions/postNewRoomReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.d.ts +6 -2
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +8 -4
- package/dist/callbacks/subscriptions/postPickupCollect.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPickupCollect.lua +3 -3
- package/dist/callbacks/subscriptions/postPickupInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPickupInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postPickupStateChanged.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPickupStateChanged.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerChangeType.d.ts +4 -2
- package/dist/callbacks/subscriptions/postPlayerChangeType.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPlayerInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerInitReordered.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPlayerInitReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.d.ts +5 -2
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postProjectileInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postProjectileInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postPurchase.d.ts +6 -2
- package/dist/callbacks/subscriptions/postPurchase.lua +3 -3
- package/dist/callbacks/subscriptions/postRoomClearChanged.d.ts +3 -1
- package/dist/callbacks/subscriptions/postRoomClearChanged.lua +3 -3
- package/dist/callbacks/subscriptions/postSacrifice.d.ts +3 -1
- package/dist/callbacks/subscriptions/postSacrifice.lua +3 -3
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.d.ts +5 -2
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.lua +3 -3
- package/dist/callbacks/subscriptions/postSlotDestroyed.d.ts +5 -2
- package/dist/callbacks/subscriptions/postSlotDestroyed.lua +3 -3
- package/dist/callbacks/subscriptions/postSlotInit.d.ts +5 -2
- package/dist/callbacks/subscriptions/postSlotInit.lua +3 -3
- package/dist/callbacks/subscriptions/postSlotRender.d.ts +5 -2
- package/dist/callbacks/subscriptions/postSlotRender.lua +3 -3
- package/dist/callbacks/subscriptions/postSlotUpdate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postSlotUpdate.lua +3 -3
- package/dist/callbacks/subscriptions/postTearInitLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postTearInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postTearInitVeryLate.d.ts +5 -2
- package/dist/callbacks/subscriptions/postTearInitVeryLate.lua +3 -3
- package/dist/callbacks/subscriptions/postTransformation.d.ts +5 -2
- package/dist/callbacks/subscriptions/postTransformation.lua +3 -3
- package/dist/callbacks/subscriptions/postTrinketBreak.d.ts +5 -2
- package/dist/callbacks/subscriptions/postTrinketBreak.lua +3 -3
- package/dist/callbacks/subscriptions/preBerserkDeath.d.ts +5 -2
- package/dist/callbacks/subscriptions/preBerserkDeath.lua +3 -3
- package/dist/callbacks/subscriptions/preCustomRevive.d.ts +3 -1
- package/dist/callbacks/subscriptions/preCustomRevive.lua +3 -3
- package/dist/callbacks/subscriptions/preItemPickup.d.ts +6 -2
- package/dist/callbacks/subscriptions/preItemPickup.lua +3 -3
- package/dist/callbacks/subscriptions/preNewLevel.d.ts +3 -1
- package/dist/callbacks/subscriptions/preNewLevel.lua +3 -3
- package/dist/classes/ModUpgraded.d.ts +5 -5
- package/dist/constants.d.ts +9 -43
- package/dist/constants.lua +16 -13
- package/dist/constantsMax.d.ts +16 -0
- package/dist/constantsMax.lua +27 -0
- package/dist/enums/CardType.lua +1 -1
- package/dist/enums/CollectiblePedestalType.lua +1 -1
- package/dist/enums/HealthType.d.ts +3 -3
- package/dist/enums/HealthType.lua +1 -2
- package/dist/enums/ModCallbacksCustom.d.ts +56 -48
- package/dist/enums/ModCallbacksCustom.lua +47 -46
- package/dist/enums/PillEffectClass.lua +1 -1
- package/dist/enums/PillEffectType.lua +1 -1
- package/dist/enums/PocketItemType.lua +1 -2
- package/dist/enums/SerializationType.lua +1 -2
- package/dist/enums/private/CopyableIsaacAPIClassType.d.ts +1 -1
- package/dist/enums/private/CopyableIsaacAPIClassType.lua +2 -3
- package/dist/enums/private/SaveDataKeys.d.ts +4 -4
- package/dist/enums/private/SaveDataKeys.lua +5 -6
- package/dist/enums/private/SerializationBrand.d.ts +3 -4
- package/dist/enums/private/SerializationBrand.lua +2 -15
- package/dist/features/characterHealthConversion.d.ts +2 -2
- package/dist/features/characterHealthConversion.lua +8 -4
- package/dist/features/characterStats.d.ts +4 -4
- package/dist/features/characterStats.lua +3 -1
- package/dist/features/debugDisplay.lua +12 -11
- package/dist/features/deployJSONRoom.d.ts +3 -3
- package/dist/features/deployJSONRoom.lua +35 -21
- package/dist/features/disableInputs.d.ts +1 -1
- package/dist/features/disableInputs.lua +6 -3
- package/dist/features/disableSound.lua +3 -1
- package/dist/features/extraConsoleCommands/commands.d.ts +5 -3
- package/dist/features/extraConsoleCommands/commands.lua +96 -56
- package/dist/features/extraConsoleCommands/commandsDisplay.lua +0 -1
- package/dist/features/extraConsoleCommands/commandsSubroutines.d.ts +1 -1
- package/dist/features/extraConsoleCommands/commandsSubroutines.lua +13 -10
- package/dist/features/extraConsoleCommands/init.lua +17 -9
- package/dist/features/extraConsoleCommands/v.lua +0 -1
- package/dist/features/fadeInRemover.lua +3 -2
- package/dist/features/fastReset.lua +7 -5
- package/dist/features/forgottenSwitch.lua +6 -3
- package/dist/features/getCollectibleItemPoolType.d.ts +1 -1
- package/dist/features/getCollectibleItemPoolType.lua +6 -2
- package/dist/features/isPonyActive.lua +5 -2
- package/dist/features/playerInventory.d.ts +1 -1
- package/dist/features/playerInventory.lua +7 -3
- package/dist/features/preventCollectibleRotate.d.ts +1 -1
- package/dist/features/preventCollectibleRotate.lua +9 -4
- package/dist/features/runInNFrames.lua +4 -2
- package/dist/features/saveDataManager/constants.lua +0 -1
- package/dist/features/saveDataManager/exports.d.ts +9 -8
- package/dist/features/saveDataManager/main.lua +11 -9
- package/dist/features/saveDataManager/maps.d.ts +5 -0
- package/dist/features/saveDataManager/merge.d.ts +1 -1
- package/dist/features/saveDataManager/merge.lua +2 -1
- package/dist/features/saveDataManager/serializationBrand.d.ts +1 -0
- package/dist/features/saveDataManager/serializationBrand.lua +17 -0
- package/dist/features/sirenHelpers.d.ts +1 -1
- package/dist/features/sirenHelpers.lua +5 -2
- package/dist/features/taintedLazarusPlayers.lua +6 -3
- package/dist/featuresInitialized.lua +0 -1
- package/dist/functions/array.d.ts +18 -2
- package/dist/functions/array.lua +29 -3
- package/dist/functions/bitwise.lua +0 -1
- package/dist/functions/boss.d.ts +1 -1
- package/dist/functions/boss.lua +12 -9
- package/dist/functions/cacheFlag.d.ts +2 -2
- package/dist/functions/cacheFlag.lua +0 -1
- package/dist/functions/cards.d.ts +9 -17
- package/dist/functions/cards.lua +22 -23
- package/dist/functions/challenges.d.ts +1 -1
- package/dist/functions/challenges.lua +0 -1
- package/dist/functions/character.d.ts +6 -4
- package/dist/functions/character.lua +16 -7
- package/dist/functions/charge.d.ts +1 -1
- package/dist/functions/charge.lua +14 -9
- package/dist/functions/chargeBar.lua +0 -1
- package/dist/functions/collectibleCacheFlag.d.ts +4 -4
- package/dist/functions/collectibleCacheFlag.lua +8 -5
- package/dist/functions/collectibleSet.d.ts +1 -1
- package/dist/functions/collectibleSet.lua +4 -5
- package/dist/functions/collectibleTag.d.ts +1 -2
- package/dist/functions/collectibleTag.lua +12 -10
- package/dist/functions/collectibles.d.ts +21 -28
- package/dist/functions/collectibles.lua +29 -26
- package/dist/functions/color.lua +9 -1
- package/dist/functions/debug.d.ts +12 -0
- package/dist/functions/debug.lua +3 -1
- package/dist/functions/deepCopy.d.ts +1 -1
- package/dist/functions/deepCopy.lua +4 -2
- package/dist/functions/direction.d.ts +4 -0
- package/dist/functions/direction.lua +17 -0
- package/dist/functions/doors.d.ts +12 -16
- package/dist/functions/doors.lua +34 -26
- package/dist/functions/easing.lua +0 -1
- package/dist/functions/entity.d.ts +4 -5
- package/dist/functions/entity.lua +4 -12
- package/dist/functions/entitySpecific.d.ts +35 -33
- package/dist/functions/entitySpecific.lua +20 -19
- package/dist/functions/enums.d.ts +70 -0
- package/dist/functions/enums.lua +71 -0
- package/dist/functions/familiars.d.ts +2 -2
- package/dist/functions/familiars.lua +0 -1
- package/dist/functions/flag.d.ts +42 -10
- package/dist/functions/flag.lua +31 -13
- package/dist/functions/flying.d.ts +2 -2
- package/dist/functions/flying.lua +20 -14
- package/dist/functions/globals.lua +5 -2
- package/dist/functions/gridEntity.d.ts +18 -16
- package/dist/functions/gridEntity.lua +39 -26
- package/dist/functions/input.d.ts +14 -4
- package/dist/functions/input.lua +38 -80
- package/dist/functions/jsonHelpers.d.ts +9 -7
- package/dist/functions/jsonHelpers.lua +0 -1
- package/dist/functions/kColor.lua +14 -3
- package/dist/functions/language.lua +9 -8
- package/dist/functions/log.d.ts +21 -15
- package/dist/functions/log.lua +61 -36
- package/dist/functions/math.d.ts +19 -8
- package/dist/functions/math.lua +33 -22
- package/dist/functions/mergeTests.lua +0 -1
- package/dist/functions/npc.d.ts +1 -1
- package/dist/functions/npc.lua +32 -16
- package/dist/functions/pickups.d.ts +10 -26
- package/dist/functions/pickups.lua +31 -29
- package/dist/functions/pills.d.ts +14 -13
- package/dist/functions/pills.lua +9 -3
- package/dist/functions/player.d.ts +11 -11
- package/dist/functions/player.lua +79 -66
- package/dist/functions/playerHealth.lua +19 -16
- package/dist/functions/playerIndex.d.ts +3 -3
- package/dist/functions/playerIndex.lua +9 -6
- package/dist/functions/pocketItems.d.ts +1 -1
- package/dist/functions/pocketItems.lua +21 -12
- package/dist/functions/positionVelocity.lua +4 -1
- package/dist/functions/random.d.ts +2 -3
- package/dist/functions/random.lua +0 -1
- package/dist/functions/revive.lua +18 -13
- package/dist/functions/roomData.d.ts +2 -2
- package/dist/functions/roomData.lua +11 -13
- package/dist/functions/roomGrid.d.ts +2 -2
- package/dist/functions/roomGrid.lua +0 -1
- package/dist/functions/roomShape.d.ts +2 -2
- package/dist/functions/rooms.d.ts +19 -14
- package/dist/functions/rooms.lua +42 -22
- package/dist/functions/run.d.ts +1 -1
- package/dist/functions/run.lua +3 -2
- package/dist/functions/seeds.d.ts +7 -0
- package/dist/functions/seeds.lua +7 -1
- package/dist/functions/sound.lua +4 -3
- package/dist/functions/spawnCollectible.d.ts +5 -5
- package/dist/functions/spawnCollectible.lua +7 -4
- package/dist/functions/sprite.d.ts +1 -1
- package/dist/functions/sprite.lua +3 -4
- package/dist/functions/stage.d.ts +4 -4
- package/dist/functions/stage.lua +3 -2
- package/dist/functions/string.d.ts +8 -1
- package/dist/functions/string.lua +10 -2
- package/dist/functions/tears.d.ts +4 -4
- package/dist/functions/tears.lua +0 -1
- package/dist/functions/transformations.d.ts +5 -3
- package/dist/functions/transformations.lua +31 -20
- package/dist/functions/trinketCacheFlag.d.ts +1 -1
- package/dist/functions/trinketCacheFlag.lua +8 -6
- package/dist/functions/trinketGive.d.ts +14 -3
- package/dist/functions/trinketGive.lua +46 -28
- package/dist/functions/trinketSet.d.ts +1 -1
- package/dist/functions/trinketSet.lua +4 -5
- package/dist/functions/trinkets.d.ts +8 -17
- package/dist/functions/trinkets.lua +17 -34
- package/dist/functions/ui.lua +7 -5
- package/dist/functions/utils.d.ts +1 -61
- package/dist/functions/utils.lua +3 -50
- package/dist/functions/vector.d.ts +1 -2
- package/dist/functions/vector.lua +8 -6
- package/dist/index.d.ts +4 -6
- package/dist/index.lua +17 -34
- package/dist/initCustomCallbacks.lua +3 -1
- package/dist/initFeatures.lua +0 -1
- package/dist/lualib_bundle.lua +14 -1
- package/dist/maps/cardMap.d.ts +1 -1
- package/dist/maps/characterMap.d.ts +1 -1
- package/dist/maps/collectibleDescriptionMap.d.ts +1 -1
- package/dist/maps/collectibleNameMap.d.ts +1 -1
- package/dist/maps/defaultPlayerStatMap.d.ts +1 -1
- package/dist/maps/defaultPlayerStatMap.lua +8 -6
- package/dist/maps/gridEntityTypeToBrokenStateMap.d.ts +1 -1
- package/dist/maps/gridEntityTypeToBrokenStateMap.lua +19 -12
- package/dist/maps/gridEntityXMLMap.d.ts +1 -1
- package/dist/maps/gridEntityXMLMap.lua +44 -34
- package/dist/maps/pillEffectMap.d.ts +1 -1
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.d.ts +1 -1
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.lua +7 -5
- package/dist/maps/roomTypeMap.d.ts +1 -1
- package/dist/maps/roomTypeMap.lua +37 -35
- package/dist/maps/trinketDescriptionMap.d.ts +1 -1
- package/dist/maps/trinketNameMap.d.ts +1 -1
- package/dist/objects/LRoomShapeToRectangles.d.ts +1 -1
- package/dist/objects/LRoomShapeToRectangles.lua +6 -5
- package/dist/objects/callbackRegisterFunctions.d.ts +2 -2
- package/dist/objects/callbackRegisterFunctions.lua +3 -1
- package/dist/objects/cardDescriptions.d.ts +1 -1
- package/dist/objects/cardDescriptions.lua +89 -90
- package/dist/objects/cardNames.d.ts +1 -1
- package/dist/objects/cardNames.lua +89 -90
- package/dist/objects/cardTypes.d.ts +3 -4
- package/dist/objects/cardTypes.lua +102 -104
- package/dist/objects/challengeNames.d.ts +1 -1
- package/dist/objects/challengeNames.lua +48 -48
- package/dist/objects/characterNames.d.ts +1 -1
- package/dist/objects/characterNames.lua +44 -44
- package/dist/objects/coinSubTypeToValue.d.ts +1 -1
- package/dist/objects/coinSubTypeToValue.lua +10 -8
- package/dist/objects/colors.lua +0 -1
- package/dist/objects/directionNames.d.ts +1 -1
- package/dist/objects/directionNames.lua +2 -1
- package/dist/objects/directionToDegrees.d.ts +1 -1
- package/dist/objects/directionToDegrees.lua +2 -1
- package/dist/objects/directionToVector.d.ts +1 -1
- package/dist/objects/directionToVector.lua +2 -1
- package/dist/objects/doorSlotFlagToDoorSlot.d.ts +5 -0
- package/dist/objects/doorSlotFlagToDoorSlot.lua +16 -0
- package/dist/objects/doorSlotToDirection.d.ts +1 -1
- package/dist/objects/doorSlotToDirection.lua +11 -10
- package/dist/objects/isaacAPIClassTypeToBrand.lua +1 -2
- package/dist/objects/isaacAPIClassTypeToCopyFunction.lua +1 -2
- package/dist/objects/pillEffectClasses.d.ts +3 -4
- package/dist/objects/pillEffectClasses.lua +55 -57
- package/dist/objects/pillEffectNames.d.ts +1 -1
- package/dist/objects/pillEffectNames.lua +52 -53
- package/dist/objects/pillEffectTypes.d.ts +3 -4
- package/dist/objects/pillEffectTypes.lua +54 -56
- package/dist/objects/roomShapeBounds.d.ts +1 -1
- package/dist/objects/roomShapeBounds.lua +14 -16
- package/dist/objects/roomShapeLayoutSizes.d.ts +1 -1
- package/dist/objects/roomShapeLayoutSizes.lua +14 -14
- package/dist/objects/roomShapeToBottomRightPosition.d.ts +1 -1
- package/dist/objects/roomShapeToBottomRightPosition.lua +14 -16
- package/dist/objects/roomShapeToDoorSlots.d.ts +1 -1
- package/dist/objects/roomShapeToDoorSlots.lua +35 -33
- package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.d.ts +2 -2
- package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +68 -66
- package/dist/objects/roomShapeToGridWidth.d.ts +1 -1
- package/dist/objects/roomShapeToGridWidth.lua +14 -14
- package/dist/objects/roomShapeToTopLeftPosition.d.ts +1 -1
- package/dist/objects/roomShapeToTopLeftPosition.lua +14 -14
- package/dist/objects/roomShapeVolumes.d.ts +1 -1
- package/dist/objects/roomShapeVolumes.lua +14 -14
- package/dist/objects/roomTypeNames.d.ts +1 -1
- package/dist/objects/roomTypeNames.lua +32 -32
- package/dist/objects/serializedIsaacAPIClassTypeToIdentityFunction.lua +1 -2
- package/dist/objects/stageTypeToLetter.d.ts +1 -1
- package/dist/objects/stageTypeToLetter.lua +8 -7
- package/dist/objects/transformationNames.d.ts +1 -1
- package/dist/objects/transformationNames.lua +16 -17
- package/dist/patchErrorFunctions.lua +1 -2
- package/dist/sets/LRoomShapesSet.d.ts +1 -1
- package/dist/sets/LRoomShapesSet.lua +3 -1
- package/dist/sets/bossSets.lua +241 -211
- package/dist/sets/charactersThatStartWithAnActiveItemSet.d.ts +1 -1
- package/dist/sets/charactersThatStartWithAnActiveItemSet.lua +13 -11
- package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.d.ts +1 -1
- package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.lua +3 -1
- package/dist/sets/charactersWithFreeDevilDealsSet.d.ts +1 -1
- package/dist/sets/charactersWithFreeDevilDealsSet.lua +3 -1
- package/dist/sets/charactersWithNoRedHeartsSet.d.ts +1 -1
- package/dist/sets/charactersWithNoRedHeartsSet.lua +10 -8
- package/dist/sets/charactersWithNoSoulHeartsSet.d.ts +1 -1
- package/dist/sets/charactersWithNoSoulHeartsSet.lua +7 -5
- package/dist/sets/chestPickupVariantsSet.d.ts +1 -1
- package/dist/sets/chestPickupVariantsSet.lua +14 -12
- package/dist/sets/familiarsThatShootPlayerTearsSet.d.ts +1 -1
- package/dist/sets/familiarsThatShootPlayerTearsSet.lua +2 -0
- package/dist/sets/lostStyleCharactersSet.d.ts +1 -1
- package/dist/sets/lostStyleCharactersSet.lua +7 -5
- package/dist/sets/redHeartSubTypesSet.d.ts +1 -1
- package/dist/sets/redHeartSubTypesSet.lua +3 -1
- package/dist/sets/sinEntityTypesSet.d.ts +1 -1
- package/dist/sets/sinEntityTypesSet.lua +9 -7
- package/dist/sets/singleUseActiveCollectibleTypesSet.d.ts +1 -1
- package/dist/sets/singleUseActiveCollectibleTypesSet.lua +10 -8
- package/dist/sets/storyBossesSet.d.ts +1 -1
- package/dist/sets/storyBossesSet.lua +15 -13
- package/dist/types/AddCallbackParameterCustom.d.ts +123 -0
- package/dist/types/AddCallbackParameterCustom.lua +4 -0
- package/dist/types/AddCallbackParametersCustom.d.ts +120 -277
- package/dist/types/AnyEntity.lua +0 -1
- package/dist/types/CollectibleIndex.lua +0 -1
- package/dist/types/EntityTypeNonNPC.lua +0 -1
- package/dist/types/JSONDoor.lua +0 -1
- package/dist/types/JSONEntity.lua +0 -1
- package/dist/types/JSONRoom.lua +0 -1
- package/dist/types/JSONRooms.lua +0 -1
- package/dist/types/JSONSpawn.lua +0 -1
- package/dist/types/PickingUpItem.d.ts +1 -1
- package/dist/types/PickingUpItem.lua +5 -3
- package/dist/types/PlayerHealth.d.ts +1 -1
- package/dist/types/PlayerHealth.lua +0 -1
- package/dist/types/PlayerIndex.lua +0 -1
- package/dist/types/PocketItemDescription.d.ts +1 -1
- package/dist/types/PocketItemDescription.lua +0 -1
- package/dist/types/Primitive.lua +0 -1
- package/dist/types/TrinketSituation.d.ts +1 -1
- package/dist/types/TrinketSituation.lua +0 -1
- package/dist/types/private/IsaacAPIClass.lua +0 -1
- package/dist/types/private/SaveData.lua +0 -1
- package/dist/types/private/SerializedIsaacAPIClass.lua +0 -1
- package/dist/types/private/TSTLClass.lua +0 -1
- package/dist/types/private/TSTLClassMetatable.lua +0 -1
- package/dist/upgradeMod.d.ts +1 -1
- package/package.json +9 -6
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
1
|
local ____exports = {}
|
|
2
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
|
+
local LanguageAbbreviation = ____isaac_2Dtypescript_2Ddefinitions.LanguageAbbreviation
|
|
3
4
|
local LANGUAGE_NAMES = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
[LanguageAbbreviation.ENGLISH] = "English",
|
|
6
|
+
[LanguageAbbreviation.JAPANESE] = "Japanese",
|
|
7
|
+
[LanguageAbbreviation.KOREAN] = "Korean",
|
|
8
|
+
[LanguageAbbreviation.CHINESE_SIMPLE] = "Chinese (Simple)",
|
|
9
|
+
[LanguageAbbreviation.RUSSIAN] = "Russian",
|
|
10
|
+
[LanguageAbbreviation.GERMAN] = "German",
|
|
11
|
+
[LanguageAbbreviation.SPANISH] = "Spanish"
|
|
11
12
|
}
|
|
12
13
|
function ____exports.getLanguageName(self)
|
|
13
14
|
local languageAbbreviation = Options.Language
|
package/dist/functions/log.d.ts
CHANGED
|
@@ -1,49 +1,54 @@
|
|
|
1
|
-
/// <reference types="isaac-typescript-definitions" />
|
|
2
1
|
/// <reference types="typescript-to-lua/language-extensions" />
|
|
2
|
+
import { DamageFlag, EntityFlag, EntityType, GridEntityType, ProjectileFlag, TearFlag, UseFlag } from "isaac-typescript-definitions";
|
|
3
3
|
/**
|
|
4
4
|
* Helper function to prefix the name of the function and the line number before a debug message.
|
|
5
5
|
*/
|
|
6
6
|
export declare function getDebugPrependString(msg: string, numParentFunctions?: number): string;
|
|
7
7
|
/**
|
|
8
|
-
* Helper function to avoid typing out `Isaac.DebugString()`.
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* Helper function to avoid typing out `Isaac.DebugString()`.
|
|
9
|
+
*
|
|
10
|
+
* If you have the "--luadebug" launch flag turned on or the Racing+ sandbox enabled, then this
|
|
11
|
+
* function will also prepend the function name and the line number before the string.
|
|
11
12
|
*/
|
|
12
13
|
export declare function log(this: void, msg: string): void;
|
|
13
14
|
export declare function logArray<T>(this: void, array: T[]): void;
|
|
14
15
|
export declare function logColor(this: void, color: Color): void;
|
|
15
16
|
/** Helper function for printing out every damage flag that is turned on. Useful when debugging. */
|
|
16
|
-
export declare function logDamageFlags(this: void, flags:
|
|
17
|
+
export declare function logDamageFlags(this: void, flags: DamageFlag | BitFlags<DamageFlag>): void;
|
|
17
18
|
export declare function logEffects(this: void, player: EntityPlayer): void;
|
|
18
19
|
/** Helper function for printing out every entity (or filtered entity) in the current room. */
|
|
19
20
|
export declare function logEntities(this: void, includeBackgroundEffects: boolean, entityTypeFilter?: EntityType | int): void;
|
|
20
21
|
/** Helper function for printing out every entity flag that is turned on. Useful when debugging. */
|
|
21
|
-
export declare function logEntityFlags(this: void, flags:
|
|
22
|
+
export declare function logEntityFlags(this: void, flags: EntityFlag | BitFlags<EntityFlag>): void;
|
|
22
23
|
export declare function logEntityID(this: void, entity: Entity): void;
|
|
23
24
|
/**
|
|
24
25
|
* Helper function to log an error message and also print it to the console for better visibility.
|
|
25
|
-
*
|
|
26
|
-
*
|
|
26
|
+
*
|
|
27
|
+
* This is useful in situations where using the `error` function would be dangerous (since it
|
|
28
|
+
* prevents all of the subsequent code in the callback from running).
|
|
27
29
|
*/
|
|
28
30
|
export declare function logError(this: void, msg: string): void;
|
|
29
31
|
/** Helper function for printing out every flag that is turned on. Useful when debugging. */
|
|
30
|
-
export declare function logFlags(this: void, flags:
|
|
32
|
+
export declare function logFlags<T extends BitFlag | BitFlag128>(this: void, flags: T | BitFlags<T>, flagEnum: Record<string, T>, description?: string): void;
|
|
31
33
|
/**
|
|
32
34
|
* Helper function for printing out every game state flag that is turned on. Useful when debugging.
|
|
33
35
|
*/
|
|
34
36
|
export declare function logGameStateFlags(this: void): void;
|
|
35
37
|
/**
|
|
36
|
-
* Helper function for printing out every grid entity (or filtered grid entity) in the current
|
|
37
|
-
* room.
|
|
38
|
+
* Helper function for printing out every grid entity (or filtered grid entity) in the current room.
|
|
38
39
|
*/
|
|
39
40
|
export declare function logGridEntities(this: void, includeWalls: boolean, gridEntityTypeFilter?: GridEntityType | int): void;
|
|
40
41
|
export declare function logKColor(this: void, kColor: KColor): void;
|
|
42
|
+
/**
|
|
43
|
+
* Helper function for printing out every level state flag that is turned on. Useful when debugging.
|
|
44
|
+
*/
|
|
45
|
+
export declare function logLevelStateFlags(this: void): void;
|
|
41
46
|
export declare function logMap(this: void, map: Map<AnyNotNil, unknown>): void;
|
|
42
47
|
export declare function logPlayerHealth(this: void, player: EntityPlayer): void;
|
|
43
48
|
/**
|
|
44
49
|
* Helper function for printing out every projectile flag that is turned on. Useful when debugging.
|
|
45
50
|
*/
|
|
46
|
-
export declare function logProjectileFlags(this: void, flags:
|
|
51
|
+
export declare function logProjectileFlags(this: void, flags: ProjectileFlag | BitFlags<ProjectileFlag>): void;
|
|
47
52
|
/** Helper function for logging information about the current room. */
|
|
48
53
|
export declare function logRoom(this: void): void;
|
|
49
54
|
/**
|
|
@@ -56,9 +61,9 @@ export declare function logSet(this: void, set: Set<AnyNotNil>): void;
|
|
|
56
61
|
export declare function logSounds(this: void): void;
|
|
57
62
|
export declare function logTable(this: void, table: unknown, parentTables?: number): void;
|
|
58
63
|
/** Helper function for printing out every tear flag that is turned on. Useful when debugging. */
|
|
59
|
-
export declare function logTearFlags(this: void, flags:
|
|
64
|
+
export declare function logTearFlags(this: void, flags: TearFlag | BitFlags<TearFlag>): void;
|
|
60
65
|
/** Helper function for printing out every use flag that is turned on. Useful when debugging. */
|
|
61
|
-
export declare function logUseFlags(this: void, flags:
|
|
66
|
+
export declare function logUseFlags(this: void, flags: UseFlag | BitFlags<UseFlag>): void;
|
|
62
67
|
/**
|
|
63
68
|
* Helper function to enumerate all of the properties of a "userdata" object (i.e. an object from
|
|
64
69
|
* the Isaac API).
|
|
@@ -67,6 +72,7 @@ export declare function logUserdata(this: void, userdata: unknown): void;
|
|
|
67
72
|
export declare function logVector(this: void, vector: Vector, round?: boolean): void;
|
|
68
73
|
/**
|
|
69
74
|
* Converts every `isaacscript-common` function that begins with "log" to a global function.
|
|
70
|
-
*
|
|
75
|
+
*
|
|
76
|
+
* This is useful when printing out variables from the in-game debug console.
|
|
71
77
|
*/
|
|
72
78
|
export declare function setLogFunctionsGlobal(): void;
|
package/dist/functions/log.lua
CHANGED
|
@@ -6,6 +6,19 @@ local Map = ____lualib.Map
|
|
|
6
6
|
local __TS__Spread = ____lualib.__TS__Spread
|
|
7
7
|
local __TS__ArraySort = ____lualib.__TS__ArraySort
|
|
8
8
|
local ____exports = {}
|
|
9
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
10
|
+
local DamageFlag = ____isaac_2Dtypescript_2Ddefinitions.DamageFlag
|
|
11
|
+
local EffectVariant = ____isaac_2Dtypescript_2Ddefinitions.EffectVariant
|
|
12
|
+
local EntityFlag = ____isaac_2Dtypescript_2Ddefinitions.EntityFlag
|
|
13
|
+
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
14
|
+
local GameStateFlag = ____isaac_2Dtypescript_2Ddefinitions.GameStateFlag
|
|
15
|
+
local GridEntityType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityType
|
|
16
|
+
local LevelStateFlag = ____isaac_2Dtypescript_2Ddefinitions.LevelStateFlag
|
|
17
|
+
local ProjectileFlag = ____isaac_2Dtypescript_2Ddefinitions.ProjectileFlag
|
|
18
|
+
local SeedEffect = ____isaac_2Dtypescript_2Ddefinitions.SeedEffect
|
|
19
|
+
local SoundEffect = ____isaac_2Dtypescript_2Ddefinitions.SoundEffect
|
|
20
|
+
local TearFlag = ____isaac_2Dtypescript_2Ddefinitions.TearFlag
|
|
21
|
+
local UseFlag = ____isaac_2Dtypescript_2Ddefinitions.UseFlag
|
|
9
22
|
local ____cachedClasses = require("cachedClasses")
|
|
10
23
|
local game = ____cachedClasses.game
|
|
11
24
|
local sfxManager = ____cachedClasses.sfxManager
|
|
@@ -16,14 +29,14 @@ local getCollectibleName = ____collectibles.getCollectibleName
|
|
|
16
29
|
local ____entity = require("functions.entity")
|
|
17
30
|
local getEntities = ____entity.getEntities
|
|
18
31
|
local getEntityID = ____entity.getEntityID
|
|
32
|
+
local ____enums = require("functions.enums")
|
|
33
|
+
local getEnumEntries = ____enums.getEnumEntries
|
|
19
34
|
local ____flag = require("functions.flag")
|
|
20
35
|
local hasFlag = ____flag.hasFlag
|
|
21
36
|
local ____gridEntity = require("functions.gridEntity")
|
|
22
37
|
local getGridEntities = ____gridEntity.getGridEntities
|
|
23
38
|
local ____isaacAPIClass = require("functions.isaacAPIClass")
|
|
24
39
|
local getIsaacAPIClassType = ____isaacAPIClass.getIsaacAPIClassType
|
|
25
|
-
local ____math = require("functions.math")
|
|
26
|
-
local range = ____math.range
|
|
27
40
|
local ____player = require("functions.player")
|
|
28
41
|
local getEffectsList = ____player.getEffectsList
|
|
29
42
|
local getPlayerName = ____player.getPlayerName
|
|
@@ -65,31 +78,17 @@ function ____exports.logFlags(flags, flagEnum, description)
|
|
|
65
78
|
description = ""
|
|
66
79
|
end
|
|
67
80
|
if description ~= "" then
|
|
68
|
-
description =
|
|
81
|
+
description = "flag"
|
|
69
82
|
end
|
|
70
|
-
|
|
71
|
-
flagEnum = {}
|
|
72
|
-
do
|
|
73
|
-
local i = 0
|
|
74
|
-
while i <= 62 do
|
|
75
|
-
flagEnum["1 << " .. tostring(i)] = 1 << i
|
|
76
|
-
i = i + 1
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
end
|
|
80
|
-
____exports.log(((("Logging " .. description) .. "flags for value ") .. tostring(flags)) .. ":")
|
|
83
|
+
____exports.log((("Logging " .. description) .. " values for: ") .. tostring(flags))
|
|
81
84
|
local hasNoFlags = true
|
|
82
|
-
for
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
____exports.log((((" Has flag: " .. tostring(key)) .. " (") .. tostring(value)) .. ")")
|
|
89
|
-
hasNoFlags = false
|
|
90
|
-
end
|
|
85
|
+
for ____, ____value in ipairs(getEnumEntries(nil, flagEnum)) do
|
|
86
|
+
local key = ____value[1]
|
|
87
|
+
local value = ____value[2]
|
|
88
|
+
if hasFlag(nil, flags, value) then
|
|
89
|
+
____exports.log((((" Has flag: " .. key) .. " (") .. tostring(value)) .. ")")
|
|
90
|
+
hasNoFlags = false
|
|
91
91
|
end
|
|
92
|
-
::__continue43::
|
|
93
92
|
end
|
|
94
93
|
if hasNoFlags then
|
|
95
94
|
____exports.log(" n/a (no flags)")
|
|
@@ -158,7 +157,7 @@ function ____exports.logEntities(includeBackgroundEffects, entityTypeFilter)
|
|
|
158
157
|
if entityTypeFilter ~= nil and entity.Type ~= entityTypeFilter then
|
|
159
158
|
return
|
|
160
159
|
end
|
|
161
|
-
if not includeBackgroundEffects and entity.Type == EntityType.
|
|
160
|
+
if not includeBackgroundEffects and entity.Type == EntityType.EFFECT and IGNORE_EFFECT_VARIANTS:has(entity.Variant) then
|
|
162
161
|
return
|
|
163
162
|
end
|
|
164
163
|
local entityID = getEntityID(nil, entity)
|
|
@@ -240,12 +239,14 @@ function ____exports.logError(msg)
|
|
|
240
239
|
end
|
|
241
240
|
function ____exports.logGameStateFlags()
|
|
242
241
|
____exports.log("Logging game state flags:")
|
|
242
|
+
local gameStateFlagEntries = getEnumEntries(nil, GameStateFlag)
|
|
243
243
|
local hasNoFlags = true
|
|
244
|
-
for
|
|
245
|
-
local
|
|
244
|
+
for ____, ____value in ipairs(gameStateFlagEntries) do
|
|
245
|
+
local key = ____value[1]
|
|
246
|
+
local gameStateFlag = ____value[2]
|
|
246
247
|
local flagValue = game:GetStateFlag(gameStateFlag)
|
|
247
248
|
if flagValue then
|
|
248
|
-
____exports.log((((" Has flag: " .. key) .. " (") .. tostring(
|
|
249
|
+
____exports.log((((" Has flag: " .. key) .. " (") .. tostring(gameStateFlag)) .. ")")
|
|
249
250
|
hasNoFlags = false
|
|
250
251
|
end
|
|
251
252
|
end
|
|
@@ -273,7 +274,7 @@ function ____exports.logGridEntities(includeWalls, gridEntityTypeFilter)
|
|
|
273
274
|
if gridEntityTypeFilter ~= nil and gridEntityType ~= gridEntityTypeFilter then
|
|
274
275
|
return
|
|
275
276
|
end
|
|
276
|
-
if not includeWalls and gridEntityType == GridEntityType.
|
|
277
|
+
if not includeWalls and gridEntityType == GridEntityType.WALL and gridEntityTypeFilter ~= GridEntityType.WALL then
|
|
277
278
|
return
|
|
278
279
|
end
|
|
279
280
|
msg = msg .. (((((tostring(gridEntityIndex) .. ") ") .. tostring(gridEntityType)) .. ".") .. tostring(gridEntityVariant)) .. ".") .. tostring(gridEntity.State)
|
|
@@ -328,6 +329,24 @@ end
|
|
|
328
329
|
function ____exports.logKColor(kColor)
|
|
329
330
|
____exports.log((((((("Color: R" .. tostring(kColor.Red)) .. ", G") .. tostring(kColor.Green)) .. ", B") .. tostring(kColor.Blue)) .. ", A") .. tostring(kColor.Alpha))
|
|
330
331
|
end
|
|
332
|
+
function ____exports.logLevelStateFlags()
|
|
333
|
+
local level = game:GetLevel()
|
|
334
|
+
local levelStateFlagEntries = getEnumEntries(nil, LevelStateFlag)
|
|
335
|
+
____exports.log("Logging level state flags:")
|
|
336
|
+
local hasNoFlags = true
|
|
337
|
+
for ____, ____value in ipairs(levelStateFlagEntries) do
|
|
338
|
+
local key = ____value[1]
|
|
339
|
+
local levelStateFlag = ____value[2]
|
|
340
|
+
local flagValue = level:GetStateFlag(levelStateFlag)
|
|
341
|
+
if flagValue then
|
|
342
|
+
____exports.log((((" Has flag: " .. key) .. " (") .. tostring(levelStateFlag)) .. ")")
|
|
343
|
+
hasNoFlags = false
|
|
344
|
+
end
|
|
345
|
+
end
|
|
346
|
+
if hasNoFlags then
|
|
347
|
+
____exports.log(" n/a (no flags)")
|
|
348
|
+
end
|
|
349
|
+
end
|
|
331
350
|
function ____exports.logMap(map)
|
|
332
351
|
____exports.log("Printing out a TSTL Map:")
|
|
333
352
|
local mapKeys = {__TS__Spread(map:keys())}
|
|
@@ -355,7 +374,7 @@ function ____exports.logPlayerHealth(player)
|
|
|
355
374
|
____exports.log((" Soul heart types: [" .. table.concat(playerHealth.soulHeartTypes, ",")) .. "]")
|
|
356
375
|
end
|
|
357
376
|
function ____exports.logProjectileFlags(flags)
|
|
358
|
-
____exports.logFlags(flags,
|
|
377
|
+
____exports.logFlags(flags, ProjectileFlag, "projectile")
|
|
359
378
|
end
|
|
360
379
|
function ____exports.logRoom()
|
|
361
380
|
local roomGridIndex = getRoomGridIndex(nil)
|
|
@@ -373,12 +392,14 @@ function ____exports.logRoom()
|
|
|
373
392
|
end
|
|
374
393
|
function ____exports.logSeedEffects()
|
|
375
394
|
local seeds = game:GetSeeds()
|
|
395
|
+
local seedEffectEntries = getEnumEntries(nil, SeedEffect)
|
|
376
396
|
____exports.log("Logging seed effects:")
|
|
377
397
|
local hasNoSeedEffects = true
|
|
378
|
-
for
|
|
379
|
-
local
|
|
398
|
+
for ____, ____value in ipairs(seedEffectEntries) do
|
|
399
|
+
local key = ____value[1]
|
|
400
|
+
local seedEffect = ____value[2]
|
|
380
401
|
if seeds:HasSeedEffect(seedEffect) then
|
|
381
|
-
____exports.log((((" " .. key) .. " (") .. tostring(
|
|
402
|
+
____exports.log((((" " .. key) .. " (") .. tostring(seedEffect)) .. ")")
|
|
382
403
|
hasNoSeedEffects = false
|
|
383
404
|
end
|
|
384
405
|
end
|
|
@@ -395,9 +416,12 @@ function ____exports.logSet(set)
|
|
|
395
416
|
____exports.log("The size of the set was: " .. tostring(set.size))
|
|
396
417
|
end
|
|
397
418
|
function ____exports.logSounds()
|
|
398
|
-
|
|
419
|
+
local soundEffects = getEnumEntries(nil, SoundEffect)
|
|
420
|
+
for ____, ____value in ipairs(soundEffects) do
|
|
421
|
+
local key = ____value[1]
|
|
422
|
+
local soundEffect = ____value[2]
|
|
399
423
|
if sfxManager:IsPlaying(soundEffect) then
|
|
400
|
-
____exports.log("Currently playing sound effect: " .. tostring(soundEffect))
|
|
424
|
+
____exports.log(((("Currently playing sound effect: " .. key) .. " (") .. tostring(soundEffect)) .. ")")
|
|
401
425
|
end
|
|
402
426
|
end
|
|
403
427
|
end
|
|
@@ -433,7 +457,7 @@ function ____exports.logTable(____table, parentTables)
|
|
|
433
457
|
____exports.log("The size of the table was: " .. tostring(numKeys))
|
|
434
458
|
end
|
|
435
459
|
function ____exports.logTearFlags(flags)
|
|
436
|
-
____exports.logFlags(flags,
|
|
460
|
+
____exports.logFlags(flags, TearFlag, "tear")
|
|
437
461
|
end
|
|
438
462
|
function ____exports.logUseFlags(flags)
|
|
439
463
|
____exports.logFlags(flags, UseFlag, "use")
|
|
@@ -479,6 +503,7 @@ function ____exports.setLogFunctionsGlobal(self)
|
|
|
479
503
|
globals.logGameStateFlags = ____exports.logGameStateFlags
|
|
480
504
|
globals.logGridEntities = ____exports.logGridEntities
|
|
481
505
|
globals.logKColor = ____exports.logKColor
|
|
506
|
+
globals.logLevelStateFlags = ____exports.logLevelStateFlags
|
|
482
507
|
globals.logMap = ____exports.logMap
|
|
483
508
|
globals.logPlayerHealth = ____exports.logPlayerHealth
|
|
484
509
|
globals.logProjectileFlags = ____exports.logProjectileFlags
|
package/dist/functions/math.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Direction } from "isaac-typescript-definitions";
|
|
2
|
+
/**
|
|
3
|
+
* Helper function to return an array with the elements from start to end. It is inclusive at the
|
|
4
|
+
* start and exclusive at the end. (The "e" stands for exclusive.)
|
|
5
|
+
*
|
|
6
|
+
* For example, `erange(1, 3)` will return `[1, 2]`.
|
|
7
|
+
*
|
|
8
|
+
* If only one argument is specified, then it will assume that the start is 0.
|
|
9
|
+
*/
|
|
10
|
+
export declare function erange(start: int, end?: int): int[];
|
|
3
11
|
export declare function getAngleDifference(angle1: float, angle2: float): float;
|
|
4
12
|
/**
|
|
5
13
|
* Helper function to get an array of equidistant points on the circumference around a circle.
|
|
@@ -21,6 +29,15 @@ export declare function getCircleDiscretizedPoints(centerPos: Vector, radius: fl
|
|
|
21
29
|
* the rectangle.
|
|
22
30
|
*/
|
|
23
31
|
export declare function inRectangle(position: Vector, topLeft: Vector, bottomRight: Vector): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Helper function to return an array with the elements from start to end, inclusive. (The "i"
|
|
34
|
+
* stands for inclusive.)
|
|
35
|
+
*
|
|
36
|
+
* For example, `irange(1, 3)` will return `[1, 2, 3]`.
|
|
37
|
+
*
|
|
38
|
+
* If only one argument is specified, then it will assume that the start is 0.
|
|
39
|
+
*/
|
|
40
|
+
export declare function irange(start: int, end?: int): int[];
|
|
24
41
|
/**
|
|
25
42
|
* From: https://www.geeksforgeeks.org/check-if-any-point-overlaps-the-given-circle-and-rectangle/
|
|
26
43
|
*/
|
|
@@ -29,12 +46,6 @@ export declare function isEven(num: int): boolean;
|
|
|
29
46
|
export declare function isOdd(num: int): boolean;
|
|
30
47
|
export declare function lerp(a: number, b: number, pos: float): number;
|
|
31
48
|
export declare function lerpAngleDegrees(aStart: number, aEnd: number, percent: float): number;
|
|
32
|
-
/**
|
|
33
|
-
* Helper function to return an array with the elements from start to end, inclusive.
|
|
34
|
-
*
|
|
35
|
-
* If only one argument is specified, then it will assume that the start is 0.
|
|
36
|
-
*/
|
|
37
|
-
export declare function range(start: int, end?: int): int[];
|
|
38
49
|
/**
|
|
39
50
|
* If rounding fails, this function returns 0.
|
|
40
51
|
* From: http://lua-users.org/wiki/SimpleRound
|
package/dist/functions/math.lua
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
1
|
local ____exports = {}
|
|
3
|
-
local
|
|
4
|
-
local
|
|
5
|
-
local
|
|
6
|
-
local directionToVector =
|
|
7
|
-
function ____exports.
|
|
8
|
-
|
|
2
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
|
+
local Direction = ____isaac_2Dtypescript_2Ddefinitions.Direction
|
|
4
|
+
local ____direction = require("functions.direction")
|
|
5
|
+
local directionToVector = ____direction.directionToVector
|
|
6
|
+
function ____exports.erange(self, start, ____end)
|
|
7
|
+
if ____end == nil then
|
|
8
|
+
____end = start
|
|
9
|
+
start = 0
|
|
10
|
+
end
|
|
11
|
+
local array = {}
|
|
12
|
+
do
|
|
13
|
+
local i = start
|
|
14
|
+
while i < ____end do
|
|
15
|
+
array[#array + 1] = i
|
|
16
|
+
i = i + 1
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
return array
|
|
9
20
|
end
|
|
10
21
|
function ____exports.getAngleDifference(self, angle1, angle2)
|
|
11
22
|
local subtractedAngle = angle1 - angle2
|
|
@@ -40,6 +51,21 @@ end
|
|
|
40
51
|
function ____exports.inRectangle(self, position, topLeft, bottomRight)
|
|
41
52
|
return position.X >= topLeft.X and position.X <= bottomRight.X and position.Y >= topLeft.Y and position.Y <= bottomRight.Y
|
|
42
53
|
end
|
|
54
|
+
function ____exports.irange(self, start, ____end)
|
|
55
|
+
if ____end == nil then
|
|
56
|
+
____end = start
|
|
57
|
+
start = 0
|
|
58
|
+
end
|
|
59
|
+
local array = {}
|
|
60
|
+
do
|
|
61
|
+
local i = start
|
|
62
|
+
while i <= ____end do
|
|
63
|
+
array[#array + 1] = i
|
|
64
|
+
i = i + 1
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
return array
|
|
68
|
+
end
|
|
43
69
|
function ____exports.isCircleIntersectingRectangle(self, circleCenter, circleRadius, rectangleTopLeft, rectangleBottomRight)
|
|
44
70
|
local nearestX = math.max(
|
|
45
71
|
rectangleTopLeft.X,
|
|
@@ -65,21 +91,6 @@ end
|
|
|
65
91
|
function ____exports.lerpAngleDegrees(self, aStart, aEnd, percent)
|
|
66
92
|
return aStart + ____exports.getAngleDifference(nil, aStart, aEnd) * percent
|
|
67
93
|
end
|
|
68
|
-
function ____exports.range(self, start, ____end)
|
|
69
|
-
if ____end == nil then
|
|
70
|
-
____end = start
|
|
71
|
-
start = 0
|
|
72
|
-
end
|
|
73
|
-
local array = {}
|
|
74
|
-
do
|
|
75
|
-
local i = start
|
|
76
|
-
while i <= ____end do
|
|
77
|
-
array[#array + 1] = i
|
|
78
|
-
i = i + 1
|
|
79
|
-
end
|
|
80
|
-
end
|
|
81
|
-
return array
|
|
82
|
-
end
|
|
83
94
|
function ____exports.round(self, num, numDecimalPlaces)
|
|
84
95
|
if numDecimalPlaces == nil then
|
|
85
96
|
numDecimalPlaces = 0
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
1
|
local ____exports = {}
|
|
3
2
|
local oldTableHasUpdatedValue, newTableHasSameValue, oldTableHasUpdatedValueFromNull, oldTableHasSerializedIsaacAPIClass, oldTableHasFilledInterface, oldTableHasVector, oldTableHasVectorSerialized, oldTableHasRNG, oldTableHasRNGSerialized
|
|
4
3
|
local ____SerializationType = require("enums.SerializationType")
|
package/dist/functions/npc.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { EntityType, ProjectilesMode } from "isaac-typescript-definitions";
|
|
2
2
|
/**
|
|
3
3
|
* Helper function to make an NPC fire a projectile. Returns the fired projectile. Use this function
|
|
4
4
|
* instead of the `EntityNPC.FireProjectiles` method, since that returns void.
|
package/dist/functions/npc.lua
CHANGED
|
@@ -4,6 +4,22 @@ local __TS__New = ____lualib.__TS__New
|
|
|
4
4
|
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
5
5
|
local ____exports = {}
|
|
6
6
|
local NON_ALIVE_NPCS_TYPE_VARIANT, NON_ALIVE_NPCS_TYPE_VARIANT_SUBTYPE
|
|
7
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
8
|
+
local BegottenVariant = ____isaac_2Dtypescript_2Ddefinitions.BegottenVariant
|
|
9
|
+
local BigHornVariant = ____isaac_2Dtypescript_2Ddefinitions.BigHornVariant
|
|
10
|
+
local ChargerSubType = ____isaac_2Dtypescript_2Ddefinitions.ChargerSubType
|
|
11
|
+
local ChargerVariant = ____isaac_2Dtypescript_2Ddefinitions.ChargerVariant
|
|
12
|
+
local DarkEsauVariant = ____isaac_2Dtypescript_2Ddefinitions.DarkEsauVariant
|
|
13
|
+
local DeathVariant = ____isaac_2Dtypescript_2Ddefinitions.DeathVariant
|
|
14
|
+
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
15
|
+
local MamaGurdyVariant = ____isaac_2Dtypescript_2Ddefinitions.MamaGurdyVariant
|
|
16
|
+
local MotherSubType = ____isaac_2Dtypescript_2Ddefinitions.MotherSubType
|
|
17
|
+
local MotherVariant = ____isaac_2Dtypescript_2Ddefinitions.MotherVariant
|
|
18
|
+
local NpcState = ____isaac_2Dtypescript_2Ddefinitions.NpcState
|
|
19
|
+
local PeepVariant = ____isaac_2Dtypescript_2Ddefinitions.PeepVariant
|
|
20
|
+
local ProjectilesMode = ____isaac_2Dtypescript_2Ddefinitions.ProjectilesMode
|
|
21
|
+
local RaglingVariant = ____isaac_2Dtypescript_2Ddefinitions.RaglingVariant
|
|
22
|
+
local VisVariant = ____isaac_2Dtypescript_2Ddefinitions.VisVariant
|
|
7
23
|
local ____constants = require("constants")
|
|
8
24
|
local EGGY_STATE_FRAME_OF_FINAL_SPIDER = ____constants.EGGY_STATE_FRAME_OF_FINAL_SPIDER
|
|
9
25
|
local ____entity = require("functions.entity")
|
|
@@ -29,37 +45,37 @@ function ____exports.isAliveExceptionNPC(self, npc)
|
|
|
29
45
|
return false
|
|
30
46
|
end
|
|
31
47
|
function ____exports.isDyingEggyWithNoSpidersLeft(self, npc)
|
|
32
|
-
return npc.State == NpcState.
|
|
48
|
+
return npc.State == NpcState.SUICIDE and npc.StateFrame >= EGGY_STATE_FRAME_OF_FINAL_SPIDER
|
|
33
49
|
end
|
|
34
50
|
function ____exports.isRaglingDeathPatch(self, npc)
|
|
35
|
-
return npc.Type == EntityType.
|
|
51
|
+
return npc.Type == EntityType.RAGLING and npc.Variant == RaglingVariant.RAG_MANS_RAGLING and npc.State == NpcState.SPECIAL
|
|
36
52
|
end
|
|
37
53
|
NON_ALIVE_NPCS_TYPE_VARIANT = __TS__New(
|
|
38
54
|
Set,
|
|
39
55
|
{
|
|
40
|
-
(tostring(EntityType.
|
|
41
|
-
(tostring(EntityType.
|
|
42
|
-
(tostring(EntityType.
|
|
43
|
-
(tostring(EntityType.
|
|
44
|
-
(tostring(EntityType.
|
|
45
|
-
(tostring(EntityType.
|
|
46
|
-
(tostring(EntityType.
|
|
47
|
-
(tostring(EntityType.
|
|
48
|
-
(tostring(EntityType.
|
|
49
|
-
(tostring(EntityType.
|
|
50
|
-
(tostring(EntityType.
|
|
56
|
+
(tostring(EntityType.VIS) .. ".") .. tostring(VisVariant.CHUBBER_PROJECTILE),
|
|
57
|
+
(tostring(EntityType.DEATH) .. ".") .. tostring(DeathVariant.DEATH_SCYTHE),
|
|
58
|
+
(tostring(EntityType.PEEP) .. ".") .. tostring(PeepVariant.PEEP_EYE),
|
|
59
|
+
(tostring(EntityType.PEEP) .. ".") .. tostring(PeepVariant.BLOAT_EYE),
|
|
60
|
+
(tostring(EntityType.BEGOTTEN) .. ".") .. tostring(BegottenVariant.BEGOTTEN_CHAIN),
|
|
61
|
+
(tostring(EntityType.MAMA_GURDY) .. ".") .. tostring(MamaGurdyVariant.LEFT_HAND),
|
|
62
|
+
(tostring(EntityType.MAMA_GURDY) .. ".") .. tostring(MamaGurdyVariant.RIGHT_HAND),
|
|
63
|
+
(tostring(EntityType.BIG_HORN) .. ".") .. tostring(BigHornVariant.SMALL_HOLE),
|
|
64
|
+
(tostring(EntityType.BIG_HORN) .. ".") .. tostring(BigHornVariant.BIG_HOLE),
|
|
65
|
+
(tostring(EntityType.DARK_ESAU) .. ".") .. tostring(DarkEsauVariant.DARK_ESAU),
|
|
66
|
+
(tostring(EntityType.DARK_ESAU) .. ".") .. tostring(DarkEsauVariant.PIT)
|
|
51
67
|
}
|
|
52
68
|
)
|
|
53
69
|
NON_ALIVE_NPCS_TYPE_VARIANT_SUBTYPE = __TS__New(
|
|
54
70
|
Set,
|
|
55
71
|
{
|
|
56
|
-
(((tostring(EntityType.
|
|
57
|
-
(((tostring(EntityType.
|
|
72
|
+
(((tostring(EntityType.CHARGER) .. ".") .. tostring(ChargerVariant.CHARGER)) .. ".") .. tostring(ChargerSubType.MY_SHADOW),
|
|
73
|
+
(((tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_1)) .. ".") .. tostring(MotherSubType.PHASE_2)
|
|
58
74
|
}
|
|
59
75
|
)
|
|
60
76
|
function ____exports.fireProjectiles(self, npc, position, velocity, projectilesMode, projectileParams)
|
|
61
77
|
if projectilesMode == nil then
|
|
62
|
-
projectilesMode =
|
|
78
|
+
projectilesMode = ProjectilesMode.ONE_PROJECTILE
|
|
63
79
|
end
|
|
64
80
|
if projectileParams == nil then
|
|
65
81
|
projectileParams = ProjectileParams()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { BatterySubType, Card, CoinSubType, CollectibleType, HeartSubType, KeySubType, PillColor, SackSubType, TrinketType } from "isaac-typescript-definitions";
|
|
2
2
|
/** Helper function to get all of the battery entities in the room. */
|
|
3
3
|
export declare function getBatteries(matchingSubType?: number): EntityPickup[];
|
|
4
4
|
/** Helper function to get all of the card entities in the room. */
|
|
@@ -101,50 +101,34 @@ export declare function removeAllSacks(sackSubType?: SackSubType | int, cap?: in
|
|
|
101
101
|
*/
|
|
102
102
|
export declare function removeAllTrinkets(trinketType?: TrinketType | int, cap?: int): boolean;
|
|
103
103
|
/**
|
|
104
|
-
* Helper function to spawn a `EntityType.
|
|
105
|
-
* `PickupVariant.PICKUP_LIL_BATTERY` (90).
|
|
104
|
+
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.LIL_BATTERY` (90).
|
|
106
105
|
*/
|
|
107
106
|
export declare function spawnBattery(subType: BatterySubType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
108
107
|
export declare function spawnBatteryWithSeed(subType: BatterySubType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
109
108
|
/**
|
|
110
|
-
* Helper function to spawn a `EntityType.
|
|
111
|
-
* `PickupVariant.PICKUP_TAROTCARD` (300).
|
|
109
|
+
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.TAROT_CARD` (300).
|
|
112
110
|
*/
|
|
113
111
|
export declare function spawnCard(subType: Card | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
114
112
|
export declare function spawnCardWithSeed(subType: Card | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
115
|
-
/**
|
|
116
|
-
* Helper function to spawn a `EntityType.ENTITY_PICKUP` (5) with variant
|
|
117
|
-
* `PickupVariant.PICKUP_COIN` (20).
|
|
118
|
-
*/
|
|
113
|
+
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.COIN` (20). */
|
|
119
114
|
export declare function spawnCoin(subType: CoinSubType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
120
115
|
export declare function spawnCoinWithSeed(subType: CoinSubType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
121
|
-
/**
|
|
122
|
-
* Helper function to spawn a `EntityType.ENTITY_PICKUP` (5) with variant
|
|
123
|
-
* `PickupVariant.PICKUP_HEART` (10).
|
|
124
|
-
*/
|
|
116
|
+
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.HEART` (10). */
|
|
125
117
|
export declare function spawnHeart(subType: HeartSubType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
126
118
|
export declare function spawnHeartWithSeed(subType: HeartSubType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
127
|
-
/**
|
|
128
|
-
* Helper function to spawn a `EntityType.ENTITY_PICKUP` (5) with variant
|
|
129
|
-
* `PickupVariant.PICKUP_KEY` (30).
|
|
130
|
-
*/
|
|
119
|
+
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.KEY` (30). */
|
|
131
120
|
export declare function spawnKey(subType: KeySubType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
132
121
|
export declare function spawnKeyWithSeed(subType: KeySubType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
133
|
-
/**
|
|
134
|
-
|
|
135
|
-
* `PickupVariant.PICKUP_PILL` (70).
|
|
136
|
-
*/
|
|
137
|
-
export declare function spawnPill(subType: PillColor | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
122
|
+
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.PILL` (70). */
|
|
123
|
+
export declare function spawnPill(pillColor: PillColor | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
138
124
|
export declare function spawnPillWithSeed(subType: PillColor | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
139
125
|
/**
|
|
140
|
-
* Helper function to spawn a `EntityType.
|
|
141
|
-
* `PickupVariant.PICKUP_GRAB_BAG` (69).
|
|
126
|
+
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.GRAB_BAG` (69).
|
|
142
127
|
*/
|
|
143
128
|
export declare function spawnSack(subType: SackSubType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
144
129
|
export declare function spawnSackWithSeed(subType: SackSubType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
145
130
|
/**
|
|
146
|
-
* Helper function to spawn a `EntityType.
|
|
147
|
-
* `PickupVariant.PICKUP_TRINKET` (350).
|
|
131
|
+
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.TRINKET` (350).
|
|
148
132
|
*/
|
|
149
133
|
export declare function spawnTrinket(subType: TrinketType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
150
134
|
export declare function spawnTrinketWithSeed(subType: TrinketType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|