QtCraft API C++ classes QML types Handbook

QcChunkGroups Namespace

Groups of chunks that circuits or machines connect (decision E-375): the chunks reached from one over links (QcChunkLinks::linked) load and unload as a whole, at a tick boundary, so a machine never runs with a part missing. More...

Header: #include <server/chunks/QcChunkGroups.h>

Classes

struct Group

Types

MarksFunction

Functions

QcChunkGroups::Group of(QcChunkPos start, const QcChunkGroups::MarksFunction &marksOf, int limit)

Detailed Description

A group larger than the limit is not kept whole: its chunks come and go one by one and its circuits wait at the edge of the loaded area (decision E-348).

Classes

class Group

The chunks of one group. More...

Type Documentation

[alias] QcChunkGroups::MarksFunction

Returns the marks of a chunk (QcChunkLinks) or none when it does not count (not loaded, unknown).

Function Documentation

QcChunkGroups::Group QcChunkGroups::of(QcChunkPos start, const QcChunkGroups::MarksFunction &marksOf, int limit)

Returns the group of start over the chunks marksOf knows, at most limit chunks (breadth first, the sides in a fixed order, so the same world gives the same group).