From c92814fcf2d4c961ff9308742c235ef9ac544c83 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Thu, 14 Mar 2024 17:59:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=97=E8=BD=A6=E9=A9=BE?= =?UTF-8?q?=E9=A9=B6=E5=8F=B0=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/picture.proto | 2 ++ protos/tccGraphics.proto | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 protos/tccGraphics.proto 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; +}