Callback for easy handling of world saving and loading.
More...
Callback for easy handling of world saving and loading.
Controlled from SCR_SaveLoadComponent.
◆ SCR_DSSessionCallback()
void SCR_DSSessionCallback.SCR_DSSessionCallback |
( |
| ) |
|
◆ Delete() [1/2]
bool SCR_DSSessionCallback.Delete |
( |
string |
fileName | ) |
|
Delete a save file.
- Parameters
-
fileName | Full save file name |
- Returns
- True if the file was deleted
◆ Delete() [2/2]
bool SCR_DSSessionCallback.Delete |
( |
string |
missionFileName, |
|
|
string |
customName |
|
) |
| |
Delete a save file.
- Parameters
-
fileName | Mission save file name |
customName | Custom addition to file name (optional; applicable only to some save types) |
- Returns
- True if the file was deleted
◆ FileExists()
bool SCR_DSSessionCallback.FileExists |
( |
string |
fileName, |
|
|
string |
customName = string::Empty |
|
) |
| |
Check if file of given type exists.
- Parameters
-
fileName | Mission save file name |
customName | Custom addition to file name (optional; applicable only to some save types) |
- Returns
- True if the file exists
◆ GetCurrentCustomName()
string SCR_DSSessionCallback.GetCurrentCustomName |
( |
| ) |
|
- Returns
- Custom name of the previously saved or loaded file.
◆ GetCustomName()
string SCR_DSSessionCallback.GetCustomName |
( |
string |
fileName | ) |
|
Compose save file name.
- Parameters
-
fileName | Mission save file name |
customName | Custom addition to file name (optional; applicable only to some save types) |
- Returns
- Full save file name
◆ GetExtension()
string SCR_DSSessionCallback.GetExtension |
( |
| ) |
|
◆ GetFileName()
string SCR_DSSessionCallback.GetFileName |
( |
string |
missionFileName, |
|
|
string |
customName |
|
) |
| |
◆ GetInfo()
- Returns
- UI info representing this save type
◆ GetMeta()
Open file name and read its meta header.
- Parameters
-
- Returns
- Meta header
◆ GetMissionFileName()
string SCR_DSSessionCallback.GetMissionFileName |
( |
string |
fileName | ) |
|
Extract mission file name from save file name.
- Parameters
-
- Returns
- Mission file name
◆ GetSaveType()
ESaveType SCR_DSSessionCallback.GetSaveType |
( |
| ) |
|
- Returns
- Save type of this callback
◆ GetStruct()
- Returns
- JSON struct that defines what will be saved.
◆ InvokeOnSaved()
void SCR_DSSessionCallback.InvokeOnSaved |
( |
| ) |
|
|
protected |
◆ InvokeOnSaveFailed()
void SCR_DSSessionCallback.InvokeOnSaveFailed |
( |
| ) |
|
|
protected |
◆ IsCompatible()
bool SCR_DSSessionCallback.IsCompatible |
( |
string |
fileName | ) |
|
Check if a save file name is compatible with this callback, and can be load using its settings.
- Parameters
-
- Returns
- True if compatible
◆ IsConfigured()
bool SCR_DSSessionCallback.IsConfigured |
( |
| ) |
|
- Returns
- True if this callback is configured correctly
◆ LoadSession()
bool SCR_DSSessionCallback.LoadSession |
( |
string |
fileName | ) |
|
Load session from given save file.
- Parameters
-
fileName | Full save file name |
- Returns
- True if loading operation was requested
◆ Log()
void SCR_DSSessionCallback.Log |
( |
| ) |
|
Print out JSON struct that is currently kept in the memory.
◆ OnDeleteFailed()
override void SCR_DSSessionCallback.OnDeleteFailed |
( |
string |
fileName | ) |
|
◆ OnDeleteSuccess()
override void SCR_DSSessionCallback.OnDeleteSuccess |
( |
string |
fileName | ) |
|
◆ OnGameEnd()
void SCR_DSSessionCallback.OnGameEnd |
( |
string |
missionFileName | ) |
|
◆ OnGameStart()
void SCR_DSSessionCallback.OnGameStart |
( |
string |
missionFileName | ) |
|
◆ OnLatestSave()
void SCR_DSSessionCallback.OnLatestSave |
( |
string |
fileName | ) |
|
|
protected |
◆ OnLoaded()
override void SCR_DSSessionCallback.OnLoaded |
( |
string |
fileName | ) |
|
◆ OnLoadFailed()
override void SCR_DSSessionCallback.OnLoadFailed |
( |
string |
fileName | ) |
|
◆ OnSaveFailed()
override void SCR_DSSessionCallback.OnSaveFailed |
( |
string |
fileName | ) |
|
◆ OnSaveSuccess()
override void SCR_DSSessionCallback.OnSaveSuccess |
( |
string |
fileName | ) |
|
◆ OnSaving()
override void SCR_DSSessionCallback.OnSaving |
( |
string |
fileName | ) |
|
◆ SaveSession()
bool SCR_DSSessionCallback.SaveSession |
( |
string |
fileName, |
|
|
WorldSaveManifest |
manifest = null , |
|
|
WorldSaveItem |
usedSave = null |
|
) |
| |
Save current session to a file.
- Parameters
-
fileName | Mission save file name |
customName | Custom addition to file name (optional; applicable only to some save types) |
- Returns
- True if saving operation was requested
◆ SetStruct()
Set JSON struct that defines what will be saved.
- Parameters
-
◆ m_bAlwaysLocal
bool SCR_DSSessionCallback.m_bAlwaysLocal |
|
protected |
◆ m_bLoadPreview
bool SCR_DSSessionCallback.m_bLoadPreview |
|
protected |
◆ m_bRegisterLatestSave
bool SCR_DSSessionCallback.m_bRegisterLatestSave |
|
protected |
◆ m_eType
ESaveType SCR_DSSessionCallback.m_eType |
|
protected |
◆ m_Info
◆ m_sCurrentFileName
string SCR_DSSessionCallback.m_sCurrentFileName |
|
protected |
◆ m_sCustomNameDelimiter
string SCR_DSSessionCallback.m_sCustomNameDelimiter |
|
protected |
◆ m_sExtension
string SCR_DSSessionCallback.m_sExtension |
|
protected |
◆ m_Struct
The documentation for this interface was generated from the following file:
- Game/GameMode/SaveLoad/SCR_DSSessionCallback.c