generated from VLADIMIR/template
add map
This commit is contained in:
@@ -573,6 +573,25 @@ service EveningDetectiveServer {
|
||||
};
|
||||
}
|
||||
|
||||
rpc GetGameMap(GetGameMapReq) returns (GetGameMapRsp) {
|
||||
option (google.api.http) = { get: "/api/games/{gameId}/map" };
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
tags : "Экраны";
|
||||
summary: "Получить карту игры";
|
||||
};
|
||||
}
|
||||
|
||||
rpc UpdateGameMapItem(UpdateGameMapItemReq) returns (UpdateGameMapItemRsp) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/games/{gameId}/map/items/{kind}/{itemId}"
|
||||
body: "*"
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
tags : "Экраны";
|
||||
summary: "Изменить объект карты игры";
|
||||
};
|
||||
}
|
||||
|
||||
// Изменить общий режим показа всех экранов игры.
|
||||
rpc SetScreenMode(SetScreenModeReq) returns (SetScreenModeRsp) {
|
||||
option (google.api.http) = {
|
||||
@@ -1354,6 +1373,37 @@ message SetScreenSoundRsp {
|
||||
string error = 1;
|
||||
}
|
||||
|
||||
message MapItem {
|
||||
string kind = 1;
|
||||
int32 item_id = 2;
|
||||
string label = 3;
|
||||
int32 x = 4;
|
||||
int32 y = 5;
|
||||
bool hidden = 6;
|
||||
string status = 7;
|
||||
bool sound_enabled = 8;
|
||||
}
|
||||
|
||||
message GetGameMapReq {
|
||||
int32 gameId = 1;
|
||||
}
|
||||
|
||||
message GetGameMapRsp {
|
||||
string error = 1;
|
||||
repeated MapItem items = 2;
|
||||
}
|
||||
|
||||
message UpdateGameMapItemReq {
|
||||
int32 gameId = 1;
|
||||
string kind = 2;
|
||||
int32 itemId = 3;
|
||||
int32 x = 4;
|
||||
int32 y = 5;
|
||||
bool hidden = 6;
|
||||
}
|
||||
|
||||
message UpdateGameMapItemRsp { string error = 1; }
|
||||
|
||||
message SetScreenModeReq {
|
||||
int32 gameId = 1;
|
||||
ScreenMode mode = 2;
|
||||
|
||||
Reference in New Issue
Block a user