basic bot api proto definition
This commit is contained in:
parent
0f80b19614
commit
c3d32e051c
1 changed files with 13 additions and 2 deletions
|
@ -10,6 +10,17 @@ message HelloResponse {
|
||||||
string response = 1;
|
string response = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
service TestService {
|
message PlayerRequest {
|
||||||
rpc greet(Hello) returns (HelloResponse);
|
int32 request_id = 1;
|
||||||
|
bytes content = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message PlayerRequestResponse {
|
||||||
|
int32 request_id = 1;
|
||||||
|
bytes content = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
service BotApiService {
|
||||||
|
// server sends requests to the player, player responds
|
||||||
|
rpc ConnectBot(stream PlayerRequestResponse) returns (stream PlayerRequest);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue