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); }
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); }