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 <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 
)
205{
206 float x, y, z, o;
207 streamer.m_pos->GetPosition(x, y, z, o);
208 buf << x << y << z << o;
209 return buf;
210}

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

◆ operator<<() [2/2]

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

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

◆ operator>>() [1/2]

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

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

◆ operator>>() [2/2]

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

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