PewServer/messages.proto
2024-07-31 17:29:27 +02:00

33 lines
496 B
Protocol Buffer

syntax = "proto3";
option go_package = "main";
package main;
message Packet {
int32 id = 1;
oneof payload{
Ping ping = 2;
Handshake handshake = 3;
LocationUpdate locationUpdate = 4;
}
}
message Ping {
bytes data = 1;
}
message LocationUpdate {
int64 positionX = 1;
int64 positionY = 2;
int64 positionZ = 3;
int64 velocityX = 4;
int64 velocityY = 5;
int64 velocityZ = 6;
int64 rotationX = 7;
int64 rotationY = 8;
}
message Handshake {
string name = 1;
}