QtCraft API C++ classes QML types Handbook

QcBoat::Rest Struct

struct QcBoat::Rest

Where a boat nobody drives came to rest, still on the water or on the ground (QcBoatManager; not saved): while it stays there without speed, turn, pushes or a rider getting in, and its blocks stay the same, its tick has nothing to do. More...

Public Variables

std::array<QcBlockId, 27> around
QcVec3 position
quint64 readAt
float yaw

Detailed Description

Member Variable Documentation

std::array<QcBlockId, 27> Rest::around

The blocks of the columns its body covers (at most 3 x 3), from the cell under its feet to the one with its top (at most 3 high): the water it floats on, the ground under it, what flows in. Cells beyond the body's columns, and those of a chunk not loaded, read as no block.

quint64 Rest::readAt

QcServerWorld::blockChanges() when the blocks were read: a chunk without a later change (QcServerWorld::lastChangeIn) needs no new reading.