mirror of
https://github.com/diasurgical/DevilutionX.git
synced 2026-05-21 05:40:35 +00:00
24 lines
588 B
C++
24 lines
588 B
C++
#pragma once
|
|
|
|
#include <string_view>
|
|
|
|
#include <expected.hpp>
|
|
#include <function_ref.hpp>
|
|
#include <sol/forward.hpp>
|
|
|
|
namespace devilution {
|
|
|
|
void LuaInitialize();
|
|
void LuaReloadActiveMods();
|
|
void LuaShutdown();
|
|
|
|
sol::state &GetLuaState();
|
|
sol::environment CreateLuaSandbox();
|
|
sol::object SafeCallResult(sol::protected_function_result result, bool optional);
|
|
sol::table *GetLuaEvents();
|
|
|
|
/** Adds a handler to be called when mods status changes after the initial startup. */
|
|
void AddModsChangedHandler(tl::function_ref<void()> callback);
|
|
|
|
} // namespace devilution
|