mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-12 04:14:05 +00:00
Rename API_VERSION
-> API_REVISION
in Lua API.
This commit is contained in:
parent
3e4c0b775d
commit
2938aaf05c
@ -31,7 +31,7 @@ namespace MWLua
|
|||||||
{
|
{
|
||||||
auto* lua = context.mLua;
|
auto* lua = context.mLua;
|
||||||
sol::table api(lua->sol(), sol::create);
|
sol::table api(lua->sol(), sol::create);
|
||||||
api["API_VERSION"] = 1;
|
api["API_REVISION"] = 1;
|
||||||
api["sendGlobalEvent"] = [context](std::string eventName, const sol::object& eventData)
|
api["sendGlobalEvent"] = [context](std::string eventName, const sol::object& eventData)
|
||||||
{
|
{
|
||||||
context.mGlobalEventQueue->push_back({std::move(eventName), LuaUtil::serialize(eventData, context.mSerializer)});
|
context.mGlobalEventQueue->push_back({std::move(eventName), LuaUtil::serialize(eventData, context.mSerializer)});
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
-- The version of OpenMW Lua API. It is an integer that is incremented every time the API is changed.
|
-- The revision of OpenMW Lua API. It is an integer that is incremented every time the API is changed.
|
||||||
-- @field [parent=#core] #number API_VERSION
|
-- @field [parent=#core] #number API_REVISION
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
-- Send an event to global scripts.
|
-- Send an event to global scripts.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user