Home
last modified time | relevance | path

Searched refs:hero_ident (Results 1 – 4 of 4) sorted by relevance

/dports/games/wyrmsun/Wyrmsun-3.5.4/scripts/menus/
H A Dcustom_hero.lua171 local hero_ident = hero_name:getText()
173 hero_ident = hero_ident .. " " .. hero_family_name:getText()
176 hero_ident = string.lower(string.gsub(hero_ident, " ", "-"))
177 hero_ident = "custom-" .. hero_ident
181 elseif (GetArrayIncludes(GetCustomHeroes(), hero_ident, true)) then
196 DefineCustomHero(hero_ident, hero_data)
197 SaveCustomHero(hero_ident)
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/include/
H A Dcharacter.h217 extern CCharacter *GetCustomHero(const std::string &hero_ident);
220 extern void HeroAddQuest(const std::string &hero_ident, const std::string &quest_ident);
221 extern void HeroCompleteQuest(const std::string &hero_ident, const std::string &quest_ident);
222 extern void SaveCustomHero(const std::string &hero_ident);
223 extern void DeleteCustomHero(const std::string &hero_ident);
224 extern void SetCurrentCustomHero(const std::string &hero_ident);
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/stratagus/
H A Dscript_character.cpp599 std::string hero_ident = LuaToString(l, 1); in CclDefineCustomHero() local
600 CCharacter *hero = GetCustomHero(hero_ident); in CclDefineCustomHero()
603 hero->Ident = hero_ident; in CclDefineCustomHero()
604 CustomHeroes[hero_ident] = hero; in CclDefineCustomHero()
606 fprintf(stderr, "Custom hero \"%s\" is being redefined.\n", hero_ident.c_str()); in CclDefineCustomHero()
H A Dcharacter.cpp819 CCharacter *GetCustomHero(const std::string &hero_ident) in GetCustomHero() argument
821 if (CustomHeroes.find(hero_ident) != CustomHeroes.end()) { in GetCustomHero()
822 return CustomHeroes[hero_ident]; in GetCustomHero()
826 if (iterator->second->GetFullName() == hero_ident) { in GetCustomHero()