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')); }
public static void WriteTimeStopMessage(WorldClock clock) { PacketWriter stream = GameServer.SetupStream(ServerMessages.WorldTimeStopMessage); clock.World.ForEachClient(client => client.Send(stream, NetPriority.Low, NetReliability.Reliable, 'W')); }