QcBaseContent Namespace
Loads the base game content pack (embedded as :/content/qtcraft) into a new registry. More...
| Header: | #include <common/content/loader/QcBaseContent.h> |
Classes
| struct | Loaded |
Variables
| const char *const | resourceDirectory |
Functions
Detailed Description
Classes
class Loaded
The finished base content with the warnings of loading and finishing it. More...
Variable Documentation
const char *const QcBaseContent::resourceDirectory
The Qt resource directory holding the base pack.
Function Documentation
QcResult<QcBaseContent::Loaded> QcBaseContent::load()
Returns the base pack alone in a new registry, finished (QcContentRegistry::finish(), which also creates the block items), with its warnings; an error when the pack cannot be loaded.
QcResult<QcLoadedPack> QcBaseContent::loadInto(QcContentRegistry ®istry)
Loads the base pack into registry and adds its pack reference, without finishing it (mods follow, then finish()). Returns the loaded pack, or an error when it cannot be loaded.