Files
DevilutionX/Source/lua/lua.hpp
T
Gleb Mazovetskiy 3ea4996367 Add a basic Quake-style console
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.
2023-10-31 23:19:56 +00:00

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