Table of Contents

Class ItemAddedEvent

Namespace
WorldMachineLoader.API.Events
Assembly
WML.API.dll

Event that is triggered when a new item gets added to the player's inventory.

public class ItemAddedEvent
Inheritance
ItemAddedEvent
Inherited Members

Constructors

ItemAddedEvent(int, string)

Initializes a new instance of the ItemAddedEvent class.

public ItemAddedEvent(int itemId, string itemName)

Parameters

itemId int

The ID of an item.

itemName string

The name of an item.

Properties

ItemID

The ID of an item.

public int ItemID { get; }

Property Value

int

ItemName

The name of an item.

public string ItemName { get; }

Property Value

string