The IPackage resource interface. More...
#include "murl_resource_i_package.h"
Classes | |
class | ClassInfo |
The class information object. More... | |
struct | Iff |
IFF file specific structs. More... | |
Public Types | |
enum | Flags { FLAG_HAS_CHECKSUM } |
Package flags. More... | |
Public Types inherited from Murl::IFactoryObject< IPackage > | |
using | ClassInfoArray = Array< const ClassInfo * > |
Definition of an array of ClassInfo objects. | |
Public Member Functions | |
virtual IPackage * | GetPackageInterface ()=0 |
Get the mutable IPackage interface. More... | |
virtual const IPackage * | GetPackageInterface () const =0 |
Get the constant IPackage interface. More... | |
virtual const IPackageFactory * | GetCreator () const =0 |
Get the factory object used to create this package. More... | |
virtual Bool | Init ()=0 |
Initialize this package. More... | |
virtual Bool | DeInit ()=0 |
De-initialize this package. More... | |
virtual Bool | CreateBinary (Data &data, Bool checkConfig, Bool makeDefault, Bool allowReferences) const =0 |
Create a binary representation from the package. More... | |
virtual const String & | GetId () const =0 |
Get the package ID. More... | |
virtual UInt32 | GetRevision () const =0 |
Get the user-defined package revision. More... | |
virtual IEnums::PackageType | GetPackageType () const =0 |
Get the package's actual type. More... | |
virtual IEnums::FileType | GetFileType () const =0 |
Get the type of file this resource package was constructed from. More... | |
virtual IEnums::FileCategory | GetFileCategory () const =0 |
Get the optional file category containing the file this package was constructed from. More... | |
virtual const String & | GetFileName () const =0 |
Get the optional file name this package was constructed from, relative to the file category returned via GetFileCategory(). More... | |
virtual UInt32 | GetNumberOfGraphInstancesToCreate () const =0 |
Get the number of graph instances defined to be created upon package loading. More... | |
virtual const IInstance * | GetGraphInstanceToCreate (UInt32 index) const =0 |
Get a specific graph instance to create upon package loading. More... | |
virtual const ICondition * | GetGraphInstanceConditionToCreate (UInt32 index) const =0 |
Get the condition of a specific graph instance to create upon package loading. More... | |
virtual UInt32 | GetNumberOfScriptInstancesToCreate () const =0 |
Get the number of script instances defined to be created upon package loading. More... | |
virtual const IInstance * | GetScriptInstanceToCreate (UInt32 index) const =0 |
Get a specific script instance to create upon package loading. More... | |
virtual const ICondition * | GetScriptInstanceConditionToCreate (UInt32 index) const =0 |
Get the condition of a specific script instance to create upon package loading. More... | |
virtual UInt32 | GetNumberOfObjects () const =0 |
Get the total number of generic resource objects contained in the package. More... | |
virtual UInt32 | GetNumberOfBinaries () const =0 |
Get the number of specialized IBinary resource objects contained in the package. More... | |
virtual UInt32 | GetNumberOfGraphs () const =0 |
Get the number of specialized IGraph resource objects contained in the package. More... | |
virtual UInt32 | GetNumberOfImages () const =0 |
Get the number of specialized IImage resource objects contained in the package. More... | |
virtual UInt32 | GetNumberOfMeshes () const =0 |
Get the number of specialized IMesh resource objects contained in the package. More... | |
virtual UInt32 | GetNumberOfFonts () const =0 |
Get the number of specialized IFont resource objects contained in the package. More... | |
virtual UInt32 | GetNumberOfShaders () const =0 |
Get the number of specialized IShader resource objects contained in the package. More... | |
virtual UInt32 | GetNumberOfAudios () const =0 |
Get the number of specialized IAudio resource objects contained in the package. More... | |
virtual UInt32 | GetNumberOfAnimations () const =0 |
Get the number of specialized IAnimation resource objects contained in the package. More... | |
virtual UInt32 | GetNumberOfAtlases () const =0 |
Get the number of specialized IAtlas resource objects contained in the package. More... | |
virtual UInt32 | GetNumberOfArchives () const =0 |
Get the number of specialized IArchive resource objects contained in the package. More... | |
virtual UInt32 | GetNumberOfVideos () const =0 |
Get the number of specialized IVideo resource objects contained in the package. More... | |
virtual UInt32 | GetNumberOfScripts () const =0 |
Get the number of script resources contained in the package. More... | |
virtual UInt32 | GetNumberOfDictionaries () const =0 |
Get the number of dictionary resources contained in the package. More... | |
virtual UInt32 | GetNumberOfGrids () const =0 |
Get the number of grid resources contained in the package. More... | |
virtual UInt32 | GetNumberOfTexts () const =0 |
Get the number of text resources contained in the package. More... | |
virtual UInt32 | GetNumberOfSubPackages () const =0 |
Get the number of sub-packages contained in the package. More... | |
virtual const IObject * | GetObject (UInt32 index) const =0 |
Get the generic resource object at a given index. More... | |
virtual const IBinary * | GetBinary (UInt32 index) const =0 |
Get the specialized IBinary resource object at a given index. More... | |
virtual const IGraph * | GetGraph (UInt32 index) const =0 |
Get the specialized IGraph resource object at a given index. More... | |
virtual const IImage * | GetImage (UInt32 index) const =0 |
Get the specialized IImage resource object at a given index. More... | |
virtual const IMesh * | GetMesh (UInt32 index) const =0 |
Get the specialized IMesh resource object at a given index. More... | |
virtual const IFont * | GetFont (UInt32 index) const =0 |
Get the specialized IFont resource object at a given index. More... | |
virtual const IShader * | GetShader (UInt32 index) const =0 |
Get the specialized IShader resource object at a given index. More... | |
virtual const IAudio * | GetAudio (UInt32 index) const =0 |
Get the specialized IAudio resource object at a given index. More... | |
virtual const IAnimation * | GetAnimation (UInt32 index) const =0 |
Get the specialized IAnimation resource object at a given index. More... | |
virtual const IAtlas * | GetAtlas (UInt32 index) const =0 |
Get the specialized IAtlas resource object at a given index. More... | |
virtual const IArchive * | GetArchive (UInt32 index) const =0 |
Get the specialized IArchive resource object at a given index. More... | |
virtual const IVideo * | GetVideo (UInt32 index) const =0 |
Get the specialized IVideo resource object at a given index. More... | |
virtual const IScript * | GetScript (UInt32 index) const =0 |
Get the script resource at a given index. More... | |
virtual const IDictionary * | GetDictionary (UInt32 index) const =0 |
Get the dictionary resource at a given index. More... | |
virtual const IGrid * | GetGrid (UInt32 index) const =0 |
Get the grid resource at a given index. More... | |
virtual const IText * | GetText (UInt32 index) const =0 |
Get the text resource at a given index. More... | |
virtual const IPackage * | GetSubPackage (UInt32 index) const =0 |
Get the sub-package at a given index. More... | |
virtual const ICondition * | GetObjectCondition (UInt32 index) const =0 |
Get the condition of a generic resource object at a given index. More... | |
virtual const ICondition * | GetBinaryCondition (UInt32 index) const =0 |
Get the condition of a specialized IBinary resource object at a given index. More... | |
virtual const ICondition * | GetGraphCondition (UInt32 index) const =0 |
Get the condition of a specialized IGraph resource object at a given index. More... | |
virtual const ICondition * | GetImageCondition (UInt32 index) const =0 |
Get the condition of a specialized IImage resource object at a given index. More... | |
virtual const ICondition * | GetMeshCondition (UInt32 index) const =0 |
Get the condition of a specialized IMesh resource object at a given index. More... | |
virtual const ICondition * | GetFontCondition (UInt32 index) const =0 |
Get the condition of a specialized IFont resource object at a given index. More... | |
virtual const ICondition * | GetShaderCondition (UInt32 index) const =0 |
Get the condition of a specialized IShader resource object at a given index. More... | |
virtual const ICondition * | GetAudioCondition (UInt32 index) const =0 |
Get the condition of a specialized IAudio resource object at a given index. More... | |
virtual const ICondition * | GetAnimationCondition (UInt32 index) const =0 |
Get the condition of a specialized IAnimation resource object at a given index. More... | |
virtual const ICondition * | GetAtlasCondition (UInt32 index) const =0 |
Get the condition of a specialized IAtlas resource object at a given index. More... | |
virtual const ICondition * | GetArchiveCondition (UInt32 index) const =0 |
Get the condition of a specialized IArchive resource object at a given index. More... | |
virtual const ICondition * | GetVideoCondition (UInt32 index) const =0 |
Get the condition of a specialized IVideo resource object at a given index. More... | |
virtual const ICondition * | GetScriptCondition (UInt32 index) const =0 |
Get the condition of a script resource at a given index. More... | |
virtual const ICondition * | GetDictionaryCondition (UInt32 index) const =0 |
Get the condition of a dictionary resource at a given index. More... | |
virtual const ICondition * | GetGridCondition (UInt32 index) const =0 |
Get the condition of a grid resource at a given index. More... | |
virtual const ICondition * | GetTextCondition (UInt32 index) const =0 |
Get the condition of a text resource at a given index. More... | |
virtual const ICondition * | GetSubPackageCondition (UInt32 index) const =0 |
Get the condition of a sub-package at a given index. More... | |
virtual const IObject * | GetObject (const String &id) const =0 |
Get the first generic resource object matching the current configuration. More... | |
virtual const IBinary * | GetBinary (const String &id) const =0 |
Get the first specialized IBinary resource object matching the current configuration. More... | |
virtual const IGraph * | GetGraph (const String &id) const =0 |
Get the first specialized IGraph resource object matching the current configuration. More... | |
virtual const IImage * | GetImage (const String &id) const =0 |
Get the first specialized IImage resource object matching the current configuration. More... | |
virtual const IMesh * | GetMesh (const String &id) const =0 |
Get the first specialized IMesh resource object matching the current configuration. More... | |
virtual const IFont * | GetFont (const String &id) const =0 |
Get the first specialized IFont resource object matching the current configuration. More... | |
virtual const IShader * | GetShader (const String &id) const =0 |
Get the first specialized IShader resource object matching the current configuration. More... | |
virtual const IAudio * | GetAudio (const String &id) const =0 |
Get the first specialized IAudio resource object matching the current configuration. More... | |
virtual const IAnimation * | GetAnimation (const String &id) const =0 |
Get the first specialized IAnimation resource object matching the current configuration. More... | |
virtual const IAtlas * | GetAtlas (const String &id) const =0 |
Get the first specialized IAtlas resource object matching the current configuration. More... | |
virtual const IArchive * | GetArchive (const String &id) const =0 |
Get the first specialized IArchive resource object matching the current configuration. More... | |
virtual const IVideo * | GetVideo (const String &id) const =0 |
Get the first specialized IVideo resource object matching the current configuration. More... | |
virtual const IScript * | GetScript (const String &id) const =0 |
Get the first script resource matching the current configuration. More... | |
virtual const IDictionary * | GetDictionary (const String &id) const =0 |
Get the first dictionary resource matching the current configuration. More... | |
virtual const IGrid * | GetGrid (const String &id) const =0 |
Get the first grid resource matching the current configuration. More... | |
virtual const IText * | GetText (const String &id) const =0 |
Get the first text resource matching the current configuration. More... | |
virtual const IPackage * | GetSubPackage (const String &id) const =0 |
Get the first sub-package matching the current configuration. More... | |
virtual Bool | SetParentPackage (const IPackage *parentPackage)=0 |
Set the optional parent package this package belongs to. More... | |
virtual const IPackage * | GetParentPackage () const =0 |
Get the optional parent package this package belongs to. More... | |
virtual Bool | SetMetaData (const IMetaData *metaData)=0 |
Set optional meta data for this package. More... | |
virtual const IMetaData * | GetMetaData () const =0 |
Get the optional meta data held by this package. More... | |
virtual Bool | SetTags (const StringArray &tags)=0 |
Set optional resource tags for this package. More... | |
virtual const StringArray & | GetTags () const =0 |
Get the optional resource tags held by this package. More... | |
virtual UInt32 | GetNumberOfAllocatedResourceBytes () const =0 |
Query the total number of allocated resource bytes in this package. More... | |
virtual Bool | CollectStatisticsObjects (Index< const IStatisticsObject * > &objects) const =0 |
Populate a given index with all objects currently present in the package. More... | |
Public Member Functions inherited from Murl::IFactoryObject< IPackage > | |
~IFactoryObject () override | |
The destructor. | |
virtual const ClassInfo * | GetObjectClassInfo () const=0 |
Get the object instance's class info, if present. More... | |
virtual void | ResetObjectProperties ()=0 |
Reset the object instance's properties to their default values. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Murl::IFactoryObject< IPackage > | |
static const PropertyInfo * | GetPropertyInfo () |
Get the class' property info struct. More... | |
static const AttributeInfo * | GetAttributeInfo () |
Get the class' attribute info struct. More... | |
static void | ResetProperties (IFactoryObject< IPackage > *object) |
Reset an object instance's properties to their default values. More... | |
Detailed Description
The IPackage resource interface.
Member Enumeration Documentation
◆ Flags
Package flags.
Enumerator | |
---|---|
FLAG_HAS_CHECKSUM | If set, the mChecksum value in the header chunk holds the package checksum. |
Member Function Documentation
◆ GetPackageInterface() [1/2]
|
pure virtual |
◆ GetPackageInterface() [2/2]
|
pure virtual |
◆ GetCreator()
|
pure virtual |
Get the factory object used to create this package.
- Returns
- The creator factory.
◆ Init()
|
pure virtual |
Initialize this package.
- Returns
- true if successful.
◆ DeInit()
|
pure virtual |
De-initialize this package.
- Returns
- true if successful.
◆ CreateBinary()
|
pure virtual |
Create a binary representation from the package.
- Parameters
-
data A reference to a Data object receiving the binary. checkConfig If true, the current IAppConfiguration object (and its contained IEngineConfiguration and IPlatformConfiguration objects) are checked for valid configuration options to include in the actual binary. If false, all present objects are included, for all configuration specified in the package. makeDefault Only considered if checkConfig is true. If makeDefault is also true, only the first object of a set of conditional resources (i.e. resource objects with the same ID) matching a valid configuration is packed into the output binary, and all other ones in this set are left out. If false, all objects with matching configuration tags are included. allowReferences If true, resource objects with identical binary representations are included only once in the package and referenced multiple times. If false, all objects are packaged regardless of duplication.
- Returns
- true if successful.
◆ GetId()
|
pure virtual |
Get the package ID.
- Returns
- The package ID.
◆ GetRevision()
|
pure virtual |
Get the user-defined package revision.
- Returns
- The package revision.
◆ GetPackageType()
|
pure virtual |
Get the package's actual type.
- Returns
- The package type.
◆ GetFileType()
|
pure virtual |
Get the type of file this resource package was constructed from.
- Returns
- The file type.
◆ GetFileCategory()
|
pure virtual |
Get the optional file category containing the file this package was constructed from.
- Returns
- The file category, or IEnums::FILE_CATEGORY_DEFAULT if the package was constructed directly from memory.
◆ GetFileName()
|
pure virtual |
Get the optional file name this package was constructed from, relative to the file category returned via GetFileCategory().
- Returns
- The file name, or an empty string if the package was constructed directly from memory.
◆ GetNumberOfGraphInstancesToCreate()
|
pure virtual |
Get the number of graph instances defined to be created upon package loading.
- Returns
- The number of instances to create.
◆ GetGraphInstanceToCreate()
|
pure virtual |
Get a specific graph instance to create upon package loading.
- Parameters
-
index The instance index, from 0 to GetNumberOfGraphInstancesToCreate()-1.
- Returns
- The instance object, or null if the index is out of range.
◆ GetGraphInstanceConditionToCreate()
|
pure virtual |
Get the condition of a specific graph instance to create upon package loading.
- Parameters
-
index The instance index, from 0 to GetNumberOfGraphInstancesToCreate()-1.
- Returns
- The condition object, or null if unconditional or the index is out of range.
◆ GetNumberOfScriptInstancesToCreate()
|
pure virtual |
Get the number of script instances defined to be created upon package loading.
- Returns
- The number of instances to create.
◆ GetScriptInstanceToCreate()
|
pure virtual |
Get a specific script instance to create upon package loading.
- Parameters
-
index The instance index, from 0 to GetNumberOfScriptInstancesToCreate()-1.
- Returns
- The instance object, or null if the index is out of range.
◆ GetScriptInstanceConditionToCreate()
|
pure virtual |
Get the condition of a specific script instance to create upon package loading.
- Parameters
-
index The instance index, from 0 to GetNumberOfScriptInstancesToCreate()-1.
- Returns
- The condition object, or null if unconditional or the index is out of range.
◆ GetNumberOfObjects()
|
pure virtual |
Get the total number of generic resource objects contained in the package.
- Returns
- The total number of generic objects.
◆ GetNumberOfBinaries()
|
pure virtual |
Get the number of specialized IBinary resource objects contained in the package.
- Returns
- The number of objects.
◆ GetNumberOfGraphs()
|
pure virtual |
Get the number of specialized IGraph resource objects contained in the package.
- Returns
- The number of objects.
◆ GetNumberOfImages()
|
pure virtual |
Get the number of specialized IImage resource objects contained in the package.
- Returns
- The number of objects.
◆ GetNumberOfMeshes()
|
pure virtual |
Get the number of specialized IMesh resource objects contained in the package.
- Returns
- The number of objects.
◆ GetNumberOfFonts()
|
pure virtual |
Get the number of specialized IFont resource objects contained in the package.
- Returns
- The number of objects.
◆ GetNumberOfShaders()
|
pure virtual |
Get the number of specialized IShader resource objects contained in the package.
- Returns
- The number of objects.
◆ GetNumberOfAudios()
|
pure virtual |
Get the number of specialized IAudio resource objects contained in the package.
- Returns
- The number of objects.
◆ GetNumberOfAnimations()
|
pure virtual |
Get the number of specialized IAnimation resource objects contained in the package.
- Returns
- The number of objects.
◆ GetNumberOfAtlases()
|
pure virtual |
Get the number of specialized IAtlas resource objects contained in the package.
- Returns
- The number of objects.
◆ GetNumberOfArchives()
|
pure virtual |
Get the number of specialized IArchive resource objects contained in the package.
- Returns
- The number of objects.
◆ GetNumberOfVideos()
|
pure virtual |
Get the number of specialized IVideo resource objects contained in the package.
- Returns
- The number of objects.
◆ GetNumberOfScripts()
|
pure virtual |
Get the number of script resources contained in the package.
- Returns
- The number of script resources.
◆ GetNumberOfDictionaries()
|
pure virtual |
Get the number of dictionary resources contained in the package.
- Returns
- The number of dictionary resources.
◆ GetNumberOfGrids()
|
pure virtual |
Get the number of grid resources contained in the package.
- Returns
- The number of grid resources.
◆ GetNumberOfTexts()
|
pure virtual |
Get the number of text resources contained in the package.
- Returns
- The number of text resources.
◆ GetNumberOfSubPackages()
|
pure virtual |
Get the number of sub-packages contained in the package.
- Returns
- The number of sub-packages.
◆ GetObject() [1/2]
Get the generic resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfObjects()-1.
- Returns
- The object, or null if the index is out of range.
◆ GetBinary() [1/2]
Get the specialized IBinary resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfBinaries()-1.
- Returns
- The object, or null if the index is out of range.
◆ GetGraph() [1/2]
Get the specialized IGraph resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfGraphs()-1.
- Returns
- The object, or null if the index is out of range.
◆ GetImage() [1/2]
Get the specialized IImage resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfImages()-1.
- Returns
- The object, or null if the index is out of range.
◆ GetMesh() [1/2]
Get the specialized IMesh resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfMeshes()-1.
- Returns
- The object, or null if the index is out of range.
◆ GetFont() [1/2]
Get the specialized IFont resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfFonts()-1.
- Returns
- The object, or null if the index is out of range.
◆ GetShader() [1/2]
Get the specialized IShader resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfShaders()-1.
- Returns
- The object, or null if the index is out of range.
◆ GetAudio() [1/2]
Get the specialized IAudio resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfAudios()-1.
- Returns
- The object, or null if the index is out of range.
◆ GetAnimation() [1/2]
|
pure virtual |
Get the specialized IAnimation resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfAnimations()-1.
- Returns
- The object, or null if the index is out of range.
◆ GetAtlas() [1/2]
Get the specialized IAtlas resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfAtlases()-1.
- Returns
- The object, or null if the index is out of range.
◆ GetArchive() [1/2]
Get the specialized IArchive resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfArchives()-1.
- Returns
- The object, or null if the index is out of range.
◆ GetVideo() [1/2]
Get the specialized IVideo resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfVideos()-1.
- Returns
- The object, or null if the index is out of range.
◆ GetScript() [1/2]
Get the script resource at a given index.
- Parameters
-
index The script index, from 0 to GetNumberOfScripts()-1.
- Returns
- The object, or null if the index is out of range.
◆ GetDictionary() [1/2]
|
pure virtual |
Get the dictionary resource at a given index.
- Parameters
-
index The dictionary index, from 0 to GetNumberOfDictionaries()-1.
- Returns
- The object, or null if the index is out of range.
◆ GetGrid() [1/2]
Get the grid resource at a given index.
- Parameters
-
index The grid index, from 0 to GetNumberOfGrids()-1.
- Returns
- The object, or null if the index is out of range.
◆ GetText() [1/2]
Get the text resource at a given index.
- Parameters
-
index The text index, from 0 to GetNumberOfTexts()-1.
- Returns
- The text object, or null if the index is out of range.
◆ GetSubPackage() [1/2]
Get the sub-package at a given index.
- Parameters
-
index The sub-package index, from 0 to GetNumberOfSubPackages()-1.
- Returns
- The sub-package, or null if the index is out of range.
◆ GetObjectCondition()
|
pure virtual |
Get the condition of a generic resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfObjects()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetBinaryCondition()
|
pure virtual |
Get the condition of a specialized IBinary resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfBinaries()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetGraphCondition()
|
pure virtual |
Get the condition of a specialized IGraph resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfGraphs()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetImageCondition()
|
pure virtual |
Get the condition of a specialized IImage resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfImages()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetMeshCondition()
|
pure virtual |
Get the condition of a specialized IMesh resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfMeshes()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetFontCondition()
|
pure virtual |
Get the condition of a specialized IFont resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfFonts()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetShaderCondition()
|
pure virtual |
Get the condition of a specialized IShader resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfShaders()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetAudioCondition()
|
pure virtual |
Get the condition of a specialized IAudio resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfAudios()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetAnimationCondition()
|
pure virtual |
Get the condition of a specialized IAnimation resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfAnimations()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetAtlasCondition()
|
pure virtual |
Get the condition of a specialized IAtlas resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfAtlases()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetArchiveCondition()
|
pure virtual |
Get the condition of a specialized IArchive resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfArchives()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetVideoCondition()
|
pure virtual |
Get the condition of a specialized IVideo resource object at a given index.
- Parameters
-
index The object index, from 0 to GetNumberOfVideos()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetScriptCondition()
|
pure virtual |
Get the condition of a script resource at a given index.
- Parameters
-
index The script index, from 0 to GetNumberOfScripts()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetDictionaryCondition()
|
pure virtual |
Get the condition of a dictionary resource at a given index.
- Parameters
-
index The dictionary index, from 0 to GetNumberOfDictionaries()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetGridCondition()
|
pure virtual |
Get the condition of a grid resource at a given index.
- Parameters
-
index The grid index, from 0 to GetNumberOfGrids()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetTextCondition()
|
pure virtual |
Get the condition of a text resource at a given index.
- Parameters
-
index The text index, from 0 to GetNumberOfTexts()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetSubPackageCondition()
|
pure virtual |
Get the condition of a sub-package at a given index.
- Parameters
-
index The sub-package index, from 0 to GetNumberOfSubPackages()-1.
- Returns
- The condition, or null if unconditional or the index is out of range.
◆ GetObject() [2/2]
Get the first generic resource object matching the current configuration.
- Parameters
-
id The resource object ID.
- Returns
- The object, or null if not found.
◆ GetBinary() [2/2]
Get the first specialized IBinary resource object matching the current configuration.
- Parameters
-
id The resource object ID.
- Returns
- The object, or null if not found.
◆ GetGraph() [2/2]
Get the first specialized IGraph resource object matching the current configuration.
- Parameters
-
id The resource object ID.
- Returns
- The object, or null if not found.
◆ GetImage() [2/2]
Get the first specialized IImage resource object matching the current configuration.
- Parameters
-
id The resource object ID.
- Returns
- The object, or null if not found.
◆ GetMesh() [2/2]
Get the first specialized IMesh resource object matching the current configuration.
- Parameters
-
id The resource object ID.
- Returns
- The object, or null if not found.
◆ GetFont() [2/2]
Get the first specialized IFont resource object matching the current configuration.
- Parameters
-
id The resource object ID.
- Returns
- The object, or null if not found.
◆ GetShader() [2/2]
Get the first specialized IShader resource object matching the current configuration.
- Parameters
-
id The resource object ID.
- Returns
- The object, or null if not found.
◆ GetAudio() [2/2]
Get the first specialized IAudio resource object matching the current configuration.
- Parameters
-
id The resource object ID.
- Returns
- The object, or null if not found.
◆ GetAnimation() [2/2]
|
pure virtual |
Get the first specialized IAnimation resource object matching the current configuration.
- Parameters
-
id The resource object ID.
- Returns
- The object, or null if not found.
◆ GetAtlas() [2/2]
Get the first specialized IAtlas resource object matching the current configuration.
- Parameters
-
id The resource object ID.
- Returns
- The object, or null if not found.
◆ GetArchive() [2/2]
|
pure virtual |
Get the first specialized IArchive resource object matching the current configuration.
- Parameters
-
id The resource object ID.
- Returns
- The object, or null if not found.
◆ GetVideo() [2/2]
Get the first specialized IVideo resource object matching the current configuration.
- Parameters
-
id The resource object ID.
- Returns
- The object, or null if not found.
◆ GetScript() [2/2]
Get the first script resource matching the current configuration.
- Parameters
-
id The resource object ID.
- Returns
- The object, or null if not found.
◆ GetDictionary() [2/2]
|
pure virtual |
Get the first dictionary resource matching the current configuration.
- Parameters
-
id The resource object ID.
- Returns
- The object, or null if not found.
◆ GetGrid() [2/2]
Get the first grid resource matching the current configuration.
- Parameters
-
id The resource object ID.
- Returns
- The object, or null if not found.
◆ GetText() [2/2]
Get the first text resource matching the current configuration.
- Parameters
-
id The text ID.
- Returns
- The text object, or null if not found.
◆ GetSubPackage() [2/2]
|
pure virtual |
Get the first sub-package matching the current configuration.
- Parameters
-
id The sub-package ID.
- Returns
- The sub-package, or null if not found.
◆ SetParentPackage()
|
pure virtual |
Set the optional parent package this package belongs to.
- Parameters
-
parentPackage The containing package, or null for removing.
- Returns
- true if successful.
◆ GetParentPackage()
|
pure virtual |
Get the optional parent package this package belongs to.
- Returns
- The containing package, or null if the package is not contained in another package.
◆ SetMetaData()
Set optional meta data for this package.
If set, the package takes ownership of the meta data. The meta data object is automatically deleted when the package is destroyed, or a different meta data object is set.
- Parameters
-
metaData The meta data, or null for removing.
- Returns
- true if successful.
◆ GetMetaData()
|
pure virtual |
Get the optional meta data held by this package.
- Returns
- The meta data, or null if not present.
◆ SetTags()
|
pure virtual |
Set optional resource tags for this package.
- Parameters
-
tags The resource tags.
- Returns
- true if successful.
◆ GetTags()
|
pure virtual |
Get the optional resource tags held by this package.
- Returns
- The resource tags.
◆ GetNumberOfAllocatedResourceBytes()
|
pure virtual |
Query the total number of allocated resource bytes in this package.
- Returns
- The number of allocated bytes.
◆ CollectStatisticsObjects()
|
pure virtual |
Populate a given index with all objects currently present in the package.
For this method to successfully return all the present objects, the method IEngineConfiguration::SetExtendedObjectStatisticsEnabled(true) must be called in the app's Configure() method.
- Parameters
-
objects An index to receive all the present objects.
- Returns
- true if successful.
The documentation for this interface was generated from the following file:
- murl_resource_i_package.h