| 1822 | } |
| 1823 | |
| 1824 | void 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 | |
| 1845 | void GameMode::buildPlayerSettingsWindow() |
| 1846 | { |
nothing calls this directly
no test coverage detected