Handles map list files.
More...
#include <VGearsMapListFile.h>
|
| MapListFile (Ogre::ResourceManager *creator, const String &name, Ogre::ResourceHandle handle, const String &group, bool is_manual=false, Ogre::ManualResourceLoader *loader=nullptr) |
| Constructor. More...
|
|
virtual | ~MapListFile () |
| Destructor. More...
|
|
const std::vector< std::string > | GetMapList () const |
| Retrieves the list of maps. More...
|
|
| Resource (Ogre::ResourceManager *creator, const String &name, Ogre::ResourceHandle handle, const String &group, bool manual, Ogre::ManualResourceLoader *loader) |
| Constructor. More...
|
|
virtual | ~Resource ()=default |
| Destructor. More...
|
|
◆ MapListFile()
VGears::MapListFile::MapListFile |
( |
Ogre::ResourceManager * |
creator, |
|
|
const String & |
name, |
|
|
Ogre::ResourceHandle |
handle, |
|
|
const String & |
group, |
|
|
bool |
is_manual = false , |
|
|
Ogre::ManualResourceLoader * |
loader = nullptr |
|
) |
| |
Constructor.
- Parameters
-
[in] | creator | Pointer to the ResourceManager that is creating this resource. |
[in] | name | The unique name of the resource. |
[in] | handle | |
- Todo:
- Understand and document.
- Parameters
-
[in] | group | The name of the resource group to which this resource belong. |
[in] | is_manual | True if the resource is manually loaded, false otherwise. |
[in] | loader | Pointer to a ManualResourceLoader implementation which will be called when the Resource wishes to load (should be supplied if is_manual is set to true). It can be null, but the Resource will never be able to reload if anything ever causes it to unload. Therefore provision of a proper ManualResourceLoader instance is strongly recommended. |
◆ ~MapListFile()
VGears::MapListFile::~MapListFile |
( |
| ) |
|
|
virtual |
◆ calculateSize()
size_t VGears::MapListFile::calculateSize |
( |
void |
| ) |
const |
|
overrideprotectedvirtual |
Calculates the size of the map list.
- Returns
- The size of the map list.
- Todo:
- Units?
◆ GetMapList()
const std::vector< std::string > VGears::MapListFile::GetMapList |
( |
| ) |
const |
|
inline |
Retrieves the list of maps.
- Returns
- The list of maps.
◆ loadImpl()
void VGears::MapListFile::loadImpl |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
◆ unloadImpl()
void VGears::MapListFile::unloadImpl |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
◆ MapListFileSerializer
◆ map_list_
std::vector<std::string> VGears::MapListFile::map_list_ |
|
private |
◆ RESOURCE_TYPE
const String VGears::MapListFile::RESOURCE_TYPE |
|
static |
The documentation for this class was generated from the following files: