submodule提交
This commit is contained in:
parent
6baeb0d0f2
commit
2f054f0132
@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"time"
|
||||||
|
|
||||||
rtss_simulation "joylink.club/rtsssimulation"
|
rtss_simulation "joylink.club/rtsssimulation"
|
||||||
"joylink.club/rtsssimulation/repository"
|
"joylink.club/rtsssimulation/repository"
|
||||||
@ -9,6 +9,9 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
sim := rtss_simulation.NewSimulation(&repository.Repository{})
|
sim := rtss_simulation.NewSimulation(&repository.Repository{})
|
||||||
fmt.Println(sim.Id())
|
|
||||||
sim.StartUp()
|
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
|
@ -21,4 +21,6 @@ func (s *WorldTimeSys) Update(w ecs.World) {
|
|||||||
entry, _ := s.query.First(w)
|
entry, _ := s.query.First(w)
|
||||||
data := component.WorldDataType.Get(entry)
|
data := component.WorldDataType.Get(entry)
|
||||||
data.Time += int64(w.Tick())
|
data.Time += int64(w.Tick())
|
||||||
|
// t := time.UnixMilli(data.Time)
|
||||||
|
// fmt.Println(t)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user