Example #1
0
        internal ResourceManager(string path, Type type, ResourceManagerLoader loader)
        {
            this.Path   = path;
            this.Loader = loader;
            this.type   = type;

            dictionary = new Dictionary <string, object>();
        }
Example #2
0
 public static void AddResourceManager(string path, Type type, ResourceManagerLoader loader)
 {
     if (!instance.resourceManagers.ContainsKey(type))
     {
         instance.resourceManagers.Add(type, new ResourceManager(path, type, loader));
     }
     else
     {
         throw new AssetExceptions.ResourceManagerOfTypeAlreadyExists("Cannot create ResourceManager of type " + type + " with path " + path + " as a ResourceManager of that type already exists");
     }
 }