예제 #1
0
            public static void WriteTime(WorldClock clock)
            {
                PacketWriter stream = GameServer.SetupStream(ServerMessages.WorldTimeMessage);

                stream.Write(clock.time.GetTotalSeconds());
                stream.Write(clock.rate);
                clock.World.ForEachClient(client => client.Send(stream, NetPriority.Low, NetReliability.Reliable, 'W'));
            }
예제 #2
0
            public static void WriteTimeStopMessage(WorldClock clock)
            {
                PacketWriter stream = GameServer.SetupStream(ServerMessages.WorldTimeStopMessage);

                clock.World.ForEachClient(client => client.Send(stream, NetPriority.Low, NetReliability.Reliable, 'W'));
            }