mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
Add a wrapper.
Took 35 minutes
This commit is contained in:
parent
e5f23f1906
commit
1d1de904e0
164 changed files with 25 additions and 34 deletions
20
libs/protocol/pb/server_message.proto
Normal file
20
libs/protocol/pb/server_message.proto
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
syntax = "proto2";
|
||||
import "response.proto";
|
||||
import "session_event.proto";
|
||||
import "game_event_container.proto";
|
||||
import "room_event.proto";
|
||||
|
||||
message ServerMessage {
|
||||
enum MessageType {
|
||||
RESPONSE = 0;
|
||||
SESSION_EVENT = 1;
|
||||
GAME_EVENT_CONTAINER = 2;
|
||||
ROOM_EVENT = 3;
|
||||
}
|
||||
optional MessageType message_type = 1;
|
||||
|
||||
optional Response response = 2;
|
||||
optional SessionEvent session_event = 3;
|
||||
optional GameEventContainer game_event_container = 4;
|
||||
optional RoomEvent room_event = 5;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue