Class QueueOfInt
- Namespace
- Vintagestory.API.Datastructures
- Assembly
- VintagestoryAPI.dll
public class QueueOfInt
- Inheritance
-
QueueOfInt
- Inherited Members
- Extension Methods
Constructors
QueueOfInt()
public QueueOfInt()
Fields
Count
public int Count
Field Value
array
protected int[] array
Field Value
- int[]
head
protected int head
Field Value
maxSize
public int maxSize
Field Value
tail
protected int tail
Field Value
Methods
Clear()
public void Clear()
Dequeue()
Will return invalid data if called when Count <= 0: it is the responsibility of the calling code to check Count > 0
public int Dequeue()
Returns
DequeueLIFO()
Will return invalid data if called when Count <= 0: it is the responsibility of the calling code to check Count > 0
public int DequeueLIFO()
Returns
Enqueue(int)
public void Enqueue(int v)
Parameters
v
int
Enqueue(int, int, int, int)
Enqueue a single value with four separate components, assumed to be signed int in the range -128 to +127
public void Enqueue(int a, int b, int c, int d)
Parameters
EnqueueIfLarger(int)
public void EnqueueIfLarger(int v)
Parameters
v
int
EnqueueIfLarger(int, int, int, int)
Special method for ChunkIlluminator, if already present does not enqueue, but replaces only if value d (lowest 5 bits representing the spreadlight value) is larger
public void EnqueueIfLarger(int a, int b, int c, int d)