Slapping in the mix.
This commit is contained in:
@@ -14,6 +14,7 @@ message ClientData {
|
||||
string Address = 2;
|
||||
string Name = 3;
|
||||
Coordinates coordinates = 4;
|
||||
bool hit = 5;
|
||||
}
|
||||
|
||||
message ClientCoordinates {
|
||||
@@ -27,4 +28,42 @@ message AllClients{
|
||||
|
||||
message ClientIdentity{
|
||||
int32 Id = 1;
|
||||
}
|
||||
}
|
||||
|
||||
message ClientEnvelope {
|
||||
oneof Payload {
|
||||
ClientCoordinates coordinates = 1;
|
||||
SlapEvent slap = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message SlapEvent {
|
||||
bool Slap = 1;
|
||||
}
|
||||
|
||||
message ClientEvent {
|
||||
int32 Id = 1;
|
||||
bool Connected = 2;
|
||||
}
|
||||
|
||||
message GameEvent {
|
||||
int32 Instigator = 1;
|
||||
int32 Target = 2;
|
||||
bool Slap = 3;
|
||||
}
|
||||
|
||||
message ServerEnvelope {
|
||||
oneof Payload {
|
||||
ClientIdentity identity = 1;
|
||||
AllClients broadcast = 2;
|
||||
ClientEvent event = 3;
|
||||
GameEvent gameevent = 4;
|
||||
}
|
||||
}
|
||||
|
||||
enum MessageType {
|
||||
MSG_TYPE_BROADCAST = 0;
|
||||
MSG_TYPE_IDENTITY = 1;
|
||||
MSG_TYPE_COORDINATES = 2;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user