Ejemplo n.º 1
0
 /// <summary>
 /// 申请反馈
 /// </summary>
 public void ApplyCommandClient(long event_idx, long target_char_idx, eRelationApplyCmd cmd)
 {
     //发送到gl
     ss2gl.RelationApplyCmd msg = PacketPools.Get(ss2gl.msg.RELATION_APPLY_CMD) as ss2gl.RelationApplyCmd;
     msg.event_idx       = event_idx;
     msg.char_idx        = m_char_idx;
     msg.target_char_idx = target_char_idx;
     msg.cmd             = cmd;
     ServerNetManager.Instance.Send2GL(msg);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 操作
        /// </summary>
        private void OnRelationApplyCommand(PacketBase packet)
        {
            ss2gl.RelationApplyCmd msg = packet as ss2gl.RelationApplyCmd;

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

            if (relation != null)
            {
                relation.ApplyRelationCommand(msg.event_idx, msg.target_char_idx, msg.cmd);
            }
        }