QtCraft API C++ classes QML types Handbook

QcMobTraitsContent::Part Struct

template <typename Trait> struct QcMobTraitsContent::Part

One trait of a creature checked against the content: what is left of it and the warnings. Trait is the type of the trait. More...

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

Public Variables

std::optional<Trait> value
QStringList warnings

Detailed Description

Member Variable Documentation

std::optional<Trait> Part::value

The trait as resolved; empty when the creature has none or it was left out.

QStringList Part::warnings

What was wrong with it, one line each.