-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: ItemPool * feat: Level * docs: LevelGeneratorEntry * docs: LootList * Update LootListEntry.d.ts * docs: MenuManager * Update StatsMenu.d.ts * docs: MultiShotParams * Update NightmareScene.d.ts * docs: PersistentGameData * docs: PlayerManager * docs: PocketItem * docs: Point * docs: RNG * docs: Room * docs: RoomConfig * docs: RoomConfigSet and RoomConfigStage * docs: RoomConfigHolder * docs: RoomDescriptor * docs: EntitiesSaveStateVector * docs: AnimationFrame * docs: LayerState * docs: Sprite * docs: Weapon * docs: Camera * docs: EntityFamiliar * docs: EntityPlayer * feat: Missing callbacks * Update isaac.txt --------- Co-authored-by: James <5511220+Zamiell@users.noreply.github.com>
- Loading branch information
1 parent
4d110f4
commit f21d38f
Showing
37 changed files
with
970 additions
and
94 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
packages/isaac-typescript-definitions-repentogon/src/enums/GameMode.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* This enum is for REPENTOGON, an exe-hack which expands the modding API. | ||
* | ||
* @see https://repentogon.com/ | ||
*/ | ||
export enum GameMode { | ||
NORMAL = 0, | ||
GREED = 1, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
packages/isaac-typescript-definitions-repentogon/src/enums/flags/GetCollectibleFlag.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* This is represented as an object instead of an enum due to limitations with TypeScript enums. (We | ||
* want this type to be a child of the `BitFlag` type.) | ||
* | ||
* This enum is for REPENTOGON, an exe-hack which expands the modding API. | ||
* | ||
* @see https://repentogon.com/ | ||
* @enum | ||
* @notExported | ||
* @rename GetCollectibleFlag | ||
*/ | ||
const GetCollectibleFlagInternal = { | ||
/** Bans active collectibles. */ | ||
BAN_ACTIVE: 1 << 0, | ||
|
||
/** | ||
* Ignores attempts to morph the collectible into Magic Skin or Rosary. Does not prevent morphing | ||
* the collectible into The Bible. | ||
*/ | ||
IGNORE_MODIFIERS: 1 << 1, | ||
|
||
BAN_PASSIVE: 1 << 2, | ||
|
||
/** Bans passive collectibles. */ | ||
} as const; | ||
|
||
type GetCollectibleFlagValue = BitFlag & { | ||
readonly __getCollectibleFlagBrand: symbol; | ||
}; | ||
type GetCollectibleFlagType = { | ||
readonly [K in keyof typeof GetCollectibleFlagInternal]: GetCollectibleFlagValue; | ||
}; | ||
|
||
export const GetCollectibleFlag = | ||
GetCollectibleFlagInternal as GetCollectibleFlagType; | ||
export type GetCollectibleFlag = | ||
GetCollectibleFlagType[keyof GetCollectibleFlagType]; | ||
|
||
export const GetCollectibleFlagZero = 0 as BitFlags<GetCollectibleFlag>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
packages/isaac-typescript-definitions-repentogon/src/types/classes/LRoomAreaDesc.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* This class is for REPENTOGON, an exe-hack which expands the modding API. | ||
* | ||
* @see https://repentogon.com/ | ||
*/ | ||
declare interface LRoomAreaDesc { | ||
/** Returns the position of the upper half's bottom right corner. */ | ||
GetHighBottomRight: () => Vector; | ||
|
||
/** Returns the position of the upper half's bottom right corner. */ | ||
GetHighTopLeft: () => Vector; | ||
|
||
/** Returns the position of the bottom half's bottom right corner. */ | ||
GetLowBottomRight: () => Vector; | ||
|
||
/** Returns the position of the lower half's top left corner. */ | ||
GetLowTopLeft: () => Vector; | ||
} |
21 changes: 21 additions & 0 deletions
21
packages/isaac-typescript-definitions-repentogon/src/types/classes/LRoomTileDesc.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* This class is for REPENTOGON, an exe-hack which expands the modding API. | ||
* | ||
* @see https://repentogon.com/ | ||
*/ | ||
declare interface LRoomTileDesc { | ||
/** Returns the grid coordinates of the upper half's bottom right corner. */ | ||
GetHighBottomRight: () => [int, int]; | ||
|
||
/** Returns the grid coordinates of the upper half's top left corner. */ | ||
GetHighTopLeft: () => [int, int]; | ||
|
||
/** Returns the grid coordinates of the lower half's bottom right corner. */ | ||
GetLowBottomRight: () => [int, int]; | ||
|
||
/** Returns the grid coordinates of the lower half's top left corner. */ | ||
GetLowTopLeft: () => [int, int]; | ||
|
||
/** Returns the grid coordinates of a random tile. */ | ||
GetRandomTile: (seed: Seed) => [int, int]; | ||
} |
Oops, something went wrong.