rts-sim-module/component/iscs_bas_elevator.go
2023-12-19 11:11:27 +08:00

24 lines
489 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package component
import (
"joylink.club/ecs"
)
// Escalator 自动扶梯
// 具体异常-故障、异常、通信中断
type Escalator struct {
Running int8 //0-停止1-上行;-1-下行
EmergencyStop bool //true-急停
}
// Elevator 垂直电梯
// 具体异常-故障、异常、通信中断
type Elevator struct {
Running bool //true-运行false-停止
}
var (
EscalatorType = ecs.NewComponentType[Escalator]()
ElevatorType = ecs.NewComponentType[Elevator]()
)