A DiaQ Quest Reward for quest completion. You should use the functions in DiaQuest and not interact with the reward directly, except when you want to interact with the metaData. More...
Inherits plyCommon.plyMetaDataInterface.
Public Member Functions | |
void | Awake () |
called by Quest's Awake at runtime More... | |
Dictionary< string, plyMetaData > | AllMetaData () |
List< plyMetaData > | AllMetaDataList () |
plyMetaData | GetMetaData (string name) |
Return reference to meta data object. Null if not found. More... | |
object | GetMetaDataValue (string name) |
Return meta data value. Null if named meta data not found. More... | |
void | SetMetaDataValue (string name, object val) |
Set meta data value. Will create the named meta data if not found and then set value. More... | |
Public Attributes | |
plyDataObject | keyObject = new plyDataObject() |
alternative way of providing a reward key. If set then this will cause the DataProvider_Callback to be triggered. Also provides a cleaner way for the designer to select quest reward. The context of the Provider should be set to "DiaQReward". (plyDataProviderInfo.ProviderContext) More... | |
string | keyString = "" |
identifies the reward More... | |
int | value = 1 |
can be used to set how many copies of the reward to give More... | |
plyMetaData[] | metaData = new plyMetaData[0] |
Extra data that can be associated with the reward. Do not access at runtime, use provided functions. More... | |
Properties | |
Dictionary< string, plyMetaData > | runtimeMetaData [get, set] |
A DiaQ Quest Reward for quest completion. You should use the functions in DiaQuest and not interact with the reward directly, except when you want to interact with the metaData.
void DiaQ.DiaQuestReward.Awake | ( | ) |
called by Quest's Awake at runtime
plyMetaData DiaQ.DiaQuestReward.GetMetaData | ( | string | name | ) |
Return reference to meta data object. Null if not found.
Implements plyCommon.plyMetaDataInterface.
object DiaQ.DiaQuestReward.GetMetaDataValue | ( | string | name | ) |
Return meta data value. Null if named meta data not found.
Implements plyCommon.plyMetaDataInterface.
void DiaQ.DiaQuestReward.SetMetaDataValue | ( | string | name, |
object | val | ||
) |
Set meta data value. Will create the named meta data if not found and then set value.
Implements plyCommon.plyMetaDataInterface.
plyDataObject DiaQ.DiaQuestReward.keyObject = new plyDataObject() |
alternative way of providing a reward key. If set then this will cause the DataProvider_Callback to be triggered. Also provides a cleaner way for the designer to select quest reward. The context of the Provider should be set to "DiaQReward". (plyDataProviderInfo.ProviderContext)
string DiaQ.DiaQuestReward.keyString = "" |
identifies the reward
plyMetaData [] DiaQ.DiaQuestReward.metaData = new plyMetaData[0] |
Extra data that can be associated with the reward. Do not access at runtime, use provided functions.
int DiaQ.DiaQuestReward.value = 1 |
can be used to set how many copies of the reward to give