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

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