Going to require:
- Update Encodable trait
encode methods to use bf.write_varint().
- Add a
write_varint() method for Bufferfish.
- Update codegen to read varints on the JS side automatically.
Probably use a simple most significant bit variation for encoding, as negative values (thus signed ints) are not used in network messages for the game server.
Going to require:
encodemethods to usebf.write_varint().write_varint()method forBufferfish.Probably use a simple most significant bit variation for encoding, as negative values (thus signed ints) are not used in network messages for the game server.