C4 Engine Terathon Software C4 Engine API Documentation

• Interface Manager

API Links
Developer Links

class MutatorReg

Defined in:  C4Mutators.h
The MutatorReg class represents a custom mutator type.
Definition

template <class classType> class MutatorReg : public MutatorRegistration

Template Parameters
classType The custom mutator class.
Constructor

MutatorReg(MutatorType type, const char *name);

Parameters
type The mutator type.
name The mutator name.
Description
The MutatorReg template class is used to advertise the existence of a custom mutator type. The Interface Manager uses a mutator registration to construct a custom mutator. The act of instantiating a MutatorReg object automatically registers the corresponding mutator type. The mutator type is unregistered when the MutatorReg object is destroyed.

No more than one mutator registration should be created for each distinct mutator type.
Base Classes
MutatorRegistration All specific mutator registration classes share the common base class MutatorRegistration.
See Also

Mutator