Ejemplo n.º 1
0
        public void Tick(float dt)
        {
            ElapsedTime += dt;

            DefaultWorld.SetTime(new TimeData(ElapsedTime, dt));
            ServerWorld?.SetTime(new TimeData(ElapsedTime, dt));
            ClientWorld?.SetTime(new TimeData(ElapsedTime, dt));

            ServerWorld?.GetExistingSystem <ServerInitializationSystemGroup>().Update();
            ClientWorld.GetExistingSystem <ClientInitializationSystemGroup>().Update();

            DefaultWorld.GetExistingSystem <ChainServerSimulationSystem>().Update();
            DefaultWorld.GetExistingSystem <ChainClientSimulationSystem>().Update();

            ClientWorld.GetExistingSystem <ClientPresentationSystemGroup>().Update();
        }
Ejemplo n.º 2
0
 protected override IDeterminismTestSystem GetTestSystem() => DefaultWorld.GetExistingSystem <HavokPhysicsDeterminismTestSystem>();