Handles trigger files.
More...
#include <VGearsTriggersFile.h>
|
| TriggersFile (Ogre::ResourceManager *creator, const String &name, Ogre::ResourceHandle handle, const String &group, bool is_manual=false, Ogre::ManualResourceLoader *loader=nullptr) |
| Constructor. More...
|
|
virtual | ~TriggersFile () |
| Destructor. More...
|
|
const Range & | GetCameraRange () const |
| Retrieves the camera range. More...
|
|
float | MovementRotation () const |
| Retrieves the movement rotation. More...
|
|
const std::array< Gateway, 12 > & | GetGateways () const |
| Retrieves the list of gateways. 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...
|
|
◆ TriggersFile()
VGears::TriggersFile::TriggersFile |
( |
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. |
◆ ~TriggersFile()
VGears::TriggersFile::~TriggersFile |
( |
| ) |
|
|
virtual |
◆ calculateSize()
size_t VGears::TriggersFile::calculateSize |
( |
void |
| ) |
const |
|
overrideprotectedvirtual |
Calculates the size of the palette.
- Returns
- The size of the palette.
- Todo:
- Units?
◆ GetCameraRange()
const Range & VGears::TriggersFile::GetCameraRange |
( |
| ) |
const |
|
inline |
Retrieves the camera range.
- Returns
- The camera range.
◆ GetGateways()
const std::array< Gateway, 12 > & VGears::TriggersFile::GetGateways |
( |
| ) |
const |
|
inline |
Retrieves the list of gateways.
◆ loadImpl()
void VGears::TriggersFile::loadImpl |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
◆ MovementRotation()
float VGears::TriggersFile::MovementRotation |
( |
| ) |
const |
|
inline |
Retrieves the movement rotation.
The movement rotation is the angle in which the player moves when "up" is pressed.
- Returns
- The movement rotation.
◆ unloadImpl()
void VGears::TriggersFile::unloadImpl |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
◆ TriggerFileSerializer
◆ RESOURCE_TYPE
const String VGears::TriggersFile::RESOURCE_TYPE |
|
static |
◆ trigger_data_
std::unique_ptr<TriggerData> VGears::TriggersFile::trigger_data_ |
|
private |
The documentation for this class was generated from the following files: