Show / Hide Table of Contents

Class Tag

Tags represent groups of items, for example tag "wood" can be applied to different types of wood.

Inheritance
System.Object
ItemLinkable
ItemRepresentation
Tag
Implements
ILinkableParameterized<LinkConfig>
IHasID
INamed
IReInitializable
IHasReferenceableSerializableID
IHasSerializableID
IHasIcon
IController
IViewController
IHasUniversalID
ILinkable
IEcopediaEntry
Inherited Members
ItemRepresentation.RepresentsItemType(Item)
ItemRepresentation.RepresentativeHash()
ItemLinkable.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
ItemLinkable.ShowName(Single)
ItemLinkable.ShowName(Int32)
ItemLinkable.ToString()
ItemLinkable.UILinkAndNumber(Single)
ItemLinkable.UILinkAndNumber(Int32)
ItemLinkable.UILinkAndNumber(Int32, String)
ItemLinkable.UILinkAndNumberAndTier(Int32, Int32)
ItemLinkable.UILinkAndNumberAndTierPrepend(Int32, Int32, String)
ItemLinkable.UILinkAndNumberNoText(Int32)
ItemLinkable.UILinkContent()
ItemLinkable.UILinkContent(Boolean)
ItemLinkable.NameAndNum(Int32)
ItemLinkable.UILinkAndStyledNumber(Int32)
ItemLinkable.UILinkContent(LocString)
ItemLinkable.UILinkNoNumber(Int32)
ItemLinkable.UILinkContent(LinkConfig)
ItemLinkable.ItemIconUILink(LocString)
ItemLinkable.MarkedUpName
ItemLinkable.ControllerID
Namespace: Eco.Gameplay.Items
Assembly: Eco.Gameplay.dll
Syntax
[IconGroup("Tags")]
public class Tag : ItemRepresentation, ILinkableParameterized<LinkConfig>, IHasID, INamed, IReInitializable, IHasReferenceableSerializableID, IHasSerializableID, IHasIcon, IController, IViewController, IHasUniversalID, ILinkable, IEcopediaEntry

Constructors

Tag(String)

Declaration
public Tag(string name)
Parameters
Type Name Description
System.String name

Properties

CanBeDeleted

Declaration
public bool CanBeDeleted { get; }
Property Value
Type Description
System.Boolean

DisplayName

Declaration
public override LocString DisplayName { get; }
Property Value
Type Description
LocString
Overrides
ItemLinkable.DisplayName

DisplayNamePlural

Declaration
public override LocString DisplayNamePlural { get; }
Property Value
Type Description
LocString
Overrides
ItemLinkable.DisplayNamePlural

Hidden

Declaration
public bool Hidden { get; set; }
Property Value
Type Description
System.Boolean

IconName

Declaration
public string IconName { get; set; }
Property Value
Type Description
System.String

Id

Declaration
public int Id { get; }
Property Value
Type Description
System.Int32

IsVisibleInEcopedia

Declaration
public bool IsVisibleInEcopedia { get; set; }
Property Value
Type Description
System.Boolean

IsVisibleInFilter

Declaration
public bool IsVisibleInFilter { get; set; }
Property Value
Type Description
System.Boolean

IsVisibleInTooltip

Declaration
public bool IsVisibleInTooltip { get; }
Property Value
Type Description
System.Boolean

LocalizedName

Declaration
public LocString LocalizedName { get; set; }
Property Value
Type Description
LocString

Name

Declaration
public override string Name { get; set; }
Property Value
Type Description
System.String
Overrides
ItemLinkable.Name

PluralName

Declaration
public LocString PluralName { get; set; }
Property Value
Type Description
LocString

Methods

Destroyed()

Declaration
public void Destroyed()

Initialize()

Declaration
public void Initialize()

ReInitialize()

Declaration
public void ReInitialize()

RepresentsItem(Item)

Declaration
public override bool RepresentsItem(Item other)
Parameters
Type Name Description
Item other
Returns
Type Description
System.Boolean
Overrides
ItemRepresentation.RepresentsItem(Item)

RepresentsItemType(Type)

Declaration
public override bool RepresentsItemType(Type itemType)
Parameters
Type Name Description
System.Type itemType
Returns
Type Description
System.Boolean
Overrides
ItemRepresentation.RepresentsItemType(Type)

Operators

Implicit(String to Tag)

Declaration
public static implicit operator Tag(string tagName)
Parameters
Type Name Description
System.String tagName
Returns
Type Description
Tag

Implements

ILinkableParameterized<T>
IHasID
INamed
IReInitializable
IHasReferenceableSerializableID
IHasSerializableID
IHasIcon
IController
IViewController
IHasUniversalID
ILinkable
IEcopediaEntry

Extension Methods

ItemStackExtensions.NameAndNum(ItemRepresentation, Int32)
TagUtils.TaggedTypes(Tag)
TagUtils.TaggedItems(Tag)
TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
ItemTooltipLibrary.TaggedItems(Tag, TooltipOrigin)
TagTooltipLibrary.TagTooltipTitle(Tag)
TagTooltipLibrary.TagUsedIn(Tag, TooltipOrigin)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾