C4 Engine
C4 Engine API Documentation

Creatable::InstallCreator

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

static void InstallCreator(Creator<type, param> *creator);

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

Once the creator object is installed, it must continue to exist in order to function. A creator object is uninstalled by simply deleting it or by calling the Creatable::RemoveCreator function.
See Also

Creatable::RemoveCreator

Creator