【新增】防淹门构建为车库门模型逻辑

【bug】当缺少继电器时,车库门的ecs系统逻辑和状态发送逻辑执行出错
This commit is contained in:
thesai 2024-04-01 13:31:37 +08:00
parent cf783364fe
commit cf942ab318

View File

@ -22,6 +22,9 @@ func NewCkmSys() *CkmSys {
func (p *CkmSys) Update(world ecs.World) {
worldData := entity.GetWorldData(world)
p.query.Each(world, func(entry *ecs.Entry) {
if !entry.HasComponent(component.CkmCircuitType) {
return
}
posCom := component.FixedPositionTransformType.Get(entry)
circuit := component.CkmCircuitType.Get(entry) //目前不考虑没有车库门电路的情况
//车库门PSL