Table of Contents

Struct InventoryEventArgs

Namespace
SkyrimForge.Events
Assembly
SkyrimForge.dll

Arguments for OnInventory, the game's Inventory::Event.

public readonly struct InventoryEventArgs : IEquatable<InventoryEventArgs>
Implements
Inherited Members

Constructors

InventoryEventArgs(ObjectReference?, InventoryEntryData?, int, int)

Arguments for OnInventory, the game's Inventory::Event.

public InventoryEventArgs(ObjectReference? ObjectReference, InventoryEntryData? EntryData, int NewCount, int PreviousCount)

Parameters

ObjectReference ObjectReference?
EntryData InventoryEntryData?
NewCount int
PreviousCount int

Properties

EntryData

public InventoryEntryData? EntryData { get; init; }

Property Value

InventoryEntryData?

NewCount

public int NewCount { get; init; }

Property Value

int

ObjectReference

public ObjectReference? ObjectReference { get; init; }

Property Value

ObjectReference?

PreviousCount

public int PreviousCount { get; init; }

Property Value

int

Methods

Deconstruct(out ObjectReference?, out InventoryEntryData?, out int, out int)

public void Deconstruct(out ObjectReference? ObjectReference, out InventoryEntryData? EntryData, out int NewCount, out int PreviousCount)

Parameters

ObjectReference ObjectReference?
EntryData InventoryEntryData?
NewCount int
PreviousCount int

Equals(InventoryEventArgs)

public bool Equals(InventoryEventArgs other)

Parameters

other InventoryEventArgs

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(InventoryEventArgs, InventoryEventArgs)

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

Parameters

left InventoryEventArgs
right InventoryEventArgs

Returns

bool

operator !=(InventoryEventArgs, InventoryEventArgs)

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

Parameters

left InventoryEventArgs
right InventoryEventArgs

Returns

bool