2022-10-23 02:38:58 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package palace;
|
|
|
|
|
|
|
|
service PalaceService {
|
|
|
|
rpc DownloadFloors(DownloadFloorsRequest) returns (DownloadFloorsReply);
|
|
|
|
rpc UploadFloors(UploadFloorsRequest) returns (UploadFloorsReply);
|
2022-10-31 16:34:47 +00:00
|
|
|
rpc MarkObjectsSeen(MarkObjectsSeenRequest) returns (MarkObjectsSeenReply);
|
2022-10-26 18:43:24 +00:00
|
|
|
rpc FetchStatistics(StatisticsRequest) returns (StatisticsReply);
|
2022-10-23 02:38:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message DownloadFloorsRequest {
|
|
|
|
uint32 territoryType = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DownloadFloorsReply {
|
|
|
|
bool success = 1;
|
|
|
|
repeated PalaceObject objects = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UploadFloorsRequest {
|
|
|
|
uint32 territoryType = 1;
|
|
|
|
repeated PalaceObject objects = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UploadFloorsReply {
|
|
|
|
bool success = 1;
|
2022-10-31 16:34:47 +00:00
|
|
|
repeated PalaceObject objects = 2;
|
2022-10-23 02:38:58 +00:00
|
|
|
}
|
|
|
|
|
2022-10-26 18:43:24 +00:00
|
|
|
message StatisticsRequest {
|
|
|
|
}
|
|
|
|
|
|
|
|
message StatisticsReply {
|
|
|
|
bool success = 1;
|
|
|
|
repeated FloorStatistics floorStatistics = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message FloorStatistics {
|
|
|
|
uint32 territoryType = 1;
|
|
|
|
uint32 trapCount = 2;
|
|
|
|
uint32 hoardCount = 3;
|
|
|
|
}
|
|
|
|
|
2022-10-23 02:38:58 +00:00
|
|
|
message PalaceObject {
|
|
|
|
ObjectType type = 1;
|
|
|
|
float x = 2;
|
|
|
|
float y = 3;
|
|
|
|
float z = 4;
|
2022-10-31 16:34:47 +00:00
|
|
|
|
|
|
|
// Ignored for uploaded markers.
|
|
|
|
string networkId = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message MarkObjectsSeenRequest {
|
|
|
|
uint32 territoryType = 1;
|
|
|
|
repeated string networkIds = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message MarkObjectsSeenReply {
|
|
|
|
bool success = 1;
|
2022-10-23 02:38:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
enum ObjectType {
|
|
|
|
OBJECT_TYPE_UNKNOWN = 0;
|
|
|
|
OBJECT_TYPE_TRAP = 1;
|
|
|
|
OBJECT_TYPE_HOARD = 2;
|
|
|
|
}
|