C4 Engine Terathon Software C4 Engine API Documentation

• System Utilities

API Links
Developer Links

Constructable::InstallConstructor

Defined in:  C4Construction.h
Installs a constructor object for application-defined subclasses of the template parameter.
Prototype

static void InstallConstructor(Constructor<type, param> *constructor);

Parameters
constructor A pointer to the Constructor object corresponding to the template parameter.
Description
The InstallConstructor function installs a constructor object whose responsibility it is to create new instances of application-defined subclasses of the template parameter. The Constructor object encapsulates a function that is called by the engine when it encounters a custom type.

Once the Constructor object is installed, it must continue to exist in order to function. A Constructor object is uninstalled by simply deleting it.
See Also

Constructor