mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-30 22:41:34 +00:00
OpenMW Lua, API_VERSION=0
This commit is contained in:
parent
85c441ec9a
commit
c2280ada1d
2 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,7 @@
|
|||
Bug #6143: Capturing a screenshot makes engine to be a temporary unresponsive
|
||||
Feature #2780: A way to see current OpenMW version in the console
|
||||
Feature #5489: MCP: Telekinesis fix for activators
|
||||
Feature #5996: Support Lua scripts in OpenMW
|
||||
Feature #6017: Separate persistent and temporary cell references when saving
|
||||
|
||||
0.47.0
|
||||
|
|
|
@ -31,6 +31,7 @@ namespace MWLua
|
|||
{
|
||||
auto* lua = context.mLua;
|
||||
sol::table api(lua->sol(), sol::create);
|
||||
api["API_VERSION"] = 0;
|
||||
api["sendGlobalEvent"] = [context](std::string eventName, const sol::object& eventData)
|
||||
{
|
||||
context.mGlobalEventQueue->push_back({std::move(eventName), LuaUtil::serialize(eventData, context.mSerializer)});
|
||||
|
|
Loading…
Reference in a new issue