1
0
Fork 0
mirror of synced 2025-03-06 20:53:27 +01:00

Added protocol documentation

This commit is contained in:
niansa/tuxifan 2022-05-11 11:24:54 +02:00
parent a76c40d876
commit 157dde1021
2 changed files with 12 additions and 4 deletions

View file

@ -1,11 +1,14 @@
Operation(Parameter) -> Callback
Server
void Disconnect() // client closes connection
void Error(Error)
void OK()
Disconnect() // client closes connection
Error(Error)
OK()
SimpleAuth(SimpleAuth) -> UserInfoSync // client wants to authenticate anonymously
RobotUpdate(Robot) -> RobotUpdate // client wants to change robot
void RoomInfoSync(RoomInfo) <- TODO // client wants to change room info
RoomInfoSync(RoomInfo) <- TODO // client wants to change room info
MakeRoom() -> RoomInfoSync // client creates a room
JoinRoom(???) -> RoomInfoSync // client joins specific room
JoinRandomRoom() -> RoomInfoSync // client joins random room

5
doc/protocol.txt Normal file
View file

@ -0,0 +1,5 @@
Packet {
uint16 Size;
Protobuf Operation;
Variadic Protobuf Parameter;
}