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
RevisionlongCounts 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.
SourceObjectIduintThe item that was used.
TargetObjectIduintThe object it was used on, or zero when the use had no target.
WeenieErroruintThe 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
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
SourceObjectId
The item that was used.
public uint SourceObjectId { get; init; }
Property Value
TargetObjectId
The object it was used on, or zero when the use had no target.
public uint TargetObjectId { get; init; }
Property Value
WeenieError
The server's error code; zero means the use went through.
public uint WeenieError { get; init; }