Esempio n. 1
0
 public AssetLocatorRegistry()
 {
     PerfTracker.StartupEvent("Building AssetLocatorRegistry");
     _standardAssetLocator = new StandardAssetLocator();
     _assetCache           = AttachChild(new AssetCache());
     //foreach(var locator in Locators.Values.OfType<IComponent>())
     //    AttachChild(locator);
     PerfTracker.StartupEvent("Built AssetLocatorRegistry");
 }
Esempio n. 2
0
 public AssetLocator() : base(null)
 {
     PerfTracker.StartupEvent("Building AssetLocator");
     _standardAssetLocator = new StandardAssetLocator();
     _assetCache           = new AssetCache();
     Children.Add(_assetCache);
     foreach (var locator in Locators.Values.OfType <IComponent>())
     {
         Children.Add(locator);
     }
     PerfTracker.StartupEvent("Built AssetLocator");
 }