v3.6.1 Documentation
Fungus.SaveDataItem Class Reference

A container for a single unity of saved data. More...

Static Public Member Functions

static SaveDataItem Create (string dataType, string data)
 Factory method to create a new SaveDataItem. More...
 

Protected Attributes

string dataType = ""
 
string data = ""
 

Properties

virtual string DataType [get]
 Gets the type of the data. More...
 
virtual string Data [get]
 Gets the data. More...
 

Detailed Description

A container for a single unity of saved data.

The data and its associated type are stored as string properties. The data would typically be a JSON string representing a saved object.

Definition at line 14 of file SaveDataItem.cs.

Member Function Documentation

◆ Create()

static SaveDataItem Fungus.SaveDataItem.Create ( string  dataType,
string  data 
)
static

Factory method to create a new SaveDataItem.

Definition at line 34 of file SaveDataItem.cs.

Member Data Documentation

◆ data

string Fungus.SaveDataItem.data = ""
protected

Definition at line 17 of file SaveDataItem.cs.

◆ dataType

string Fungus.SaveDataItem.dataType = ""
protected

Definition at line 16 of file SaveDataItem.cs.

Property Documentation

◆ Data

virtual string Fungus.SaveDataItem.Data
get

Gets the data.

Definition at line 29 of file SaveDataItem.cs.

◆ DataType

virtual string Fungus.SaveDataItem.DataType
get

Gets the type of the data.

Definition at line 24 of file SaveDataItem.cs.


The documentation for this class was generated from the following file: