19 class ResourceManager;
47 void Split(
const std::string &line,
const char delimeter, std::vector<std::string> &elements);
77 unsigned short m_id = 0;
Base class for all resource types to be managed by the ResourceManager class.
void Split(const std::string &line, const char delimeter, std::vector< std::string > &elements)
Splits a string into a vector of strings.
virtual bool Load(const std::string &path, ResourceManager *pManager)=0
Load the desired resource into memory.
void TrimLine(std::string &line)
Removes white-space at the front and end of a line of text.
unsigned short GetResourceID() const
Gets the ID of the resource.
virtual bool IsCloneable() const =0
Used to determine if the resource is cloneable.
ResourceManager * GetResourceManager()
Gets a pointer to the ResourceManager that was used to load the resource.
virtual Resource * Clone()
Clones a resource.
void ParseComments(std::string &line)
Removes c-style, single-line comments from a line of text.
Loads and manages the lifespan of objects from external files.
Katana Engine is a library of classes, interfaces, and value types that provides a foundation for dev...