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

#include <MiscPackets.h>

Public Member Functions

 WorldServerInfo ()
 
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

Optional< uint32IneligibleForLootMask
 Encountermask? More...
 
uint32 WeeklyReset = 0
 UnixTime of last Weekly Reset Time. More...
 
Optional< uint32InstanceGroupSize
 
uint8 IsTournamentRealm = 0
 
Optional< uint32RestrictedAccountMaxLevel
 
Optional< uint32RestrictedAccountMaxMoney
 
uint32 DifficultyID = 0
 
bool XRealmPvpAlert = false
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Misc::WorldServerInfo::WorldServerInfo ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1629

Member Function Documentation

WorldPacket const * WorldPackets::Misc::WorldServerInfo::Write ( )
overridevirtual

Implements WorldPackets::Packet.

155 {
162  _worldPacket.WriteBit(IneligibleForLootMask.is_initialized());
163  _worldPacket.WriteBit(InstanceGroupSize.is_initialized());
164 
167 
170 
173 
174  if (InstanceGroupSize)
176 
178 
179  return &_worldPacket;
180 }
Optional< uint32 > RestrictedAccountMaxLevel
Definition: MiscPackets.h:243
Optional< uint32 > RestrictedAccountMaxMoney
Definition: MiscPackets.h:244
uint32 WeeklyReset
UnixTime of last Weekly Reset Time.
Definition: MiscPackets.h:240
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
Optional< uint32 > IneligibleForLootMask
Encountermask?
Definition: MiscPackets.h:239
uint8 IsTournamentRealm
Definition: MiscPackets.h:242
uint8_t uint8
Definition: g3dmath.h:164
bool XRealmPvpAlert
Definition: MiscPackets.h:246
Optional< uint32 > InstanceGroupSize
Definition: MiscPackets.h:241
uint32_t uint32
Definition: g3dmath.h:168
uint32 DifficultyID
Definition: MiscPackets.h:245

Member Data Documentation

uint32 WorldPackets::Misc::WorldServerInfo::DifficultyID = 0
Optional<uint32> WorldPackets::Misc::WorldServerInfo::IneligibleForLootMask

Encountermask?

Optional<uint32> WorldPackets::Misc::WorldServerInfo::InstanceGroupSize
uint8 WorldPackets::Misc::WorldServerInfo::IsTournamentRealm = 0
Optional<uint32> WorldPackets::Misc::WorldServerInfo::RestrictedAccountMaxLevel
Optional<uint32> WorldPackets::Misc::WorldServerInfo::RestrictedAccountMaxMoney
uint32 WorldPackets::Misc::WorldServerInfo::WeeklyReset = 0

UnixTime of last Weekly Reset Time.

bool WorldPackets::Misc::WorldServerInfo::XRealmPvpAlert = false

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