QcEntityChecks Namespace
The rules of the entity register, checked in one place (decision E-364). More...
| Header: | #include <server/entities/QcEntityChecks.h> |
Functions
| QStringList | problems(const QcEntities &entities) |
Detailed Description
Tests call it after their scenarios; a broken rule is a bug. The rules:
- every id is given once, across all kinds and the players;
- every entity lies in the table of its kind (its kind field names that table);
- the records saved per chunk (QcEntityRecords::collect) put every entity into the chunk that holds its feet (QcEntities::chunkOf).
Function Documentation
QStringList QcEntityChecks::problems(const QcEntities &entities)
Returns every broken rule of entities as a line naming the entity; empty when all hold.