private MainAssetStore(
            SiraLog logger,
            CustomSaberModelLoader customSaberModelLoader)
        {
            _logger = logger;

            _customSaberAssetLoader = new CustomSaberAssetLoader();
            _customSaberModelLoader = customSaberModelLoader;

            _modelCompositions = new Dictionary <string, ModelComposition>();
        }
Beispiel #2
0
        private MainAssetStore(
            PluginConfig config,
            SiraLog logger,
            CustomSaberModelLoader customSaberModelLoader)
        {
            _config = config;
            _logger = logger;

            _customSaberAssetLoader = new CustomSaberAssetLoader();
            _customSaberModelLoader = customSaberModelLoader;

            _modelCompositions = new Dictionary <string, ModelComposition>();
            _metaData          = new Dictionary <string, PreloadMetaData>();
        }
Beispiel #3
0
        private MainAssetStore(
            PluginConfig config,
            SiraLog logger,
            CustomSaberModelLoader customSaberModelLoader,
            PluginDirectories pluginDirs)
        {
            _config     = config;
            _logger     = logger;
            _pluginDirs = pluginDirs;

            _customSaberAssetLoader = new CustomSaberAssetLoader();
            _customSaberModelLoader = customSaberModelLoader;

            _modelCompositions = new Dictionary <string, ModelComposition>();
            _metaData          = new Dictionary <string, PreloadMetaData>();

            foreach (var directory in pluginDirs.CustomSaberDir.GetDirectories("*", SearchOption.AllDirectories))
            {
                var relPath = PathTools.ToRelativePath(directory.FullName);
                relPath = PathTools.CorrectRelativePath(relPath);
                relPath = relPath.Substring(relPath.IndexOf('\\') + 1);
                AdditionalCustomSaberFolders.Add(relPath);
            }
        }