Added game event related methods

This commit is contained in:
Foereaper
2017-11-12 12:31:24 +01:00
parent e2054785d0
commit d644b3a7f0
3 changed files with 79 additions and 0 deletions

View File

@@ -108,12 +108,14 @@ luaL_Reg GlobalMethods[] =
{ "PrintInfo", &LuaGlobalFunctions::PrintInfo },
{ "PrintError", &LuaGlobalFunctions::PrintError },
{ "PrintDebug", &LuaGlobalFunctions::PrintDebug },
{ "GetActiveGameEvents", &LuaGlobalFunctions::GetActiveGameEvents },
// Boolean
{ "IsInventoryPos", &LuaGlobalFunctions::IsInventoryPos },
{ "IsEquipmentPos", &LuaGlobalFunctions::IsEquipmentPos },
{ "IsBankPos", &LuaGlobalFunctions::IsBankPos },
{ "IsBagPos", &LuaGlobalFunctions::IsBagPos },
{ "IsGameEventActive", &LuaGlobalFunctions::IsGameEventActive },
// Other
{ "ReloadEluna", &LuaGlobalFunctions::ReloadEluna },
@@ -139,6 +141,8 @@ luaL_Reg GlobalMethods[] =
{ "AddTaxiPath", &LuaGlobalFunctions::AddTaxiPath },
{ "CreateInt64", &LuaGlobalFunctions::CreateLongLong },
{ "CreateUint64", &LuaGlobalFunctions::CreateULongLong },
{ "StartGameEvent", &LuaGlobalFunctions::StartGameEvent },
{ "StopGameEvent", &LuaGlobalFunctions::StopGameEvent },
{ NULL, NULL }
};