isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
13 lines • 787 B
TypeScript
/**
* Helper function to see if the current render callback is rendering a water reflection.
*
* When the player is in a room with water, things will be rendered twice: once for the normal
* rendering, and once for the reflecting rendering. Thus, any mod code in a render callback will
* run twice per frame in these situations, which may be unexpected or cause bugs.
*
* This function is typically used to early return from a render function if it returns true.
*/
export declare function isReflectionRender(): boolean;
export declare function renderScaledTextOnEntity(entity: Entity | GridEntity, text: string, scaleX: float, scaleY: float): void;
export declare function renderTextOnEntity(entity: Entity | GridEntity, text: string): void;
//# sourceMappingURL=render.d.ts.map