CEL

Public API Reference

iInventoryQuestTriggerFactory Struct Reference

This interface is implemented by the trigger that fires when a certain inventory gets some entity. More...

#include <tools/questmanager.h>

Inheritance diagram for iInventoryQuestTriggerFactory:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void SetChildEntityParameter (const char *child_entity)=0
 Set the name of the entity to watch for.
virtual void SetEntityParameter (const char *entity, const char *tag=0)=0
 Set the name of the entity containing the pcinventory property class on which this trigger will fire.

Detailed Description

This interface is implemented by the trigger that fires when a certain inventory gets some entity.

You can query this interface from the trigger factory if you want to manually control this factory as opposed to loading its definition from an XML document.

The predefined name of this trigger type is 'cel.questtrigger.inventory'.

In XML, factories recognize the following attributes on the 'fireon' node:

Definition at line 1000 of file questmanager.h.


Member Function Documentation

virtual void iInventoryQuestTriggerFactory::SetChildEntityParameter ( const char *  child_entity  )  [pure virtual]

Set the name of the entity to watch for.

If this is not given then you will get triggered whenever something is added or removed from the inventory.

Parameters:
child_entity is the name of the entity or a parameter (starts with '$').

virtual void iInventoryQuestTriggerFactory::SetEntityParameter ( const char *  entity,
const char *  tag = 0 
) [pure virtual]

Set the name of the entity containing the pcinventory property class on which this trigger will fire.

Parameters:
entity is the name of the entity or a parameter (starts with '$').
tag is the optional tag of the entity or a parameter (starts with '$').


The documentation for this struct was generated from the following file:
Generated for CEL: Crystal Entity Layer 1.2 by doxygen 1.4.7