Table of Contents

Struct ObjectReference

Namespace
SkyrimForge.Game
Assembly
SkyrimForge.dll

A view over RE::TESObjectREFR. It stores the address and nothing else, and its members are extensions.

public readonly struct ObjectReference : IObjectReference, IForm, IAddressable, IEquatable<ObjectReference>
Implements
Inherited Members

Properties

Exists

Whether the view has an address. A view from default, from new, or passed by the game to a replaced function can have none.

public bool Exists { get; }

Property Value

bool

Methods

Equals(ObjectReference)

public bool Equals(ObjectReference other)

Parameters

other ObjectReference

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(ObjectReference, ObjectReference)

Whether both views are over one address.

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

Parameters

left ObjectReference
right ObjectReference

Returns

bool

operator !=(ObjectReference, ObjectReference)

Whether the views are over different addresses.

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

Parameters

left ObjectReference
right ObjectReference

Returns

bool