C4 Engine
C4 Engine API Documentation

Packable::Prepack

Defined in:  C4Packing.h
Called before packing to allow object linking.
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

Packable::Pack

Packable::Unpack