C4 Engine Terathon Software C4 Engine API Documentation

• Resource Manager

API Links
Developer Links

class Packable

Defined in:  C4Packing.h
The Packable class is the base class for a packable object.
Definition

class Packable

Member Functions
Packable::GetPackTypeSize Returns the total size of the type codes needed to identify the most-derived subclass.
Packable::GetPackSize Returns the number of bytes needed to pack the object's data.
Packable::PackType Packs the sequence of type codes.
Packable::Pack Packs an object's data.
Packable::Unpack Unpacks an object's data.
Packable::Prepack Called before packing to allow object linking.
Packable::UnpackChunkList Unpacks a sequence of chunks from an input stream.
Constructor

Packable();

Description
The Packable class is a base class used by all packable objects. It contains virtual functions that are used for packing and unpacking object data to and from storage (typically disk files).