|
Torque2D Reference
|
#include <resourceManager.h>
Public Types | |
| enum | Flags { VolumeBlock = BIT(0) , File = BIT(1) , Added = BIT(2) } |
Public Member Functions | |
| ResourceObject () | |
| ~ResourceObject () | |
| void | destruct () |
| void | getFileTimes (FileTime *createTime, FileTime *modifyTime) |
List Management | |
| ResourceObject * | getNext () const |
| void | unlink () |
| void | linkAfter (ResourceObject *res) |
Public Attributes | |
| S32 | flags |
| Set from Flags. | |
| StringTableEntry | path |
| Resource path. | |
| StringTableEntry | name |
| Resource name. | |
| ResourceInstance * | mInstance |
| S32 | lockCount |
| Lock count; used to control load/unload of resource from memory. | |
| U32 | crc |
| CRC of resource. | |
| Zip::ZipArchive * | mZipArchive |
| The zip archive for reading from zips. | |
| const Zip::CentralDir * | mCentralDir |
| The central directory for this file in the zip. | |
ZIP Archive | |
If the resource is stored in a zip file, these members are populated. | |
| StringTableEntry | zipPath |
| Path of zip file. | |
| StringTableEntry | zipName |
| Name of zip file. | |
| S32 | fileOffset |
| Offset of data in zip file. | |
| S32 | fileSize |
| Size on disk of resource block. | |
| S32 | compressedFileSize |
| Actual size of resource data. | |
Friends | |
| class | ResDictionary |
| class | ResManager |
Wrapper around a ResourceInstance.
This contains all the book-keeping data used by ResDictionary and ResManager.
| enum Flags |
| ResourceObject | ( | ) |
|
inline |
| void destruct | ( | ) |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
| S32 compressedFileSize |
Actual size of resource data.
| U32 crc |
CRC of resource.
| S32 fileOffset |
Offset of data in zip file.
| S32 fileSize |
Size on disk of resource block.
| S32 flags |
Set from Flags.
| S32 lockCount |
Lock count; used to control load/unload of resource from memory.
| const Zip::CentralDir* mCentralDir |
The central directory for this file in the zip.
| ResourceInstance* mInstance |
Pointer to actual object instance. If the object is not loaded, this may be NULL or garbage.
| Zip::ZipArchive* mZipArchive |
The zip archive for reading from zips.
| StringTableEntry name |
Resource name.
| StringTableEntry path |
Resource path.
| StringTableEntry zipName |
Name of zip file.
| StringTableEntry zipPath |
Path of zip file.