System Utilities
C4Construction.h

class Constructable

The Constructable class template is the base class for class types that can be extended by application-defined subclasses.
Definition

template <class type, typename param = Unpacker&> class Constructable

Member Functions
Constructable::InstallConstructor Installs a constructor object for application-defined subclasses of the template parameter.
Template Parameters
type The type of the base class of a hierarchy of extensible classes.
param The type of the data passed to the constructor functions.
Constructor

Constructable()

Description
The Constructable class template appears as a base class for types of objects that can have custom subclasses defined by an application. So that the engine can construct these custom subclasses when necessary (e.g., when loading a world), an application installs a special constructor object by calling the Constructable::InstallConstructor function. This object has a member function that is responsible for returning a pointer to a newly constructed instance of the subclass of a given type.
See Also
Constructor

Registrable