MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / connectSkills

Method connectSkills

source/game/SkillManager.cpp:712–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710}
711
712void SkillManager::connectSkills(GameMode* mode, CEGUI::Window* rootWindow)
713{
714 for(const SkillDef* skill : getSkillManager().mSkills)
715 {
716 if(skill == nullptr)
717 continue;
718
719 mode->addEventConnection(
720 rootWindow->getChild("SkillTreeWindow/Skills/" + skill->mSkillFamily + skill->mButtonName)->subscribeEvent(
721 CEGUI::PushButton::EventClicked,
722 CEGUI::Event::Subscriber(SkillSelector(skill->mSkill->getType(), *mode))
723 )
724 );
725 }
726}
727
728void SkillManager::connectGuiButtons(GameEditorModeBase* mode, CEGUI::Window* rootWindow, PlayerSelection& playerSelection)
729{

Callers

nothing calls this directly

Calls 3

SkillSelectorClass · 0.85
addEventConnectionMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected