Inventory Engine v4.2
Loading...
Searching...
No Matches
MoreMountains.Tools.IMMPersistent Interface Reference

An interface classes that want to be saved by the MMPersistencyManager need to implement. More...

Inherited by MoreMountains.Tools.MMPersistentBase.

Public Member Functions

string GetGuid ()
 Needs to return a unique Guid used to identify this object.
string OnSave ()
 Returns a savable string containing the object's data.
void OnLoad (string data)
 Loads the object's data from the passed string and applies it to its properties.
bool ShouldBeSaved ()
 Whether or not this object should be saved.

Detailed Description

An interface classes that want to be saved by the MMPersistencyManager need to implement.

Member Function Documentation

◆ GetGuid()

string MoreMountains.Tools.IMMPersistent.GetGuid ( )

Needs to return a unique Guid used to identify this object.

Returns

Implemented in MoreMountains.Tools.MMPersistentBase.

◆ OnLoad()

void MoreMountains.Tools.IMMPersistent.OnLoad ( string data)

Loads the object's data from the passed string and applies it to its properties.

Parameters
data

Implemented in MoreMountains.Tools.MMPersistent, and MoreMountains.Tools.MMPersistentBase.

◆ OnSave()

string MoreMountains.Tools.IMMPersistent.OnSave ( )

Returns a savable string containing the object's data.

Returns

Implemented in MoreMountains.Tools.MMPersistent, and MoreMountains.Tools.MMPersistentBase.

◆ ShouldBeSaved()

bool MoreMountains.Tools.IMMPersistent.ShouldBeSaved ( )

Whether or not this object should be saved.

Returns

Implemented in MoreMountains.Tools.MMPersistentBase.


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