AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Position.cpp File Reference
#include "Position.h"
#include "ByteBuffer.h"
#include "Geometry.h"
#include "GridDefines.h"
#include "Random.h"
#include <G3D/g3dmath.h>
#include <sstream>

Go to the source code of this file.

Functions

ByteBufferoperator>> (ByteBuffer &buf, Position::PositionXYZOStreamer const &streamer)
 
ByteBufferoperator<< (ByteBuffer &buf, Position::PositionXYZStreamer const &streamer)
 
ByteBufferoperator>> (ByteBuffer &buf, Position::PositionXYZStreamer const &streamer)
 
ByteBufferoperator<< (ByteBuffer &buf, Position::PositionXYZOStreamer const &streamer)
 

Function Documentation

◆ operator<<() [1/2]

ByteBuffer & operator<< ( ByteBuffer buf,
Position::PositionXYZOStreamer const &  streamer 
)
206{
207 float x, y, z, o;
208 streamer.m_pos->GetPosition(x, y, z, o);
209 buf << x << y << z << o;
210 return buf;
211}

References Position::GetPosition(), and Position::PositionXYZOStreamer::m_pos.

◆ operator<<() [2/2]

ByteBuffer & operator<< ( ByteBuffer buf,
Position::PositionXYZStreamer const &  streamer 
)
190{
191 float x, y, z;
192 streamer.m_pos->GetPosition(x, y, z);
193 buf << x << y << z;
194 return buf;
195}

References Position::GetPosition(), and Position::PositionXYZStreamer::m_pos.

◆ operator>>() [1/2]

ByteBuffer & operator>> ( ByteBuffer buf,
Position::PositionXYZOStreamer const &  streamer 
)
182{
183 float x, y, z, o;
184 buf >> x >> y >> z >> o;
185 streamer.m_pos->Relocate(x, y, z, o);
186 return buf;
187}

References Position::PositionXYZOStreamer::m_pos, and Position::Relocate().

◆ operator>>() [2/2]

ByteBuffer & operator>> ( ByteBuffer buf,
Position::PositionXYZStreamer const &  streamer 
)
198{
199 float x, y, z;
200 buf >> x >> y >> z;
201 streamer.m_pos->Relocate(x, y, z);
202 return buf;
203}

References Position::PositionXYZStreamer::m_pos, and Position::Relocate().