object that defines general information about a level
https://citybuilder.softleitner.com/manual
|
bool | HasWinConditions [get] |
| does the mission have win conditions or is it endless
|
|
|
static T | GetKeyedObject< T > (string key) |
|
◆ Delete()
void CityBuilderCore.Mission.Delete |
( |
string | name = null, |
|
|
Difficulty | difficulty = null ) |
|
inline |
deletes the save game
- Parameters
-
name | name of the save game or null for quicksave |
difficulty | difficulty or null for default |
◆ GetFinished()
bool CityBuilderCore.Mission.GetFinished |
( |
Difficulty | difficulty = null | ) |
|
|
inline |
has the mission been finished at the specified difficulty
- Parameters
-
- Returns
◆ GetStarted()
bool CityBuilderCore.Mission.GetStarted |
( |
Difficulty | difficulty = null | ) |
|
|
inline |
has the mission been started/has a savegame been found at the specified difficulty
- Parameters
-
- Returns
◆ GetWinConditionText()
progress of all the win conditions in text form
- Parameters
-
- Returns
◆ GetWon()
are all the win conditions currently satisfied
- Parameters
-
- Returns
◆ Load()
string CityBuilderCore.Mission.Load |
( |
string | name = null, |
|
|
Difficulty | difficulty = null ) |
|
inline |
loads savedata as string
- Parameters
-
name | name of the savegame or null for quicksave |
difficulty | difficulty or null for default |
- Returns
- serialized save game data
◆ Save()
void CityBuilderCore.Mission.Save |
( |
string | data, |
|
|
string | name = null, |
|
|
Difficulty | difficulty = null ) |
|
inline |
saves the data string
- Parameters
-
data | serialized save game data |
name | name of the savegame or null for quicksave |
difficulty | difficulty or null for default |
◆ SetContinue()
void CityBuilderCore.Mission.SetContinue |
( |
string | name = null, |
|
|
Difficulty | difficulty = null, |
|
|
bool | save = false ) |
|
inline |
sets which save game can be continued
- Parameters
-
name | name of the save game or null for quicksave |
difficulty | difficulty or null for default |
save | whether the changes should be immediately persisted, false by default because this is usually done when the game data is saved |