2010-09-07 21:08:53 +00:00
|
|
|
//
|
|
|
|
// ContentManager.h
|
|
|
|
// XNI
|
|
|
|
//
|
|
|
|
// Created by Matej Jan on 6.9.10.
|
|
|
|
// Copyright 2010 Retronator. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
2010-09-16 17:49:35 +00:00
|
|
|
#import "System.h"
|
|
|
|
|
|
|
|
#import "Retronator.Xni.Framework.classes.h"
|
|
|
|
#import "Retronator.Xni.Framework.Content.classes.h"
|
2010-09-07 21:08:53 +00:00
|
|
|
|
|
|
|
@interface ContentManager : NSObject {
|
2010-09-16 17:49:35 +00:00
|
|
|
NSString *rootDirectory;
|
|
|
|
id<IServiceProvider> serviceProvider;
|
2010-09-07 21:08:53 +00:00
|
|
|
|
2010-09-16 17:49:35 +00:00
|
|
|
@private
|
|
|
|
NSMutableDictionary *loadedAssets;
|
|
|
|
ContentTypeReaderManager *readerManager;
|
2010-09-07 21:08:53 +00:00
|
|
|
}
|
|
|
|
|
2010-09-16 17:49:35 +00:00
|
|
|
- (id) initWithServiceProvider:(id<IServiceProvider>)theServiceProvider;
|
|
|
|
- (id) initWithServiceProvider:(id<IServiceProvider>)theServiceProvider andRootDirectory:(NSString*)theRootDirectory;
|
|
|
|
|
|
|
|
@property (nonatomic, retain) NSString *rootDirectory;
|
|
|
|
@property (nonatomic, readonly) id<IServiceProvider> serviceProvider;
|
|
|
|
|
|
|
|
- (id) load:(NSString*)assetName;
|
|
|
|
|
|
|
|
- (id) load:(NSString*)assetName fromFile:(NSString*)filePath;
|
|
|
|
|
2010-11-02 09:29:19 +00:00
|
|
|
- (void) unload;
|
|
|
|
|
2010-09-07 21:08:53 +00:00
|
|
|
@end
|