19 lines
452 B
Go
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}}
|
|
}
|