region.add_notice(string) - messages an eine region senden

This commit is contained in:
Enno Rehling 2004-04-11 00:45:12 +00:00
parent 408cbfdfc3
commit 251ff3d254
1 changed files with 7 additions and 0 deletions

View File

@ -69,6 +69,12 @@ region_plane(const region& r)
return r.planep->id; return r.planep->id;
} }
static void
region_addnotice(region& r, const char * str)
{
addmessage(&r, NULL, str, MSG_MESSAGE, ML_IMPORTANT);
}
void void
bind_region(lua_State * L) bind_region(lua_State * L)
{ {
@ -80,6 +86,7 @@ bind_region(lua_State * L)
.property("name", &region_getname, &region_setname) .property("name", &region_getname, &region_setname)
.property("info", &region_getinfo, &region_setinfo) .property("info", &region_getinfo, &region_setinfo)
.property("terrain", &region_getterrain) .property("terrain", &region_getterrain)
.def("add_notice", &region_addnotice)
.def_readonly("x", &region::x) .def_readonly("x", &region::x)
.def_readonly("y", &region::y) .def_readonly("y", &region::y)
.def_readwrite("age", &region::age) .def_readwrite("age", &region::age)