You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
588 B

2 years ago
#pragma once
#include <string_view>
2 years ago
#include <expected.hpp>
#include <function_ref.hpp>
#include <sol/forward.hpp>
2 years ago
namespace devilution {
void LuaInitialize();
void LuaReloadActiveMods();
2 years ago
void LuaShutdown();
sol::state &GetLuaState();
sol::environment CreateLuaSandbox();
sol::object SafeCallResult(sol::protected_function_result result, bool optional);
sol::table *GetLuaEvents();
2 years ago
/** Adds a handler to be called when mods status changes after the initial startup. */
void AddModsChangedHandler(tl::function_ref<void()> callback);
2 years ago
} // namespace devilution