Open trunghq3101 opened 1 year ago
But according to the current Tiled format, template is not a child node anymore
Can you clarify what docs and when this changed? If it changed relatively recently we may want to check for the template xml the old way, and then if it's not there, check the new way. That would support both versions of Tiled. I would also add inline comments that link to the relevant Tiled docs and version changes
@trunghq3101 any update on this?
@trunghq3101 any update on this?
I'm gonna continue working on this. I'm kinda being distracted by working on my game lately.
But according to the current Tiled format, template is not a child node anymore
Can you clarify what docs and when this changed? If it changed relatively recently we may want to check for the template xml the old way, and then if it's not there, check the new way. That would support both versions of Tiled. I would also add inline comments that link to the relevant Tiled docs and version changes
According to this change log, template
has been just a field of an object
since day one. I didn't take a look at this when creating this PR. Is the any chance that our parser has never actually worked?
According to this change log,
template
has been just a field of anobject
since day one. I didn't take a look at this when creating this PR. Is the any chance that our parser has never actually worked?
Sorry for the extremely late reply, it should be pretty simple to verify that with a small test, right?
Description
Currently,
template
is parsed from a child node like this:But according to the current Tiled format,
template
is not a child node anymore:There is no place to load the template file as well. So, it is never found, that's why the
template
field in a parsedTiledObject
is alwaysnull
. I believe it's related to the issue https://github.com/flame-engine/tiled.dart/issues/47.The object
id
is also not required anymore:Checklist
fix:
,feat:
,docs:
etc).docs
and added dartdoc comments with///
.examples
.Breaking Change
Related Issues
Fixes #47