public static void ProcessOutgoingPacket(Message p) { p.Encode(); try { Level pl = p.Client.GetLevel(); string player = ""; if (pl != null) player += " (" + pl.GetPlayerAvatar().GetId() + ", " + pl.GetPlayerAvatar().GetAvatarName() + ")"; Debugger.WriteLine("[S] " + p.GetMessageType() + " " + p.GetType().Name + player); m_vOutgoingPackets.Enqueue(p); m_vOutgoingWaitHandle.Set(); } catch (Exception) { throw; } }
public static void ProcessOutgoingPacket(Message p) { p.Encode(); //p.Process(p.Client.GetLevel()); try { var pl = p.Client.GetLevel(); var player = ""; if (pl != null) player = " (" + pl.GetPlayerAvatar().GetId() + ", " + pl.GetPlayerAvatar().GetAvatarName() + ")"; Debugger.WriteLine("[UCR][" + p.GetMessageType() + "] Processing " + p.GetType().Name + player); m_vOutgoingPackets.Enqueue(p); m_vOutgoingWaitHandle.Set(); } catch (Exception) { } }