diff options
Diffstat (limited to 'src/core/module.h')
-rw-r--r-- | src/core/module.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/module.h b/src/core/module.h index bd99034..b46c296 100644 --- a/src/core/module.h +++ b/src/core/module.h @@ -30,6 +30,9 @@ public: /// return the name of the module inline std::string const & name() const { return module_name; } + /// label of the module + inline std::string const & label() const { return module_label; } + /*----- mutators -------------------------------------------------- */ /// initialize the game module @@ -69,6 +72,9 @@ public: /// currently loaded module static inline Module *current() { return module_preload; } + /// module registry + static inline Registry & registry() { return module_registry; } + protected: /// set the disconnected state void abort(); @@ -77,6 +83,7 @@ protected: private: std::string module_name; + std::string module_label; static Module *module_preload; |