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
functionGameFunction
Returns
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
variableGameVariable
Returns
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
functionGameFunction
Returns
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
functionGameFunctionoffsetGameOffset
Returns
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
variableGameVariable
Returns
Exceptions
- InvalidOperationException
The library does not name the identifier the variable states for the running edition.