Generate race-specific unit-names. More...
#include "units/race.hpp"
#include "filesystem.hpp"
#include "log.hpp"
#include "serialization/string_utils.hpp"
#include "serialization/unicode_cast.hpp"
#include "utils/name_generator.hpp"
#include "utils/name_generator_factory.hpp"
Go to the source code of this file.
Macros | |
#define | ERR_WML LOG_STREAM(err, log_wml) |
Functions | |
static const config & | empty_traits () |
static const config & | empty_topics () |
const std::string & | gender_string (unit_race::GENDER gender) |
unit_race::GENDER | string_gender (const std::string &str, unit_race::GENDER def) |
Variables | |
static lg::log_domain | log_wml ("wml") |
Generate race-specific unit-names.
Definition in file race.cpp.
#define ERR_WML LOG_STREAM(err, log_wml) |
Definition at line 31 of file race.cpp.
Referenced by unit_race::unit_race().
const std::string& gender_string | ( | unit_race::GENDER | gender | ) |
Definition at line 142 of file race.cpp.
References unit_race::FEMALE, unit_race::MALE, unit_race::s_female, and unit_race::s_male.
Referenced by unit::add_trait_description(), events::menu_handler::current_unit(), wfl::unit_callable::get_value(), unit_race::unit_race(), and unit::write().
unit_race::GENDER string_gender | ( | const std::string & | str, |
unit_race::GENDER | def | ||
) |
Definition at line 152 of file race.cpp.
References unit_race::FEMALE, unit_race::MALE, unit_race::s_female, and unit_race::s_male.
Referenced by unit_type::build_help_index(), unit_filter_impl::unit_filter_compound::fill(), generate_gender(), and SYNCED_COMMAND_HANDLER_FUNCTION().
|
static |