mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
feat: fire MIRROR_TIMER_PAUSE event when breath/fatigue timer pauses
Fire MIRROR_TIMER_PAUSE from SMSG_PAUSE_MIRROR_TIMER with paused state (1=paused, 0=resumed). Completes the mirror timer event trio alongside MIRROR_TIMER_START and MIRROR_TIMER_STOP.
This commit is contained in:
parent
a73c680190
commit
a4d54e83bc
1 changed files with 2 additions and 0 deletions
|
|
@ -2302,6 +2302,8 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
uint8_t paused = packet.readUInt8();
|
||||
if (type < 3) {
|
||||
mirrorTimers_[type].paused = (paused != 0);
|
||||
if (addonEventCallback_)
|
||||
addonEventCallback_("MIRROR_TIMER_PAUSE", {paused ? "1" : "0"});
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue