Replies: 1 comment 1 reply
-
Makes sense, thanks for the suggestion. Turns out I cannot convert the discussion into an issue, but I've created a new one to track progress. If you'd like to submit a pull request, please reference #334. Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I just used
com.badlogic.gdx.utils.FloatArray
to serialize array of floats to json and came up with the fact that I can't generate them easily for no argument constructor, so I did that thing:And now I can write concise data classes for serialization purposes:
I just thought it would be nice to have factory functions for all libgdx primitive type arrays in
ktx.collections
.Here are the ones I could find:
BooleanArray
ByteArray
CharArray
FloatArray
IntArray
LongArray
ShortArray
Beta Was this translation helpful? Give feedback.
All reactions