summaryrefslogtreecommitdiff
path: root/library/PluginManager.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-04-17 11:45:09 +0400
committerAlexander Gavrilov2012-04-17 11:45:09 +0400
commit3beb2ebf25b94736a3823c317f603a8fc8bd0f53 (patch)
tree3b1af8b380074ba53ff617ddb5177e82dbb83eb2 /library/PluginManager.cpp
parent7946cafc8673401bcfa2ff2e116592755a0968f4 (diff)
downloaddfhack-3beb2ebf25b94736a3823c317f603a8fc8bd0f53.tar.gz
dfhack-3beb2ebf25b94736a3823c317f603a8fc8bd0f53.tar.bz2
dfhack-3beb2ebf25b94736a3823c317f603a8fc8bd0f53.tar.xz
Export the onStateChange event to core lua context & add some docs.
Diffstat (limited to 'library/PluginManager.cpp')
-rw-r--r--library/PluginManager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/PluginManager.cpp b/library/PluginManager.cpp
index 1821e18d..837c3e2d 100644
--- a/library/PluginManager.cpp
+++ b/library/PluginManager.cpp
@@ -641,6 +641,8 @@ void PluginManager::OnStateChange(color_ostream &out, state_change_event event)
{
all_plugins[i]->on_state_change(out, event);
}
+
+ Lua::Core::onStateChange(out, event);
}
// FIXME: doesn't check name collisions!