wavelength 1.0.0
Loading...
Searching...
No Matches
RndLoader::Callback Class Referenceabstract

Interface a loader consults before it creates each object of its file. More...

#include <rndloader.h>

Inheritance diagram for RndLoader::Callback:

Public Member Functions

virtual void SetObjectCount (int nObjects)
 Receive the number of objects of the file before the first is created.
virtual int ShouldLoad (RndObject *pExisting, const char *pszName, const char *pszClass)=0
 Decide whether the loader loads an object of its file.
virtual ~Callback ()
 Destroy the callback.

Detailed Description

Interface a loader consults before it creates each object of its file.

The RTTI includes the nested class name. The class is abstract.

Constructor & Destructor Documentation

◆ ~Callback()

virtual RndLoader::Callback::~Callback ( )
inlinevirtual

Destroy the callback.

Reimplemented in UIManager::Callback.

Member Function Documentation

◆ SetObjectCount()

virtual void RndLoader::Callback::SetObjectCount ( int nObjects)
inlinevirtual

Receive the number of objects of the file before the first is created.

The base does nothing. The name is inferred.

Parameters
nObjectsThe number of objects.
Ghidra address:
NTSC-U/C: 0x00364b00
Ghidra address:
PAL: 0x003d3278

◆ ShouldLoad()

virtual int RndLoader::Callback::ShouldLoad ( RndObject * pExisting,
const char * pszName,
const char * pszClass )
pure virtual

Decide whether the loader loads an object of its file.

Parameters
pExistingThe loaded object with the same name, or null when none exists.
pszNameThe object name.
pszClassThe class name the file records for the object.
Returns
A positive value to load the object, 0 to skip it, or a negative value to stop the load.

Implemented in AvatarPart::Callback, GfxManager::GfxLoader, and UIManager::Callback.


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