Struct PluginActivationCompletion
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
The outcome of a world-object activation (portal, door, NPC, or other interactable landscape object). This reports how the activation completed, including failure and interruption states.
public readonly record struct PluginActivationCompletion : IEquatable<PluginActivationCompletion>
- Implements
- Inherited Members
Constructors
PluginActivationCompletion(long, uint, PluginActivationOutcome, uint)
The outcome of a world-object activation (portal, door, NPC, or other interactable landscape object). This reports how the activation completed, including failure and interruption states.
public PluginActivationCompletion(long Revision, uint ObjectId, PluginActivationOutcome Outcome, 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.
ObjectIduintThe object that was activated.
OutcomePluginActivationOutcomeThe activation outcome.
WeenieErroruintThe server's error code, when applicable; zero means success.
Properties
IsSuccess
True when the activation completed successfully with no error.
public bool IsSuccess { get; }
Property Value
ObjectId
The object that was activated.
public uint ObjectId { get; init; }
Property Value
Outcome
The activation outcome.
public PluginActivationOutcome Outcome { get; init; }
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
WeenieError
The server's error code, when applicable; zero means success.
public uint WeenieError { get; init; }