All Classes Namespaces Functions Variables Enumerations Enumerator Properties
DiaQ.DiaQEngine Class Reference

DiaQ runtime provide the interface with the graph manager More...

Inherits MonoBehaviour, and plyCommon.plyDataProviderInterface.

Public Member Functions

string GetSaveData ()
 Returns a string that can be saved and later be fed to RestoreFromSaveData() to restore the state of DiaQ's graphs and quests to what it was when GetSaveData() was called. The status of quests and the Meta Data of DiaQ, Graphs, Quests, Conditions and Rewards will be saved. Note that GameObject and UnityObect types in meta data can't be saved and restored. Do not call this in Awake() More...
 
void RestoreFromSaveData (string data_s)
 Restore the state of DiaQ from the data. This data must be a string that was previously provided by GetSaveData(). Do not call this in Awake() Note, restoring a quest to the state of of "rewarded" will not actually cause anything that gives the reward, to run. That you need to handle somewhere else. Besides, you probably save the player's state too and then running the reward logic again would give him double the rewards each time he restores the game. More...
 
object DataProvider_GetValue (string[] nfo)
 
void DataProvider_SetValue (string[] nfo, object value)
 
void DataProvider_Callback (string[] nfo)
 

Public Attributes

List< plyInlineValueinlineValues = new List<plyInlineValue>()
 Values that can be in-lined in text used in Graphs and Quests More...
 

Protected Member Functions

void Awake ()
 

Properties

static DiaQEngine Instance [get, set]
 
plyGraphManager graphManager [get, set]
 
DiaQuestManager questManager [get, set]
 

Detailed Description

DiaQ runtime provide the interface with the graph manager

Member Function Documentation

string DiaQ.DiaQEngine.GetSaveData ( )

Returns a string that can be saved and later be fed to RestoreFromSaveData() to restore the state of DiaQ's graphs and quests to what it was when GetSaveData() was called. The status of quests and the Meta Data of DiaQ, Graphs, Quests, Conditions and Rewards will be saved. Note that GameObject and UnityObect types in meta data can't be saved and restored. Do not call this in Awake()

void DiaQ.DiaQEngine.RestoreFromSaveData ( string  data_s)

Restore the state of DiaQ from the data. This data must be a string that was previously provided by GetSaveData(). Do not call this in Awake() Note, restoring a quest to the state of of "rewarded" will not actually cause anything that gives the reward, to run. That you need to handle somewhere else. Besides, you probably save the player's state too and then running the reward logic again would give him double the rewards each time he restores the game.

Member Data Documentation

List<plyInlineValue> DiaQ.DiaQEngine.inlineValues = new List<plyInlineValue>()

Values that can be in-lined in text used in Graphs and Quests