QtCraft API C++ classes QML types Handbook

QcBoxLegsCache Class

The legs of the box models drawn, found once per model instead of every frame. More...

Header: #include <clientcore/figures/QcBoxLegs.h>

Public Functions

const QcBoxLegs &of(const QList<QcMobPart> &parts)

Detailed Description

A model is known by its list of parts: the cache keeps a copy of the list, so its shared data stays alive and the address stays unique while the entry exists; a list that changes is a new list.

Member Function Documentation

const QcBoxLegs &QcBoxLegsCache::of(const QList<QcMobPart> &parts)

Returns the legs of the model parts, found on the first call for that list.