class ControllerReg
Defined in:
The C4Controller.h
ControllerReg
class represents a custom controller type.
Definition
template <class classType> class ControllerReg : public ControllerRegistration
Template Parameters
classType |
The custom controller class. |
Constructor
ControllerReg(ControllerType type, const char *name);
Parameters
type |
The controller type. |
name |
The controller name. |
Description
The ControllerReg
template class is used to advertise the existence of a custom controller type. The World Manager uses a controller registration to construct a custom controller, and the World Editor examines a controller registration to determine what type of node a custom controller can be assigned to. The act of instantiating a ControllerReg
object automatically registers the corresponding controller type. The controller type is unregistered when the ControllerReg
object is destroyed.No more than one controller registration should be created for each distinct controller type.
Base Classes
ControllerRegistration |
All specific controller registration classes share the common base class ControllerRegistration .
|
See Also