mirror of
https://github.com/diasurgical/DevilutionX.git
synced 2026-06-20 05:44:36 +00:00
3ea4996367
Enabled only in Debug mode. Runs Lua similar to the `lua` CLI. Supports multiline input with Shift+Enter. Missing features: 1. Scrollback. 2. Input history on up/down. Open with backtick, close with Esc.
19 lines
285 B
C++
19 lines
285 B
C++
#pragma once
|
|
|
|
#include <string_view>
|
|
|
|
#include <expected.hpp>
|
|
|
|
namespace sol {
|
|
class state;
|
|
} // namespace sol
|
|
|
|
namespace devilution {
|
|
|
|
void LuaInitialize();
|
|
void LuaShutdown();
|
|
void LuaEvent(std::string_view name);
|
|
sol::state &LuaState();
|
|
|
|
} // namespace devilution
|