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

RegisterOnFinishLoadingEvent(Action)

Registers a simple Action method to invoke the first time the player loads a saved game via the in game menu. This is only invoked after the game (including most objects around the player) has FULLY loaded. For an earlier alternative, see RegisterOnStartLoadingEvent(Action).
public static void RegisterOnFinishLoadingEvent(Action onFinishLoadingAction)

Parameters

onFinishLoadingAction 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.

RegisterOnStartLoadingEvent(Action)

Registers a simple Action method to invoke immediately after the first time the player loads a saved game via the in game menu.
public static void RegisterOnStartLoadingEvent(Action onStartLoadingAction)

Parameters

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

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.

UnregisterOnFinishLoadingEvent(Action)

Removes a method previously added through RegisterOnFinishLoadingEvent(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 UnregisterOnFinishLoadingEvent(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.

UnregisterOnStartLoadingEvent(Action)

Removes a method previously added through RegisterOnStartLoadingEvent(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 UnregisterOnStartLoadingEvent(Action onLoadAction)

Parameters

onLoadAction Action
The method invoked.