wavelength 1.0.0
Loading...
Searching...
No Matches
RndLoader::ObjectLoader Class Reference

One object of the file, with what the loader does with its record. More...

#include <rndloader.h>

Public Member Functions

 ObjectLoader (RndObject *pObject, int nLoad, int nDelete)
 Construct the record of one object.
void Load (BinStream &stream, int nVersion)
 Load the record of the object, or skip it.
void Release ()
 Delete the object when the loader created it only to skip it.
int GetLoad () const
RndObject * GetObject () const

Detailed Description

One object of the file, with what the loader does with its record.

The RTTI includes the nested class name.

Constructor & Destructor Documentation

◆ ObjectLoader()

RndLoader::ObjectLoader::ObjectLoader ( RndObject * pObject,
int nLoad,
int nDelete )
inline

Construct the record of one object.

Parameters
pObjectThe object.
nLoadNon-zero to load the record into the object.
nDeleteNon-zero to delete the object once the load ends.

Member Function Documentation

◆ Load()

void RndLoader::ObjectLoader::Load ( BinStream & stream,
int nVersion )

Load the record of the object, or skip it.

From version 2 every record ends with an end marker, and the stream is read up to the marker. An earlier record that is skipped is loaded into a temporary object of the same class.

Parameters
streamThe stream to read from.
nVersionThe version of the file.
Ghidra address:
NTSC-U/C: 0x0022c3e0
Ghidra address:
PAL: 0x00235120

◆ Release()

void RndLoader::ObjectLoader::Release ( )

Delete the object when the loader created it only to skip it.

The name is inferred.

Ghidra address:
NTSC-U/C: 0x0022c660
Ghidra address:
PAL: 0x00235328

◆ GetLoad()

int RndLoader::ObjectLoader::GetLoad ( ) const
inline
Returns
Non-zero to load the record into mObject.

◆ GetObject()

RndObject * RndLoader::ObjectLoader::GetObject ( ) const
inline
Returns
The object.

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