19 lines
337 B
Go
19 lines
337 B
Go
|
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
|
||
|
}
|