Added protocol documentation
This commit is contained in:
parent
a76c40d876
commit
157dde1021
2 changed files with 12 additions and 4 deletions
|
@ -1,11 +1,14 @@
|
||||||
|
Operation(Parameter) -> Callback
|
||||||
|
|
||||||
|
|
||||||
Server
|
Server
|
||||||
|
|
||||||
void Disconnect() // client closes connection
|
Disconnect() // client closes connection
|
||||||
void Error(Error)
|
Error(Error)
|
||||||
void OK()
|
OK()
|
||||||
SimpleAuth(SimpleAuth) -> UserInfoSync // client wants to authenticate anonymously
|
SimpleAuth(SimpleAuth) -> UserInfoSync // client wants to authenticate anonymously
|
||||||
RobotUpdate(Robot) -> RobotUpdate // client wants to change robot
|
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
|
MakeRoom() -> RoomInfoSync // client creates a room
|
||||||
JoinRoom(???) -> RoomInfoSync // client joins specific room
|
JoinRoom(???) -> RoomInfoSync // client joins specific room
|
||||||
JoinRandomRoom() -> RoomInfoSync // client joins random room
|
JoinRandomRoom() -> RoomInfoSync // client joins random room
|
5
doc/protocol.txt
Normal file
5
doc/protocol.txt
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
Packet {
|
||||||
|
uint16 Size;
|
||||||
|
Protobuf Operation;
|
||||||
|
Variadic Protobuf Parameter;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue