iscs pscada 一次图 repository

This commit is contained in:
xzb 2023-12-20 16:09:29 +08:00
parent 2b72e6475f
commit d796011823

View File

@ -10,7 +10,7 @@ func LoadIscs(w ecs.World) error {
data := GetWorldData(w) data := GetWorldData(w)
//电力母线实体 //电力母线实体
for _, pipe := range data.Repo.PipeMap { for _, pipe := range data.Repo.PipeMap {
switch pipe.Type { switch pipe.PipeType {
case proto.Pipe_ElectricPower: case proto.Pipe_ElectricPower:
NewPowerPipeEntity(w, pipe.Id()) NewPowerPipeEntity(w, pipe.Id())
} }