rts-sim-module/component/iscs_bas_elevator.go

25 lines
611 B
Go
Raw 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"
"joylink.club/rtsssimulation/consts"
)
// Escalator 自动扶梯
type Escalator struct {
Running int8 //0-停止1-上行;-1-下行
EmergencyStop bool //true-急停
Exception consts.DeviceExceptionEnum //具体异常
}
// Elevator 垂直电梯
type Elevator struct {
Running bool //true-运行false-停止
Exception consts.DeviceExceptionEnum //具体异常
}
var (
EscalatorType = ecs.NewComponentType[Escalator]()
ElevatorType = ecs.NewComponentType[Elevator]()
)