Open paperdave opened 3 years ago
Entity width was added in ldtk version 0.8.0
, but the latest version this library supports is 0.7.2
. I don't use ldtk anymore and had no idea that people were using this library. I took a quick look at the changes in https://ldtk.io/json/, and it doesn't seem like it would be too much effort to update everything. Nothing was removed, and a couple of things were added.
I'm definitely open to contributions! I'll probably get around to it by the end of the week, but if you'd like to give it a try, it would require:
src/typedef.ts
according to the JSON schema0.8.0
and 0.9.3
on this page (including editor-only values), and adding whatever seems necessary to the higher-level loaderno idea that people were using this library. i'm probably one of the only ones lol
and i didn't realize the thing about versions. I'll go ahead and see if i can get that done myself. like i know the width getter is literally just getting the .data.width
property.
thanks for the quick response
i understand that .data is supposed to be private, but not all properties are accessible this way. here is one line from my level loading code where i use an any type.
i love this library and i'd be fine contributing some extra functions to it, if that would be ok.