mirror of
https://github.com/libretro/devilutionX.git
synced 2026-11-10 02:41:39 -10:00
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
|