Skip to content
This repository was archived by the owner on May 29, 2023. It is now read-only.

SaveMethod

sophia daniels edited this page Oct 8, 2018 · 1 revision

Implements: ScriptableObject

Description

Base abstract class for save methods. Used with SaveObject to save and load data.

Properties

string SaveFilePath

The path to the save file. leave blank to save in default location

string SavePath

the parsed path to access the save data (file path or url)

string SaveName

the filename of the save file


Methods

void SaveData(Dictionary<int,string> data)

saves the data

  • Param: data - Data structure

Dictionary<int,string> LoadData(Dictionary<int,string> data)

Converts runtime data to a string to be saved

  • Param: data - Data structure
  • Returns: String of runtime data

void ClearData(Dictionary<int,string> data)

clears data

  • Param: data - Data structure
Clone this wiki locally