55 lines
1.1 KiB
Protocol Buffer
55 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
import "stationLayoutGraphics.proto";
|
|
|
|
package pslGraphicData;
|
|
option go_package = "./ts/protos/graphicData";
|
|
|
|
message PslGraphicStorage {
|
|
graphicData.Canvas canvas = 1;
|
|
repeated PslLight pslLights = 2; // psl圆形灯
|
|
repeated PslButton pslButtons = 3;
|
|
repeated PslKey pslKeys = 4;
|
|
repeated PslText pslTexts = 5;
|
|
repeated graphicData.DeviceCombinationtype gatedRelateDeviceList = 6;
|
|
}
|
|
|
|
|
|
/* PSL圆形灯 */
|
|
message PslLight {
|
|
|
|
graphicData.CommonInfo common = 1;
|
|
string code = 2;
|
|
// string topAnnotation = 3;
|
|
PslElementColor lightColor = 4;
|
|
}
|
|
|
|
enum PslElementColor {
|
|
red = 0;
|
|
green = 1;
|
|
blue = 2;
|
|
}
|
|
|
|
/** PSL按钮 */
|
|
message PslButton {
|
|
graphicData.CommonInfo common = 1;
|
|
string code = 2;
|
|
// string topAnnotation = 3;
|
|
PslElementColor buttonColor = 4;
|
|
bool isSelfReset = 5;
|
|
}
|
|
/** PSL钥匙 */
|
|
message PslKey {
|
|
graphicData.CommonInfo common = 1;
|
|
string code = 2;
|
|
// string topAnnotation = 3;
|
|
// string rightAnnotation = 4;
|
|
}
|
|
/** psl文字 */
|
|
message PslText {
|
|
graphicData.CommonInfo common = 1;
|
|
string code = 2;
|
|
string content = 3;
|
|
string color = 4;
|
|
int32 fontSize = 5;
|
|
}
|