mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-18 20:48:26 +00:00
More lua work, client should be completely exported barring any more bugs that crop up. Starting work on getting the rest of the general functions
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
#ifdef LUA_EQEMU
|
||||
|
||||
#include "lua.hpp"
|
||||
#include <luabind/luabind.hpp>
|
||||
#include <luabind/object.hpp>
|
||||
#include <luabind/iterator_policy.hpp>
|
||||
|
||||
#include "masterentity.h"
|
||||
#include "hate_list.h"
|
||||
#include "lua_mob.h"
|
||||
#include "lua_hate_entry.h"
|
||||
#include "lua_hate_list.h"
|
||||
|
||||
Lua_Mob Lua_HateEntry::GetEnt() {
|
||||
Lua_Safe_Call_Mob();
|
||||
@@ -45,4 +51,20 @@ void Lua_HateEntry::SetFrenzy(bool value) {
|
||||
self->bFrenzy = value;
|
||||
}
|
||||
|
||||
luabind::scope lua_register_hate_entry() {
|
||||
|
||||
return luabind::class_<Lua_HateEntry>("HateEntry")
|
||||
.property("null", &Lua_HateEntry::Null)
|
||||
.property("valid", &Lua_HateEntry::Valid)
|
||||
.property("ent", &Lua_HateEntry::GetEnt, &Lua_HateEntry::SetEnt)
|
||||
.property("damage", &Lua_HateEntry::GetDamage, &Lua_HateEntry::SetDamage)
|
||||
.property("hate", &Lua_HateEntry::GetHate, &Lua_HateEntry::SetHate)
|
||||
.property("frenzy", &Lua_HateEntry::GetFrenzy, &Lua_HateEntry::SetFrenzy);
|
||||
}
|
||||
|
||||
luabind::scope lua_register_hate_list() {
|
||||
return luabind::class_<Lua_HateList>("HateList")
|
||||
.def_readwrite("entries", &Lua_HateList::entries, luabind::return_stl_iterator);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user