C# Class Fungus.SaveHistory

Show file Open project: snozbot/fungus Class Usage Examples

Public Methods

Method Description
AddSavePoint ( string savePointKey, string savePointDescription ) : void

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

Clear ( ) : void

Clears all Save Points.

ClearRewoundSavePoints ( ) : void

Clears rewound Save Points only. The main Save Point list is not changed.

FastForward ( ) : void

Fast forwards to the next Save Point in the Save History. The most recently rewound Save Point is moved back to the main list of save points.

GetDebugInfo ( ) : string
LoadLatestSavePoint ( ) : void

Loads the latest Save Point.

Rewind ( ) : void

Rewinds to the previous Save Point in the Save History. The latest Save Point is moved to a seperate list of rewound save points.

Method Details

AddSavePoint() public method

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
return void

Clear() public method

Clears all Save Points.
public Clear ( ) : void
return void

ClearRewoundSavePoints() public method

Clears rewound Save Points only. The main Save Point list is not changed.
public ClearRewoundSavePoints ( ) : void
return void

FastForward() public method

Fast forwards to the next Save Point in the Save History. The most recently rewound Save Point is moved back to the main list of save points.
public FastForward ( ) : void
return void

GetDebugInfo() public method

public GetDebugInfo ( ) : string
return string

LoadLatestSavePoint() public method

Loads the latest Save Point.
public LoadLatestSavePoint ( ) : void
return void

Rewind() public method

Rewinds to the previous Save Point in the Save History. The latest Save Point is moved to a seperate list of rewound save points.
public Rewind ( ) : void
return void