summary refs log tree commit diff stats
path: root/src/script_system.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-11 20:47:46 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-11 20:47:46 -0500
commitec511705ce96d80d4e2a36054769c211448e8ec8 (patch)
treee0a70671430a84472024d54b934df3248924ec4d /src/script_system.cpp
parentd9be54853910c2086013846661e0dc4a8603c20e (diff)
downloadtanetane-ec511705ce96d80d4e2a36054769c211448e8ec8.tar.gz
tanetane-ec511705ce96d80d4e2a36054769c211448e8ec8.tar.bz2
tanetane-ec511705ce96d80d4e2a36054769c211448e8ec8.zip
Added choice prompts
"A presses" are also no longer special values in the lines list, but are rather a field on the MessageLine object.
Diffstat (limited to 'src/script_system.cpp')
-rw-r--r--src/script_system.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/script_system.cpp b/src/script_system.cpp index 0fa0c1b..21d4090 100644 --- a/src/script_system.cpp +++ b/src/script_system.cpp
@@ -21,8 +21,10 @@ ScriptSystem::ScriptSystem(Game& game) : game_(game) {
21 engine_.new_usertype<MessageSystem>( 21 engine_.new_usertype<MessageSystem>(
22 "message", 22 "message",
23 "displayMessage", &MessageSystem::displayMessage, 23 "displayMessage", &MessageSystem::displayMessage,
24 "showChoice", &MessageSystem::showChoice,
24 "hideCutsceneBars", &MessageSystem::hideCutsceneBars, 25 "hideCutsceneBars", &MessageSystem::hideCutsceneBars,
25 "isMessageActive", sol::property(&MessageSystem::isMessageActive)); 26 "isMessageActive", sol::property(&MessageSystem::isMessageActive),
27 "getChoiceSelection", &MessageSystem::getChoiceSelection);
26 28
27 engine_.new_usertype<AnimationSystem>( 29 engine_.new_usertype<AnimationSystem>(
28 "animation", 30 "animation",