4299 【主干】 跨服匹配可以 进入自定义场景 如 仙草园等
| | |
| | |
|
| | | static Action<Dungeon, bool> clientCustomDungeonResult;
|
| | |
|
| | | static CrossServerOneVsOneModel crossServerOneVsOneModel { get { return ModelCenter.Instance.GetModel<CrossServerOneVsOneModel>(); } }
|
| | |
|
| | | public static void Init()
|
| | | {
|
| | | DTC0102_tagCDBPlayer.switchAccountEvent += Reset;
|
| | |
| | |
|
| | | public static void GotoNormalClientDungeon(int clientMapId, int mapId, int lineId)
|
| | | {
|
| | | if (crossServerOneVsOneModel.IsMatching)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("CrossOneVsOneMatching");
|
| | | return;
|
| | | }
|
| | |
|
| | | RequestStartClientDungeon(mapId, lineId, (dungeonInfo, isOk) =>
|
| | | {
|
| | | if (!isOk)
|
| | |
| | | HazyGrassModel hazyGrassModel { get { return ModelCenter.Instance.GetModel<HazyGrassModel>(); } }
|
| | | TaskModel taskModel { get { return ModelCenter.Instance.GetModel<TaskModel>(); } }
|
| | | FindPreciousModel findPreciousModel { get { return ModelCenter.Instance.GetModel<FindPreciousModel>(); } }
|
| | | CrossServerOneVsOneModel crossServerOneVsOneModel { get { return ModelCenter.Instance.GetModel<CrossServerOneVsOneModel>(); } }
|
| | |
|
| | | public override void Init()
|
| | | {
|
| | |
| | | error = 1;
|
| | | return false;
|
| | | }
|
| | | if (crossServerOneVsOneModel.IsMatching)
|
| | | {
|
| | | error = 8;
|
| | | return false;
|
| | | }
|
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | | if (MapUtility.IsDungeon(mapId))
|
| | | {
|
| | |
| | | case 7:
|
| | | SysNotifyMgr.Instance.ShowTip("Boss_Leave");
|
| | | break;
|
| | | case 8:
|
| | | SysNotifyMgr.Instance.ShowTip("CrossOneVsOneMatching");
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|