1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #include <nel/misc/types_nl.h>
21 #include <nel/misc/debug.h>
22 #include <nel/misc/common.h>
32 // Forward declarations
42 * defined at game_share/pd_scripts/people.pds:6
173 GooMektoubPacker
= 105,
174 GooMektoubMount
= 106,
205 GooCephaloplant
= 135,
206 GooElectroalgs
= 136,
208 GooSapEnslaver
= 138,
209 GooSpittingWeeds
= 139,
210 GooSwarmplants
= 140,
214 ___TPeople_useSize
= 142,
224 /// \name Conversion methods
228 * Use these methods to convert from enum value to string (and vice versa)
231 static const std::string
& toString(TPeople v
);
232 static CPeople::TPeople
fromString(const std::string
& v
);
239 /// \name Enum initialisation
243 static bool _Initialised
;
244 static std::string _UnknownString
;
245 static std::vector
<std::string
> _StrTable
;
246 static std::map
<std::string
, TPeople
> _ValueMap
;
252 /** TClassificationType
253 * defined at game_share/pd_scripts/people.pds:186
255 class CClassificationType
260 /// \name Enum values
263 enum TClassificationType
276 TypeFlyingKitin
= 11,
279 TypeGreatRyzomian
= 14,
285 ___TClassificationType_useSize
= 20,
287 EndClassificationType
= 20,
295 /// \name Conversion methods
299 * Use these methods to convert from enum value to string (and vice versa)
302 static const std::string
& toString(TClassificationType v
);
303 static CClassificationType::TClassificationType
fromString(const std::string
& v
);
310 /// \name Enum initialisation
314 static bool _Initialised
;
315 static std::string _UnknownString
;
316 static std::vector
<std::string
> _StrTable
;
317 static std::map
<std::string
, TClassificationType
> _ValueMap
;
328 // Inline implementations
331 #include "people_pd_inline.h"