Table of Contents

Class PluginObjectClassifier

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

Turns an object's item-type mask and public flags into a PluginObjectClass. It is a plain function over those two numbers, so a value that exists only as loose fields -- a vendor's shop listing, for instance -- can be classified without a full object.

public static class PluginObjectClassifier
Inheritance
PluginObjectClassifier
Inherited Members

Methods

Capabilities(PluginObjectClass)

Maps a normalized object class to semantic interaction capabilities.

public static PluginObjectCapabilities Capabilities(PluginObjectClass objectClass)

Parameters

objectClass PluginObjectClass

Returns

PluginObjectCapabilities

Classify(uint, uint)

Classifies one object from its item-type mask and public flags. The public flags win where the two disagree, so a container that is also a corpse reads as a corpse. Reports Unknown when neither says anything.

public static PluginObjectClass Classify(uint itemType, uint publicWeenieBitfield)

Parameters

itemType uint
publicWeenieBitfield uint

Returns

PluginObjectClass