C++ TargetRTS
|
A capsule factory with a default implementation for how to create and destroy capsule instances. More...
#include <RTDefaultActorFactory.h>
Public Member Functions | |
RTActor * | create (RTController *rts, RTActorRef *ref, int index) override |
Called by the TargetRTS to create a capsule instance, which later will be inserted into a capsule part. | |
void | destroy (RTActor *actor) override |
Called by the TargetRTS to destroy a capsule instance. | |
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. | |
A capsule factory with a default implementation for how to create and destroy capsule instances.
This default implementation is the same as is used for capsule parts without any capsule factory. In generated code this class is used as base class for a custom capsule factory for a capsule part, where "create" and/or "destroy" has a user-defined implementation.
|
inlineoverridevirtual |
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 |
Implements RTActorFactoryInterface.
|
inlineoverridevirtual |
Called by the TargetRTS to destroy a capsule instance.
[in] | actor | Capsule instance to be destroyed |
Implements RTActorFactoryInterface.