void ConnectServer(bool needPasswold, ServerRegistered data) { if (null != data) { if (data.GameMode == (int)Pathea.PeGameMgr.ESceneMode.Custom) { if (string.IsNullOrEmpty(data.UID) || string.IsNullOrEmpty(data.MapName)) { return; } string filePath = Path.Combine(GameConfig.CustomDataDir, data.MapName); Pathea.CustomGameData.Mgr.Instance.curGameData = Pathea.CustomGameData.Mgr.Instance.GetCustomData(data.UID, filePath); if (null == Pathea.CustomGameData.Mgr.Instance.curGameData) { return; } Pathea.PeGameMgr.mapUID = data.UID; ScenarioIntegrityCheck check = ScenarioMapUtils.CheckIntegrityByPath(filePath); StartCoroutine(ProcessIntegrityCheck(check, needPasswold, data)); } else { Connect(needPasswold, data); } } }
bool OnWndStartClick() { if (mIsProcessCheck) { return(true); } if (selectWnd.selectedItem != null && !selectWnd.selectedItem.IsFile) { MapItemDescs desc = mMapItems[selectWnd.selectedItem.index]; Pathea.CustomGameData customdata = Pathea.CustomGameData.Mgr.Instance.GetCustomData(desc.UID, desc.Path); if (customdata == null || customdata.humanDescs.Length == 0) { //lz-2016.10.31 Need a player to start MessageBox_N.ShowOkBox(PELocalization.GetString(8000859)); return(true); } MapItemDescs mid = mMapItems[selectWnd.selectedItem.index]; ScenarioIntegrityCheck check = ScenarioMapUtils.CheckIntegrityByPath(mid.Path); StartCoroutine(ProcessIntegrityCheck(check)); selectWnd.HintBox.Msg = "Checking"; selectWnd.HintBox.isProcessing = true; selectWnd.HintBox.Open(); } return(true); }
public bool OnWndStartClick() { if (mIsProcessCheck) { return(true); } if (selectWnd.selectedItem != null && !selectWnd.selectedItem.IsFile) { mIntegrity = null; MapItemDescs mid = mMapItems[selectWnd.selectedItem.index]; ScenarioIntegrityCheck check = ScenarioMapUtils.CheckIntegrityByPath(mid.Path); StartCoroutine(ProcessIntegrityCheck(check)); selectWnd.HintBox.Msg = "Checking"; selectWnd.HintBox.isProcessing = true; selectWnd.HintBox.Open(); mMask.enabled = true; } return(true); }