2023-09-28 15:38:18 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2023-10-09 18:07:39 +08:00
|
|
|
"time"
|
2023-10-09 14:24:53 +08:00
|
|
|
|
2023-09-28 15:38:18 +08:00
|
|
|
rtss_simulation "joylink.club/rtsssimulation"
|
|
|
|
"joylink.club/rtsssimulation/repository"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2023-10-09 14:24:53 +08:00
|
|
|
sim := rtss_simulation.NewSimulation(&repository.Repository{})
|
|
|
|
sim.StartUp()
|
2023-10-09 18:07:39 +08:00
|
|
|
sim.SetSpeed(2)
|
|
|
|
time.Sleep(1 * time.Second)
|
|
|
|
sim.Close()
|
|
|
|
time.Sleep(2 * time.Second)
|
2023-09-28 15:38:18 +08:00
|
|
|
}
|