From 4440c421f1fce5cb4a4dd265b02a0b7a151e8e6d Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 7 Feb 2004 12:50:27 +0000 Subject: [PATCH] faction.locale nach lua exportiert --- src/eressea/lua/faction.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/eressea/lua/faction.cpp b/src/eressea/lua/faction.cpp index 1528c52a8..fc1f475a2 100644 --- a/src/eressea/lua/faction.cpp +++ b/src/eressea/lua/faction.cpp @@ -57,6 +57,12 @@ faction_getalliance(const faction& f) { return f.alliance; } + +const char * +faction_locale(const faction& f) +{ + return locale_name(f.locale); +} #endif void @@ -74,6 +80,7 @@ bind_faction(lua_State * L) .def_readonly("id", &faction::no) .def_readwrite("subscription", &faction::subscription) .def_readwrite("lastturn", &faction::lastorders) + .property("locale", &faction_locale) .property("units", &faction_units, return_stl_iterator) #ifdef ALLIANCES .property("alliance", &faction_getalliance, &faction_setalliance)