2023-11-23 13:17:09 +08:00
|
|
|
package component
|
|
|
|
|
|
|
|
import "joylink.club/ecs"
|
|
|
|
|
|
|
|
var (
|
2024-01-22 11:06:16 +08:00
|
|
|
BaliseFB = ecs.NewTag() // 固定应答器
|
|
|
|
BaliseWB = ecs.NewTag() // 轮径校正应答器
|
|
|
|
BaliseDB = ecs.NewTag() // 休眠唤醒应答器
|
|
|
|
BaliseVB = ecs.NewTag() // 主信号应答器
|
|
|
|
BaliseIB = ecs.NewTag() // 预告应答器
|
2023-11-23 13:17:09 +08:00
|
|
|
)
|
2024-01-22 11:06:16 +08:00
|
|
|
var BaliseFixedTelegramType = ecs.NewComponentType[BaliseState]() //应答器固定报文
|
|
|
|
var BaliseVariableTelegramType = ecs.NewComponentType[BaliseState]() //应答器可变报文
|
|
|
|
type BaliseState struct {
|
|
|
|
Telegram []byte //报文
|
|
|
|
UserTelegram []byte //用户报文
|
|
|
|
}
|