Skip to content

Conversation

@Lojemiru
Copy link
Contributor

@Lojemiru Lojemiru commented Mar 7, 2023

This PR is specifically created to introduce functionality and null safety to facilitate deepnight/ldtk#853

Adds a null check to build() so that TiledTextures may be instantiated (and can have build() run) without an assigned tile.

Changes the constructor signature to allow for tile-less instantiation.

Adds an override for the drawTo(Texture) method, allowing TiledTextures to be rendered directly to Textures.

Performed some minor cleanup to make the build() loop more efficient.

@deepnight deepnight merged commit 61226bd into deepnight:master Apr 19, 2023
@deepnight
Copy link
Owner

Thanks for the new feature 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants