增加列车驾驶台图

This commit is contained in:
joylink_zhaoerwei 2024-03-14 17:59:49 +08:00
parent 225f92b91c
commit c92814fcf2
2 changed files with 35 additions and 0 deletions

View File

@ -13,4 +13,6 @@ enum PictureType {
IBP = 3; IBP = 3;
/** 列车数据 */ /** 列车数据 */
TrainData = 4; TrainData = 4;
/** 列车驾驶台 */
TrainControlCab = 5;
} }

33
protos/tccGraphics.proto Normal file
View File

@ -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;
}