Table of Contents

Class AddressLibrary

Namespace
SkyrimForge.Game
Assembly
SkyrimForge.Game.dll

The address library of the running game, which gives each identifier CommonLib and a plugin state an address.

public static class AddressLibrary
Inheritance
AddressLibrary
Inherited Members

Methods

Contains(GameFunction)

Whether the library names the identifier the function states for the running edition. A bound member whose CommonLib definition resolves an identifier the library does not name must not be called. On Skyrim VR CommonLib ends the process, and on the other editions it calls the function of the next identifier.

public static bool Contains(GameFunction function)

Parameters

function GameFunction

Returns

bool

Remarks

The Skyrim VR address library names a subset of the Special Edition identifiers, so a member can have an address on Special Edition and none on VR. A zero identifier is named by no library.

Contains(GameVariable)

Whether the library names the identifier the variable states for the running edition.

public static bool Contains(GameVariable variable)

Parameters

variable GameVariable

Returns

bool

Remarks

The Skyrim VR address library names a subset of the Special Edition identifiers. A zero identifier is named by no library.

Resolve(GameFunction)

The address of a function on the running edition.

public static nint Resolve(GameFunction function)

Parameters

function GameFunction

Returns

nint

Exceptions

InvalidOperationException

The library does not name the identifier the function states for the running edition.

Resolve(GameFunction, GameOffset)

The address of the instruction at an offset into a function, using the offset stated for the running edition.

public static nint Resolve(GameFunction function, GameOffset offset)

Parameters

function GameFunction
offset GameOffset

Returns

nint

Exceptions

InvalidOperationException

The library does not name the identifier the function states for the running edition.

Resolve(GameVariable)

The address of a variable on the running edition.

public static nint Resolve(GameVariable variable)

Parameters

variable GameVariable

Returns

nint

Exceptions

InvalidOperationException

The library does not name the identifier the variable states for the running edition.