rtss-core/component/component.go

26 lines
384 B
Go

package component
import "joylink.club/ecs"
var (
TurnoutQcType = ecs.NewComponentType[TurnoutQc]()
LimitMotorType = ecs.NewComponentType[LimitMotor]()
)
// 道岔驱采状态
type TurnoutQc struct {
CJ bool
DCJ bool
FCJ bool
DBJ bool
FBJ bool
}
// 限位电机状态
type LimitMotor struct {
Min int
Max int
Pos int
TransferSpeed int
}