QtCraft API C++ classes QML types Handbook

QcMobTraitsContent::Resolved Struct

struct QcMobTraitsContent::Resolved

The traits of a creature checked against the content, and the warnings in the order of the traits. More...

Header: #include <common/content/mobs/QcMobTraitsContent.h>

Public Variables

std::optional<QcCarryDefinition> carries
std::optional<QcCrumbleDefinition> crumbles
std::optional<QcDrinkHealDefinition> drinks
std::optional<QcFamilyDefinition> family
std::optional<QcTameDefinition> tameable
QStringList warnings

Detailed Description

Member Variable Documentation

std::optional<QcCarryDefinition> Resolved::carries

Carrying, with the block ids; empty if no block is left to carry.

std::optional<QcCrumbleDefinition> Resolved::crumbles

Crumbling; empty if it names an unknown liquid or block.

std::optional<QcDrinkHealDefinition> Resolved::drinks

Drinking, with the item's id; empty if the item is unknown.

std::optional<QcFamilyDefinition> Resolved::family

The family, with the child's index; empty if the child does not qualify.

std::optional<QcTameDefinition> Resolved::tameable

Taming, with the kind a tamed one becomes resolved.

QStringList Resolved::warnings

The warnings of all traits, in the order of the traits above.