rtss-core/component/component.go

26 lines
384 B
Go
Raw Permalink Normal View History

2024-06-07 18:38:38 +08:00
package component
2024-06-14 16:56:55 +08:00
import "joylink.club/ecs"
var (
TurnoutQcType = ecs.NewComponentType[TurnoutQc]()
LimitMotorType = ecs.NewComponentType[LimitMotor]()
)
// 道岔驱采状态
2024-06-07 18:38:38 +08:00
type TurnoutQc struct {
CJ bool
DCJ bool
FCJ bool
DBJ bool
FBJ bool
}
2024-06-14 16:56:55 +08:00
// 限位电机状态
2024-06-07 18:38:38 +08:00
type LimitMotor struct {
Min int
Max int
Pos int
TransferSpeed int
}