TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::Guild::GuildChallengeUpdate Class Referencefinal

#include <GuildPackets.h>

Public Member Functions

 GuildChallengeUpdate ()
 
WorldPacket constWrite () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
void Read () overridefinal
 
void Clear ()
 
WorldPacket && Move ()
 
OpcodeServer GetOpcode () const
 
- Public Member Functions inherited from WorldPackets::Packet
 Packet (WorldPacket &&worldPacket)
 
virtual ~Packet ()=default
 
 Packet (Packet const &right)=delete
 
Packetoperator= (Packet const &right)=delete
 
WorldPacket constGetRawPacket () const
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

int32 CurrentCount [GUILD_CHALLENGES_TYPES]
 
int32 MaxCount [GUILD_CHALLENGES_TYPES]
 
int32 Gold [GUILD_CHALLENGES_TYPES]
 
int32 MaxLevelGold [GUILD_CHALLENGES_TYPES]
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Guild::GuildChallengeUpdate::GuildChallengeUpdate ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1072

Member Function Documentation

WorldPacket const * WorldPackets::Guild::GuildChallengeUpdate::Write ( )
overridevirtual

Implements WorldPackets::Packet.

785 {
786  for (int i = 0; i < GUILD_CHALLENGES_TYPES; ++i)
788 
789  for (int i = 0; i < GUILD_CHALLENGES_TYPES; ++i)
790  _worldPacket << int32(MaxCount[i]);
791 
792  for (int i = 0; i < GUILD_CHALLENGES_TYPES; ++i)
794 
795  for (int i = 0; i < GUILD_CHALLENGES_TYPES; ++i)
796  _worldPacket << int32(Gold[i]);
797 
798  return &_worldPacket;
799 }
int32 MaxLevelGold[GUILD_CHALLENGES_TYPES]
Definition: GuildPackets.h:982
int32 MaxCount[GUILD_CHALLENGES_TYPES]
Definition: GuildPackets.h:980
WorldPacket _worldPacket
Definition: Packet.h:43
#define GUILD_CHALLENGES_TYPES
Definition: Guild.h:257
int32 CurrentCount[GUILD_CHALLENGES_TYPES]
Definition: GuildPackets.h:979
int32_t int32
Definition: g3dmath.h:167
int32 Gold[GUILD_CHALLENGES_TYPES]
Definition: GuildPackets.h:981

+ Here is the caller graph for this function:

Member Data Documentation

int32 WorldPackets::Guild::GuildChallengeUpdate::CurrentCount[GUILD_CHALLENGES_TYPES]
int32 WorldPackets::Guild::GuildChallengeUpdate::Gold[GUILD_CHALLENGES_TYPES]
int32 WorldPackets::Guild::GuildChallengeUpdate::MaxCount[GUILD_CHALLENGES_TYPES]
int32 WorldPackets::Guild::GuildChallengeUpdate::MaxLevelGold[GUILD_CHALLENGES_TYPES]

The documentation for this class was generated from the following files: