Hey guys, lately I've been getting my godot project to work with my old server, and I got it to recieve, process and send data. For sending data I've been relying on RawArrays in which I put the string I want to send followed by
.to_utf8. Works well.
However, I need to send more types of data other than strings and single byte integers, like a signed 32bit integer, which I couldn't find any kind of support in the docs.
I know about
.put_32 function in the StreamPeer, but that is only useful when sending one type of information per packet, which is not a common situation.
Is there a alternative to convert data in other encodings? I'm looking for an int
.to_s32(signed 32bits) that would return a RawArray, much like string
Is something like that already in the engine? Should I make a request?