/// <summary> /// 发给ss检测 /// </summary> private void SendCheckOnline() { ws2ss.ClientOnline msg = PacketPools.Get(ws2ss.msg.CLIENT_ONLINE) as ws2ss.ClientOnline; msg.char_idx = this.char_idx; ServerNetManager.Instance.Send(m_srv_uid.ss_uid, msg); m_is_send_check_online = true; }
/// <summary> /// 检测在线 /// </summary> private void OnCheckOnline(PacketBase packet) { ws2ss.ClientOnline msg = packet as ws2ss.ClientOnline; bool is_online = UnitManager.Instance.HasUnit(msg.char_idx); ss2ws.ClientOnline rep_msg = PacketPools.Get(ss2ws.msg.CLIENT_ONLINE) as ss2ws.ClientOnline; rep_msg.char_idx = msg.char_idx; rep_msg.is_online = is_online; ServerNetManager.Instance.Send2WS(rep_msg); }