Quest chain structure. Quests are described in detail in Quests article.

Fields

read only firstQuestID:Int

ID of the first quest in chain.

read only id:Int

Chain ID.

read only isDaily:Bool

If enabled, then this quest chain is daily.

read only lastQuestID:Int

ID of the last quest in chain.

read only name:String

Chain name.

read only networkTypes:List<String>

SNS types that this chain is active for.

read only parentID:Int

Parent chain ID.

read only platforms:List<String>

Client platforms that this chain is active for.

read only tags:List<String>

Chain tags.

Methods

inline getBool (key:String):Bool

Returns chain parameter as Bool.

Parameters:

key

Parameter name.

Returns:

Parameter value. False, if the parameter does not exist.

getInt (key:String):Int

Returns chain parameter as Int.

Parameters:

key

Parameter name.

Returns:

Parameter value. 0, if the parameter does not exist.

getQuest (id:Int):QuestCore

Returns chain quest by its ID.

Parameters:

id

Quest ID.

Returns:

Quest.

inline hasTag (tag:String):Bool

Returns true if the chain has this tag.

Parameters:

tag

Chain tag.

Returns:

True, if the chain has this tag. False otherwise.

isActive (networkType:String):Bool

Returns true if this quest is active for this SNS type.

Parameters:

networkType

SNS type.

Returns:

True, if this quest is active. False otherwise.

isActivePlatform (platform:String):Bool

Returns true if this quest is active for this platform.

Parameters:

platform

Client platform.

Returns:

True, if this quest is active. False otherwise.

iterator ():Iterator<QuestCore>

Returns quest list iterator.

Returns:

Quest list iterator.