Skip to main content
Version: 1.0.0

Struct RolledCreature

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

A creature or NPC that a leveled list rolled, and how many.

public readonly struct RolledCreature : IEquatable<RolledCreature>

Implements​

IEquatable<RolledCreature>

Inherited Members​

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

Constructors​

RolledCreature(FormId, int)​

A creature or NPC that a leveled list rolled, and how many.

public RolledCreature(FormId Form, int Count)

Parameters​

Form FormId

The creature or NPC form.

Count int

How many of it.

Properties​

Count​

How many of it.

public int Count { get; init; }

Property Value​

int

Form​

The creature or NPC 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(RolledCreature)​

public bool Equals(RolledCreature other)

Parameters​

other RolledCreature

Returns​

bool

GetHashCode()​

public override int GetHashCode()

Returns​

int

ToString()​

public override string ToString()

Returns​

string

Operators​

operator ==(RolledCreature, RolledCreature)​

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

Parameters​

left RolledCreature

right RolledCreature

Returns​

bool

operator !=(RolledCreature, RolledCreature)​

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

Parameters​

left RolledCreature

right RolledCreature

Returns​

bool

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