Пример #1
0
    /// <summary>
    /// 同步玩家mapId  LineId(分线)
    /// </summary>
    public void OnTeamMemberMapId(GameCmd.stSendSelfMapTeamRelationUserCmd_S cmd)
    {
        TeamMemberInfo memberInfo = m_listTeamMember.Find((data) => { return(data.id == cmd.user_id); });

        if (memberInfo != null)
        {
            memberInfo.mapId  = cmd.map_id;
            memberInfo.lineId = cmd.line_id;
            Engine.Utility.EventEngine.Instance().DispatchEvent((int)Client.GameEventID.TEAM_MEMBERMAPID, memberInfo);
        }
    }
Пример #2
0
 public void OnTeamMemberMapId(GameCmd.stSendSelfMapTeamRelationUserCmd_S cmd)
 {
     DataManager.Manager <TeamDataManager>().OnTeamMemberMapId(cmd);
 }