You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
hexmap/proto/server.proto

38 lines
649 B

syntax = "proto3";
import "action.proto";
import "state.proto";
option go_package = "git.reya.zone/reya/hexmap/server/websocket";
message ServerHelloPB {
uint32 version = 1;
SyncableStatePB state = 2;
}
message ServerRefreshPB {
SyncableStatePB state = 1;
}
message ServerOKPB {
repeated uint32 ids = 1;
}
message ServerFailedPB {
repeated uint32 ids = 1;
string error = 2;
}
message ServerActPB {
repeated ServerActionPB actions = 1;
}
message ServerCommandPB {
oneof command {
ServerHelloPB hello = 1;
ServerRefreshPB refresh = 2;
ServerOKPB ok = 3;
ServerFailedPB failed = 4;
ServerActPB act = 5;
}
}