This commit is contained in:
2026-09-10 03:51:22 +07:00
parent 3b85484701
commit d0c8700a7a
10 changed files with 1351 additions and 378 deletions
+50
View File
@@ -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;