Table of Contents

Class ItemMoveRequested

Namespace
Uncreated.Warfare.Events.Models.Items
Assembly
Uncreated.Warfare.dll
[EventModel(EventSynchronizationContext.PerPlayer, SynchronizedModelTags = new string[] { "modify_inventory", "modify_useable" })]
public class ItemMoveRequested : CancellablePlayerEvent, IPlayerEvent, ICancellable
Inheritance
ItemMoveRequested
Implements
Inherited Members

Properties

Asset

The item asset being moved.

public required IAssetLink<ItemAsset> Asset { get; init; }

Property Value

IAssetLink<ItemAsset>

IsSwap

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

public required bool IsSwap { get; init; }

Property Value

bool

Remarks

This could be changed by changing the destination position and may not be up to date.

Jar

The item being moved.

public required ItemJar Jar { get; init; }

Property Value

ItemJar

NewPage

The page the item will be moved to.

public required Page NewPage { get; set; }

Property Value

Page

NewRotation

The rotation the item will be at when it is moved.

public required byte NewRotation { get; set; }

Property Value

byte

NewX

The X position the item will be moved to.

public required byte NewX { get; set; }

Property Value

byte

NewY

The Y position the item will be moved to.

public required byte NewY { get; set; }

Property Value

byte

OldPage

The original page the item is coming from.

public required Page OldPage { get; init; }

Property Value

Page

OldRotation

The original rotation of the item being moved.

public required byte OldRotation { get; init; }

Property Value

byte

OldX

The original X position of the item being moved.

public required byte OldX { get; init; }

Property Value

byte

OldY

The original Y position of the item being moved.

public required byte OldY { get; init; }

Property Value

byte

SwappingJar

The item being swapped with this item, if applicable.

public required ItemJar? SwappingJar { get; init; }

Property Value

ItemJar