Table of Contents

Class SaveUtils

Namespace
Nautilus.Utility
Assembly
Nautilus.dll
A small collection of save data related utilities.
public static class SaveUtils
Inheritance
SaveUtils
Inherited Members

Methods

GetCurrentSaveDataDir()

Returns the path to the current save slot's directory.
public static string GetCurrentSaveDataDir()

Returns

string

RegisterOnLoadEvent(Action)

Registers a simple Action method to invoke the first time the player loads a saved game via the in game menu.
public static void RegisterOnLoadEvent(Action onLoadAction)

Parameters

onLoadAction Action
The method to invoke. This action will not be invoked a second time.

RegisterOnQuitEvent(Action)

Registers a simple Action method to invoke whenever the player quits the game via the in game menu.
public static void RegisterOnQuitEvent(Action onQuitAction)

Parameters

onQuitAction Action
The method to invoke.

RegisterOnSaveEvent(Action)

Registers a simple Action method to invoke whenever the player saves the game via the in game menu.
public static void RegisterOnSaveEvent(Action onSaveAction)

Parameters

onSaveAction Action
The method to invoke.

RegisterOneTimeUseOnLoadEvent(Action)

Registers a simple Action method to invoke the first time the player loads a saved game via the in game menu.
public static void RegisterOneTimeUseOnLoadEvent(Action onLoadAction)

Parameters

onLoadAction Action
The method to invoke. This action will not be invoked a second time.

RegisterOneTimeUseOnQuitEvent(Action)

Registers a simple Action method to invoke the first time the player quits the game via the in game menu.
public static void RegisterOneTimeUseOnQuitEvent(Action onQuitAction)

Parameters

onQuitAction Action
The method to invoke. This action will not be invoked a second time.

RegisterOneTimeUseOnSaveEvent(Action)

Registers a simple Action method to invoke the first time the player saves the game via the in game menu.
public static void RegisterOneTimeUseOnSaveEvent(Action onSaveAction)

Parameters

onSaveAction Action
The method to invoke. This action will not be invoked a second time.

UnregisterOnLoadEvent(Action)

Removes a method previously added through RegisterOnLoadEvent(Action) so it is no longer invoked when loading the game.

If you plan on using this, do not register an anonymous method.
public static void UnregisterOnLoadEvent(Action onLoadAction)

Parameters

onLoadAction Action
The method invoked.

UnregisterOnQuitEvent(Action)

Removes a method previously added through RegisterOnSaveEvent(Action) so it is no longer invoked when quiting the game.

If you plan on using this, do not register an anonymous method.
public static void UnregisterOnQuitEvent(Action onQuitAction)

Parameters

onQuitAction Action
The method invoked.

UnregisterOnSaveEvent(Action)

Removes a method previously added through RegisterOnSaveEvent(Action) so it is no longer invoked when saving the game.

If you plan on using this, do not register an anonymous method.
public static void UnregisterOnSaveEvent(Action onSaveAction)

Parameters

onSaveAction Action
The method invoked.