QtCraft API C++ classes QML types Handbook

QcDamagedFile Struct

A damaged file of a world and what it held. More...

Header: #include <common/world/QcDamagedFile.h>

Public Variables

QString file
QcDamagedPart part
enum class QcDamagedPart { None, Blocks, Entities, BlockEntities, Journal }

Detailed Description

Member Variable Documentation

QString QcDamagedFile::file

Relative to the world directory.

QcDamagedPart QcDamagedFile::part

What the file held.

Related Non-Members

enum class QcDamagedPart

What a damaged per-region file of a world held (decision E-366): the server refuses the world and names the file; moved out of the world folder, the world opens without what it held.

Journal: the last save broke off and cannot be finished; without its journal and staged files the world opens as saved before (decision E-378).

ConstantValueDescription
QcDamagedFile::QcDamagedPart::None0No file is damaged.
QcDamagedFile::QcDamagedPart::Blocks1The blocks of a region's chunks: without the file they are generated anew.
QcDamagedFile::QcDamagedPart::Entities2The entities of a region (creatures, items, armour stands).
QcDamagedFile::QcDamagedPart::BlockEntities3The block entities of a region (contents of chests and machines).
QcDamagedFile::QcDamagedPart::Journal4The journal of a save that broke off.