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