Core/PacketIO: Implement SMSG_GUILD_EVENT_AWAY_CHANGE

Port From (https://github.com/TrinityCore/TrinityCore/commit/cdb27ff3020f40c2a9a104a7ebba5c5c19452afc)
This commit is contained in:
hondacrx
2019-11-10 16:15:11 -05:00
parent 797504611e
commit 64be1a1603
3 changed files with 48 additions and 0 deletions
@@ -278,6 +278,23 @@ namespace Game.Network.Packets
public string OldGuildName;
}
public class GuildEventAwayChange : ServerPacket
{
public GuildEventAwayChange() : base(ServerOpcodes.GuildEventAwayChange) { }
public override void Write()
{
_worldPacket.WritePackedGuid(Guid);
_worldPacket.WriteBit(AFK);
_worldPacket.WriteBit(DND);
_worldPacket.FlushBits();
}
public ObjectGuid Guid;
public bool AFK;
public bool DND;
}
public class GuildEventPresenceChange : ServerPacket
{
public GuildEventPresenceChange() : base(ServerOpcodes.GuildEventPresenceChange) { }