Table of Contents

Struct PluginItemUseCompletion

Namespace
AcDream.Plugin.Abstractions
Assembly
AcDream.Plugin.Abstractions.dll

One server UseDone for a plugin-issued item action.

public readonly record struct PluginItemUseCompletion : IEquatable<PluginItemUseCompletion>
Implements
Inherited Members

Constructors

PluginItemUseCompletion(long, uint, uint, uint)

One server UseDone for a plugin-issued item action.

public PluginItemUseCompletion(long Revision, uint SourceObjectId, uint TargetObjectId, uint WeenieError)

Parameters

Revision long

Counts up by one for every completion, so a plugin can tell a fresh one from one it has already seen. Zero means nothing has completed yet.

SourceObjectId uint

The item that was used.

TargetObjectId uint

The object it was used on, or zero when the use had no target.

WeenieError uint

The server's error code; zero means the use went through.

Properties

IsSuccess

True when a use has actually completed and the server reported no error for it.

public bool IsSuccess { get; }

Property Value

bool

Revision

Counts up by one for every completion, so a plugin can tell a fresh one from one it has already seen. Zero means nothing has completed yet.

public long Revision { get; init; }

Property Value

long

SourceObjectId

The item that was used.

public uint SourceObjectId { get; init; }

Property Value

uint

TargetObjectId

The object it was used on, or zero when the use had no target.

public uint TargetObjectId { get; init; }

Property Value

uint

WeenieError

The server's error code; zero means the use went through.

public uint WeenieError { get; init; }

Property Value

uint