rts-sim-module/proto/src/component/signal.proto

36 lines
426 B
Protocol Buffer
Raw Normal View History

2023-10-19 10:31:05 +08:00
syntax = "proto3";
package component;
option go_package = "./component/component_proto";
2023-10-19 13:43:31 +08:00
// 信号机
2023-10-19 10:31:05 +08:00
message Signal {
2023-10-19 13:43:31 +08:00
//信号机故障
2023-10-19 10:31:05 +08:00
enum Fault {
// 灯丝断丝
DS = 0;
}
2023-10-19 13:43:31 +08:00
//信号机故障列表
2023-10-19 10:31:05 +08:00
repeated Fault fault = 1;
2023-10-19 13:43:31 +08:00
}
// 灯
message Light{
//灯色
enum Color {
//无
N = 0;
//绿
L = 1;
//红
H = 2;
//黄
U = 3;
//白
B=4;
//蓝
A=5;
}
}