Convenience constructor for PartialTextureSprite

This commit is contained in:
Natty 2022-04-06 22:19:06 +02:00
parent efb6b3ba04
commit 8313c08034
No known key found for this signature in database
GPG Key ID: 40AB22FA416C7019
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,6 @@
## 22.0.0.0-alpha.6
* `[PlutoSpritesheet]` Added a constructor to `PartialTextureSprite` that initializes the spritesheet to `null`
## 22.0.0.0-alpha.5
* `[PlutoRuntime]` Fixed module load ordering

View File

@ -22,7 +22,7 @@ object Versions {
const val isPrerelease = true
const val prereleaseName = "alpha"
const val prerealeaseUpdate = 5
const val prerealeaseUpdate = 6
val versionFull =
if (isPrerelease)

View File

@ -21,6 +21,11 @@ public class PartialTextureSprite implements Sprite<RectangleTexture>
this.height = height;
}
public PartialTextureSprite(int x, int y, int width, int height)
{
this(null, x, y, width, height);
}
@Override
public int getX()
{