应答器增加可变报文状态及操作
This commit is contained in:
parent
247003d00b
commit
7372a5fa72
@ -39,6 +39,9 @@ func newBaliseEntity(w ecs.World, td *repository.Transponder, worldData *compone
|
||||
Telegram: td.FixedTelegram(),
|
||||
UserTelegram: td.FixedUserTelegram(),
|
||||
})
|
||||
if proto.Transponder_IB == td.BaliseType() || proto.Transponder_VB == td.BaliseType() {
|
||||
entry.AddComponent(component.BaliseVariableTelegramType)
|
||||
}
|
||||
component.LinkPositionType.SetValue(entry, component_data.LinkPosition{
|
||||
LinkId: td.LinkPosition().Link().Id(),
|
||||
Offset: td.LinkPosition().Offset(),
|
||||
|
@ -43,3 +43,7 @@ func (t *Transponder) LinkPosition() *LinkPosition {
|
||||
func (t *Transponder) Km() *proto.Kilometer {
|
||||
return t.km
|
||||
}
|
||||
|
||||
func (t *Transponder) BaliseType() proto.Transponder_Type {
|
||||
return t.baliseType
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user