rts-sim-module/sys/world_time.go

21 lines
362 B
Go
Raw Permalink Normal View History

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())
2023-10-09 18:07:39 +08:00
// t := time.UnixMilli(data.Time)
// fmt.Println(t)
}