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

#include <MiscPackets.h>

Public Member Functions

 Weather ()
 
 Weather (WeatherState weatherID, float intensity=0.0f, bool abrupt=false)
 
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

bool Abrupt = false
 
float Intensity = 0.0f
 
WeatherState WeatherID = WEATHER_STATE_FINE
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

Weather::Weather ( )
263 : ServerPacket(SMSG_WEATHER, 4 + 4 + 1) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1625
Weather::Weather ( WeatherState  weatherID,
float  intensity = 0.0f,
bool  abrupt = false 
)
266  : ServerPacket(SMSG_WEATHER, 4 + 4 + 1), Abrupt(abrupt), Intensity(intensity), WeatherID(weatherID) { }
WeatherState WeatherID
Definition: MiscPackets.h:410
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1625
float Intensity
Definition: MiscPackets.h:409
bool Abrupt
Definition: MiscPackets.h:408

Member Function Documentation

WorldPacket const * Weather::Write ( )
overridevirtual

Implements WorldPackets::Packet.

269 {
271  _worldPacket << float(Intensity);
273 
275  return &_worldPacket;
276 }
WeatherState WeatherID
Definition: MiscPackets.h:410
void FlushBits()
Definition: ByteBuffer.h:150
float Intensity
Definition: MiscPackets.h:409
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
uint32_t uint32
Definition: g3dmath.h:168
bool Abrupt
Definition: MiscPackets.h:408

+ Here is the caller graph for this function:

Member Data Documentation

bool WorldPackets::Misc::Weather::Abrupt = false
float WorldPackets::Misc::Weather::Intensity = 0.0f
WeatherState WorldPackets::Misc::Weather::WeatherID = WEATHER_STATE_FINE

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