Struct PluginLootClassification
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
A classifier's verdict on one item.
public readonly record struct PluginLootClassification : IEquatable<PluginLootClassification>
- Implements
- Inherited Members
Constructors
PluginLootClassification(bool, PluginLootAction, string, int, int)
A classifier's verdict on one item.
public PluginLootClassification(bool Matched, PluginLootAction Action, string RuleName = "", int Priority = 0, int KeepCount = 0)
Parameters
MatchedboolTrue when a rule matched the item. When it is false no rule applied and the other fields carry no meaning.
ActionPluginLootActionWhat the matched rule says to do with the item.
RuleNamestringThe name of the rule that matched, for display or logging; empty when nothing matched.
PriorityintThe matched rule's priority. A caller with several candidates can use it to decide which to take first; higher means more wanted.
KeepCountintHow many of the item to keep, for KeepUpTo; zero for every other action.
Properties
Action
What the matched rule says to do with the item.
public PluginLootAction Action { get; init; }
Property Value
KeepCount
How many of the item to keep, for KeepUpTo; zero for every other action.
public int KeepCount { get; init; }
Property Value
Matched
True when a rule matched the item. When it is false no rule applied and the other fields carry no meaning.
public bool Matched { get; init; }
Property Value
Priority
The matched rule's priority. A caller with several candidates can use it to decide which to take first; higher means more wanted.
public int Priority { get; init; }
Property Value
RuleName
The name of the rule that matched, for display or logging; empty when nothing matched.
public string RuleName { get; init; }