|
| | RndObject (const char *pszName) |
| | Construct an object and register it under a name.
|
| virtual | ~RndObject () |
| | Notify every referrer, then erase the registration.
|
| virtual void | DumpText (PrnStream &stream) |
| | Write a description of the object.
|
| virtual void | Save (BinStream &stream)=0 |
| | Write the object's serialised form.
|
| virtual void | Replace (RndObject *pFrom, RndObject *pTo)=0 |
| | Replace every stored pointer to one object with another.
|
| virtual const char * | ClassName () const =0 |
| | Report the name of the object's most derived class.
|
| virtual void | Copy (const RndObject *pSource, int nFlags)=0 |
| | Copy the state of another object into this one.
|
| virtual void | Load (BinStream &stream)=0 |
| | Read the object's serialised form.
|
| void | SetName (const char *pszName) |
| | Register the object under a different name.
|
| void | AddRef (RndObject *pReferrer) |
| | Register an object as a store of a pointer to this one.
|
| void | RemoveRef (RndObject *pReferrer) |
| | Drop the first registration AddRef() made for a referrer.
|
| const char * | GetName () const |
| const std::list< RndObject * > & | GetRefs () const |
| int | GetInternal () const |
| void | SetInternal (int nInternal) |
Base of every object the renderer can load, resolve by name, and serialise.
The RTTI includes the class name and records no base. Every renderer mix-in derives from the class virtually.
Construction registers the object in TheManager under its name, and destruction erases that registration. A second object that stores a pointer to this one registers itself through AddRef(). The destructor then notifies every referrer through Replace() before the object goes away.
| virtual void RndObject::DumpText |
( |
PrnStream & | stream | ) |
|
|
virtual |
Write a description of the object.
The referrers are included only when the dump level of the stream is above 0.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x0023c648
- Ghidra address:
- PAL: 0x002451c8
Reimplemented in RndAnimatable, RndArena, RndBlur, RndButton, RndCam, RndCollideable, RndCursor, RndDrawable, RndEnviron, RndFont, RndGenerator, RndLight, RndLightAnim, RndLine, RndMat, RndMatAnim, RndMesh, RndMeshAnim, RndMovie, RndMultiMesh, RndParticleSys, RndParticleSysAnim, RndTex, RndText, RndTransAnim, RndTransformable, and RndView.
Replace every stored pointer to one object with another.
A null replacement means the object is going away and the pointer is to be dropped.
- Parameters
-
| pFrom | The object being replaced. |
| pTo | The replacement, or null. |
Implemented in PsMovie, RndAnimatable, RndArena, RndBlur, RndButton, RndCam, RndCollideable, RndCursor, RndDrawable, RndEnviron, RndFont, RndGenerator, RndLight, RndLightAnim, RndLine, RndMat, RndMatAnim, RndMesh, RndMeshAnim, RndMovie, RndMultiMesh, RndParticleSys, RndParticleSysAnim, RndTex, RndText, RndTransAnim, RndTransformable, and RndView.
| virtual const char * RndObject::ClassName |
( |
| ) |
const |
|
pure virtual |
Report the name of the object's most derived class.
- Returns
- The type name a .rnd file writes for the class.
Implemented in RndArena, RndBlur, RndButton, RndCam, RndCursor, RndEnviron, RndFont, RndGenerator, RndLight, RndLightAnim, RndLine, RndMat, RndMatAnim, RndMesh, RndMeshAnim, RndMovie, RndMultiMesh, RndParticleSys, RndParticleSysAnim, RndTex, RndText, RndTransAnim, and RndView.
| virtual void RndObject::Copy |
( |
const RndObject * | pSource, |
|
|
int | nFlags ) |
|
pure virtual |
Copy the state of another object into this one.
- Parameters
-
| pSource | The object to copy from. |
| nFlags | The set of fields to copy. |
Implemented in PsMesh, RndAnimatable, RndArena, RndBlur, RndButton, RndCam, RndCollideable, RndCursor, RndDrawable, RndEnviron, RndFont, RndGenerator, RndLight, RndLightAnim, RndLine, RndMat, RndMatAnim, RndMesh, RndMeshAnim, RndMovie, RndMultiMesh, RndParticleSys, RndParticleSysAnim, RndTex, RndText, RndTransAnim, RndTransformable, and RndView.