Introducing KRResourceManager superclass
This commit is contained in:
@@ -34,16 +34,21 @@
|
||||
|
||||
#include "KREngine-common.h"
|
||||
|
||||
#include "KRResourceManager.h"
|
||||
|
||||
#include "KRAnimation.h"
|
||||
#include "KRContextObject.h"
|
||||
#include "KRDataBlock.h"
|
||||
|
||||
|
||||
|
||||
class KRAnimationManager : public KRContextObject {
|
||||
class KRAnimationManager : public KRResourceManager {
|
||||
public:
|
||||
KRAnimationManager(KRContext &context);
|
||||
virtual ~KRAnimationManager();
|
||||
|
||||
virtual KRResource* loadResource(const std::string& name, const std::string& extension, KRDataBlock* data) override;
|
||||
virtual KRResource* getResource(const std::string& name, const std::string& extension) override;
|
||||
|
||||
KRAnimation *loadAnimation(const char *szName, KRDataBlock *data);
|
||||
KRAnimation *getAnimation(const char *szName);
|
||||
|
||||
Reference in New Issue
Block a user