forked from github/server
region.add_notice(string) - messages an eine region senden
This commit is contained in:
parent
408cbfdfc3
commit
251ff3d254
|
@ -69,6 +69,12 @@ region_plane(const region& r)
|
|||
return r.planep->id;
|
||||
}
|
||||
|
||||
static void
|
||||
region_addnotice(region& r, const char * str)
|
||||
{
|
||||
addmessage(&r, NULL, str, MSG_MESSAGE, ML_IMPORTANT);
|
||||
}
|
||||
|
||||
void
|
||||
bind_region(lua_State * L)
|
||||
{
|
||||
|
@ -80,6 +86,7 @@ bind_region(lua_State * L)
|
|||
.property("name", ®ion_getname, ®ion_setname)
|
||||
.property("info", ®ion_getinfo, ®ion_setinfo)
|
||||
.property("terrain", ®ion_getterrain)
|
||||
.def("add_notice", ®ion_addnotice)
|
||||
.def_readonly("x", ®ion::x)
|
||||
.def_readonly("y", ®ion::y)
|
||||
.def_readwrite("age", ®ion::age)
|
||||
|
|
Loading…
Reference in New Issue