80 lines
1.6 KiB
Go
80 lines
1.6 KiB
Go
|
package component
|
||
|
|
||
|
import "joylink.club/ecs"
|
||
|
|
||
|
// SPK继电器控制电路
|
||
|
type SpkControlElectronic struct {
|
||
|
SPKSXPLA_BTN *ecs.Entry
|
||
|
SPKSX1J_BTN *ecs.Entry
|
||
|
SPKSX3J_BTN *ecs.Entry
|
||
|
SPKSX1J *ecs.Entry
|
||
|
SPKSX3J *ecs.Entry
|
||
|
|
||
|
SPKSSPLA_BTN *ecs.Entry
|
||
|
SPKSS2J_BTN *ecs.Entry
|
||
|
SPKSS4J_BTN *ecs.Entry
|
||
|
SPKSS2J *ecs.Entry
|
||
|
SPKSS4J *ecs.Entry
|
||
|
}
|
||
|
|
||
|
// SPK继电器元器件组件
|
||
|
var SpkControlElectronicType = ecs.NewComponentType[SpkControlElectronic]()
|
||
|
|
||
|
// SPK标识电路
|
||
|
type SpksStateElectronic struct {
|
||
|
SPKSX1J *ecs.Entry
|
||
|
SPKSX3J *ecs.Entry
|
||
|
SPKSS2J *ecs.Entry
|
||
|
SPKSS4J *ecs.Entry
|
||
|
|
||
|
SPKSXPLAJ *ecs.Entry
|
||
|
SPKSSPLAJ *ecs.Entry
|
||
|
|
||
|
SPKSX1D bool
|
||
|
SPKSX3D bool
|
||
|
SPKSS2D bool
|
||
|
SPKSS4D bool
|
||
|
SPKSXPLAD bool
|
||
|
SPKSSPLAD bool
|
||
|
|
||
|
SDA *ecs.Entry
|
||
|
}
|
||
|
|
||
|
// SPK继电器元器件组件
|
||
|
var SpksStateElectronicType = ecs.NewComponentType[SpksStateElectronic]()
|
||
|
|
||
|
// EMP 控制电路
|
||
|
type EmpControlElectronic struct {
|
||
|
EMP1_BTN *ecs.Entry
|
||
|
EMP3_BTN *ecs.Entry
|
||
|
EMP5_BTN *ecs.Entry
|
||
|
EMPX_BTN *ecs.Entry
|
||
|
XEMPFA_BTN *ecs.Entry
|
||
|
XEMPJ *ecs.Entry // 继电器
|
||
|
|
||
|
EMP2_BTN *ecs.Entry
|
||
|
EMP4_BTN *ecs.Entry
|
||
|
EMP6_BTN *ecs.Entry
|
||
|
EMPS_BTN *ecs.Entry
|
||
|
SEMPFA_BTN *ecs.Entry
|
||
|
SEMPJ *ecs.Entry // 继电器
|
||
|
}
|
||
|
|
||
|
var EmpControlElectronicType = ecs.NewComponentType[EmpControlElectronic]()
|
||
|
|
||
|
// EMP 标识状态电路
|
||
|
type EmpStateElectronic struct {
|
||
|
XEMPJ *ecs.Entry // 继电器
|
||
|
XEMPD bool
|
||
|
XEMPD_SDA *ecs.Entry // 按钮
|
||
|
|
||
|
SEMPJ *ecs.Entry // 继电器
|
||
|
SEMPD bool
|
||
|
SEMPD_SDA *ecs.Entry // 按钮
|
||
|
|
||
|
QBA *ecs.Entry // 非自复位按钮
|
||
|
FMQ bool // 蜂鸣器
|
||
|
}
|
||
|
|
||
|
var EmpStateElectronicType = ecs.NewComponentType[EmpStateElectronic]()
|