1 #ifndef CSM_WOLRD_RESOURCES_H
2 #define CSM_WOLRD_RESOURCES_H
28 const char *
const *extensions = 0);
32 std::string
getId (
int index)
const;
34 int getIndex (
const std::string&
id)
const;
36 int searchId (
const std::string&
id)
const;
int getIndex(const std::string &id) const
Definition: resources.cpp:63
Type
Definition: universalid.hpp:40
Resources(const VFS::Manager *vfs, const std::string &baseDirectory, UniversalId::Type type, const char *const *extensions=0)
Definition: resources.cpp:11
std::map< std::string, int > mIndex
Definition: resources.hpp:19
UniversalId::Type mType
Definition: resources.hpp:22
Definition: resources.hpp:17
std::vector< std::string > mFiles
Definition: resources.hpp:20
int searchId(const std::string &id) const
Definition: resources.cpp:78
UniversalId::Type getType() const
Definition: resources.cpp:92
std::string getId(int index) const
Definition: resources.cpp:58
std::string mBaseDirectory
Definition: resources.hpp:21
The main class responsible for loading files from a virtual file system.
Definition: manager.hpp:20
int getSize() const
Definition: resources.cpp:53