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

Detailed Description

behaviour that makes save/load accessible to unity events
unity events could also be pointed directly to the game manager but if that is in a different prefab that can get annoying

https://citybuilder.softleitner.com/manual

Inheritance diagram for CityBuilderCore.GameSaverProxy:
CityBuilderCore.IGameSaver

Public Member Functions

void Save ()
 saves to the quick slot
 
void SaveNamed (string name)
 saves the game under a specified name
 
void Load ()
 loads from the quick slot
 
void LoadNamed (string name)
 loads from a specified name
 

Public Attributes

BoolEvent IsSavingChanged
 fired true at the start of saving and false at the end, might be used to display save messages
 
BoolEvent IsLoadingChanged
 fired true at the start of loading and false at the end, might be used to display loading messages
 

Properties

bool IsSaving [get]
 check if the game is currently saving
 
bool IsLoading [get]
 check if the game is currently loading, used to suppress certain checks and initializations during loading
 
- Properties inherited from CityBuilderCore.IGameSaver

Member Function Documentation

◆ Load()

void CityBuilderCore.GameSaverProxy.Load ( )

loads from the quick slot

Implements CityBuilderCore.IGameSaver.

◆ LoadNamed()

void CityBuilderCore.GameSaverProxy.LoadNamed ( string name)

loads from a specified name

Parameters
namename that has been previously saved to

Implements CityBuilderCore.IGameSaver.

◆ Save()

void CityBuilderCore.GameSaverProxy.Save ( )

saves to the quick slot

Implements CityBuilderCore.IGameSaver.

◆ SaveNamed()

void CityBuilderCore.GameSaverProxy.SaveNamed ( string name)

saves the game under a specified name

Parameters
namethe name for the save that can later be used when loading

Implements CityBuilderCore.IGameSaver.

Property Documentation

◆ IsLoading

bool CityBuilderCore.GameSaverProxy.IsLoading
get

check if the game is currently loading, used to suppress certain checks and initializations during loading

Implements CityBuilderCore.IGameSaver.

◆ IsSaving

bool CityBuilderCore.GameSaverProxy.IsSaving
get

check if the game is currently saving

Implements CityBuilderCore.IGameSaver.