mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +08:00
Add Protobuf dependency, define proto messages for player requests, positions, and chunk data. Refactor Session to use strand and async write. Implement player join/exit and position sync in ServerWorld.
10 lines
115 B
Protocol Buffer
10 lines
115 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
message PlayerPos {
|
|
string name = 1;
|
|
float x = 2;
|
|
float y = 3;
|
|
float z = 4;
|
|
}
|
|
|