Interface ISavedStateFormPair<TForm>
- Namespace
- SkyrimForge
- Assembly
- SkyrimForge.dll
One form ID in a saved-state store, with the key beside it so a caller names it once.
public interface ISavedStateFormPair<TForm> where TForm : struct, IForm
Type Parameters
TForm
Remarks
Separate from ISavedStatePair<T> because a form ID is not stored as text, for the reason SetFormId(string, FormId<Form>?) gives.
The store does not record TForm, so the ID read is declared as the type the pair names.
Properties
Key
The key this reads and writes within its store.
string Key { get; }
Property Value
Value
The stored form ID as this session knows it. It is null where nothing is stored or the .esm, .esp, or .esl file declaring that form is no longer loaded. Assigning null drops the key.
FormId<TForm>? Value { get; set; }
Property Value
- FormId<TForm>?