diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-06-08 22:37:38 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-06-08 22:37:38 +0200 |
commit | 1b2472fbfc876c3f8b6cf5dd6164308123fed133 (patch) | |
tree | 95379aef5fe02e9e9a81b77feb86037985233fd1 /proto | |
parent | 028d4a99e4033f9289239600c0dd6ec499a99c04 (diff) | |
download | planetwars.dev-1b2472fbfc876c3f8b6cf5dd6164308123fed133.tar.xz planetwars.dev-1b2472fbfc876c3f8b6cf5dd6164308123fed133.zip |
implement grpc match creation PoC
Diffstat (limited to 'proto')
-rw-r--r-- | proto/bot_api.proto | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/proto/bot_api.proto b/proto/bot_api.proto index 0892270..08839f0 100644 --- a/proto/bot_api.proto +++ b/proto/bot_api.proto @@ -20,7 +20,17 @@ message PlayerRequestResponse { bytes content = 2; } +message MatchRequest { + string opponent_name = 1; +} + +message CreatedMatch { + int32 match_id = 1; + string player_key = 2; +} + service BotApiService { + rpc CreateMatch(MatchRequest) returns (CreatedMatch); // server sends requests to the player, player responds rpc ConnectBot(stream PlayerRequestResponse) returns (stream PlayerRequest); } |