182 virtual void Copy(
const Object *pSource,
unsigned nFlags) = 0;
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Sink that the engine formats its diagnostic and failure text into.
Definition dbg.h:33
Base of every object the renderer can load, resolve by name, and serialise.
Definition object.h:43
virtual void Copy(const Object *pSource, unsigned nFlags)=0
Copy the state of pSource into this object.
virtual const HxStr & ClassName() const =0
Report the name of this object's most derived class.
void RemoveRef(Object *pReferrer)
Drop one registration made by AddRef().
std::list< Object * > mRefs
Definition object.h:60
int mInternal
Definition object.h:197
void AddRef(Object *pReferrer)
Register pReferrer as a store of a pointer to this object.
Object(const HxStr &name)
Construct an object and register it under name.
virtual ~Object()
Erase the registry entry and release the name buffer.
HxStr mName
Definition object.h:193
virtual void DumpText(Dbg &sink)
Write a human-readable description of this object to sink.
virtual void Load(Stream &stream)=0
Read this object's serialised form from stream.
void ReleaseAllRefs()
Tell every referrer to drop its pointer to this object.
Object()
Construct an unnamed object.
friend class Manager
Definition object.h:204
void SetName(const HxStr &name)
Re-register this object under a different name.
virtual void Replace(Object *pFrom, Object *pTo)=0
Replace every stored pointer to pFrom with pTo.
virtual void Save(Stream &stream)=0
Write this object's serialised form to stream.
Byte stream that every renderer object serialises itself through.
Definition stream.h:31
The rendering engine.
Definition animhelper.h:3
constexpr unsigned kCopyChildLists
Bit of the Copy() flags word that requests copying the child object lists.
Definition object.h:26
void(* g_pfnNameChanged)(Object *pObject)
Hook invoked with the object whenever a registry key is about to change.