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

LoadSaveFromPath() private method

private LoadSaveFromPath ( string savePath, string userName, SaveWorldType saveType, UserDataPath dataPath ) : WorldResource
savePath string
userName string
saveType SaveWorldType
dataPath SEToolbox.Interop.UserDataPath
return WorldResource
        internal WorldResource LoadSaveFromPath(string savePath, string userName, SaveWorldType saveType, UserDataPath dataPath)
        {
            var saveResource = new WorldResource
            {
                GroupDescription = string.Format("{0}: {1}", new EnumToResouceConverter().Convert(saveType, typeof(string), null, CultureInfo.CurrentUICulture), userName),
                SaveType = saveType,
                Savename = Path.GetFileName(savePath),
                UserName = userName,
                Savepath = savePath,
                DataPath = dataPath,
            };

            return saveResource;
        }