public static void SendPackets(this IZoneSession session, IEnumerable <Packet> packets)
 {
     foreach (var packet in packets)
     {
         session.SendPacket(packet);
     }
 }
Exemplo n.º 2
0
        private void OnSessionStopped(IZoneSession session)
        {
            if (session.Id == 0)
            {
                return;
            }

            ImmutableInterlocked.Update(ref _sessions, s => s.Remove((ZoneSession)session));
        }
Exemplo n.º 3
0
 public void SetSession(IZoneSession session)
 {
     Session = session;
 }