• Home
  • API reference
  • Source code
Show / Hide Table of Contents
  • osrlib.Controllers
    • GameManager
  • osrlib.Core
    • Ability
    • AbilityType
    • Adventure
    • Alignment
    • Being
    • BeingTargetingEventArgs
    • BeingTargetingEventHandler
    • CharacterClass
    • Dungeon
    • Encounter
    • GameAction
    • GameActionEventArgs
    • GameActionEventHandler
    • GamePosition
    • Modifier
    • Party
    • Quest
    • User
    • Weapon
    • WeaponType
  • osrlib.Dice
    • DiceHand
    • DiceRoll
    • DiceRolledEventArgs
    • DiceRolledEventHandler
    • Die
  • osrlib.SaveLoad
    • SaveLoadLocal
    • SaveType
  • osrlib.Tests
    • CoreRulesTests
    • DiceTests
    • PartyGenerator
    • ReadMeTests
    • SaveLoadTests
    • SteppedBattleTests
  • osrlib.Utility
    • Randomizer

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 Source

Load(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
| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX