Packable::Prepack
Defined in:
Called before packing to allow object linking.
C4Packing.h
Prototype
virtual void Prepack(List<Object> *linkList) const;
Parameters
linkList |
A list to which linked objects should be added. |
Description
The Prepack
function is called before a packable object is packed. If the packable object owns references to Object
instances, then it should use the List::AppendListElement
function to add those objects to the list specified by the linkList
parameter. This is necessary in order for the object to be included in the packed data so that it can be restored when the data is unpacked.
See Also