Struct TagSet
- Namespace
- Vintagestory.API.Datastructures
- Assembly
- VintagestoryAPI.dll
public readonly struct TagSet : ITagSet, IHasSetOperations<TagSet>
- Implements
- Inherited Members
- Extension Methods
Constructors
TagSet(IEnumerable<ushort>)
public TagSet(IEnumerable<ushort> indexes)
Parameters
indexesIEnumerable<ushort>
TagSet(CachedSortedSet<ushort>)
public TagSet(CachedSortedSet<ushort> indexes)
Parameters
indexesCachedSortedSet<ushort>
Fields
Empty
public static readonly TagSet Empty
Field Value
Value
public readonly CachedSortedSet<ushort> Value
Field Value
Methods
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
Except(TagSet)
public TagSet Except(TagSet array)
Parameters
arrayTagSet
Returns
FromBytes(BinaryReader)
public static TagSet FromBytes(BinaryReader reader)
Parameters
readerBinaryReader
Returns
GetEmpty()
public static TagSet GetEmpty()
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Intersect(TagSet)
public TagSet Intersect(TagSet array)
Parameters
arrayTagSet
Returns
IsEmpty()
public bool IsEmpty()
Returns
IsSubsetOf(TagSet)
public bool IsSubsetOf(TagSet array)
Parameters
arrayTagSet
Returns
IsSupersetOf(TagSet)
public bool IsSupersetOf(TagSet array)
Parameters
arrayTagSet
Returns
Overlaps(TagSet)
public bool Overlaps(TagSet array)
Parameters
arrayTagSet
Returns
OverlapsWithEach(IEnumerable<TagSet>)
public bool OverlapsWithEach(IEnumerable<TagSet> arrays)
Parameters
arraysIEnumerable<TagSet>
Returns
SetEquals(TagSet)
public bool SetEquals(TagSet array)
Parameters
arrayTagSet
Returns
SupersetOfAtLeastOne(IEnumerable<TagSet>)
public bool SupersetOfAtLeastOne(IEnumerable<TagSet> arrays)
Parameters
arraysIEnumerable<TagSet>
Returns
SymmetricExcept(TagSet)
public TagSet SymmetricExcept(TagSet array)
Parameters
arrayTagSet
Returns
ToBytes(BinaryWriter)
public void ToBytes(BinaryWriter writer)
Parameters
writerBinaryWriter
Union(TagSet)
public TagSet Union(TagSet array)
Parameters
arrayTagSet
Returns
Operators
operator ==(TagSet, TagSet)
public static bool operator ==(TagSet first, TagSet second)
Parameters
Returns
operator !=(TagSet, TagSet)
public static bool operator !=(TagSet first, TagSet second)