![]() |
V-Gears 0
Free Final Fantasy VII engine.
|
Handles LZS compressed flevel files. More...
#include <VGearsLZSFLevelFile.h>
Public Member Functions | |
LZSFLevelFile (Ogre::ResourceManager *creator, const String &name, Ogre::ResourceHandle handle, const String &group, bool is_manual=false, Ogre::ManualResourceLoader *loader=NULL) | |
Constructor. More... | |
virtual | ~LZSFLevelFile () |
Destructor. More... | |
![]() | |
FLevelFile (Ogre::ResourceManager *creator, const String &name, Ogre::ResourceHandle handle, const String &group, bool is_manual=false, Ogre::ManualResourceLoader *loader=NULL) | |
Constructor. More... | |
virtual | ~FLevelFile () |
Destructor. More... | |
const std::vector< u8 > & | GetRawScript () const |
Retrieves the scripts in the level. More... | |
const BackgroundFilePtr & | GetBackground () const |
Retrieves the level background. More... | |
const CameraMatrixFilePtr & | GetCameraMatrix () const |
Retrieves the level cameara matrix. More... | |
const ModelListFilePtr & | GetModelList () const |
Retrieves the level model list. More... | |
const PaletteFilePtr & | GetPalette () const |
Retrieves the color palette for the level. More... | |
const WalkmeshFilePtr & | GetWalkmesh () const |
Retrieves the level walkmesh. More... | |
const TriggersFilePtr & | GetTriggers () const |
Retrieves the level triggers. More... | |
void | SetRawScript (const std::vector< u8 > &script_data) |
Sets the scripts for the level. More... | |
void | SetBackground (const BackgroundFilePtr &background) |
Sets the background for the level. More... | |
void | SetCameraMatrix (const CameraMatrixFilePtr &camera_matrix) |
Sets the camera matrix for the level. More... | |
void | SetModelList (const ModelListFilePtr &model_list) |
Sets the model list for the level. More... | |
void | SetPalette (const PaletteFilePtr &palette) |
Sets the color palette for the level. More... | |
void | SetWalkmesh (const WalkmeshFilePtr &walkmesh) |
Sets the level walkmesh. More... | |
void | SetTriggers (const TriggersFilePtr &triggers) |
Sets the triggers for the level. More... | |
String | GetBackground2DName (void) const |
Retrieves the level background name. More... | |
String | GetBackgroundTextureName (void) const |
Retrieves the level background texture name. 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... | |
Static Public Attributes | |
static const String | RESOURCE_TYPE |
The type of resource. More... | |
![]() | |
static const String | RESOURCE_TYPE |
The resource type. More... | |
Protected Member Functions | |
virtual const String & | getResourceType () const |
Checks the resource type. More... | |
virtual Ogre::DataStreamPtr | openResource () override |
Opens the resource. More... | |
![]() | |
virtual void | loadImpl (void) override |
Loads the file. More... | |
void | LoadModels (void) |
Loads the level models. More... | |
void | LoadAnimations (const HRCFilePtr &model, const AnimationList &animations) |
Loads the level animations. More... | |
virtual void | unloadImpl (void) override |
Unloads the file. More... | |
virtual size_t | calculateSize (void) const override |
Calculates the size of the level. More... | |
virtual const String & | GetResourceType (void) const |
Retrieves the resource type. More... | |
virtual Ogre::DataStreamPtr | openResource () |
Opens the resource. More... | |
Additional Inherited Members | |
![]() | |
typedef std::vector< HRCFilePtr > | HRCList |
typedef ModelListFile::ModelList | ModelList |
typedef ModelListFile::AnimationList | AnimationList |
![]() | |
static const String | SUFFIX_BACKGROUND_TEXTURE |
Background texture file names suffix. More... | |
static const String | SUFFIX_BACKGROUND_2D |
Background file names suffix. More... | |
Handles LZS compressed flevel files.
VGears::LZSFLevelFile::LZSFLevelFile | ( | Ogre::ResourceManager * | creator, |
const String & | name, | ||
Ogre::ResourceHandle | handle, | ||
const String & | group, | ||
bool | is_manual = false , |
||
Ogre::ManualResourceLoader * | loader = NULL |
||
) |
Constructor.
[in] | creator | Pointer to the ResourceManager that is creating this resource. |
[in] | name | The unique name of the resource. |
[in] | handle |
[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. |
|
virtual |
Destructor.
|
protectedvirtual |
Checks the resource type.
|
overrideprotectedvirtual |
Opens the resource.
Reimplemented from VGears::Resource.
|
static |
The type of resource.