Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static E LoadResource<E>(Uri path) where E: Resource
- {
- if(!factories.ContainsKey(typeof(E))) throw new ArgumentException("Cannot load type " + typeof(E).ToString() );
- ResourceFactory<E> factory = (ResourceFactory<E>) factories[typeof(E)];
- return factory.getResource(path);
- }
Add Comment
Please, Sign In to add comment