diff options
author | Stijn Buys <ingar@osirion.org> | 2008-09-28 21:34:53 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-09-28 21:34:53 +0000 |
commit | 9252bfb61fabea1f45afacb19d805eb5fdd01599 (patch) | |
tree | 13fdfb005ab0b690766d35572f0eeecca28f6009 /src/core/module.h | |
parent | 6774f2b5d14c1957d163ef4b7914c2660b59fdfd (diff) |
intro module
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; |