rts-sim-testing-message/protos/ibpGraphics.proto

61 lines
1.0 KiB
Protocol Buffer
Raw Normal View History

2023-10-09 16:45:26 +08:00
syntax = "proto3";
import "stationLayoutGraphics.proto";
package ibpGraphicData;
message IBPGraphicStorage {
graphicData.Canvas canvas = 1;
repeated IBPButton ibpButtons = 2;
2023-10-09 18:24:22 +08:00
repeated IbpAlarm ibpAlarms = 3;
repeated IbpKey ibpKeys = 4;
repeated IbpArrow ibpArrows = 5;
repeated IBPText IBPTexts = 6;
2023-10-09 16:45:26 +08:00
}
message IBPButton {
enum IbpButtonColor {
gray = 0;
red = 1;
green = 2;
blue = 3;
yellow = 4;
}
graphicData.CommonInfo common = 1;
string code = 2;
IbpButtonColor color = 3;
bool isSelfReset = 4;
}
message IBPText {
graphicData.CommonInfo common = 1;
2023-10-09 18:24:22 +08:00
string code = 2;
string content = 3;
string color = 4;
int32 fontSize = 5;
}
message IbpAlarm {
graphicData.CommonInfo common = 1;
string code = 2;
}
message IbpKey {
graphicData.CommonInfo common = 1;
string code = 2;
}
message Point {
// x坐标
float x = 1;
// y坐标
float y = 2;
}
message IbpArrow {
graphicData.CommonInfo common = 1;
string code = 2;
repeated Point points = 3;
2023-10-09 16:45:26 +08:00
}