diff options
Diffstat (limited to 'core/modules.cpp')
-rw-r--r-- | core/modules.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/core/modules.cpp b/core/modules.cpp index 6eaf038..bcdcbe6 100644 --- a/core/modules.cpp +++ b/core/modules.cpp @@ -17,7 +17,7 @@ #include "commonheaders.h" -extern std::list<plugin*> plugins; + extern PLUGINLINK pluglink; @@ -150,3 +150,15 @@ const int plugin::get_plugin_id() { return pluginid; } + +const std::list<int> plugin::get_event_list() +{ + return events; +} + + +int plugin::register_event(int type) +{ + events.push_back(type); + return 0; +}
\ No newline at end of file |