26 lines
921 B
Go
26 lines
921 B
Go
|
package entity
|
||
|
|
||
|
import "joylink.club/ecs"
|
||
|
|
||
|
// LoadIscs 加载ISCS相关设备实体
|
||
|
func LoadIscs(w ecs.World) error {
|
||
|
data := GetWorldData(w)
|
||
|
for _, pipe := range data.Repo.PipeMap {
|
||
|
NewPowerPipeEntity(w, pipe.Id())
|
||
|
}
|
||
|
//
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
PipeMap map[string]*Pipe //ISCS 管线
|
||
|
PipeFittingMap map[string]*PipeFitting //ISCS 管件
|
||
|
CircuitBreakerMap map[string]*CircuitBreaker //ISCS 断路器
|
||
|
ThreePositionSwitchMap map[string]*ThreePositionSwitch //ISCS 三工位开关
|
||
|
HandcartSwitchMap map[string]*HandcartSwitch //ISCS 手车
|
||
|
RectifierMap map[string]*Rectifier //ISCS 整流器
|
||
|
DisconnectorMap map[string]*Disconnector //ISCS 隔离开关
|
||
|
VoltageTransformerMap map[string]*VoltageTransformer //ISCS 变压器
|
||
|
PowerSourceMap map[string]*PowerSource //ISCS 电源
|
||
|
*/
|