QcBlockTextureParser Namespace
Parses the "textures" object of visible blocks ("all", "side", "top", "bottom", face names and named "slots") and checks that every shape part names a known slot (decision E-765). More...
| Header: | #include <common/content/blocks/QcBlockTextureParser.h> |
Functions
| void | checkPartTextures(const QcBlockDefinition &block, QcJsonFieldReader &reader) |
| QcBlockTextures | parseTextures(const QJsonObject &blockJson, QcJsonFieldReader &reader, const QString &packNamespace) |
Detailed Description
Function Documentation
void QcBlockTextureParser::checkPartTextures(const QcBlockDefinition &block, QcJsonFieldReader &reader)
Fails reader when a shape part of the visible block uses a slot the block does not define.
QcBlockTextures QcBlockTextureParser::parseTextures(const QJsonObject &blockJson, QcJsonFieldReader &reader, const QString &packNamespace)
Returns the face textures and slots of the block JSON blockJson, names qualified in packNamespace; failures go to reader.