rts-sim-module/model/signal_model.go
2023-08-21 15:12:57 +08:00

19 lines
452 B
Go

package model
import "joylink.club/rtsssimulation/state"
// 信号机
type SignalModel struct {
DeviceModel
//信号机所在轨道
LinkOffset *LinkOffsetRef
//信号机类型,出厂已确定,即几个色灯、排列顺序
Type state.SignalAspect
//默认显示信号
DefaultDisplay state.SignalAspect
}
func NewSignalModel(id string) *SignalModel {
return &SignalModel{DeviceModel: DeviceModel{Id: id, Type: state.DeviceType_Signal}}
}