SEToolbox.Models.SelectWorldModel.Load C# (CSharp) Method

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
        public void Load(UserDataPath baseLocalPath, UserDataPath baseDedicatedServerHostPath, UserDataPath baseDedicatedServerServicePath)
        {
            BaseLocalPath = baseLocalPath;
            BaseDedicatedServerHostPath = baseDedicatedServerHostPath;
            BaseDedicatedServerServicePath = baseDedicatedServerServicePath;
            LoadSaveList();
        }

Usage Example

Example #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();
            }
        }