rts-sim-module/entity/init.go

20 lines
335 B
Go
Raw Normal View History

package entity
import (
"joylink.club/ecs"
"joylink.club/rtsssimulation/repository"
)
// 仿真实体加载
func Load(w ecs.World, repo *repository.Repository) error {
// 初始化世界数据单例组件
LoadWorldData(w, repo)
// 加载道岔相关实体
err := LoadTurnouts(w)
if err != nil {
return err
}
return err
}