61 lines
1.0 KiB
Go
61 lines
1.0 KiB
Go
package component
|
|
|
|
import "joylink.club/ecs"
|
|
|
|
var PsdTag = ecs.NewTag()
|
|
|
|
var PsdCircuitType = ecs.NewComponentType[PsdCircuit]()
|
|
|
|
type PsdCircuit struct {
|
|
//屏蔽门驱动继电器
|
|
GMJ *ecs.Entry
|
|
KMJ4 *ecs.Entry
|
|
KMJ8 *ecs.Entry
|
|
//屏蔽门表示继电器
|
|
MGJ *ecs.Entry
|
|
MPLJ *ecs.Entry
|
|
}
|
|
|
|
var PsdMotorStateType = ecs.NewComponentType[PsdMotorState]()
|
|
|
|
// PsdMotorState 屏蔽门电机状态
|
|
type PsdMotorState struct {
|
|
//4编组开门通电
|
|
Km4 bool
|
|
//8编组开门通电
|
|
Km8 bool
|
|
//关门通电
|
|
Gm bool
|
|
}
|
|
|
|
var PsdPositionType = ecs.NewComponentType[PsdPosition]()
|
|
|
|
type PsdPosition struct {
|
|
km bool
|
|
gm bool
|
|
}
|
|
|
|
var PsdDriveCircuitType = ecs.NewComponentType[PsdDriveCircuit]()
|
|
|
|
// PsdDriveCircuit 屏蔽门驱动电路
|
|
type PsdDriveCircuit struct {
|
|
//屏蔽门驱动继电器接通状态
|
|
GMJ bool
|
|
KMJ4 bool
|
|
KMJ8 bool
|
|
}
|
|
|
|
var PsdCollectionCircuitType = ecs.NewComponentType[PsdCollectionCircuit]()
|
|
|
|
type PsdCollectionCircuit struct {
|
|
GMJ bool
|
|
KMJ4 bool
|
|
KMJ8 bool
|
|
//MGJ吸起
|
|
MGJ_X bool
|
|
//MGJ落下
|
|
MGJ_L bool
|
|
MPLJ_X bool
|
|
MPLJ_L bool
|
|
}
|