|
| | Object () |
| | Construct an unnamed object.
|
| | Object (const HxStr &name) |
| | Construct an object and register it under name.
|
| virtual | ~Object () |
| | Erase the registry entry and release the name buffer.
|
| void | SetName (const HxStr &name) |
| | Re-register this object under a different name.
|
| void | AddRef (Object *pReferrer) |
| | Register pReferrer as a store of a pointer to this object.
|
| void | RemoveRef (Object *pReferrer) |
| | Drop one registration made by AddRef().
|
| virtual void | DumpText (Dbg &sink) |
| | Write a human-readable description of this object to sink.
|
| virtual void | Save (Stream &stream)=0 |
| | Write this object's serialised form to stream.
|
| virtual void | Replace (Object *pFrom, Object *pTo)=0 |
| | Replace every stored pointer to pFrom with pTo.
|
| virtual const HxStr & | ClassName () const =0 |
| | Report the name of this object's most derived class.
|
| virtual void | Copy (const Object *pSource, unsigned nFlags)=0 |
| | Copy the state of pSource into this object.
|
| virtual void | Load (Stream &stream)=0 |
| | Read this object's serialised form from stream.
|
Base of every object the renderer can load, resolve by name, and serialise.
Its RTTI descriptor is at 0x0086f678. It is a leaf class with no base. Every renderer mix-in (Animatable, Collideable, Drawable, Transformable) derives from this class virtually. The subobject therefore sits at the end of the most derived object.
The class is 0x1c bytes. Following the g++ 2.x layout for a class with no base, the vptr sits after the data members at +0x18, and the eight-entry vtable is at 0x00829010.
Construction registers the object in Rnd::TheManager under its name, and destruction erases that registration. A second object stores a pointer to this one by registering itself through AddRef(). ReleaseAllRefs() then notifies every referrer through Replace() before this object goes away.
| virtual void Rnd::Object::DumpText |
( |
Dbg & | sink | ) |
|
|
virtual |
Write a human-readable description of this object to sink.
Vtable slot 2. The referrer list is included only when the dump level of sink is positive. Dbg::Print() is two instructions that discard their text in the shipped build. The routine therefore produces no output on this target. The literals it passes remain in .rodata regardless, and the recovered member titles came from them.
- Parameters
-
| sink | The diagnostic sink to write to. |
- Ghidra address:
- NTSC-U/C: 0x0053e5a8
- Ghidra address:
- PAL: 0x0057e238
Reimplemented in Rnd::Animatable, Rnd::Arena, Rnd::Blur, Rnd::Button, Rnd::Cam, Rnd::Collideable, Rnd::Drawable, Rnd::Environ, Rnd::Font, Rnd::Generator, Rnd::Light, Rnd::LightAnim, Rnd::Mat, Rnd::MatAnim, Rnd::Mesh, Rnd::MeshAnim, Rnd::Movie, Rnd::MultiMesh, Rnd::ParticleSys, Rnd::ParticleSysAnim, Rnd::String, Rnd::Tex, Rnd::Text, Rnd::TransAnim, Rnd::Transformable, Rnd::Tunnel, and Rnd::View.
| virtual void Rnd::Object::Replace |
( |
Object * | pFrom, |
|
|
Object * | pTo ) |
|
pure virtual |
Replace every stored pointer to pFrom with pTo.
Vtable slot 4. A null pTo means the referenced object is going away and the pointer is to be dropped.
- Parameters
-
| pFrom | The object being replaced. |
| pTo | The replacement, or null. |
Implemented in Rnd::Animatable, Rnd::Arena, Rnd::Blur, Rnd::Button, Rnd::Cam, Rnd::Collideable, Rnd::Drawable, Rnd::Environ, Rnd::Font, Rnd::Generator, Rnd::Light, Rnd::LightAnim, Rnd::Mat, Rnd::MatAnim, Rnd::Mesh, Rnd::MeshAnim, Rnd::Movie, Rnd::MultiMesh, Rnd::ParticleSys, Rnd::ParticleSysAnim, Rnd::String, Rnd::Tex, Rnd::Text, Rnd::TransAnim, Rnd::Transformable, Rnd::Tunnel, and Rnd::View.
| virtual const HxStr & Rnd::Object::ClassName |
( |
| ) |
const |
|
pure virtual |
Report the name of this object's most derived class.
Vtable slot 5. The returned string is the key a .rnd file writes for the class, not the mangled RTTI name.
- Returns
- The class name.
Implemented in Rnd::Arena, Rnd::Blur, Rnd::Button, Rnd::Cam, Rnd::Environ, Rnd::Font, Rnd::Generator, Rnd::Light, Rnd::LightAnim, Rnd::Mat, Rnd::MatAnim, Rnd::Mesh, Rnd::MeshAnim, Rnd::Movie, Rnd::MultiMesh, Rnd::ParticleSys, Rnd::ParticleSysAnim, Rnd::String, Rnd::Tex, Rnd::Text, Rnd::TransAnim, Rnd::Tunnel, and Rnd::View.
| virtual void Rnd::Object::Copy |
( |
const Object * | pSource, |
|
|
unsigned | nFlags ) |
|
pure virtual |
Copy the state of pSource into this object.
Vtable slot 6. Only the fields selected by nFlags are copied; see kCopyChildLists.
- Parameters
-
| pSource | The object to copy from. |
| nFlags | The set of fields to copy. |
Implemented in Rnd::Animatable, Rnd::Arena, Rnd::Blur, Rnd::Button, Rnd::Cam, Rnd::Collideable, Rnd::Drawable, Rnd::Environ, Rnd::Font, Rnd::Generator, Rnd::Light, Rnd::LightAnim, Rnd::Mat, Rnd::MatAnim, Rnd::Mesh, Rnd::MeshAnim, Rnd::Movie, Rnd::MultiMesh, Rnd::ParticleSys, Rnd::ParticleSysAnim, Rnd::String, Rnd::Tex, Rnd::Text, Rnd::TransAnim, Rnd::Transformable, Rnd::Tunnel, and Rnd::View.