Introducing KRResourceManager superclass
This commit is contained in:
@@ -34,6 +34,8 @@
|
||||
|
||||
#include "KREngine-common.h"
|
||||
|
||||
#include "KRResourceManager.h"
|
||||
|
||||
#include "KRContextObject.h"
|
||||
#include "KRDataBlock.h"
|
||||
#include "KRAudioSource.h"
|
||||
@@ -90,10 +92,13 @@ typedef struct {
|
||||
KRAudioSample *reverb_sample;
|
||||
} siren_reverb_zone_weight_info;
|
||||
|
||||
class KRAudioManager : public KRContextObject {
|
||||
class KRAudioManager : public KRResourceManager {
|
||||
public:
|
||||
KRAudioManager(KRContext &context);
|
||||
virtual ~KRAudioManager();
|
||||
|
||||
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;
|
||||
|
||||
unordered_map<std::string, KRAudioSample *> &getSounds();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user