Skip to main content
Version: 1.0.0

Struct FormId

Namespace: ReadyM.Relay.Common.Oblivion
Assembly: ReadyM.Relay.Common.Oblivion.dll

Represents a unique identifier in the Oblivion game. Used for identifying various game objects, such as items, NPCs, and locations.

public struct FormId : INetSerializable, IEquatable<FormId>

Implements​

INetSerializable, IEquatable<FormId>

Inherited Members​

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors​

FormId(uint)​

Names the form with id value.

public FormId(uint value)

Parameters​

value uint

Properties​

Value​

The form id as a number.

public readonly uint Value { get; }

Property Value​

uint

Methods​

Equals(FormId)​

Whether both name the same form.

public bool Equals(FormId other)

Parameters​

other FormId

Returns​

bool

Equals(object?)​

Whether obj is a FormId naming the same form.

public override bool Equals(object? obj)

Parameters​

obj object?

Returns​

bool

GetHashCode()​

A hash code for the form id.

public override int GetHashCode()

Returns​

int

Operators​

operator ==(FormId, FormId)​

Whether both name the same form.

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

Parameters​

left FormId

right FormId

Returns​

bool

implicit operator uint(FormId)​

The form id as a number.

public static implicit operator uint(FormId f)

Parameters​

f FormId

Returns​

uint

operator !=(FormId, FormId)​

Whether they name different forms.

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

Parameters​

left FormId

right FormId

Returns​

bool