跳到主要内容
版本:Next

Struct RolledItem

Namespace: OblivionMp.Sdk.Serverside.Spawners
Assembly: OblivionMp.Sdk.Serverside.dll

An item that a leveled list rolled, and how many.

public readonly struct RolledItem : IEquatable<RolledItem>

Implements​

IEquatable<RolledItem>

Inherited Members​

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

Constructors​

RolledItem(FormId, int)​

An item that a leveled list rolled, and how many.

public RolledItem(FormId Form, int Count)

Parameters​

Form FormId

The item form.

Count int

How many of it.

Properties​

Count​

How many of it.

public int Count { get; init; }

Property Value​

int

Form​

The item form.

public FormId Form { get; init; }

Property Value​

FormId

Methods​

Deconstruct(out FormId, out int)​

public void Deconstruct(out FormId Form, out int Count)

Parameters​

Form FormId

Count int

Equals(object)​

public override bool Equals(object obj)

Parameters​

obj object

Returns​

bool

Equals(RolledItem)​

public bool Equals(RolledItem other)

Parameters​

other RolledItem

Returns​

bool

GetHashCode()​

public override int GetHashCode()

Returns​

int

ToString()​

public override string ToString()

Returns​

string

Operators​

operator ==(RolledItem, RolledItem)​

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

Parameters​

left RolledItem

right RolledItem

Returns​

bool

operator !=(RolledItem, RolledItem)​

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

Parameters​

left RolledItem

right RolledItem

Returns​

bool

  • Constructors
    • RolledItem(FormId, int)
  • Properties
    • Count
    • Form
  • Methods
    • Deconstruct(out FormId, out int)
    • Equals(object)
    • Equals(RolledItem)
    • GetHashCode()
    • ToString()
  • Operators
    • operator ==(RolledItem, RolledItem)
    • operator !=(RolledItem, RolledItem)