Struct TagSet
- Namespace
- Vintagestory.API.Datastructures
- Assembly
- VintagestoryAPI.dll
[JsonConverter(typeof(CollectibleTagSetConverter))]
public readonly struct TagSet
- Inherited Members
- Extension Methods
Constructors
TagSet()
public TagSet()
Fields
Empty
public static readonly TagSet Empty
Field Value
Properties
IsEmpty
public bool IsEmpty { get; }
Property Value
Methods
FromBytes(BinaryReader)
public static TagSet FromBytes(BinaryReader reader)
Parameters
readerBinaryReader
Returns
GetHashCode()
public override int GetHashCode()
Returns
IsFullyContainedIn(in TagSet)
public bool IsFullyContainedIn(in TagSet other)
Parameters
otherTagSet
Returns
- bool
True if all tags that are active in this instance are also active in the
otherinstance, false otherwise.
Remarks
This is NOT symmetrical, meaning a.IsFullyContainedIn(b) != b.IsFullyContainedIn(a) !
Overlaps(in TagSet)
public bool Overlaps(in TagSet other)
Parameters
otherTagSet
Returns
- bool
True if all any of the tags that are active in this instance are also active in the
otherinstance, false otherwise.
Remarks
This is symmetrical, meaning a.Overlaps(b) == b.Overlaps(a) .
ToBytes(BinaryWriter)
public void ToBytes(BinaryWriter writer)
Parameters
writerBinaryWriter
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.