Table of Contents

Interface IReadableNotes

Namespace
SkyrimForge.Menus
Assembly
SkyrimForge.dll

Makes references readable notes whose pages a plugin writes at runtime.

public interface IReadableNotes

Remarks

The pages are stored in this plugin's saved state. Call members on the game's thread.

Properties

OnRead

Raised on the game's thread when the book menu opens on the pages of a note this plugin wrote.

IGameEvent<NoteReadEventArgs> OnRead { get; }

Property Value

IGameEvent<NoteReadEventArgs>

Methods

SendByCourierAsync(string, IEnumerable<string>)

Sends the player a letter named name by the game's courier, whose pages are htmlPages.

Task<ObjectReference> SendByCourierAsync(string name, IEnumerable<string> htmlPages)

Parameters

name string

The name the letter shows.

htmlPages IEnumerable<string>

The pages as HTML, as ShowAsync(IEnumerable<string>, CancellationToken) receives them.

Returns

Task<ObjectReference>

The letter, a reference whose base object is dunLabyrinthianMazeClue and which the player can take, once the courier has it.

Exceptions

ArgumentNullException

name or htmlPages is null.

InvalidOperationException

The game created no letter. The exception is stored in the returned task.

Write<TNote>(TNote, string, IEnumerable<string>, bool)

Makes note a readable note named name, whose pages are htmlPages.

void Write<TNote>(TNote note, string name, IEnumerable<string> htmlPages, bool canBeTaken = false) where TNote : struct, IObjectReference

Parameters

note TNote

The reference, such as one whose base object is dunLabyrinthianMazeClue.

name string

The name the reference shows.

htmlPages IEnumerable<string>

The pages as HTML, as ShowAsync(IEnumerable<string>, CancellationToken) receives them. They replace the pages written before.

canBeTaken bool

Whether the player can take the note.

Type Parameters

TNote

Remarks

The reference's activation is blocked, or unblocked for a note that can be taken.

Exceptions

ArgumentNullException

name or htmlPages is null.