Interface ISaveLoad
Allows saving/loading a game.
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public interface ISaveLoad
Methods
| Improve this Doc View SourceLoad(String)
Load the game with the specified saveName.
Declaration
void Load(string saveName)
Parameters
Type | Name | Description |
---|---|---|
System.String | saveName | Save name. |
LoadAsync(String)
Load the game asynchronously with the specified saveName.
Declaration
Task LoadAsync(string saveName)
Parameters
Type | Name | Description |
---|---|---|
System.String | saveName | Save name. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The load. |
Restart()
Restarts the game by loading the last set restart point.
Declaration
void Restart()
See Also
| Improve this Doc View SourceSave(String)
Save the game with the specified saveName.
Declaration
void Save(string saveName)
Parameters
Type | Name | Description |
---|---|---|
System.String | saveName | Save name. |
SaveAsync(String)
Save the game asynchronously with the specified saveName.
Declaration
Task SaveAsync(string saveName)
Parameters
Type | Name | Description |
---|---|---|
System.String | saveName | Save name. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
SetRestartPoint()
Sets the restart point. This will save the game and will be loaded when restarting the game.
Declaration
void SetRestartPoint()