More work on command parser

This commit is contained in:
2021-02-02 16:29:07 -05:00
parent df3ec8ab99
commit 0721d29c72
10 changed files with 239 additions and 106 deletions

View File

@@ -3,10 +3,23 @@
#define TEXTGAME_HPP
#include "viewer.hpp"
#include "luaconsole.hpp"
class TextGame {
private:
using StringVec = LuaConsole::StringVec;
Viewer viewer_;
LuaConsole console_;
int64_t menu_id_;
std::vector<std::string> menu_;
void do_view_command(const StringVec &cmd);
void do_menu_command(const StringVec &cmd);
void do_choose_command(const StringVec &cmd);
void do_lua(const std::string &exp);
void do_command(const StringVec &exp);
public:
void run();
};