Struct GameFunction
- Namespace
- SkyrimForge
- Assembly
- SkyrimForge.dll
A game function, by its Address Library identifier on each runtime.
public readonly struct GameFunction : IEquatable<GameFunction>
- Implements
- Inherited Members
Remarks
The identifiers live here and nowhere else. The native side resolves what it is given and declares no table of its own, so no second list can drift from this one. The binding generator writes a member for each function CommonLib relocates that this repository names, such as DialogueItem__Ctor for DialogueItem::Ctor. A plugin constructs one for any other function, from that function's identifiers.
An identifier the address library does not name resolves to the next one along instead of reporting it missing, CommonLib comparing what it found against the identifier it was given only on VR. The shim therefore confirms an identifier before resolving it, and an identifier the library lacks resolves to no address.
Constructors
GameFunction(ulong, ulong)
Names a function on Special Edition and Anniversary Edition, using the Special Edition identifier for VR as CommonLib does.
public GameFunction(ulong specialEditionAndVR, ulong anniversaryEdition)
Parameters
GameFunction(ulong, ulong, ulong)
A game function, by its Address Library identifier on each runtime.
public GameFunction(ulong SpecialEdition, ulong AnniversaryEdition, ulong VR)
Parameters
SpecialEditionulongThe identifier on Skyrim Special Edition.
AnniversaryEditionulongThe identifier on Anniversary Edition.
VRulongThe identifier on Skyrim VR, which is the Special Edition one where nothing states another.
Remarks
The identifiers live here and nowhere else. The native side resolves what it is given and declares no table of its own, so no second list can drift from this one. The binding generator writes a member for each function CommonLib relocates that this repository names, such as DialogueItem__Ctor for DialogueItem::Ctor. A plugin constructs one for any other function, from that function's identifiers.
An identifier the address library does not name resolves to the next one along instead of reporting it missing, CommonLib comparing what it found against the identifier it was given only on VR. The shim therefore confirms an identifier before resolving it, and an identifier the library lacks resolves to no address.
Properties
AnniversaryEdition
The identifier on Anniversary Edition.
public ulong AnniversaryEdition { get; init; }
Property Value
BGSStoryEventManager__AddEvent_Impl
RE::BGSStoryEventManager::AddEvent_Impl, by the identifiers CommonLib states for it.
public static GameFunction BGSStoryEventManager__AddEvent_Impl { get; }
Property Value
BookMenu__OpenMenu_Impl
RE::BookMenu::OpenMenu_Impl, by the identifiers CommonLib states for it.
public static GameFunction BookMenu__OpenMenu_Impl { get; }
Property Value
DialogueItem__Ctor
RE::DialogueItem::Ctor, by the identifiers CommonLib states for it.
public static GameFunction DialogueItem__Ctor { get; }
Property Value
MainLoop
The game's main loop, which calls Main__Update once a frame.
public static GameFunction MainLoop { get; }
Property Value
Main__Update
The game's own work for one frame, called from MainLoop.
public static GameFunction Main__Update { get; }
Property Value
SpecialEdition
The identifier on Skyrim Special Edition.
public ulong SpecialEdition { get; init; }
Property Value
TESQuest__GetJournalTextForInstance
RE::TESQuest::GetJournalTextForInstance, by the identifiers CommonLib states for it.
public static GameFunction TESQuest__GetJournalTextForInstance { get; }
Property Value
VR
The identifier on Skyrim VR, which is the Special Edition one where nothing states another.
public ulong VR { get; init; }
Property Value
Methods
Deconstruct(out ulong, out ulong, out ulong)
public void Deconstruct(out ulong SpecialEdition, out ulong AnniversaryEdition, out ulong VR)
Parameters
Equals(GameFunction)
public bool Equals(GameFunction other)
Parameters
otherGameFunction
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(GameFunction, GameFunction)
public static bool operator ==(GameFunction left, GameFunction right)
Parameters
leftGameFunctionrightGameFunction
Returns
operator !=(GameFunction, GameFunction)
public static bool operator !=(GameFunction left, GameFunction right)
Parameters
leftGameFunctionrightGameFunction