QtCraft API C++ classes QML types Handbook

QcMobCramming::Hurt Struct

struct QcMobCramming::Hurt

A creature cramming hurt: its kind, where it stood and its drops when it died. More...

Header: #include <server/mobs/QcMobCramming.h>

Public Variables

std::optional<QList<QcItemDrop>> drops
quint32 id
QcVec3 position
QcCreatureKindId type

Detailed Description

Member Variable Documentation

std::optional<QList<QcItemDrop>> Hurt::drops

Its drops when it died; none while it lives.

quint32 Hurt::id

Its entity id.

QcVec3 Hurt::position

Where it stood.

QcCreatureKindId Hurt::type

Its creature kind.