QtCraft API C++ classes QML types Handbook

QcPreviewScene::Figure Struct

struct QcPreviewScene::Figure

What the preview shows of the player. More...

Header: #include <clientcore/preview/QcPreviewScene.h>

Public Variables

QcAppearance appearance
QcCapeSwing::Angles cape
QcEquipment equipment
QcItemId held
std::shared_ptr<const QcSpriteShape> heldShape
QcEntityPose pose
double seconds
double yaw

Detailed Description

Member Variable Documentation

QcAppearance Figure::appearance

Outfit, hair, cape and colours.

QcCapeSwing::Angles Figure::cape

The cape's swing (QcCapeSwing, kept by the preview from frame to frame).

QcEquipment Figure::equipment

Worn armour, drawn like on other players.

QcItemId Figure::held

In the right hand; qcNoItem for none.

std::shared_ptr<const QcSpriteShape> Figure::heldShape

The shape of the held item's sprite (QcSpriteShapes); null draws it flat.

QcEntityPose Figure::pose

The pose; the preview fills it from QcPreviewPose.

double Figure::seconds

Free-running clock for the idle motion (QcAnimator::animateBody).

double Figure::yaw

QcPreviewCamera::modelYaw().