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
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
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
SpecialEdition
public uint SpecialEdition { get; init; }
Property Value
VR
public uint VR { get; init; }
Property Value
Methods
Deconstruct(out uint, out uint, out uint)
public void Deconstruct(out uint SpecialEdition, out uint AnniversaryEdition, out uint VR)
Parameters
Equals(GameOffset)
public bool Equals(GameOffset other)
Parameters
otherGameOffset
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 ==(GameOffset, GameOffset)
public static bool operator ==(GameOffset left, GameOffset right)
Parameters
leftGameOffsetrightGameOffset
Returns
operator !=(GameOffset, GameOffset)
public static bool operator !=(GameOffset left, GameOffset right)
Parameters
leftGameOffsetrightGameOffset