Class SaveLoadLocal
Performs Adventure save and load operations to and from a local text file.
Inheritance
System.Object
SaveLoadLocal
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: osrlib.SaveLoad
Assembly: osrlib.Core.dll
Syntax
public static class SaveLoadLocal
Methods
| Improve this Doc View SourceLoad(String)
Loads the Adventure contained in the specified file.
Declaration
public static Adventure Load(string filePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath |
Returns
Type | Description |
---|---|
Adventure |
Save(Adventure, String)
Saves the specified Adventure to the specified file.
Declaration
public static bool Save(Adventure adventure, string filePath)
Parameters
Type | Name | Description |
---|---|---|
Adventure | adventure | The adventure to save. |
System.String | filePath | The full path to the save file. |
Returns
Type | Description |
---|---|
System.Boolean | True if the save operation was successful, otherwise false. |