Table of Contents

Class QueueOfInt

Namespace
Vintagestory.API.Datastructures
Assembly
VintagestoryAPI.dll
public class QueueOfInt
Inheritance
QueueOfInt
Inherited Members

Constructors

QueueOfInt()

public QueueOfInt()

Fields

Count

public int Count

Field Value

int

array

protected int[] array

Field Value

int[]

head

protected int head

Field Value

int

maxSize

public int maxSize

Field Value

int

tail

protected int tail

Field Value

int

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

int

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

int

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

a int
b int
c int
d int

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)

Parameters

a int
b int
c int
d int