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

Provide access to Quest Data More...

Inherits MonoBehaviour.

Public Member Functions

DiaQuest GetQuestById (int id)
 Get quest by its unique id. Return null if not found. More...
 
DiaQuest GetQuestByName (string name)
 Get quest by its name. Return null if not found. More...
 
DiaQuest GetQuestByIdent (string ident)
 Get quest by its custom ident. Return null if not found. More...
 
void ConditionPerformed (string key)
 Update all quests that the player has accepted and not completed, which uses the same condition key. This will update the condition and note that it has been performed. The condition will be considered completed once it has been performed the target number of times DiaQuestCondition.targetValue. Will update DiaQuest.completed when quest is completed. More...
 
void ConditionPerformed (string key, int val)
 Update all quests that the player has accepted and not completed, which uses the same condition key. This will update the condition's value. It is possible to send a negative value to decrease the performedTimes of the quest condition. More...
 

Public Attributes

List< DiaQuestquests = new List<DiaQuest>()
 All defined quests More...
 
int __next_quest_id = 0
 Used by editor. Do not manipulate. More...
 

Protected Member Functions

void Awake ()
 

Detailed Description

Provide access to Quest Data

Member Function Documentation

void DiaQ.DiaQuestManager.ConditionPerformed ( string  key)

Update all quests that the player has accepted and not completed, which uses the same condition key. This will update the condition and note that it has been performed. The condition will be considered completed once it has been performed the target number of times DiaQuestCondition.targetValue. Will update DiaQuest.completed when quest is completed.

void DiaQ.DiaQuestManager.ConditionPerformed ( string  key,
int  val 
)

Update all quests that the player has accepted and not completed, which uses the same condition key. This will update the condition's value. It is possible to send a negative value to decrease the performedTimes of the quest condition.

DiaQuest DiaQ.DiaQuestManager.GetQuestById ( int  id)

Get quest by its unique id. Return null if not found.

DiaQuest DiaQ.DiaQuestManager.GetQuestByIdent ( string  ident)

Get quest by its custom ident. Return null if not found.

DiaQuest DiaQ.DiaQuestManager.GetQuestByName ( string  name)

Get quest by its name. Return null if not found.

Member Data Documentation

int DiaQ.DiaQuestManager.__next_quest_id = 0

Used by editor. Do not manipulate.

List<DiaQuest> DiaQ.DiaQuestManager.quests = new List<DiaQuest>()

All defined quests