C++ TargetRTS
|
A capsule factory with a default destroy implementation, but without a create implementation (the create function will return nullptr). 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 destroy implementation, but without a create implementation (the create function will return nullptr).
In generated code this class is used as base class for a custom capsule factory for a capsule part where the type of the capsule part is a capsule without a default capsule constructor.
|
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.