Skip to content

Frames

getElapsedGameFramesSince(gameFrameCount): int

Defined in: packages/isaacscript-common/src/functions/frames.ts:3

int

int


getElapsedRenderFramesSince(renderFrameCount): int

Defined in: packages/isaacscript-common/src/functions/frames.ts:8

int

int


getElapsedRoomFramesSince(roomFrameCount): int

Defined in: packages/isaacscript-common/src/functions/frames.ts:13

int

int


isAfterGameFrame(gameFrameCount): boolean

Defined in: packages/isaacscript-common/src/functions/frames.ts:23

Helper function to check if the current game frame count is higher than a specific game frame count.

int

boolean


isAfterRenderFrame(renderFrameCount): boolean

Defined in: packages/isaacscript-common/src/functions/frames.ts:32

Helper function to check if the current render frame count is higher than a specific render frame count.

int

boolean


isAfterRoomFrame(roomFrameCount): boolean

Defined in: packages/isaacscript-common/src/functions/frames.ts:41

Helper function to check if the current room frame count is higher than a specific room frame count.

int

boolean


isBeforeGameFrame(gameFrameCount): boolean

Defined in: packages/isaacscript-common/src/functions/frames.ts:52

Helper function to check if the current game frame count is lower than a specific game frame count.

int

boolean


isBeforeRenderFrame(renderFrameCount): boolean

Defined in: packages/isaacscript-common/src/functions/frames.ts:61

Helper function to check if the current render frame count is lower than a specific render frame count.

int

boolean


isBeforeRoomFrame(roomFrameCount): boolean

Defined in: packages/isaacscript-common/src/functions/frames.ts:70

Helper function to check if the current room frame count is lower than a specific room frame count.

int

boolean


onGameFrame(gameFrameCount): boolean

Defined in: packages/isaacscript-common/src/functions/frames.ts:83

Helper function to check if the current game frame count is exactly equal to a specific game frame count.

This returns false if the submitted render frame count is null or undefined.

int | null | undefined

boolean


onOrAfterGameFrame(gameFrameCount): boolean

Defined in: packages/isaacscript-common/src/functions/frames.ts:92

Helper function to check if the current game frame count is equal to or higher than a specific game frame count.

int

boolean


onOrAfterRenderFrame(renderFrameCount): boolean

Defined in: packages/isaacscript-common/src/functions/frames.ts:101

Helper function to check if the current render frame count is equal to or higher than a specific render frame count.

int

boolean


onOrAfterRoomFrame(roomFrameCount): boolean

Defined in: packages/isaacscript-common/src/functions/frames.ts:110

Helper function to check if the current room frame count is equal to or higher than a specific room frame count.

int

boolean


onOrBeforeGameFrame(gameFrameCount): boolean

Defined in: packages/isaacscript-common/src/functions/frames.ts:121

Helper function to check if the current game frame count is equal to or lower than a specific game frame count.

int

boolean


onOrBeforeRenderFrame(renderFrameCount): boolean

Defined in: packages/isaacscript-common/src/functions/frames.ts:130

Helper function to check if the current render frame count is equal to or lower than a specific render frame count.

int

boolean


onOrBeforeRoomFrame(roomFrameCount): boolean

Defined in: packages/isaacscript-common/src/functions/frames.ts:139

Helper function to check if the current room frame count is equal to or lower than a specific room frame count.

int

boolean


onRenderFrame(renderFrameCount): boolean

Defined in: packages/isaacscript-common/src/functions/frames.ts:152

Helper function to check if the current render frame count is exactly equal to a specific render frame count.

This returns false if the submitted render frame count is null or undefined.

int | null | undefined

boolean


onRoomFrame(roomFrameCount): boolean

Defined in: packages/isaacscript-common/src/functions/frames.ts:165

Helper function to check if the current room frame count is exactly equal to a specific room frame count.

This returns false if the submitted room frame count is null or undefined.

int | null | undefined

boolean