TrinityCore
WorldPackets::Misc::Weather Class Referencefinal

#include <MiscPackets.h>

+ Inheritance diagram for WorldPackets::Misc::Weather:

Public Member Functions

 Weather ()
 
 Weather (WeatherState weatherID, float intensity=0.0f, bool abrupt=false)
 
WorldPacket const * Write () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
void Read () override final
 
void Clear ()
 
WorldPacket && Move ()
 
void ShrinkToFit ()
 
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
 
virtual WorldPacket const * Write ()=0
 
virtual void Read ()=0
 
WorldPacket const * GetRawPacket () const
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

bool Abrupt = false
 
float Intensity = 0.0f
 
WeatherState WeatherID = WeatherState(0)
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Definition at line 402 of file MiscPackets.h.

Constructor & Destructor Documentation

◆ Weather() [1/2]

Weather::Weather ( )

Definition at line 303 of file MiscPackets.cpp.

◆ Weather() [2/2]

Weather::Weather ( WeatherState  weatherID,
float  intensity = 0.0f,
bool  abrupt = false 
)

Definition at line 305 of file MiscPackets.cpp.

Member Function Documentation

◆ Write()

WorldPacket const * Weather::Write ( )
overridevirtual

Implements WorldPackets::Packet.

Definition at line 308 of file MiscPackets.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ Abrupt

bool WorldPackets::Misc::Weather::Abrupt = false

Definition at line 410 of file MiscPackets.h.

◆ Intensity

float WorldPackets::Misc::Weather::Intensity = 0.0f

Definition at line 411 of file MiscPackets.h.

◆ WeatherID

WeatherState WorldPackets::Misc::Weather::WeatherID = WeatherState(0)

Definition at line 412 of file MiscPackets.h.


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