We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da1fbfc commit 50131a0Copy full SHA for 50131a0
packages/isaac-typescript-definitions/src/types/classes/Sprite.d.ts
@@ -187,8 +187,10 @@ declare interface Sprite extends IsaacAPIClass {
187
* @param layerID
188
* @param pngPath The full path to the PNG file. For example:
189
* "gfx/items/collectibles/questionmark.png"
190
+ * @returns `true` if the spritesheet at the given layer ID was successfully replaced and if the
191
+ * new spritesheet is not the same as the old one, otherwise `false`.
192
*/
- ReplaceSpritesheet: (layerID: int, pngPath: string) => void;
193
+ ReplaceSpritesheet: (layerID: int, pngPath: string) => boolean;
194
195
/**
196
* Resets the sprite such that it will be equivalent to a new sprite created with the `Sprite`
0 commit comments