Пример #1
0
        /// <summary>
        /// 重新进入
        /// </summary>
        /// <param name="member"></param>
        internal void ReInto(PlayerBusiness member)
        {
            if (m_team != null && m_team.TryAddMember(member))
            {
                var members = m_team.AllPlayerDetail;
                member.Call(TeamCommand.IntoTeamR, true, new object[] { m_team, members });
                member.CallAllExcludeOne(member, TeamCommand.NewMemberR, m_team.TeamID, new PlayerDetail(member));

                var apcs = m_currentApcs.FindAll(k => k.State <= 1);
                member.Call(InstanceCommand.NewInstanceR, new object[] { true, apcs, string.Empty });

                // 记录副本进入日志
                PlayerLog log = new PlayerLog(ServerLogger.zoneid, Actiontype.EctypeIn);
                log.itemtype = m_gc.SubType; //副本类型
                log.itemid = m_gc.ID;        //副本ID
                log.remark = m_gc.Name;      //副本名称

                member.WriteLog(log);
            }
        }