public TSOAvatarContentProvider(Content contentManager, IContentCodec <T> codec, Regex farRegex, Regex fileRegex) : base()
        {
            FAR              = new FAR3Provider <T>(contentManager, codec, farRegex);
            Files            = new FileProvider <T>(contentManager, codec, fileRegex);
            Files.UseContent = true;
            Files.FAR3IDs    = true;
            Runtime          = new RuntimeProvider <T>();

            var fileFolder = fileRegex.ToString();
            var lastSlash  = fileFolder.LastIndexOf('/');

            if (lastSlash != -1)
            {
                fileFolder = fileFolder.Substring(0, lastSlash + 1);
            }
            FileFolder = Path.Combine("Content/", fileFolder);

            SetProviders(new List <IContentProvider <T> > {
                FAR,
                Files,
                Runtime
            });
        }
Esempio n. 2
0
 public Far3ProviderEntry(FAR3Provider <T> provider)
 {
     this.Provider = provider;
 }