![]() |
Public API Reference |
This interface is implemented by the createentity reward, which can create entities from entity templates. More...
#include <tools/rewards.h>
Public Member Functions | |
| virtual void | AddParameter (const char *name, const char *value)=0 |
| Add a parameter for the template. | |
| virtual void | SetEntityTemplateParameter (const char *entity_tpl)=0 |
| Set the name of the template that will be used to create a new entity from. | |
| virtual void | SetNameParameter (const char *name)=0 |
| Set the name of the entity that will be created. | |
This interface is implemented by the createentity reward, which can create entities from entity templates.
You can query this interface from the reward factory if you want to manually control this factory as opposed to loading its definition from an XML document.
The predefined name of this reward type is 'cel.rewards.createentity'.
In XML, factories recognize the following attribute on the 'op' node:
| virtual void iCreateEntityRewardFactory::AddParameter | ( | const char * | name, |
| const char * | value | ||
| ) | [pure virtual] |
Add a parameter for the template.
| name | is the name for the parameter. |
| value | is the value for the parameter or a quest manager parameter (starts with '$'). |
| virtual void iCreateEntityRewardFactory::SetEntityTemplateParameter | ( | const char * | entity_tpl | ) | [pure virtual] |
Set the name of the template that will be used to create a new entity from.
| entity_tpl | is the name of the entity template or a parameter (starts with '$'). |
| virtual void iCreateEntityRewardFactory::SetNameParameter | ( | const char * | name | ) | [pure virtual] |
Set the name of the entity that will be created.
| name | is the name of the entity or a parameter (starts with '$'). |