C# Класс Fungus.SaveManager

Manages the Save History (a list of Save Points) and provides a set of operations for saving and loading games.
Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
loadAction System.Action
saveHistory SaveHistory

Открытые методы

Метод Описание
AddSavePoint ( string savePointKey, string savePointDescription ) : void

Creates a new Save Point using a key and description, and adds it to the Save History.

ClearHistory ( ) : void

Deletes all Save Points in the Save History.

Delete ( string saveDataKey = DefaultSaveDataKey ) : void

Deletes a previously stored Save History from persistent storage.

FastForward ( ) : void

Fast forwards to the next rewound Save Point in the Save History and loads that Save Point.

GetDebugInfo ( ) : string

Returns an info string to help debug issues with the save data.

Load ( string saveDataKey = DefaultSaveDataKey ) : void

Loads the Save History from persistent storage and loads the latest Save Point.

Rewind ( ) : void

Rewinds to the previous Save Point in the Save History and loads that Save Point.

Save ( string saveDataKey = DefaultSaveDataKey ) : void

Writes the Save History to persistent storage.

SaveDataExists ( string saveDataKey = DefaultSaveDataKey ) : bool

Returns true if save data has previously been stored using this key.

Защищенные методы

Метод Описание
ExecuteBlocks ( string savePointKey ) : void

Starts Block execution based on a Save Point Key The execution order is: 1. Save Point Loaded event handlers with a matching key. 2. First Save Point command (in any Block) with matching key. Execution starts at the following command. 3. Any label in any block with name matching the key. Execution starts at the following command.

ExecuteStartBlock ( ) : void

Starts execution at the first Save Point found in the scene with the IsStartPoint property enabled.

LoadSavedGame ( string saveDataKey ) : void
OnDisable ( ) : void
OnEnable ( ) : void
OnSavePointLoaded ( string savePointKey ) : void
OnSceneLoaded ( Scene scene, LoadSceneMode mode ) : void
ReadSaveHistory ( string saveDataKey ) : bool
Update ( ) : void
WriteSaveHistory ( string saveDataKey ) : bool

Описание методов

AddSavePoint() публичный Метод

Creates a new Save Point using a key and description, and adds it to the Save History.
public AddSavePoint ( string savePointKey, string savePointDescription ) : void
savePointKey string
savePointDescription string
Результат void

ClearHistory() публичный Метод

Deletes all Save Points in the Save History.
public ClearHistory ( ) : void
Результат void

Delete() публичный Метод

Deletes a previously stored Save History from persistent storage.
public Delete ( string saveDataKey = DefaultSaveDataKey ) : void
saveDataKey string
Результат void

ExecuteBlocks() защищенный Метод

Starts Block execution based on a Save Point Key The execution order is: 1. Save Point Loaded event handlers with a matching key. 2. First Save Point command (in any Block) with matching key. Execution starts at the following command. 3. Any label in any block with name matching the key. Execution starts at the following command.
protected ExecuteBlocks ( string savePointKey ) : void
savePointKey string
Результат void

ExecuteStartBlock() защищенный Метод

Starts execution at the first Save Point found in the scene with the IsStartPoint property enabled.
protected ExecuteStartBlock ( ) : void
Результат void

FastForward() публичный Метод

Fast forwards to the next rewound Save Point in the Save History and loads that Save Point.
public FastForward ( ) : void
Результат void

GetDebugInfo() публичный Метод

Returns an info string to help debug issues with the save data.
public GetDebugInfo ( ) : string
Результат string

Load() публичный Метод

Loads the Save History from persistent storage and loads the latest Save Point.
public Load ( string saveDataKey = DefaultSaveDataKey ) : void
saveDataKey string
Результат void

LoadSavedGame() защищенный Метод

protected LoadSavedGame ( string saveDataKey ) : void
saveDataKey string
Результат void

OnDisable() защищенный Метод

protected OnDisable ( ) : void
Результат void

OnEnable() защищенный Метод

protected OnEnable ( ) : void
Результат void

OnSavePointLoaded() защищенный Метод

protected OnSavePointLoaded ( string savePointKey ) : void
savePointKey string
Результат void

OnSceneLoaded() защищенный Метод

protected OnSceneLoaded ( Scene scene, LoadSceneMode mode ) : void
scene UnityEngine.SceneManagement.Scene
mode LoadSceneMode
Результат void

ReadSaveHistory() защищенный Метод

protected ReadSaveHistory ( string saveDataKey ) : bool
saveDataKey string
Результат bool

Rewind() публичный Метод

Rewinds to the previous Save Point in the Save History and loads that Save Point.
public Rewind ( ) : void
Результат void

Save() публичный Метод

Writes the Save History to persistent storage.
public Save ( string saveDataKey = DefaultSaveDataKey ) : void
saveDataKey string
Результат void

SaveDataExists() публичный Метод

Returns true if save data has previously been stored using this key.
public SaveDataExists ( string saveDataKey = DefaultSaveDataKey ) : bool
saveDataKey string
Результат bool

Update() защищенный Метод

protected Update ( ) : void
Результат void

WriteSaveHistory() защищенный Метод

protected WriteSaveHistory ( string saveDataKey ) : bool
saveDataKey string
Результат bool

Описание свойств

loadAction защищенное свойство

protected System.Action loadAction
Результат System.Action

saveHistory защищенное статическое свойство

protected static SaveHistory,Fungus saveHistory
Результат SaveHistory