Table of Contents

Struct GameOffset

Namespace
SkyrimForge.Hooks
Assembly
SkyrimForge.dll

The offset of an instruction from a function's entry, in bytes, on each runtime.

public readonly struct GameOffset : IEquatable<GameOffset>
Implements
Inherited Members

Remarks

Each offset is valid only for the build it was read from, and a game update can move the instruction. FindCallSite(GameFunction, GameFunction, int, int) finds a call site by address library IDs, which are mapped per build.

Constructors

GameOffset(uint, uint)

Creates an offset whose Special Edition value also applies to VR.

public GameOffset(uint specialEditionAndVR, uint anniversaryEdition)

Parameters

specialEditionAndVR uint
anniversaryEdition uint

GameOffset(uint, uint, uint)

The offset of an instruction from a function's entry, in bytes, on each runtime.

public GameOffset(uint SpecialEdition, uint AnniversaryEdition, uint VR)

Parameters

SpecialEdition uint
AnniversaryEdition uint
VR uint

Remarks

Each offset is valid only for the build it was read from, and a game update can move the instruction. FindCallSite(GameFunction, GameFunction, int, int) finds a call site by address library IDs, which are mapped per build.

Properties

AnniversaryEdition

public uint AnniversaryEdition { get; init; }

Property Value

uint

SpecialEdition

public uint SpecialEdition { get; init; }

Property Value

uint

VR

public uint VR { get; init; }

Property Value

uint

Methods

Deconstruct(out uint, out uint, out uint)

public void Deconstruct(out uint SpecialEdition, out uint AnniversaryEdition, out uint VR)

Parameters

SpecialEdition uint
AnniversaryEdition uint
VR uint

Equals(GameOffset)

public bool Equals(GameOffset other)

Parameters

other GameOffset

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(GameOffset, GameOffset)

public static bool operator ==(GameOffset left, GameOffset right)

Parameters

left GameOffset
right GameOffset

Returns

bool

operator !=(GameOffset, GameOffset)

public static bool operator !=(GameOffset left, GameOffset right)

Parameters

left GameOffset
right GameOffset

Returns

bool