gm_voxelate
gm_voxelate copied to clipboard
Refactor Networking
C++ networking now uses structs. I'm using a nasty compiler hack to compile the structs with the exact offsets. I'm not sure if this will be a problem in platforms that don't use msvc/gcc. We'll have to see.
If we have any further issues with the new networking style, I suggest going for a better solution like protobufs.
Lua networking should stop using the bitbuf from sourcenet and instead use a lua implemented bitbuf
For now I'm happy with your networking mode (first byte decides where the packet is routed) I'll see where I can take this in the future.
Checklist:
- [x] Fix C++ networking and replace C++ bitbuf with structs
- [ ] Remove gm_sourcenet and lua bindings to the C++ bitbuf