Table of Contents

Class ItemDropped

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

Properties

Asset

The asset of the item being dropped.

public required ItemAsset? Asset { get; init; }

Property Value

ItemAsset

DropPoint

The position of the item where it was dropped.

public required Vector3 DropPoint { get; init; }

Property Value

Vector3

Remarks

Items are not simulated on the server so this may change on clients.

DroppedItem

Extra information about the dropped item.

public required ItemData? DroppedItem { get; init; }

Property Value

ItemData

Index

The index of the item within it's region.

public required ushort Index { get; init; }

Property Value

ushort

InstanceId

The unique instance ID of this item.

public uint InstanceId { get; }

Property Value

uint

Item

Extra information about the item.

public required Item? Item { get; init; }

Property Value

Item

LandingPoint

The position of the item where it will land. Usually this is the same as ServersidePoint.

public required Vector3 LandingPoint { get; init; }

Property Value

Vector3

Remarks

Items are not simulated on the server so this may change on clients.

OldPage

The page of the old item that was dropped before it was removed.

public required Page OldPage { get; init; }

Property Value

Page

OldRotation

The rotation of the old item that was dropped before it was removed.

public required byte OldRotation { get; init; }

Property Value

byte

OldX

The X-position of the old item that was dropped before it was removed.

public required byte OldX { get; init; }

Property Value

byte

OldY

The Y-position of the old item that was dropped before it was removed.

public required byte OldY { get; init; }

Property Value

byte

Region

The region the item was dropped in.

public required ItemRegion? Region { get; init; }

Property Value

ItemRegion

RegionPosition

The coordinates of the region the item was dropped in.

public required RegionCoord RegionPosition { get; init; }

Property Value

RegionCoord

ServersidePoint

The position of the item where it was originally dropped.

public Vector3 ServersidePoint { get; }

Property Value

Vector3

Remarks

Items are not simulated on the server so this may change on clients.

Methods

GetActionLogEntry(IServiceProvider, ref ActionLogEntry[]?)

public ActionLogEntry GetActionLogEntry(IServiceProvider serviceProvider, ref ActionLogEntry[]? multipleEntries)

Parameters

serviceProvider IServiceProvider
multipleEntries ActionLogEntry[]

Returns

ActionLogEntry