25 lines
611 B
Go
25 lines
611 B
Go
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]()
|
||
)
|