Go to the source code of this file.
| #define REGISTER_STATE_COMPONENT |
( |
|
ComponentCreator, |
|
|
|
Component |
|
) |
| |
Value:UInt32 Register##ComponentCreator = DtStateComponentFactory::instance()->addStateComponentCreator(#ComponentCreator, ComponentCreator::ComponentType(),
new ComponentCreator);
\
UInt32 Component::theComponentCreatorType = 0xFFFFFFFF;
unsigned int UInt32
32-bit unsigned integer type.
Definition: stateDataTypes.h:21
Convenience macro that registers a state component creator with the factory and initializes the component's static creator-type field. Place this macro once in the .cxx file for the component.
- Parameters
-
| ComponentCreator | The creator class to register. |
| Component | The state component class whose theComponentCreatorType field will be initialized. |