wavelength 1.0.0
Loading...
Searching...
No Matches
AvatarPart::Callback Class Reference

The callback of the loads of the files of a part. More...

#include <avatarpart.h>

Inheritance diagram for AvatarPart::Callback:
Collaboration diagram for AvatarPart::Callback:

Public Member Functions

 Callback (AvatarPart *pOwner)
 Construct the callback of a part.
int ShouldLoad (RndObject *pExisting, const char *pszName, const char *pszClass) override
 Create an object only when no object of the name exists.
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.

Detailed Description

The callback of the loads of the files of a part.

The RTTI includes the nested class name and records RndLoader::Callback as the base. The object is 8 bytes.

Constructor & Destructor Documentation

◆ Callback()

AvatarPart::Callback::Callback ( AvatarPart * pOwner)
inlineexplicit

Construct the callback of a part.

Inline in the AvatarPart constructor.

Parameters
pOwnerThe part.

Member Function Documentation

◆ ShouldLoad()

int AvatarPart::Callback::ShouldLoad ( RndObject * pExisting,
const char * pszName,
const char * pszClass )
overridevirtual

Create an object only when no object of the name exists.

Otherwise stop the load and request the choice the part is loading again.

The name of the class follows the base.

Parameters
pExistingThe loaded object with the same name, or null when none exists.
pszNameThe object name. The routine ignores it.
pszClassThe class name. The routine ignores it.
Returns
1 when pExisting is null, otherwise -1.
Ghidra address:
NTSC-U/C: 0x00276910
Ghidra address:
PAL: 0x00280430

Implements RndLoader::Callback.


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