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
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
namestringThe name the letter shows.
htmlPagesIEnumerable<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
nameorhtmlPagesisnull.- 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
noteTNoteThe reference, such as one whose base object is dunLabyrinthianMazeClue.
namestringThe name the reference shows.
htmlPagesIEnumerable<string>The pages as HTML, as ShowAsync(IEnumerable<string>, CancellationToken) receives them. They replace the pages written before.
canBeTakenboolWhether 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
nameorhtmlPagesisnull.