コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public TrailConfig(SFDirectories sfDirs)
 {
     _configFile = sfDirs.SaberFactoryDir.GetFile("TrailConfig.json");
 }
コード例 #3
0
 private PresetSaveManager(MainAssetStore mainAssetStore, TextureStore textureStore, SFDirectories sfDirs)
 {
     _mainAssetStore = mainAssetStore;
     _textureStore   = textureStore;
     _presetDir      = sfDirs.PresetDir;
 }
コード例 #4
0
 private TextureStore(SFDirectories sfDirs)
 {
     _textureAssets    = new Dictionary <string, TextureAsset>();
     _textureDirectory = sfDirs.SaberFactoryDir.CreateSubdirectory("Textures");
 }