Table of Contents

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

indexes IEnumerable<ushort>

TagSet(CachedSortedSet<ushort>)

public TagSet(CachedSortedSet<ushort> indexes)

Parameters

indexes CachedSortedSet<ushort>

Fields

Empty

public static readonly TagSet Empty

Field Value

TagSet

Value

public readonly CachedSortedSet<ushort> Value

Field Value

CachedSortedSet<ushort>

Methods

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

Except(TagSet)

public TagSet Except(TagSet array)

Parameters

array TagSet

Returns

TagSet

FromBytes(BinaryReader)

public static TagSet FromBytes(BinaryReader reader)

Parameters

reader BinaryReader

Returns

TagSet

GetEmpty()

public static TagSet GetEmpty()

Returns

TagSet

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

array TagSet

Returns

TagSet

IsEmpty()

public bool IsEmpty()

Returns

bool

IsSubsetOf(TagSet)

public bool IsSubsetOf(TagSet array)

Parameters

array TagSet

Returns

bool

IsSupersetOf(TagSet)

public bool IsSupersetOf(TagSet array)

Parameters

array TagSet

Returns

bool

Overlaps(TagSet)

public bool Overlaps(TagSet array)

Parameters

array TagSet

Returns

bool

OverlapsWithEach(IEnumerable<TagSet>)

public bool OverlapsWithEach(IEnumerable<TagSet> arrays)

Parameters

arrays IEnumerable<TagSet>

Returns

bool

SetEquals(TagSet)

public bool SetEquals(TagSet array)

Parameters

array TagSet

Returns

bool

SupersetOfAtLeastOne(IEnumerable<TagSet>)

public bool SupersetOfAtLeastOne(IEnumerable<TagSet> arrays)

Parameters

arrays IEnumerable<TagSet>

Returns

bool

SymmetricExcept(TagSet)

public TagSet SymmetricExcept(TagSet array)

Parameters

array TagSet

Returns

TagSet

ToBytes(BinaryWriter)

public void ToBytes(BinaryWriter writer)

Parameters

writer BinaryWriter

Union(TagSet)

public TagSet Union(TagSet array)

Parameters

array TagSet

Returns

TagSet

Operators

operator ==(TagSet, TagSet)

public static bool operator ==(TagSet first, TagSet second)

Parameters

first TagSet
second TagSet

Returns

bool

operator !=(TagSet, TagSet)

public static bool operator !=(TagSet first, TagSet second)

Parameters

first TagSet
second TagSet

Returns

bool