public static void SendSimulationInfo()
        {
            Debug.Assert(Sync.IsServer, "Only server should send simulation ratio");

            var msg = new SimulationInfoMsg();

            msg.SimulationSpeed = Sandbox.Engine.Physics.MyPhysics.SimulationRatio;
            MySession.Static.SyncLayer.SendMessageToAll(ref msg);
        }
 static void OnSimulationInfo(ref SimulationInfoMsg msg, MyNetworkClient sender)
 {
     Sync.ServerSimulationRatio = msg.SimulationSpeed;
 }
        public static void SendSimulationInfo()
        {
            Debug.Assert(Sync.IsServer, "Only server should send simulation ratio");

            var msg = new SimulationInfoMsg();
            msg.SimulationSpeed = Sandbox.Engine.Physics.MyPhysics.SimulationRatio;
            MySession.Static.SyncLayer.SendMessageToAll(ref msg);
        }
Exemple #4
0
 static void OnSimulationInfo(ref SimulationInfoMsg msg, MyNetworkClient sender)
 {
     Sync.ServerSimulationRatio = msg.SimulationSpeed;
 }