Resource namespace

The system for accessing file resources stored in .package files.

Contents

This namespace contains all the necessary classes needed for working with file resources stored in .package files. The main class is the IResourceManager, which can be used to get resources from the file system. The DatabasePackedFile represents a .package file that contains resources.

Classes

class cResourceManager
The implementation of IResourceManager; this should only be used for extending and detouring.
class DatabasePackedFile
A DatabasePackedFile is a type of file used in Spore to store and index multiple files inside a single container (usually in the .package extension).
struct DBPFItem
A structure that contains the metadata of a file stored in a DBPF, such as the offset in the package file and the size.
class IPFRecord
This interface defines the methods required to access the data of a file contained in a DBPF.
class IResourceContainer
class IResourceFactory
An interface that can be used to create resources of certain types.
class IResourceFilter
A generic interface used to filter ResourceKey objects.
class IResourceManager
IResourceManager is a singleton class used to access resources in Spore's file system.
class IResourceMap
An interface that is used to store resources in the cache.
class PFIndexModifiable
This class stores the metadata of all the files contained in a DBPF file.
class PFRecordRead
This class is used to read the data of a file contained inside a DBPF.
class PFRecordWrite
This class is used to write data to a file contained inside a DBPF.
class ResourceObject
A type of object that is used as a resource.
class SpecialResourceObject
class StandardFileFilter
The standard file filter which filters resources depending on the ResourceKey.
class ThreadedObject

Typedefs

using DBPF = DatabasePackedFile
A short name for DatabasePackedFile.

Functions

auto Addresses(cResourceManager) -> namespace
auto Addresses(DatabasePackedFile) -> namespace
auto Addresses(StandardFileFilter) -> namespace
auto_METHOD(StandardFileFilter, bool, IsValid, Args(const ResourceKey&name), Args(name))
auto Addresses(IResourceManager) -> namespace
auto Addresses(PFIndexModifiable) -> namespace
auto Addresses(PFRecordRead) -> namespace
auto Addresses(PFRecordWrite) -> namespace

Typedef documentation

typedef DatabasePackedFile Resource::DBPF

A short name for DatabasePackedFile.

Function documentation

Resource::auto_METHOD(StandardFileFilter, bool, IsValid, Args(const ResourceKey&name), Args(name))