AnnResourceManager.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "systemMacro.h"
4 #include "OgreResourceGroupManager.h"
5 #include "AnnSubsystem.hpp"
6 
7 namespace Annwvyn
8 {
11  {
12  public:
17  void addZipLocation(const std::string& path, const std::string& resourceGroupName = getDefaultResourceGroupName()) const;
18 
22  void addFileLocation(const std::string& path, const std::string& resourceGroupName = getDefaultResourceGroupName()) const;
23 
25  void loadReseourceFile(const std::string& path) const;
26 
28  void initResources() const;
29 
31  void loadGroup(const std::string& groupName) const;
32 
34  static const char* getDefaultResourceGroupName();
35 
37  static const char* getReservedResourceGroupName();
38 
39  private:
41  static void refuseResource(const std::string& name, const std::string& group);
42 
44  void addDefaultResourceLocation() const;
45 
47  Ogre::ResourceGroupManager* ResourceGroupManager;
48  };
49 
51 }
file for defining macros used for symbol export regarding the way the OS does things.
Namespace containing the totality of Annwvyn components.
Definition: AnnGetter.cpp:8
Ogre::ResourceGroupManager * ResourceGroupManager
Pointer to the resource group manager. We cache the address to prevent calling a static method all th...
Parent class of all Annwvyn SubSystem.
#define AnnDllExport
Definition: systemMacro.h:24
Annwvyn interface class with Ogre's ResourceGroupManager.