rts-sim-module/examples/test1/tmodel/signal_model.go

17 lines
291 B
Go
Raw Normal View History

2023-08-24 10:27:50 +08:00
package tmodel
import (
"joylink.club/rtsssimulation/umi"
)
// 信号机
type SignalModel struct {
DeviceModel
//信号机所在轨道
LinkOffset *LinkOffsetRef
}
func NewSignalModel(id string) *SignalModel {
return &SignalModel{DeviceModel: DeviceModel{Id: id, Type: umi.Signal}}
}