Table of Contents

Class SaveDataHandler

Namespace
Nautilus.Handlers
Assembly
Nautilus.dll
A handler class for registering your SaveDataCache.
public static class SaveDataHandler
Inheritance
SaveDataHandler
Inherited Members

Methods

RegisterSaveDataCache<T>()

Registers your SaveDataCache to be automatically loaded and saved whenever the game is.
If you have overridden either the Load(bool) or Save() methods in your cache be aware that this handler calls the async versions of those functions!
public static T RegisterSaveDataCache<T>() where T : SaveDataCache, new()

Returns

T
An instance of the T : SaveDataCache with values loaded from the json file on disk whenever a save slot is loaded.

Type Parameters

T
A class derived from SaveDataCache to hold your save data.