C4 Engine
C4 Engine API Documentation

class PropertyReg

Defined in:  C4Properties.h
The PropertyReg class represents a custom property type.

template <class classType> class PropertyReg : public PropertyRegistration

Template Parameters
classType The custom property class.

PropertyReg(PropertyType type, const char *name);

type The property type.
name The property name.
The PropertyReg template class is used to advertise the existence of a custom property type. The World Manager uses a property registration to construct a custom property, and the World Editor examines a property registration to determine what type of node a custom property can be assigned to. The act of instantiating a PropertyReg object automatically registers the corresponding property type. The property type is unregistered when the PropertyReg object is destroyed.

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