 |
Blamite Game Engine - Strings
00379.04.17.23.2049.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Go to the documentation of this file.
9 #define STRINGS_API __declspec(dllexport)
11 #define STRINGS_API __declspec(dllimport)
Functions used in loading and accessing resources.
Definition: resources.h:49
STRINGS_API std::string GetResourcePath(std::string group_id, std::string id)
Retrieves the file path for a given resource.
Definition: resources.cpp:127
STRINGS_API BlamResourceGroup ParseResourceGroupXML(std::string base_dir, std::string resource_file, rapidxml::xml_node<> *root_node, BlamResult *result)
Parses a resource group from the resource group's XML file.
Definition: resources.cpp:11
Structure representing a Keystone resource.
Definition: resources.h:23
std::map< std::string, BlamResource > resources
The list of resources contained within this group.
Definition: resources.h:39
BlamResult
Enumerator containing any and all result codes used throughout the engine.
Definition: errors.h:9
STRINGS_API BlamResult LoadResources(std::string resource_file)
Loads a new resource group.
Definition: resources.cpp:85
std::string group_name
The name/ID of this group.
Definition: resources.h:38
std::string file_path
The path to the file associated with this resource.
Definition: resources.h:26
Structure representing a Keystone resource group.
Definition: resources.h:36
STRINGS_API BlamResourceGroup * GetResourceGroup(std::string group_id)
Retrieves a resource group.
Definition: resources.cpp:150
#define STRINGS_API
Definition: resources.h:11
Class representing a node of XML document.
Definition: rapidxml.hpp:137
std::string id
The ID of the resource.
Definition: resources.h:25
STRINGS_API bool ResourceExists(std::string group_id, std::string id)
Determines if a resource exists within a given group.
Definition: resources.cpp:137
STRINGS_API std::map< std::string, BlamResourceGroup > GetResourceGroups()
Retrieves the map of all resource groups.
Definition: resources.cpp:160