Exemplo n.º 1
0
 public void AddReliableNotifyMark(long roleId, string listenerName)
 {
     var online = table.Get(roleId);
     if (null == online || online.State != BOnline.StateOnline)
         throw new Exception("Not Online. AddReliableNotifyMark: " + listenerName);
     online.ReliableNotifyMark.Add(listenerName);
 }
Exemplo n.º 2
0
        public void Send(long roleId, Protocol p)
        {
            BOnline online = table.Get(roleId);

            if (null == online)
            {
                return;
            }

            AsyncSocket socket = Game.App.Instance.Server.GetSocket(online.SessionId);

            if (null == socket)
            {
                return;
            }

            p.Send(socket);
        }