Loading...
Searching...
No Matches
CityBuilderCore.TaskList Class Reference

Detailed Description

manages a list of TaskStage, useful for showing a list of tutorial task to players
determines which stage is visible and persists task state and stage completion

https://citybuilder.softleitner.com/manual

Inheritance diagram for CityBuilderCore.TaskList:
CityBuilderCore.ExtraDataBehaviour CityBuilderCore.KeyedBehaviour CityBuilderCore.ISaveData CityBuilderCore.IKeyed

Classes

class  TaskListData
 

Public Member Functions

override string SaveData ()
 serializes the objects state(usually to json) and returns it
 
override void LoadData (string json)
 deserializes the serialized json data and loads the data as its new state
 
- Public Member Functions inherited from CityBuilderCore.ExtraDataBehaviour
void LoadData (string json)
 deserializes the serialized json data and loads the data as its new state
 
string SaveData ()
 serializes the objects state(usually to json) and returns it
 

Public Attributes

TaskStage[] Stages
 
- Public Attributes inherited from CityBuilderCore.KeyedBehaviour
string Key
 

Properties

TaskStage CurrentStage [get]
 
- Properties inherited from CityBuilderCore.IKeyed

Member Function Documentation

◆ LoadData()

override void CityBuilderCore.TaskList.LoadData ( string json)
inline

deserializes the serialized json data and loads the data as its new state

Parameters
json

Implements CityBuilderCore.ISaveData.

◆ SaveData()

override string CityBuilderCore.TaskList.SaveData ( )
inline

serializes the objects state(usually to json) and returns it

Returns
serialized save data

Implements CityBuilderCore.ISaveData.