2023-09-26 18:06:15 +08:00
|
|
|
|
package component
|
|
|
|
|
|
2024-01-12 18:20:21 +08:00
|
|
|
|
import (
|
|
|
|
|
"joylink.club/ecs"
|
|
|
|
|
"joylink.club/rtsssimulation/component/component_data"
|
|
|
|
|
"joylink.club/rtsssimulation/component/relation"
|
|
|
|
|
)
|
2023-09-26 18:06:15 +08:00
|
|
|
|
|
|
|
|
|
// 断相保护器标签
|
2024-01-12 18:20:21 +08:00
|
|
|
|
var (
|
|
|
|
|
DBQTag = ecs.NewTag()
|
|
|
|
|
// 断相保护器模型数据引用组件类型
|
|
|
|
|
DbqModelRelaType = relation.DbqModelRelaType
|
|
|
|
|
// 断相保护器状态组件类型
|
|
|
|
|
DbqStateType = ecs.NewComponentType[component_data.DbqState]()
|
|
|
|
|
)
|
2023-09-26 18:06:15 +08:00
|
|
|
|
|
2024-01-12 18:20:21 +08:00
|
|
|
|
// // 断相保护器控制请求组件
|
|
|
|
|
// type DBQState struct {
|
|
|
|
|
// Td bool // 是否通电,true:通电
|
|
|
|
|
// Dzkg bool // 电子开关状态,true: 开
|
|
|
|
|
// }
|
2023-09-26 18:06:15 +08:00
|
|
|
|
|
2024-01-12 18:20:21 +08:00
|
|
|
|
// var DBQStateType = ecs.NewComponentType[DBQState]()
|