wavelength 1.0.0
Loading...
Searching...
No Matches
GfxManager::GfxLoader Class Reference

Loader of one file of the load list of the gfx configuration. More...

#include <gfxmanager.h>

Inheritance diagram for GfxManager::GfxLoader:
Collaboration diagram for GfxManager::GfxLoader:

Public Member Functions

 GfxLoader (bool bDone, bool bMergeAll, DataArray *pForceMerge)
 Construct a loader that has not started.
 ~GfxLoader () override
 Destroy the loader.
int ShouldLoad (RndObject *pExisting, const char *pszName, const char *pszClass) override
 Decide whether the file loads an object.
void Start (const char *pszFile, int nFlags)
 Start to load a file.
void Finish ()
 Mark the load as finished and report the objects that were skipped.
Public Member Functions inherited from RndLoader::Callback
virtual void SetObjectCount (int nObjects)
 Receive the number of objects of the file before the first is created.
virtual ~Callback ()
 Destroy the callback.

Public Attributes

String mSkipped
std::unique_ptr< RndLoader > mLoader
DataArray * mForceMerge
int mDone
int mMergeAll

Detailed Description

Loader of one file of the load list of the gfx configuration.

The RTTI identifies the class. The object is 0x28 bytes. A file object that already exists is loaded again only when force_merge lists it. A skipped object that is not a texture, with merge_all clear, is reported once the file has loaded unless the list merges_always_allowed includes it.

Constructor & Destructor Documentation

◆ GfxLoader()

GfxManager::GfxLoader::GfxLoader ( bool bDone,
bool bMergeAll,
DataArray * pForceMerge )

Construct a loader that has not started.

Parameters
bDoneWhether the load counts as finished.
bMergeAllWhether every object that already exists is loaded again.
pForceMergeThe objects that are loaded again, or null.
Ghidra address:
NTSC-U/C: 0x001b12d0
Ghidra address:
PAL: 0x001ba070

◆ ~GfxLoader()

GfxManager::GfxLoader::~GfxLoader ( )
override

Destroy the loader.

Ghidra address:
NTSC-U/C: 0x001b1360
Ghidra address:
PAL: 0x001ba100

Member Function Documentation

◆ ShouldLoad()

int GfxManager::GfxLoader::ShouldLoad ( RndObject * pExisting,
const char * pszName,
const char * pszClass )
overridevirtual

Decide whether the file loads an object.

Parameters
pExistingThe object of the same name that already exists, or null.
pszNameThe name of the object.
pszClassThe class of the object.
Returns
1 to load the object, or 0 to retain the one that exists.
Ghidra address:
NTSC-U/C: 0x001b13c0
Ghidra address:
PAL: 0x001ba160

Implements RndLoader::Callback.

◆ Start()

void GfxManager::GfxLoader::Start ( const char * pszFile,
int nFlags )

Start to load a file.

Parameters
pszFileThe file.
nFlagsThe load flags of RndManager::AddLoader().
Ghidra address:
NTSC-U/C: 0x001b1328
Ghidra address:
PAL: 0x001ba0c8

◆ Finish()

void GfxManager::GfxLoader::Finish ( )

Mark the load as finished and report the objects that were skipped.

Ghidra address:
NTSC-U/C: 0x001b14e8
Ghidra address:
PAL: 0x001ba288

Member Data Documentation

◆ mSkipped

String GfxManager::GfxLoader::mSkipped

The lines of the report of the skipped objects.

◆ mLoader

std::unique_ptr<RndLoader> GfxManager::GfxLoader::mLoader

The loader of the file, or null.

◆ mForceMerge

DataArray* GfxManager::GfxLoader::mForceMerge

The objects that are loaded again, or null.

◆ mDone

int GfxManager::GfxLoader::mDone

Whether Finish() ran.

◆ mMergeAll

int GfxManager::GfxLoader::mMergeAll

Whether every object that already exists loads again.


The documentation for this class was generated from the following file: