From e2a893a1f129e0c59e14c8e593f5abb457170a7d Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 4 Jun 2010 20:18:12 -0600 Subject: Softcode the stat for character creation for manaserv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Thorbjørn Lindeijer --- src/net/manaserv/stats.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/net/manaserv/stats.cpp') diff --git a/src/net/manaserv/stats.cpp b/src/net/manaserv/stats.cpp index b79b1fd9..f109a232 100644 --- a/src/net/manaserv/stats.cpp +++ b/src/net/manaserv/stats.cpp @@ -198,5 +198,16 @@ namespace Stats { it->second.modifiable, it->second.description); } + + std::vector getLabelVector() + { + std::vector attributes; + StatMap::const_iterator it, it_end; + for (it = stats.begin(), it_end = stats.end(); it != it_end; it++) + if (it->second.modifiable) + attributes.push_back(it->second.name + ":"); + + return attributes; + } } // namespace Stats } // namespace ManaServ -- cgit v1.2.3-70-g09d2