Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"rendersize" changed to "tilerendersize" in TmxReaderBase.Tileset.cs #44

Closed
wants to merge 7 commits into from

Conversation

differenceclouds
Copy link

@differenceclouds differenceclouds commented Nov 2, 2024

"rendersize" changed to "tilerendersize" in TmxReaderBase.Tileset.cs to match XML property. Seems to be correct elsewhere. I'm not a big PR'er, so unsure if I've done it correctly. Thanks for the awesome library!

@differenceclouds
Copy link
Author

differenceclouds commented Nov 4, 2024

Added a CustomEnumStorageType to the FromEnum method. Defaulting to .Int here tripped me up pretty good. Parametrizing this here will make people's lives easier. I think defaulting to .String is a good idea also since that is the default in the Tiled Custom Types Editor for enums, but I will leave this to your discretion.

Able to get string of value without knowing the property type.
It is generated for all values except EnumProperty, where it is set at construction. Ideally, all should be set at construction so it is 1:1 with the XML, but there are too many places to update, and generating the string is good enough.

Also in this commit: OverrideObject stack overflow bug fixed. Unsure what the original recursive structure was for.
When an unset Color property was parsed, an exception was thrown. This exception was moved into TryParse. Now, the Color can be null.
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