aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2022-11-15 20:40:37 -0500
committerClyne Sullivan <clyne@bitgloo.com>2022-11-15 20:40:37 -0500
commitbe993f55f5d93150b8b418b031d2e9c8d88978b2 (patch)
treeadbd8cdc4b5b6c55679219fde46e2a1231253d10 /src/engine.cpp
parent38b18b8bdaf0cd4f4f7b72ade4b3f27f7363eab3 (diff)
allow lua to create dialog box
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index d8eef23..02598d4 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -71,6 +71,9 @@ int Engine::init(void)
script->addToGameNamespace("play",
bindInstance(&AudioSystem::playSound,
systems.system<AudioSystem>().get()));
+ script->addToGameNamespace("dialog",
+ bindInstance(&UISystem::createDialogBox,
+ systems.system<UISystem>().get()));
script->init();