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

Method endSkillTree

source/modes/GameMode.cpp:1824–1843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1822}
1823
1824void GameMode::endSkillTree(bool apply)
1825{
1826 if(apply)
1827 {
1828 uint32_t nbItems = static_cast<uint32_t>(mSkillPending.size());
1829 ClientNotification *clientNotification = new ClientNotification(
1830 ClientNotificationType::askSetSkillTree);
1831 clientNotification->mPacket << nbItems;
1832 for(const SkillType& type : mSkillPending)
1833 {
1834 clientNotification->mPacket << type;
1835 }
1836 ODClient::getSingleton().queueClientNotification(clientNotification);
1837 }
1838
1839 mSkillPending.clear();
1840 mSkillCurrentCompletion.resetValue();
1841 mIsSkillWindowOpen = false;
1842 refreshGuiSkill(true);
1843}
1844
1845void GameMode::buildPlayerSettingsWindow()
1846{

Callers

nothing calls this directly

Calls 3

clearMethod · 0.80
resetValueMethod · 0.80

Tested by

no test coverage detected