QtCraft API C++ classes QML types Handbook

QcCircuitState::Pending Struct

struct QcCircuitState::Pending

Takes out every position of a chunk that leaves the world and that the circuits were going to look at (changes, positions waiting for chunks, comparators to read again); they go with the chunk's record and wait again once it is back (decision E-374). More...

Public Functions

void add(QcBlockPos pos, bool signal)

Public Variables

QList<QcBlockPos> looks
QList<QcBlockPos> onTheirWay

Detailed Description

Positions the circuits were going to look at: looks (after a chunk came, demos) and signals on their way (E-376: only those ask for load tickets when they come back).

Member Function Documentation

void Pending::add(QcBlockPos pos, bool signal)

Adds pos to the signals on their way when signal is set, else to the looks.

Member Variable Documentation

QList<QcBlockPos> Pending::looks

Positions to look at.

QList<QcBlockPos> Pending::onTheirWay

Positions with a signal on its way.