private RemoteLocationPart(InitData initData, WebClient webClient, SFDirectories sfDirs) { _webClient = webClient; _customSaberDir = sfDirs.CustomSaberDir; RemoteLocation = initData.RemoteLocation; ListName = initData.Name; ListAuthor = initData.Author + " : <color=green>Download</color>"; _filename = initData.Filename; if (!string.IsNullOrEmpty(initData.CoverPath)) { var data = Utilities.GetResource(Assembly.GetExecutingAssembly(), initData.CoverPath); ListCover = BeatSaberMarkupLanguage.Utilities.LoadSpriteRaw(data); } }
public TrailConfig(SFDirectories sfDirs) { _configFile = sfDirs.SaberFactoryDir.GetFile("TrailConfig.json"); }
private PresetSaveManager(MainAssetStore mainAssetStore, TextureStore textureStore, SFDirectories sfDirs) { _mainAssetStore = mainAssetStore; _textureStore = textureStore; _presetDir = sfDirs.PresetDir; }
private TextureStore(SFDirectories sfDirs) { _textureAssets = new Dictionary <string, TextureAsset>(); _textureDirectory = sfDirs.SaberFactoryDir.CreateSubdirectory("Textures"); }