|
wavelength 1.0.0
|
Callback that keeps a shared .rnd file from replacing loaded objects. More...
#include <uimanager.h>


Public Member Functions | |
| Callback (DataArray *pConfig) | |
| Construct a callback. | |
| ~Callback () override | |
| Destroy the callback. | |
| int | ShouldLoad (RndObject *pExisting, const char *pszName, const char *pszClass) override |
| Create an object only when no object of the name exists. | |
| void | Report () |
| Report the objects the loads skipped without permission. | |
| Public Member Functions inherited from RndLoader::Callback | |
| virtual void | SetObjectCount (int nObjects) |
| Receive the number of objects of the file before the first is created. | |
Callback that keeps a shared .rnd file from replacing loaded objects.
The RTTI records the class as deriving from RndLoader::Callback. The object is 0x1c bytes. Init() creates one while it loads the shared files of the shared_rnd_files list. An object that already exists is skipped, and one missing from allowed_rnd_merges is recorded for Report().
|
explicit |
Construct a callback.
| pConfig | The ui section of the configuration, which must list allowed_rnd_merges. |
|
inlineoverridevirtual |
Destroy the callback.
Reimplemented from RndLoader::Callback.
|
overridevirtual |
Create an object only when no object of the name exists.
A name that exists and that allowed_rnd_merges does not list is recorded.
| pExisting | The loaded object with the same name, or null. |
| pszName | The object name. |
| pszClass | The class name. The routine ignores it. |
Implements RndLoader::Callback.
| void UIManager::Callback::Report | ( | ) |
Report the objects the loads skipped without permission.