|
---|
|
CMaNGOS Commits Изменения, принятые в официальный репозиторий ядра CMaNGOS. git://github.com/cmangos/mangos-wotlk.git |
|
Опции темы | Поиск в этой теме | Опции просмотра |
29.07.2017, 21:45 | #1 |
News Bot
Регистрация: 20.11.2009
Сообщений: 1,290
Сказал(а) спасибо: 0
Поблагодарили 5 раз(а) в 5 сообщениях
|
Global unit ownership redesign
Автор: Warlockbugs
<pre style='white-space:pre-wrap;width:81ex'>Global unit ownership redesign Functionality changes: * Initial Pet, Guardian and Companion fields and flags are cleaned up according to gathered retail data. * Unifies logical concept of unit ownership and it***39;s fields; allows overrides within WorldObject hierarchy. * Adjusted ownership API for Pets, Totems, Guardians and Companions. * Added recursive owner API specifically for current implementations of IsFriendlyTo and IsHostileTo to resolve some issues with summons like elementals. Refactoring details: * Introduced new term "Master", which resolves either to charmed or owner in one action, therefore: - GetCharmerOrOwnerGuid() becomes GetMasterGuid() - GetCharmerOrOwner() becomes GetMaster() * Introduced a new term "Beneficiary" for cases when an instant action to get unit***39;s charmer, owner or itself was required, therefore: - GetCharmerOrOwnerOrSelf() becomes GetBeneficiary() - GetCharmerOrOwnerPlayerOrPlayerItself() becomes GetBeneficiaryPlayer() * Usage cases of following unit methods were carefuly examined and replaced with fitting flag checks instead; methods were removed as excessive as a result: - isCharmedOwnedByPlayerOrPlayer() - IsCharmerOrOwnerPlayerOrPlayerItself() - GetCharmerOrOwnerOrOwnGuid() Quality of Life changes: * Client is now able to correctly detect and display totems as a result of all changes done.</pre> Подробнее... |
|
|
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
Cancel global cooldown in all spell state before SPELL_STATE_PREPARING | newsbot | CMaNGOS Commits | 0 | 25.01.2017 20:59 |
Transfer ownership of WorldSession instance from WorldSocket to World… | newsbot | CMaNGOS Commits | 0 | 29.10.2016 05:55 |
[12760] Extend pvp team indexes to global use | newsbot | CMaNGOS Commits | 0 | 05.11.2014 02:22 |
[10526] Implement server side global cooldown check. | newsbot | CMaNGOS Commits | 0 | 24.09.2010 06:14 |
[10102] Rename loginDatabase for consistence with other global db object names | newsbot | CMaNGOS Commits | 0 | 24.06.2010 03:05 |