C++ TargetRTS
|
Interface of a capsule factory responsible for creating and destroying capsule instances in a capsule part. More...
#include <RTActorFactoryInterface.h>
Public Member Functions | |
virtual RTActor * | create (RTController *rts, RTActorRef *ref, int index)=0 |
Called by the TargetRTS to create a capsule instance, which later will be inserted into a capsule part. | |
virtual void | destroy (RTActor *actor)=0 |
Called by the TargetRTS to destroy a capsule instance. | |
Interface of a capsule factory responsible for creating and destroying capsule instances in a capsule part.
|
pure virtual |
Called by the TargetRTS to create a capsule instance, which later will be inserted into a capsule part.
[in] | rts | The controller that would run the new capsule instance by default |
[in] | ref | The capsule part where the created instance will later be inserted |
[in] | index | The index within the capsule part where the instance will later be inserted |
Implemented in RTActorFactory, RTDefaultActorFactory< CapsuleClass >, and RTDefaultActorFactory_NoCreate.
|
pure virtual |
Called by the TargetRTS to destroy a capsule instance.
[in] | actor | Capsule instance to be destroyed |
Implemented in RTActorFactory, RTDefaultActorFactory< CapsuleClass >, and RTDefaultActorFactory_NoCreate.