Struct TagSetFast
- Namespace
- Vintagestory.API.Datastructures
- Assembly
- VintagestoryAPI.dll
[JsonConverter(typeof(EntityTagSetConverter))]
public struct TagSetFast : IEquatable<TagSetFast>
- Implements
- Inherited Members
- Extension Methods
Constructors
TagSetFast(Vector256<ulong>)
public TagSetFast(Vector256<ulong> storage)
Parameters
Fields
All
public static readonly TagSetFast All
Field Value
Empty
public static readonly TagSetFast Empty
Field Value
Properties
IsEmpty
public readonly bool IsEmpty { get; }
Property Value
Methods
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override readonly 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.
Equals(TagSetFast)
Indicates whether the current object is equal to another object of the same type.
public readonly bool Equals(TagSetFast other)
Parameters
otherTagSetFastAn object to compare with this object.
Returns
FromBytes(BinaryReader)
public static TagSetFast FromBytes(BinaryReader reader)
Parameters
readerBinaryReader
Returns
GetHashCode()
Returns the hash code for this instance.
public override readonly int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
IsFullyContainedIn(in TagSetFast)
public readonly bool IsFullyContainedIn(in TagSetFast r)
Parameters
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 TagSetFast)
public readonly bool Overlaps(in TagSetFast r)
Parameters
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 readonly void ToBytes(BinaryWriter writer)
Parameters
writerBinaryWriter
Operators
operator &(TagSetFast, TagSetFast)
public static TagSetFast operator &(TagSetFast l, TagSetFast r)
Parameters
lTagSetFastrTagSetFast
Returns
operator |(TagSetFast, TagSetFast)
public static TagSetFast operator |(TagSetFast l, TagSetFast r)
Parameters
lTagSetFastrTagSetFast
Returns
operator ==(TagSetFast, TagSetFast)
public static bool operator ==(TagSetFast l, TagSetFast r)
Parameters
lTagSetFastrTagSetFast
Returns
operator ^(TagSetFast, TagSetFast)
public static TagSetFast operator ^(TagSetFast l, TagSetFast r)
Parameters
lTagSetFastrTagSetFast
Returns
operator !=(TagSetFast, TagSetFast)
public static bool operator !=(TagSetFast l, TagSetFast r)
Parameters
lTagSetFastrTagSetFast
Returns
operator ~(TagSetFast)
public static TagSetFast operator ~(TagSetFast l)