diff --git a/protos/picture.proto b/protos/picture.proto index e2143ba..a916e43 100644 --- a/protos/picture.proto +++ b/protos/picture.proto @@ -13,4 +13,6 @@ enum PictureType { IBP = 3; /** 列车数据 */ TrainData = 4; + /** 列车驾驶台 */ + TrainControlCab = 5; } diff --git a/protos/tccGraphics.proto b/protos/tccGraphics.proto new file mode 100644 index 0000000..56cf6ca --- /dev/null +++ b/protos/tccGraphics.proto @@ -0,0 +1,33 @@ +syntax = "proto3"; +import "stationLayoutGraphics.proto"; + +package tccGraphicData; +option go_package = "joylink.club/bj-rtsts-server/dto/data_proto"; + +message TccGraphicStorage { + graphicData.Canvas canvas = 1; + repeated TccButton tccButtons = 2; + repeated TccText tccTexts = 3; +} + +enum TccElementColor { + green = 0; + red = 1; +} + +/** TCC按钮 */ +message TccButton { + graphicData.CommonInfo common = 1; + string code = 2; + TccElementColor buttonColor = 3; + bool isSelfReset = 4; +} + +/** TCC文字 */ +message TccText { + graphicData.CommonInfo common = 1; + string code = 2; + string content = 3; + string color = 4; + int32 fontSize = 5; +}