faction.locale nach lua exportiert

This commit is contained in:
Enno Rehling 2004-02-07 12:50:27 +00:00
parent 01ec35d68b
commit 4440c421f1
1 changed files with 7 additions and 0 deletions

View File

@ -57,6 +57,12 @@ faction_getalliance(const faction& f)
{ {
return f.alliance; return f.alliance;
} }
const char *
faction_locale(const faction& f)
{
return locale_name(f.locale);
}
#endif #endif
void void
@ -74,6 +80,7 @@ bind_faction(lua_State * L)
.def_readonly("id", &faction::no) .def_readonly("id", &faction::no)
.def_readwrite("subscription", &faction::subscription) .def_readwrite("subscription", &faction::subscription)
.def_readwrite("lastturn", &faction::lastorders) .def_readwrite("lastturn", &faction::lastorders)
.property("locale", &faction_locale)
.property("units", &faction_units, return_stl_iterator) .property("units", &faction_units, return_stl_iterator)
#ifdef ALLIANCES #ifdef ALLIANCES
.property("alliance", &faction_getalliance, &faction_setalliance) .property("alliance", &faction_getalliance, &faction_setalliance)