forked from github/server
faction.locale nach lua exportiert
This commit is contained in:
parent
01ec35d68b
commit
4440c421f1
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue