TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PacketUtilities.h File Reference
#include "ByteBuffer.h"
#include <G3D/Vector2.h>
#include <G3D/Vector3.h>
#include <sstream>
#include <array>
+ Include dependency graph for PacketUtilities.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  WorldPackets::PacketArrayMaxCapacityException
 
class  WorldPackets::Array< T, N >
 
class  WorldPackets::CompactArray< T >
 

Namespaces

 WorldPackets
 

Functions

ByteBufferoperator<< (ByteBuffer &data, G3D::Vector2 const &v)
 
ByteBufferoperator>> (ByteBuffer &data, G3D::Vector2 &v)
 
ByteBufferoperator<< (ByteBuffer &data, G3D::Vector3 const &v)
 
ByteBufferoperator>> (ByteBuffer &data, G3D::Vector3 &v)
 
template<typename T >
ByteBufferWorldPackets::operator<< (ByteBuffer &data, CompactArray< T > const &v)
 
template<typename T >
ByteBufferWorldPackets::operator>> (ByteBuffer &data, CompactArray< T > &v)
 

Function Documentation

ByteBuffer& operator<< ( ByteBuffer data,
G3D::Vector2 const v 
)
inline
28 {
29  data << v.x << v.y;
30  return data;
31 }
ByteBuffer& operator<< ( ByteBuffer data,
G3D::Vector3 const v 
)
inline
40 {
41  data << v.x << v.y << v.z;
42  return data;
43 }
ByteBuffer& operator>> ( ByteBuffer data,
G3D::Vector2 v 
)
inline
34 {
35  data >> v.x >> v.y;
36  return data;
37 }
float y
Definition: Vector2.h:50
float x
Definition: Vector2.h:49
ByteBuffer& operator>> ( ByteBuffer data,
G3D::Vector3 v 
)
inline
46 {
47  data >> v.x >> v.y >> v.z;
48  return data;
49 }
float x
Definition: Vector3.h:62
float y
Definition: Vector3.h:62
float z
Definition: Vector3.h:62