submodule提交

This commit is contained in:
walker 2023-10-09 18:07:39 +08:00
parent 6baeb0d0f2
commit 2f054f0132
3 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,7 @@
package main
import (
"fmt"
"time"
rtss_simulation "joylink.club/rtsssimulation"
"joylink.club/rtsssimulation/repository"
@ -9,6 +9,9 @@ import (
func main() {
sim := rtss_simulation.NewSimulation(&repository.Repository{})
fmt.Println(sim.Id())
sim.StartUp()
sim.SetSpeed(2)
time.Sleep(1 * time.Second)
sim.Close()
time.Sleep(2 * time.Second)
}

@ -1 +1 @@
Subproject commit 3e93f029564904dcc0a2537458fd0a64e3aa4540
Subproject commit 47f78cb54ddc2673b87d3f85eea23e3769e417ad

View File

@ -21,4 +21,6 @@ func (s *WorldTimeSys) Update(w ecs.World) {
entry, _ := s.query.First(w)
data := component.WorldDataType.Get(entry)
data.Time += int64(w.Tick())
// t := time.UnixMilli(data.Time)
// fmt.Println(t)
}