Load() public method

public Load ( UserDataPath baseLocalPath, UserDataPath baseDedicatedServerHostPath, UserDataPath baseDedicatedServerServicePath ) : void
baseLocalPath SEToolbox.Interop.UserDataPath
baseDedicatedServerHostPath SEToolbox.Interop.UserDataPath
baseDedicatedServerServicePath SEToolbox.Interop.UserDataPath
return void
Esempio n. 1
0
        public void OpenExecuted()
        {
            var model = new SelectWorldModel();
            model.Load(SpaceEngineersConsts.BaseLocalPath, SpaceEngineersConsts.BaseDedicatedServerHostPath, SpaceEngineersConsts.BaseDedicatedServerServicePath);
            var loadVm = new SelectWorldViewModel(this, model);

            var result = _dialogService.ShowDialog<WindowLoad>(this, loadVm);
            if (result == true)
            {
                _dataModel.BeginLoad();
                _dataModel.ActiveWorld = model.SelectedWorld;
                ActiveWorld.LoadCheckpoint();
                ActiveWorld.LoadDefinitionsAndMods();
                ActiveWorld.LoadSector();
                _dataModel.ParseSandBox();
                _dataModel.EndLoad();
            }
        }