Fix door functions

This commit is contained in:
Michael Cook (mackal) 2017-04-10 14:52:44 -04:00
parent 080f6c5c3e
commit 08111ac176
2 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,8 @@
#include <map>
#include <vector>
enum { //values for pTimerType
enum : int { //values for pTimerType
pTimerNegativeItemReuse = -1, // these grow down basically, we will have item ID * -1 for the timer ID
pTimerStartAdventureTimer = 1,
pTimerSurnameChange = 2,
pTimerFeignDeath = 3,

View File

@ -200,6 +200,8 @@ luabind::scope lua_register_door() {
.def("GetIncline", (uint32(Lua_Door::*)(void))&Lua_Door::GetIncline)
.def("SetOpenType", (void(Lua_Door::*)(uint32))&Lua_Door::SetOpenType)
.def("GetOpenType", (uint32(Lua_Door::*)(void))&Lua_Door::GetOpenType)
.def("SetDisableTimer", (void(Lua_Door::*)(bool))&Lua_Door::SetDisableTimer)
.def("GetDisableTimer", (bool(Lua_Door::*)(void))&Lua_Door::GetDisableTimer)
.def("SetLockPick", (void(Lua_Door::*)(uint32))&Lua_Door::SetLockPick)
.def("GetLockPick", (uint32(Lua_Door::*)(void))&Lua_Door::GetLockPick)
.def("SetKeyItem", (void(Lua_Door::*)(uint32))&Lua_Door::SetKeyItem)