[修改]区段、Link、运营方向/位置之间互相转换的函数的bug
This commit is contained in:
parent
a613ac109b
commit
468cc78964
@ -44,6 +44,10 @@ type Turnout struct {
|
||||
componentGroups []*ElectronicComponentGroup
|
||||
}
|
||||
|
||||
func (t *Turnout) Km() *proto.Kilometer {
|
||||
return t.km
|
||||
}
|
||||
|
||||
func NewTurnout(id string, km *proto.Kilometer, switchMachineType proto.Turnout_SwitchMachineType) *Turnout {
|
||||
return &Turnout{
|
||||
Identity: identity{id, proto.DeviceType_DeviceType_Turnout},
|
||||
|
Loading…
Reference in New Issue
Block a user