Class TagAttribute
Tags can be added to types or properties to allow other systems to identify them and use them if they want to.
For example the interaction system heavily uses tags to determine what interactions are valid for the targeted object.
Inheritance
System.Object
TagAttribute
Namespace: Eco.Core.Items
Assembly: Eco.Core.dll
Syntax
public class TagAttribute : Attribute
Remarks
We prefer using tags over attributes on IControllers because tags are being sent over view IDs instead of strings.
Constructors
TagAttribute(String)
Declaration
public TagAttribute(string tag)
Parameters
Type | Name | Description |
---|---|---|
System.String | tag |
Fields
CategoryToTags
Declaration
public static Dictionary<string, string[]> CategoryToTags
Field Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.String[]> |
Unset
When true, then we REMOVE the tag instead of adding it.
Declaration
public bool Unset
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
Tag
Declaration
public string Tag { get; }
Property Value
Type | Description |
---|---|
System.String |