• 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 Adventure

An Adventure contains one or more Dungeon and Quest objects.

Inheritance
System.Object
Adventure
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.Core
Assembly: osrlib.Core.dll
Syntax
public class Adventure

Properties

| Improve this Doc View Source

ActiveDungeon

Gets the active Dungeon.

Declaration
public Dungeon ActiveDungeon { get; }
Property Value
Type Description
Dungeon
| Improve this Doc View Source

ActiveParty

Gets or sets the active player Party.

Declaration
public Party ActiveParty { get; set; }
Property Value
Type Description
Party
| Improve this Doc View Source

Dungeons

Gets or sets the Dungeons in the Adventure.

Declaration
public List<Dungeon> Dungeons { get; set; }
Property Value
Type Description
System.Collections.Generic.List<Dungeon>
| Improve this Doc View Source

Quests

Gets or sets the Quests in the Adventure.

Declaration
public List<Quest> Quests { get; set; }
Property Value
Type Description
System.Collections.Generic.List<Quest>

Methods

| Improve this Doc View Source

AddDungeon(Dungeon)

Adds the specified Dungeon to the Adventure.

Declaration
public void AddDungeon(Dungeon dungeon)
Parameters
Type Name Description
Dungeon dungeon

The Dungeon to add to the Adventure.

| Improve this Doc View Source

SetActiveDungeon(Dungeon)

Sets the active Dungeon for the Adventure.

Declaration
public void SetActiveDungeon(Dungeon dungeon)
Parameters
Type Name Description
Dungeon dungeon

The Dungeon to set as active.

| Improve this Doc View Source

SetActiveParty(Party)

Sets the active player Party for the Adventure. This is the Party that will enter combat with this Adventure's Dungeon Encounters.

Declaration
public void SetActiveParty(Party activeParty)
Parameters
Type Name Description
Party activeParty

The player's Party to set as active.

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