isaacscript-common 1.0.522 → 1.0.526
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/callbacks/customRevive.d.ts +1 -2
- package/dist/callbacks/itemPickup.d.ts +1 -2
- package/dist/callbacks/postBombInitLate.d.ts +1 -2
- package/dist/callbacks/postCursedTeleport.d.ts +1 -2
- package/dist/callbacks/postEffectInitLate.d.ts +1 -2
- package/dist/callbacks/postEsauJr.d.ts +1 -2
- package/dist/callbacks/postFamiliarInitLate.d.ts +1 -2
- package/dist/callbacks/postFlip.d.ts +1 -2
- package/dist/callbacks/postGridEntity.d.ts +1 -2
- package/dist/callbacks/postKnifeInitLate.d.ts +1 -2
- package/dist/callbacks/postLaserInitLate.d.ts +1 -2
- package/dist/callbacks/postNPCInitLate.d.ts +1 -2
- package/dist/callbacks/postNewRoomEarly.d.ts +1 -2
- package/dist/callbacks/postPickupCollect.d.ts +1 -2
- package/dist/callbacks/postPickupInitLate.d.ts +1 -2
- package/dist/callbacks/postPlayerChangeHealth.d.ts +1 -2
- package/dist/callbacks/postPlayerChangeType.d.ts +1 -2
- package/dist/callbacks/postPlayerFatalDamage.d.ts +1 -2
- package/dist/callbacks/postPlayerInitLate.d.ts +1 -2
- package/dist/callbacks/postPlayerReordered.d.ts +1 -2
- package/dist/callbacks/postProjectileInitLate.d.ts +1 -2
- package/dist/callbacks/postPurchase.d.ts +1 -2
- package/dist/callbacks/postSacrifice.d.ts +1 -2
- package/dist/callbacks/postSlotInitUpdate.d.ts +1 -2
- package/dist/callbacks/postSlotRenderBroken.d.ts +1 -2
- package/dist/callbacks/postTearInitLate.d.ts +1 -2
- package/dist/callbacks/postTransformation.d.ts +1 -2
- package/dist/callbacks/preNewLevel.d.ts +1 -2
- package/dist/callbacks/reorderedCallbacks.d.ts +0 -6
- package/dist/callbacks/subscriptions/PreNewLevel.d.ts +0 -3
- package/dist/callbacks/subscriptions/postBombInitLate.d.ts +0 -3
- package/dist/callbacks/subscriptions/postCursedTeleport.d.ts +0 -3
- package/dist/callbacks/subscriptions/postCustomRevive.d.ts +0 -3
- package/dist/callbacks/subscriptions/postEffectInitLate.d.ts +0 -3
- package/dist/callbacks/subscriptions/postEsauJr.d.ts +0 -3
- package/dist/callbacks/subscriptions/postFamiliarInitLate.d.ts +0 -3
- package/dist/callbacks/subscriptions/postFirstEsauJr.d.ts +0 -3
- package/dist/callbacks/subscriptions/postFirstFlip.d.ts +0 -3
- package/dist/callbacks/subscriptions/postFlip.d.ts +0 -3
- package/dist/callbacks/subscriptions/postGameStartedReordered.d.ts +0 -3
- package/dist/callbacks/subscriptions/postGridEntityInit.d.ts +0 -3
- package/dist/callbacks/subscriptions/postGridEntityRemove.d.ts +0 -3
- package/dist/callbacks/subscriptions/postGridEntityUpdate.d.ts +0 -3
- package/dist/callbacks/subscriptions/postItemPickup.d.ts +0 -3
- package/dist/callbacks/subscriptions/postKnifeInitLate.d.ts +0 -2
- package/dist/callbacks/subscriptions/postLaserInitLate.d.ts +0 -3
- package/dist/callbacks/subscriptions/postNPCInitLate.d.ts +0 -3
- package/dist/callbacks/subscriptions/postNewLevelReordered.d.ts +0 -3
- package/dist/callbacks/subscriptions/postNewRoomEarly.d.ts +0 -3
- package/dist/callbacks/subscriptions/postNewRoomReordered.d.ts +0 -3
- package/dist/callbacks/subscriptions/postPickupCollect.d.ts +0 -3
- package/dist/callbacks/subscriptions/postPickupInitLate.d.ts +0 -3
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts +0 -3
- package/dist/callbacks/subscriptions/postPlayerChangeType.d.ts +0 -3
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.d.ts +0 -3
- package/dist/callbacks/subscriptions/postPlayerInitLate.d.ts +0 -3
- package/dist/callbacks/subscriptions/postPlayerInitReordered.d.ts +0 -3
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.d.ts +0 -3
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.d.ts +0 -3
- package/dist/callbacks/subscriptions/postProjectileInitLate.d.ts +0 -3
- package/dist/callbacks/subscriptions/postPurchase.d.ts +0 -3
- package/dist/callbacks/subscriptions/postSacrifice.d.ts +0 -3
- package/dist/callbacks/subscriptions/postSlotDestroyed.d.ts +0 -3
- package/dist/callbacks/subscriptions/postSlotInit.d.ts +0 -3
- package/dist/callbacks/subscriptions/postSlotRender.d.ts +0 -3
- package/dist/callbacks/subscriptions/postSlotUpdate.d.ts +0 -3
- package/dist/callbacks/subscriptions/postTearInitLate.d.ts +0 -3
- package/dist/callbacks/subscriptions/postTransformation.d.ts +0 -3
- package/dist/callbacks/subscriptions/preCustomRevive.d.ts +0 -3
- package/dist/callbacks/subscriptions/preItemPickup.d.ts +0 -3
- package/dist/constantsInternal.d.ts +1 -5
- package/dist/debug.d.ts +1 -2
- package/dist/errors.d.ts +1 -1
- package/dist/features/deployJSONRoom.d.ts +0 -3
- package/dist/features/disableInputs.d.ts +0 -3
- package/dist/features/forgottenSwitch.d.ts +0 -3
- package/dist/features/getCollectibleItemPoolType.d.ts +0 -3
- package/dist/features/preventCollectibleRotate.d.ts +0 -2
- package/dist/features/runInNFrames.d.ts +0 -2
- package/dist/features/saveDataManager/main.d.ts +1 -5
- package/dist/features/sirenHelpers.d.ts +0 -2
- package/dist/functions/rooms.d.ts +11 -0
- package/dist/functions/rooms.lua +59 -48
- package/dist/functions/util.d.ts +7 -2
- package/dist/functions/util.lua +13 -0
- package/dist/initialized.d.ts +1 -2
- package/dist/patchErrorFunctions.d.ts +1 -9
- package/dist/patchPrintFunction.d.ts +1 -8
- package/dist/types/ModCallbacksCustom.d.ts +0 -2
- package/dist/upgradeMod.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function customReviveCallbacksInit(mod: ModUpgraded): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function itemPickupCallbacksInit(mod: ModUpgraded): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postBombInitLateCallbackInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postCursedTeleportCallbackInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postEffectInitLateCallbackInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postEsauJrCallbacksInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postFamiliarInitLateCallbackInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postFlipCallbacksInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postGridEntityCallbacksInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postKnifeInitLateCallbackInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postLaserInitLateCallbackInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postNPCInitLateCallbackInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postNewRoomEarlyCallbackInit(mod: ModUpgraded): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postPickupCollectCallbackInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postPickupInitLateCallbackInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postPlayerChangeHealthCallbackInit(mod: ModUpgraded): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postPlayerChangeTypeCallbackInit(mod: ModUpgraded): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postPlayerFatalDamageCallbackInit(mod: ModUpgraded): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postPlayerInitLateCallbackInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postPlayerReorderedCallbacksInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postProjectileInitLateCallbackInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postPurchaseCallbackInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postSacrificeCallbackInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postSlotInitUpdateCallbacksInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postSlotRenderBrokenCallbacksInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postTearInitLateCallbackInit(mod: Mod): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postTransformationCallbackInit(mod: ModUpgraded): void;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function preNewLevelCallbackInit(mod: ModUpgraded): void;
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
export declare function reorderedCallbacksInit(mod: Mod): void;
|
|
3
1
|
/**
|
|
4
2
|
* If some specific cases, mods can change the current level during run initialization on the 0th
|
|
5
3
|
* frame. However, due to how the callback reordering works, the custom PostNewLevel callback will
|
|
6
4
|
* never fire on the 0th frame. To get around this, call this function before changing levels to
|
|
7
5
|
* temporarily force the callback to fire.
|
|
8
|
-
*
|
|
9
|
-
* @category Custom Callbacks
|
|
10
6
|
*/
|
|
11
7
|
export declare function forceNewLevelCallback(): void;
|
|
12
8
|
/**
|
|
@@ -14,7 +10,5 @@ export declare function forceNewLevelCallback(): void;
|
|
|
14
10
|
* frame. However, due to how the callback reordering works, the custom PostNewRoom callback will
|
|
15
11
|
* never fire on the 0th frame. To get around this, call this function before changing rooms to
|
|
16
12
|
* temporarily force the callback to fire.
|
|
17
|
-
*
|
|
18
|
-
* @category Custom Callbacks
|
|
19
13
|
*/
|
|
20
14
|
export declare function forceNewRoomCallback(): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostBombInitLateCallbackType = (bomb: EntityBomb) => void;
|
|
3
|
-
export declare function postBombInitLateHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postBombInitLateRegister(callback: PostBombInitLateCallbackType, bombVariant?: BombVariant | int): void;
|
|
5
|
-
export declare function postBombInitLateFire(bomb: EntityBomb): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostCursedTeleportCallbackType = (player: EntityPlayer) => void;
|
|
3
|
-
export declare function postCursedTeleportHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postCursedTeleportRegister(callback: PostCursedTeleportCallbackType): void;
|
|
5
|
-
export declare function postCursedTeleportFire(player: EntityPlayer): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostCustomReviveCallbackType = (player: EntityPlayer, revivalType: int) => void;
|
|
3
|
-
export declare function postCustomReviveHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postCustomReviveRegister(callback: PostCustomReviveCallbackType, revivalType?: int): void;
|
|
5
|
-
export declare function postCustomReviveFire(player: EntityPlayer, revivalType: int): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostEffectInitLateCallbackType = (effect: EntityEffect) => void;
|
|
3
|
-
export declare function postEffectInitLateHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postEffectInitLateRegister(callback: PostEffectInitLateCallbackType, effectVariant?: EffectVariant): void;
|
|
5
|
-
export declare function postEffectInitLateFire(effect: EntityEffect): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostEsauJrCallbackType = (player: EntityPlayer) => void;
|
|
3
|
-
export declare function postEsauJrHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postEsauJrRegister(callback: PostEsauJrCallbackType): void;
|
|
5
|
-
export declare function postEsauJrFire(player: EntityPlayer): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostFamiliarInitLateCallbackType = (familiar: EntityFamiliar) => void;
|
|
3
|
-
export declare function postFamiliarInitLateHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postFamiliarInitLateRegister(callback: PostFamiliarInitLateCallbackType, familiarVariant?: FamiliarVariant | int): void;
|
|
5
|
-
export declare function postFamiliarInitLateFire(familiar: EntityFamiliar): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostFirstEsauJrCallbackType = (player: EntityPlayer) => void;
|
|
3
|
-
export declare function postFirstEsauJrHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postFirstEsauJrRegister(callback: PostFirstEsauJrCallbackType): void;
|
|
5
|
-
export declare function postFirstEsauJrFire(player: EntityPlayer): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostFirstFlipCallbackType = (player: EntityPlayer) => void;
|
|
3
|
-
export declare function postFirstFlipHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postFirstFlipRegister(callback: PostFirstFlipCallbackType): void;
|
|
5
|
-
export declare function postFirstFlipFire(player: EntityPlayer): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostFlipCallbackType = (player: EntityPlayer) => void;
|
|
3
|
-
export declare function postFlipHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postFlipRegister(callback: PostFlipCallbackType): void;
|
|
5
|
-
export declare function postFlipFire(player: EntityPlayer): void;
|
|
@@ -1,4 +1 @@
|
|
|
1
1
|
export declare type PostGameStartedReorderedCallbackType = (isContinued: boolean) => void;
|
|
2
|
-
export declare function postGameStartedReorderedHasSubscriptions(): boolean;
|
|
3
|
-
export declare function postGameStartedReorderedRegister(callback: PostGameStartedReorderedCallbackType): void;
|
|
4
|
-
export declare function postGameStartedReorderedFire(isContinued: boolean): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostGridEntityInitCallbackType = (gridEntity: GridEntity) => void;
|
|
3
|
-
export declare function postGridEntityInitHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postGridEntityInitRegister(callback: PostGridEntityInitCallbackType, gridEntityType?: GridEntityType): void;
|
|
5
|
-
export declare function postGridEntityInitFire(gridEntity: GridEntity): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostGridEntityRemoveCallbackType = (gridIndex: int, gridEntityType: GridEntityType) => void;
|
|
3
|
-
export declare function postGridEntityRemoveHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postGridEntityRemoveRegister(callback: PostGridEntityRemoveCallbackType, gridEntityType?: GridEntityType): void;
|
|
5
|
-
export declare function postGridEntityRemoveFire(gridIndex: int, gridEntityType: GridEntityType): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostGridEntityUpdateCallbackType = (gridEntity: GridEntity) => void;
|
|
3
|
-
export declare function postGridEntityUpdateHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postGridEntityUpdateRegister(callback: PostGridEntityUpdateCallbackType, gridEntityType?: GridEntityType): void;
|
|
5
|
-
export declare function postGridEntityUpdateFire(gridEntity: GridEntity): void;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
import { PickingUpItem } from "../../types/PickingUpItem";
|
|
3
3
|
export declare type PostItemPickupCallbackType = (player: EntityPlayer, pickingUpItem: PickingUpItem) => void;
|
|
4
|
-
export declare function postItemPickupHasSubscriptions(): boolean;
|
|
5
|
-
export declare function postItemPickupRegister(callback: PostItemPickupCallbackType, itemType?: ItemType, itemID?: int): void;
|
|
6
|
-
export declare function postItemPickupFire(player: EntityPlayer, pickingUpItem: PickingUpItem): void;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostKnifeInitLateCallbackType = (knife: EntityKnife) => void;
|
|
3
|
-
export declare function postKnifeInitLateHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postKnifeInitLateRegister(callback: PostKnifeInitLateCallbackType, knifeVariant?: KnifeVariant | int): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostLaserInitLateCallbackType = (laser: EntityLaser) => void;
|
|
3
|
-
export declare function postLaserInitLateHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postLaserInitLateRegister(callback: PostLaserInitLateCallbackType, laserVariant?: LaserVariant | int): void;
|
|
5
|
-
export declare function postLaserInitLateFire(laser: EntityLaser): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostNPCInitLateCallbackType = (npc: EntityNPC) => void;
|
|
3
|
-
export declare function postNPCInitLateHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postNPCInitLateRegister(callback: PostNPCInitLateCallbackType, entityType?: EntityType): void;
|
|
5
|
-
export declare function postNPCInitLateFire(npc: EntityNPC): void;
|
|
@@ -1,4 +1 @@
|
|
|
1
1
|
export declare type PostNewLevelReorderedCallbackType = () => void;
|
|
2
|
-
export declare function postNewLevelReorderedHasSubscriptions(): boolean;
|
|
3
|
-
export declare function postNewLevelReorderedRegister(callback: PostNewLevelReorderedCallbackType): void;
|
|
4
|
-
export declare function postNewLevelReorderedFire(): void;
|
|
@@ -1,4 +1 @@
|
|
|
1
1
|
export declare type PostNewRoomEarlyCallbackType = () => void;
|
|
2
|
-
export declare function postNewRoomEarlyHasSubscriptions(): boolean;
|
|
3
|
-
export declare function postNewRoomEarlyRegister(callback: PostNewRoomEarlyCallbackType): void;
|
|
4
|
-
export declare function postNewRoomEarlyFire(): void;
|
|
@@ -1,4 +1 @@
|
|
|
1
1
|
export declare type PostNewRoomReorderedCallbackType = () => void;
|
|
2
|
-
export declare function postNewRoomReorderedHasSubscriptions(): boolean;
|
|
3
|
-
export declare function postNewRoomReorderedRegister(callback: PostNewRoomReorderedCallbackType): void;
|
|
4
|
-
export declare function postNewRoomReorderedFire(): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostPickupCollectCallbackType = (pickup: EntityPickup, player: EntityPlayer) => void;
|
|
3
|
-
export declare function postPickupCollectHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postPickupCollectRegister(callback: PostPickupCollectCallbackType, pickupVariant?: PickupVariant | int): void;
|
|
5
|
-
export declare function postPickupCollectFire(pickup: EntityPickup, player: EntityPlayer): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostPickupInitLateCallbackType = (pickup: EntityPickup) => void;
|
|
3
|
-
export declare function postPickupInitLateHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postPickupInitLateRegister(callback: PostPickupInitLateCallbackType, pickupVariant?: PickupVariant | int): void;
|
|
5
|
-
export declare function postPickupInitLateFire(pickup: EntityPickup): void;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
import { HealthType } from "../../types/HealthType";
|
|
3
3
|
export declare type PostPlayerChangeHealthCallbackType = (player: EntityPlayer, healthType: HealthType, amount: int) => void;
|
|
4
|
-
export declare function postPlayerChangeHealthHasSubscriptions(): boolean;
|
|
5
|
-
export declare function postPlayerChangeHealthRegister(callback: PostPlayerChangeHealthCallbackType, playerVariant?: PlayerVariant): void;
|
|
6
|
-
export declare function postPlayerChangeHealthFire(player: EntityPlayer, healthType: HealthType, amount: int): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostPlayerChangeTypeCallbackType = (player: EntityPlayer) => void;
|
|
3
|
-
export declare function postPlayerChangeTypeHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postPlayerChangeTypeRegister(callback: PostPlayerChangeTypeCallbackType): void;
|
|
5
|
-
export declare function postPlayerChangeTypeFire(player: EntityPlayer): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostPlayerFatalDamageCallbackType = (player: EntityPlayer) => boolean | void;
|
|
3
|
-
export declare function postPlayerFatalDamageHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postPlayerFatalDamageRegister(callback: PostPlayerFatalDamageCallbackType, playerVariant?: PlayerVariant): void;
|
|
5
|
-
export declare function postPlayerFatalDamageFire(player: EntityPlayer): boolean | void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostPlayerInitLateCallbackType = (player: EntityPlayer) => void;
|
|
3
|
-
export declare function postPlayerInitLateHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postPlayerInitLateRegister(callback: PostPlayerInitLateCallbackType, playerVariant?: PlayerVariant): void;
|
|
5
|
-
export declare function postPlayerInitLateFire(player: EntityPlayer): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostPlayerInitReorderedCallbackType = (player: EntityPlayer) => void;
|
|
3
|
-
export declare function postPlayerInitReorderedHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postPlayerInitReorderedRegister(callback: PostPlayerInitReorderedCallbackType, playerVariant?: PlayerVariant): void;
|
|
5
|
-
export declare function postPlayerInitReorderedFire(player: EntityPlayer): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostPlayerRenderReorderedCallbackType = (player: EntityPlayer) => void;
|
|
3
|
-
export declare function postPlayerRenderReorderedHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postPlayerRenderReorderedRegister(callback: PostPlayerRenderReorderedCallbackType, playerVariant?: PlayerVariant): void;
|
|
5
|
-
export declare function postPlayerRenderReorderedFire(player: EntityPlayer): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostPlayerUpdateReorderedCallbackType = (player: EntityPlayer) => void;
|
|
3
|
-
export declare function postPlayerUpdateReorderedHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postPlayerUpdateReorderedRegister(callback: PostPlayerUpdateReorderedCallbackType, playerVariant?: PlayerVariant): void;
|
|
5
|
-
export declare function postPlayerUpdateReorderedFire(player: EntityPlayer): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostProjectileInitLateCallbackType = (projectile: EntityProjectile) => void;
|
|
3
|
-
export declare function postProjectileInitLateHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postProjectileInitLateRegister(callback: PostProjectileInitLateCallbackType, projectileVariant?: ProjectileVariant | int): void;
|
|
5
|
-
export declare function postProjectileInitLateFire(projectile: EntityProjectile): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostPurchaseCallbackType = (player: EntityPlayer, pickupVariant: PickupVariant | int, pickupSubType: int, pickupPrice: int) => void;
|
|
3
|
-
export declare function postPurchaseHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postPurchaseRegister(callback: PostPurchaseCallbackType, pickupVariant?: PickupVariant | int, pickupSubType?: int): void;
|
|
5
|
-
export declare function postPurchaseFire(player: EntityPlayer, pickupVariant: PickupVariant | int, pickupSubType: int, pickupPrice: int): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostSacrificeCallbackType = (player: EntityPlayer, numSacrifices: int) => void;
|
|
3
|
-
export declare function postSacrificeHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postSacrificeRegister(callback: PostSacrificeCallbackType): void;
|
|
5
|
-
export declare function postSacrificeFire(player: EntityPlayer, numSacrifices: int): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostSlotDestroyedCallbackType = (slot: Entity) => void;
|
|
3
|
-
export declare function postSlotDestroyedHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postSlotDestroyedRegister(callback: PostSlotDestroyedCallbackType, slotVariant?: SlotVariant): void;
|
|
5
|
-
export declare function postSlotDestroyedFire(slot: Entity): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostSlotInitCallbackType = (slot: Entity) => void;
|
|
3
|
-
export declare function postSlotInitHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postSlotInitRegister(callback: PostSlotInitCallbackType, slotVariant?: SlotVariant): void;
|
|
5
|
-
export declare function postSlotInitFire(slot: Entity): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostSlotRenderCallbackType = (slot: Entity) => void;
|
|
3
|
-
export declare function postSlotRenderHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postSlotRenderRegister(callback: PostSlotRenderCallbackType, slotVariant?: SlotVariant): void;
|
|
5
|
-
export declare function postSlotRenderFire(slot: Entity): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostSlotUpdateCallbackType = (slot: Entity) => void;
|
|
3
|
-
export declare function postSlotUpdateHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postSlotUpdateRegister(callback: PostSlotUpdateCallbackType, slotVariant?: SlotVariant): void;
|
|
5
|
-
export declare function postSlotUpdateFire(slot: Entity): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostTearInitLateCallbackType = (tear: EntityTear) => void;
|
|
3
|
-
export declare function postTearInitLateHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postTearInitLateRegister(callback: PostTearInitLateCallbackType, tearVariant?: TearVariant | int): void;
|
|
5
|
-
export declare function postTearInitLateFire(tear: EntityTear): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostTransformationCallbackType = (player: EntityPlayer, playerForm: PlayerForm, hasForm: boolean) => void;
|
|
3
|
-
export declare function postTransformationHasSubscriptions(): boolean;
|
|
4
|
-
export declare function postTransformationRegister(callback: PostTransformationCallbackType, playerForm?: PlayerForm): void;
|
|
5
|
-
export declare function postTransformationFire(player: EntityPlayer, playerForm: PlayerForm, hasForm: boolean): void;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PreCustomReviveCallbackType = (player: EntityPlayer) => int | void;
|
|
3
|
-
export declare function preCustomReviveHasSubscriptions(): boolean;
|
|
4
|
-
export declare function preCustomReviveRegister(callback: PreCustomReviveCallbackType): void;
|
|
5
|
-
export declare function preCustomReviveFire(player: EntityPlayer): int | void;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
import { PickingUpItem } from "../../types/PickingUpItem";
|
|
3
3
|
export declare type PreItemPickupCallbackType = (player: EntityPlayer, pickingUpItem: PickingUpItem) => void;
|
|
4
|
-
export declare function preItemPickupHasSubscriptions(): boolean;
|
|
5
|
-
export declare function preItemPickupRegister(callback: PreItemPickupCallbackType, itemType?: ItemType, itemID?: int): void;
|
|
6
|
-
export declare function preItemPickupFire(player: EntityPlayer, pickingUpItem: PickingUpItem): void;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare const TSTL_SET_BRAND = "__TSTL_SET";
|
|
3
|
-
export declare const TSTL_CLASS_BRAND = "__TSTL_CLASS";
|
|
4
|
-
export declare const TSTL_OBJECT_WITH_NUMBER_KEYS_BRAND = "__TSTL_OBJECT_WITH_NUMBER_KEYS";
|
|
5
|
-
export declare const VECTOR_BRAND = "__VECTOR";
|
|
1
|
+
export {};
|
package/dist/debug.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const DEBUG = false;
|
|
1
|
+
export {};
|
package/dist/errors.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
import { JSONRoom } from "../types/JSONRoom";
|
|
3
|
-
import { ModUpgraded } from "../types/ModUpgraded";
|
|
4
|
-
/** @hidden */
|
|
5
|
-
export declare function deployJSONRoomInit(mod: ModUpgraded): void;
|
|
6
3
|
/**
|
|
7
4
|
* Helper function to deconstruct a vanilla room and set up a custom room in its place.
|
|
8
5
|
* Specifically, this will clear the current room of all entities and grid entities, and then spawn
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
import { ModUpgraded } from "../types/ModUpgraded";
|
|
3
|
-
/** @hidden */
|
|
4
|
-
export declare function disableInputsInit(mod: ModUpgraded): void;
|
|
5
2
|
/** After having disabled inputs, use this function to set things back to normal. */
|
|
6
3
|
export declare function enableAllInputs(): void;
|
|
7
4
|
/**
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { ModUpgraded } from "../types/ModUpgraded";
|
|
2
|
-
/** @hidden */
|
|
3
|
-
export declare function forgottenSwitchInit(mod: ModUpgraded): void;
|
|
4
1
|
/**
|
|
5
2
|
* When used on The Forgotten, switches to The Soul. When used on The Soul, switches to The
|
|
6
3
|
* Forgotten. This takes 1 game frame to take effect.
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
import { ModUpgraded } from "../types/ModUpgraded";
|
|
3
|
-
/** @hidden */
|
|
4
|
-
export declare function getCollectibleItemPoolTypeInit(mod: ModUpgraded): void;
|
|
5
2
|
/**
|
|
6
3
|
* Helper function to get the item pool type that a given collectible came from. Since there is no
|
|
7
4
|
* native method in the API to get this, IsaacScript listens in the PreGetCollectible callback for
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
import { ModUpgraded } from "../types/ModUpgraded";
|
|
3
|
-
export declare function preventCollectibleRotateInit(mod: ModUpgraded): void;
|
|
4
2
|
/**
|
|
5
3
|
* Helper function to prevent a collectible from being affected by Tainted Isaac's rotation
|
|
6
4
|
* mechanic. (This mechanic also happens from Glitched Crown and Binge Eater.) This is useful
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const FEATURE_NAME = "save data manager";
|
|
3
|
-
export declare function saveDataManagerInit(incomingMod: ModUpgraded): void;
|
|
4
|
-
export declare function isSaveDataManagerInitialized(): boolean;
|
|
5
|
-
export declare function forceSaveDataManagerSave(): void;
|
|
1
|
+
export {};
|
|
@@ -89,6 +89,15 @@ export declare function getRoomVariant(): int;
|
|
|
89
89
|
* the variable is only incremented immediately before the PostNewRoom callback fires.
|
|
90
90
|
*/
|
|
91
91
|
export declare function getRoomVisitedCount(): int;
|
|
92
|
+
/**
|
|
93
|
+
* Helper function to get the room descriptor for every room on the level. Uses the
|
|
94
|
+
* `Level.GetRooms()` method to accomplish this.
|
|
95
|
+
*
|
|
96
|
+
* @param includeExtraDimensionalRooms Optional. On some floors (e.g. Downpour 2, Mines 2),
|
|
97
|
+
* extra-dimensional rooms are automatically be generated and can be seen when you iterate over the
|
|
98
|
+
* `RoomList`. False by default.
|
|
99
|
+
*/
|
|
100
|
+
export declare function getRooms(includeExtraDimensionalRooms?: boolean): RoomDescriptor[];
|
|
92
101
|
/**
|
|
93
102
|
* Converts a room X and Y coordinate to a position. For example, the coordinates of 0, 0 are
|
|
94
103
|
* equal to `Vector(80, 160)`.
|
|
@@ -136,6 +145,8 @@ export declare function inStartingRoom(): boolean;
|
|
|
136
145
|
/**
|
|
137
146
|
* Helper function to loop through every room on the floor and see if it has been cleared.
|
|
138
147
|
*
|
|
148
|
+
* This function will only check rooms in the current dimension.
|
|
149
|
+
*
|
|
139
150
|
* @param onlyCheckRoomTypes Optional. A whitelist of room types. If specified, room types not in
|
|
140
151
|
* the array will be ignored. If not specified, then all rooms will be checked. Undefined by
|
|
141
152
|
* default.
|
package/dist/functions/rooms.lua
CHANGED
|
@@ -44,6 +44,39 @@ function ____exports.getRoomSubType(self)
|
|
|
44
44
|
end
|
|
45
45
|
return roomData.Subtype
|
|
46
46
|
end
|
|
47
|
+
function ____exports.getRooms(self, includeExtraDimensionalRooms)
|
|
48
|
+
if includeExtraDimensionalRooms == nil then
|
|
49
|
+
includeExtraDimensionalRooms = false
|
|
50
|
+
end
|
|
51
|
+
local game = Game()
|
|
52
|
+
local level = game:GetLevel()
|
|
53
|
+
local roomList = level:GetRooms()
|
|
54
|
+
local rooms = {}
|
|
55
|
+
if includeExtraDimensionalRooms then
|
|
56
|
+
do
|
|
57
|
+
local i = 0
|
|
58
|
+
while i < roomList.Size do
|
|
59
|
+
local roomDesc = roomList:Get(i)
|
|
60
|
+
if roomDesc ~= nil then
|
|
61
|
+
__TS__ArrayPush(rooms, roomDesc)
|
|
62
|
+
end
|
|
63
|
+
i = i + 1
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
else
|
|
67
|
+
do
|
|
68
|
+
local i = 0
|
|
69
|
+
while i <= MAX_ROOM_INDEX do
|
|
70
|
+
local roomDesc = level:GetRoomByIdx(i)
|
|
71
|
+
if roomDesc ~= nil then
|
|
72
|
+
__TS__ArrayPush(rooms, roomDesc)
|
|
73
|
+
end
|
|
74
|
+
i = i + 1
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
return rooms
|
|
79
|
+
end
|
|
47
80
|
function ____exports.inDeathCertificateArea(self)
|
|
48
81
|
local roomStageID = ____exports.getRoomStageID(nil)
|
|
49
82
|
local roomSubType = ____exports.getRoomSubType(nil)
|
|
@@ -56,19 +89,11 @@ function ____exports.changeRoom(self, roomGridIndex)
|
|
|
56
89
|
game:ChangeRoom(roomGridIndex)
|
|
57
90
|
end
|
|
58
91
|
function ____exports.getAllRoomGridIndexes(self)
|
|
59
|
-
local game = Game()
|
|
60
|
-
local level = game:GetLevel()
|
|
61
|
-
local rooms = level:GetRooms()
|
|
62
92
|
local allRoomGridIndexes = {}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
if roomDesc ~= nil then
|
|
68
|
-
__TS__ArrayPush(allRoomGridIndexes, roomDesc.SafeGridIndex)
|
|
69
|
-
end
|
|
70
|
-
i = i + 1
|
|
71
|
-
end
|
|
93
|
+
for ____, roomDesc in ipairs(
|
|
94
|
+
____exports.getRooms(nil)
|
|
95
|
+
) do
|
|
96
|
+
__TS__ArrayPush(allRoomGridIndexes, roomDesc.SafeGridIndex)
|
|
72
97
|
end
|
|
73
98
|
return allRoomGridIndexes
|
|
74
99
|
end
|
|
@@ -111,17 +136,12 @@ function ____exports.getRoomListIndex(self)
|
|
|
111
136
|
return roomDesc.ListIndex
|
|
112
137
|
end
|
|
113
138
|
function ____exports.getRoomGridIndexesForType(self, roomType)
|
|
114
|
-
local game = Game()
|
|
115
|
-
local level = game:GetLevel()
|
|
116
139
|
local roomGridIndexes = {}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
__TS__ArrayPush(roomGridIndexes, room.SafeGridIndex)
|
|
123
|
-
end
|
|
124
|
-
i = i + 1
|
|
140
|
+
for ____, roomDesc in ipairs(
|
|
141
|
+
____exports.getRooms(nil)
|
|
142
|
+
) do
|
|
143
|
+
if (roomDesc.Data ~= nil) and (roomDesc.Data.Type == roomType) then
|
|
144
|
+
__TS__ArrayPush(roomGridIndexes, roomDesc.SafeGridIndex)
|
|
125
145
|
end
|
|
126
146
|
end
|
|
127
147
|
return roomGridIndexes
|
|
@@ -232,33 +252,24 @@ function ____exports.inStartingRoom(self)
|
|
|
232
252
|
return (roomSafeGridIndex == startingRoomGridIndex) and ____exports.inDimension(nil, 0)
|
|
233
253
|
end
|
|
234
254
|
function ____exports.isAllRoomsClear(self, onlyCheckRoomTypes)
|
|
235
|
-
local game = Game()
|
|
236
|
-
local level = game:GetLevel()
|
|
237
|
-
local rooms = level:GetRooms()
|
|
238
255
|
local roomTypeWhitelist = (((onlyCheckRoomTypes == nil) and (function() return nil end)) or (function() return __TS__New(Set, onlyCheckRoomTypes) end))()
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
goto __continue42
|
|
254
|
-
end
|
|
255
|
-
if not roomDesc.Clear then
|
|
256
|
-
return false
|
|
257
|
-
end
|
|
256
|
+
for ____, roomDesc in ipairs(
|
|
257
|
+
____exports.getRooms(nil)
|
|
258
|
+
) do
|
|
259
|
+
do
|
|
260
|
+
local roomData = roomDesc.Data
|
|
261
|
+
if roomData == nil then
|
|
262
|
+
goto __continue48
|
|
263
|
+
end
|
|
264
|
+
local roomType = roomData.Type
|
|
265
|
+
if (roomTypeWhitelist ~= nil) and (not roomTypeWhitelist:has(roomType)) then
|
|
266
|
+
goto __continue48
|
|
267
|
+
end
|
|
268
|
+
if not roomDesc.Clear then
|
|
269
|
+
return false
|
|
258
270
|
end
|
|
259
|
-
::__continue42::
|
|
260
|
-
i = i + 1
|
|
261
271
|
end
|
|
272
|
+
::__continue48::
|
|
262
273
|
end
|
|
263
274
|
return true
|
|
264
275
|
end
|
|
@@ -290,14 +301,14 @@ function ____exports.setRoomCleared(self)
|
|
|
290
301
|
) do
|
|
291
302
|
do
|
|
292
303
|
if isHiddenSecretRoomDoor(nil, door) then
|
|
293
|
-
goto
|
|
304
|
+
goto __continue56
|
|
294
305
|
end
|
|
295
306
|
door.State = DoorState.STATE_OPEN
|
|
296
307
|
local sprite = door:GetSprite()
|
|
297
308
|
sprite:Play("Opened", true)
|
|
298
309
|
door.ExtraVisible = false
|
|
299
310
|
end
|
|
300
|
-
::
|
|
311
|
+
::__continue56::
|
|
301
312
|
end
|
|
302
313
|
sfx:Stop(SoundEffect.SOUND_DOOR_HEAVY_OPEN)
|
|
303
314
|
game:ShakeScreen(0)
|
package/dist/functions/util.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
/// <reference types="typescript-to-lua/language-extensions" />
|
|
3
3
|
/**
|
|
4
|
-
* Using a
|
|
5
|
-
*
|
|
4
|
+
* Using a Map constructor to copy a Map does not seem to work properly, so use this helper function
|
|
5
|
+
* instead.
|
|
6
|
+
*/
|
|
7
|
+
export declare function copyMap<K, V>(oldMap: Map<K, V>): Map<K, V>;
|
|
8
|
+
/**
|
|
9
|
+
* Using a Set constructor to copy a Set does not seem to work properly, so use this helper function
|
|
10
|
+
* instead.
|
|
6
11
|
*/
|
|
7
12
|
export declare function copySet<T>(oldSet: Set<T>): Set<T>;
|
|
8
13
|
/**
|
package/dist/functions/util.lua
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
require("lualib_bundle");
|
|
3
3
|
local ____exports = {}
|
|
4
4
|
local HEX_STRING_LENGTH = 6
|
|
5
|
+
function ____exports.copyMap(self, oldMap)
|
|
6
|
+
local newMap = __TS__New(Map)
|
|
7
|
+
for ____, ____value in __TS__Iterator(
|
|
8
|
+
oldMap:entries()
|
|
9
|
+
) do
|
|
10
|
+
local key
|
|
11
|
+
key = ____value[1]
|
|
12
|
+
local value
|
|
13
|
+
value = ____value[2]
|
|
14
|
+
newMap:set(key, value)
|
|
15
|
+
end
|
|
16
|
+
return newMap
|
|
17
|
+
end
|
|
5
18
|
function ____exports.copySet(self, oldSet)
|
|
6
19
|
local newSet = __TS__New(Set)
|
|
7
20
|
for ____, value in __TS__Iterator(
|
package/dist/initialized.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function setFeaturesInitialized(): void;
|
|
1
|
+
export {};
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* In Lua, the `error` function will tell you the line number of the error, but not give you a full
|
|
3
|
-
* traceback of the parent functions, which is unlike how JavaScript works. This function monkey
|
|
4
|
-
* patches the `error` function to add this functionality.
|
|
5
|
-
*
|
|
6
|
-
* Traceback functionality can only be added if the "--luadebug" flag is turned on, so this function
|
|
7
|
-
* does nothing if the "--luadebug" flag is disabled.
|
|
8
|
-
*/
|
|
9
|
-
export declare function patchErrorFunction(): void;
|
|
1
|
+
export {};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* When the "--luadebug" flag is enabled, the `print` function will no longer print messages to the
|
|
3
|
-
* "log.txt" file or the in-game console. This function monkey patches the `print` function to
|
|
4
|
-
* restore this functionality.
|
|
5
|
-
*
|
|
6
|
-
* If the "--luadebug" flag is disabled, this function will do nothing.
|
|
7
|
-
*/
|
|
8
|
-
export declare function patchPrintFunction(): void;
|
|
1
|
+
export {};
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
*
|
|
5
5
|
* For a better listing of all custom callbacks, check out the
|
|
6
6
|
* [Function Signatures](https://isaacscript.github.io/docs/function-signatures#custom-callbacks).
|
|
7
|
-
*
|
|
8
|
-
* @category Custom Callbacks
|
|
9
7
|
*/
|
|
10
8
|
export declare enum ModCallbacksCustom {
|
|
11
9
|
MC_POST_GAME_STARTED_REORDERED = 0,
|
package/dist/upgradeMod.d.ts
CHANGED
|
@@ -22,6 +22,5 @@ import { ModUpgraded } from "./types/ModUpgraded";
|
|
|
22
22
|
* @param verbose Enables verbose logging for the purposes of crash troubleshooting.
|
|
23
23
|
* Defaults to false.
|
|
24
24
|
* @returns The upgraded mod object.
|
|
25
|
-
* @category Custom Callbacks
|
|
26
25
|
*/
|
|
27
26
|
export declare function upgradeMod(modVanilla: Mod, verbose?: boolean): ModUpgraded;
|