コード例 #1
0
        /// <summary>
        /// 关系列表
        /// </summary>
        private void OnRelationList(PacketBase packet)
        {
            c2ss.RelationList msg    = packet as c2ss.RelationList;
            Player            player = UnitManager.Instance.GetPlayerByClientUID(msg.client_uid);

            if (player == null)
            {
                Log.Debug("OnRelationList 未找到unit:" + msg.client_uid.srv_uid + ", " + msg.client_uid.conn_idx);
                return;
            }

            MemberRelation relation = RelationManager.Instance.GetMember(player.char_idx);

            if (relation != null)
            {
                relation.RelationListClient();
            }
        }
コード例 #2
0
 /// <summary>
 /// 请求列表
 /// </summary>
 public static void SendRelationList()
 {
     c2ss.RelationList msg = PacketPools.Get(c2ss.msg.RELATION_LIST) as c2ss.RelationList;
     ClientNetManager.Instance.Send(msg);
 }