#include #include // kernel includes #include #include // lua includes #include #include #include using namespace luabind; void bind_ship(lua_State * L) { module(L)[ def("get_ship", &findship), class_("ship") .def_readonly("name", &ship::name) .def_readonly("region", &ship::region) .def_readonly("id", &ship::no) .def_readonly("info", &ship::display) .def_readwrite("damage", &ship::damage) .def_readwrite("size", &ship::size) ]; }