示例#1
0
        public ClientResourceLocator Clone(string?newFileSearchDirectory = null)
        {
            var result = new ClientResourceLocator(newFileSearchDirectory ?? FileSearchDirectory, FallbackMaterialName);

            foreach (var loader in m_resourceLoaders)
            {
                result.AddManifestResourceLoader(loader);
            }
            return(result);
        }
示例#2
0
 static ClientResourceLocator()
 {
     Default = new ClientResourceLocator(null, "materials/basic");
     Default.AddManifestResourceLoader(ManifestResourceLoader.GetResourceLoader(typeof(ClientResourceLocator).Assembly, "theori.Resources"));
 }
 public ClientResourceManager(ClientResourceLocator locator)
 {
     m_locator = locator;
 }