少年修仙传客户端代码仓库
4227 子 【开发】副本不可上马代码删除,地图可否上马读【D.地图表格】CanRide字段 / 【前端】副本不可上马代码删除,地图可否上马读【D.地图表格】CanRide字段
1个文件已修改
46 ■■■■■ 已修改文件
Fight/Stage/StageManager.cs 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Stage/StageManager.cs
@@ -17,32 +17,40 @@
    public event Action<float> loadingProgressEvent;
    bool m_IsServerPreparing = false;
    public bool isServerPreparing {
    public bool isServerPreparing
    {
        get { return m_IsServerPreparing; }
        set { m_IsServerPreparing = value; }
    }
    public Stage.E_StageType StageType {
        get {
    public Stage.E_StageType StageType
    {
        get
        {
            return m_StageType;
        }
    }
    public Stage CurrentStage {
        get {
    public Stage CurrentStage
    {
        get
        {
            return m_CurrentStage;
        }
    }
    int m_CurrentMapId;
    public int currentMapId {
    public int currentMapId
    {
        get { return m_CurrentMapId; }
        private set { m_CurrentMapId = value; }
    }
    int m_CurrentMapResID;
    public int currentMapResId {
        get {
    public int currentMapResId
    {
        get
        {
            return m_CurrentMapResID;
        }
        private set { m_CurrentMapResID = value; }
@@ -53,9 +61,11 @@
    float m_LoadingProgress = 0f;
    float loadingProgress {
    float loadingProgress
    {
        get { return m_LoadingProgress; }
        set {
        set
        {
            m_LoadingProgress = value;
            if (loadingProgressEvent != null)
            {
@@ -498,14 +508,18 @@
            _hero.SwitchWing((uint)_itemModel.itemInfo.ItemID);
        }
        _itemModel = _equipModel.GetItemModelByIndex((int)RoleEquipType.mount);
        if (_itemModel != null)
        var _mapConfig = Config.Instance.Get<MapConfig>(PlayerDatas.Instance.baseData.MapID);
        if (_mapConfig.CanRide == 1)
        {
            PlayerMountDatas _mountModel = ModelCenter.Instance.GetModel<PlayerMountDatas>();
            if (_mountModel.HorseRidingBool)
            _itemModel = _equipModel.GetItemModelByIndex((int)RoleEquipType.mount);
            if (_itemModel != null)
            {
                _hero.OnHorse(1);
                PlayerMountDatas _mountModel = ModelCenter.Instance.GetModel<PlayerMountDatas>();
                if (_mountModel.HorseRidingBool)
                {
                    _hero.OnHorse(1);
                }
            }
        }