ItemUndoEvent class
A representation of the Item Undo event.
Signature:
export declare class ItemUndoEvent extends TimelineEvent Extends: TimelineEvent
References: TimelineEvent
Constructor
new ItemUndoEvent (data: ItemUndoEventData, after?: Item, before?: Item)Constructs a new instance of the ItemUndoEvent class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| data | ItemUndoEventData | The raw data of the event. |
| after | Item | The item in the item slot after the undo (might be nothing). |
| before | Item | The item in the item slot before the undo. |
Properties
after
The item in the item slot after the undo (might be nothing).
Type: Item
before
The item in the item slot before the undo.
Type: Item
goldGain
The amount of gold that was gained by the undo.
Type: Number
participantId
The participant who undid the item.
Type: Number
type
The type of the event.
Type: 'ITEM_UNDO'
Table of Contents
