server/src/eressea/lua/building.cpp

28 lines
545 B
C++
Raw Normal View History

#include <config.h>
2003-12-14 11:02:29 +01:00
#include <cstring>
#include <eressea.h>
// kernel includes
#include <building.h>
// lua includes
#include <lua.hpp>
#include <luabind/luabind.hpp>
#include <luabind/iterator_policy.hpp>
using namespace luabind;
void
bind_building(lua_State * L)
{
module(L)[
def("get_building", &findbuilding),
class_<struct building>("building")
.def_readonly("name", &building::name)
.def_readonly("id", &building::no)
.def_readonly("info", &building::display)
.def_readwrite("size", &building::size)
];
}