rts-sim-module/component/iscs_bas_elevator.go

25 lines
611 B
Go
Raw Normal View History

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]()
)