初始化提交

This commit is contained in:
2025-07-09 03:03:01 +08:00
commit e5e02d2430
15 changed files with 1237 additions and 0 deletions

33
proto/server.proto Normal file
View File

@ -0,0 +1,33 @@
syntax = "proto3";
option go_package = "router/minecraft";
enum ServerPacketType {
PING = 0;
PONG = 1;
NEW = 2;
DELETE = 3;
CONNECT = 4;
}
message ServerPacket {
ServerPacketType typ = 1;
optional bytes payload = 2;
}
message ServerNewPacket {
string serverId = 1;
string name = 2;
string host = 3;
int32 port = 4;
string motd = 5;
string group = 6;
}
message ServerDeletePacket {
string serverId = 1;
}
message ServerConnectPacket {
string serverId = 1;
string player = 2;
}