![]() |
Blamite Game Engine - Keystone
00329.08.02.21.0520.blamite
A library that enables the use of Qt in Blamite's editing tools.
|
Functions used in loading and accessing Keystone resources. More...
Functions | |
| KEYSTONE BlamKeystoneResourceGroup | 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. More... | |
| KEYSTONE BlamResult | LoadResources (std::string resource_file) |
| Loads a new resource group. More... | |
| KEYSTONE std::string | GetResourcePath (std::string group_id, std::string id) |
| Retrieves the file path for a given resource. More... | |
| KEYSTONE bool | ResourceExists (std::string group_id, std::string id) |
| Determines if a resource exists within a given group. More... | |
| KEYSTONE BlamKeystoneResourceGroup * | GetResourceGroup (std::string group_id) |
| Retrieves a resource group. More... | |
Functions used in loading and accessing Keystone resources.
These resources can be anything, though are most often just images or icons. They can be overridden by themes.
| BlamKeystoneResourceGroup * BlamKeystone::Resources::GetResourceGroup | ( | std::string | group_id | ) |
Retrieves a resource group.
| group_id | - The ID of the desired resource group. |
nullptr. | std::string BlamKeystone::Resources::GetResourcePath | ( | std::string | group_id, |
| std::string | id | ||
| ) |
Retrieves the file path for a given resource.
| group_id | - The ID of the group the resource belongs to. |
| id | - The ID of the resource. |
| BlamResult BlamKeystone::Resources::LoadResources | ( | std::string | resource_file | ) |
Loads a new resource group.
| resource_file | - The path to the resource file to load. |
| BlamKeystoneResourceGroup BlamKeystone::Resources::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.
| base_dir | - The base directory of the resource group. This is prefixed onto all resource file paths. |
| resource_file | - The path to the resource file. Used in debug log messages. |
| root_node | - The root XML node of this resource group. |
| result | - This is set to the parse result of the group. |
result parameter should be verified before use. | bool BlamKeystone::Resources::ResourceExists | ( | std::string | group_id, |
| std::string | id | ||
| ) |
Determines if a resource exists within a given group.
| group_id | - The ID of the group the resource belongs to. |
| id | - The ID of the resource. |
true if the resource exists, otherwise returns false.