rtss-core/rtss.go

19 lines
337 B
Go
Raw Normal View History

2024-06-07 18:38:38 +08:00
package rtss_core
import (
"joylink.club/ecs"
"joylink.club/rtss-core/repo"
simconfig "joylink.club/rtss-core/sim_config"
)
const (
// 仿真循环间隔,单位ms
Tick = 20
)
// NewRtss 创建一个RTSS仿真系统
func NewRtss(repo repo.Repo, cfg simconfig.Config) (ecs.World, error) {
w := ecs.NewWorld(Tick)
return w, nil
}