PalacePal/Pal.Common/Protos/palace.proto
Liza Carvelli aae717955d Initial Commit
Change release db path

cx
2022-10-23 05:48:57 +02:00

40 lines
686 B
Protocol Buffer

syntax = "proto3";
package palace;
service PalaceService {
rpc DownloadFloors(DownloadFloorsRequest) returns (DownloadFloorsReply);
rpc UploadFloors(UploadFloorsRequest) returns (UploadFloorsReply);
}
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;
}
message PalaceObject {
ObjectType type = 1;
float x = 2;
float y = 3;
float z = 4;
}
enum ObjectType {
OBJECT_TYPE_UNKNOWN = 0;
OBJECT_TYPE_TRAP = 1;
OBJECT_TYPE_HOARD = 2;
}