Table of Contents

Class ItemMoved

Namespace
Uncreated.Warfare.Events.Models.Items
Assembly
Uncreated.Warfare.dll
[EventModel(EventSynchronizationContext.Pure)]
public class ItemMoved : PlayerEvent, IPlayerEvent
Inheritance
ItemMoved
Implements
Inherited Members

Properties

IsSecondaryExecution

If this event is invoked as the second dispatch in an item swap.

public required bool IsSecondaryExecution { get; init; }

Property Value

bool

IsSwap

If the item was swapped with another item (instead of being moved to an empty spot).

public required bool IsSwap { get; init; }

Property Value

bool

Item

The item being moved.

public Item Item { get; }

Property Value

Item

Jar

The item being moved.

public required ItemJar Jar { get; init; }

Property Value

ItemJar

NewPage

The page the item is at now.

public required Page NewPage { get; init; }

Property Value

Page

Remarks

Could be out of date, should be re-fetched from Jar when up-to-date info is needed.

NewRotation

The rotation the item is at now.

public required byte NewRotation { get; init; }

Property Value

byte

Remarks

Could be out of date, should be re-fetched from Jar when up-to-date info is needed.

NewX

The X position the item is at now.

public required byte NewX { get; init; }

Property Value

byte

Remarks

Could be out of date, should be re-fetched from Jar when up-to-date info is needed.

NewY

The Y position the item is at now.

public required byte NewY { get; init; }

Property Value

byte

Remarks

Could be out of date, should be re-fetched from Jar when up-to-date info is needed.

OldPage

The original page of the item that was moved.

public required Page OldPage { get; init; }

Property Value

Page

OldRotation

The original rotation of the item that was moved.

public required byte OldRotation { get; init; }

Property Value

byte

OldX

The original X position of the item that was moved.

public required byte OldX { get; init; }

Property Value

byte

OldY

The original Y position of the item that was moved.

public required byte OldY { get; init; }

Property Value

byte

SwappedJar

The item that was swapped with this item, if applicable. This item now lives at the old position.

public required ItemJar? SwappedJar { get; init; }

Property Value

ItemJar