Class FastSetOfInts
- Namespace
- Vintagestory.API.Datastructures
- Assembly
- VintagestoryAPI.dll
public class FastSetOfInts : IEnumerable<int>, IEnumerable
- Inheritance
-
FastSetOfInts
- Implements
- Inherited Members
- Extension Methods
Constructors
FastSetOfInts()
public FastSetOfInts()
Properties
Count
public int Count { get; }
Property Value
Methods
Add(int)
Return false if the set already contained this value; return true if the Add was successful
public bool Add(int value)
Parameters
valueint
Returns
Add(int, int, int, int)
Add four separate components, assumed to be signed int in the range -128 to +127
public bool Add(int a, int b, int c, int d)
Parameters
Returns
Clear()
public void Clear()
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<int> GetEnumerator()
Returns
- IEnumerator<int>
An enumerator that can be used to iterate through the collection.
RemoveIfMatches(int, int, int, int)
public void RemoveIfMatches(int a, int b, int c, int d)