isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
22 lines • 995 B
TypeScript
/**
* Helper function to create a read-only `Color` object. (Otherwise, you would have to manually
* specify both the type and the constructor.)
*
* Note that read-only colors will be writable at run-time.
*/
export declare function newReadonlyColor(r: float, g: float, b: float, a?: float, ro?: int, go?: int, bo?: int): Readonly<Color>;
/**
* Helper function to create a read-only `KColor` object. (Otherwise, you would have to manually
* specify both the type and the constructor.)
*
* Note that read-only colors will be writable at run-time.
*/
export declare function newReadonlyKColor(r: float, g: float, b: float, a: float): Readonly<KColor>;
/**
* Helper function to create a read-only `Vector` object. (Otherwise, you would have to manually
* specify both the type and the constructor.)
*
* Note that read-only vectors will be writable at run-time.
*/
export declare function newReadonlyVector(x: float, y: float): Readonly<Vector>;
//# sourceMappingURL=readOnly.d.ts.map