package sys import ( "joylink.club/ecs" "joylink.club/rtsssimulation/component/singleton" ) // 世界时间更新系统 type WorldTimeSys struct { } func NewWorldTimeSys() *WorldTimeSys { return &WorldTimeSys{} } func (s *WorldTimeSys) Update(w ecs.World) { singleton.GetWorldTime(w).Run(w.Tick()) // t := time.UnixMilli(data.Time) // fmt.Println(t) }