1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-08 11:47:45 +00:00
sapphire/src/servers/sapphire_zone/Zone/ZonePosition.cpp

44 lines
815 B
C++
Raw Normal View History

2017-08-08 13:53:47 +02:00
#include "ZonePosition.h"
Core::ZonePosition::ZonePosition()
:
m_id( 0 ), m_targetZoneId( 0 ), m_radius( 0 )
2017-08-08 13:53:47 +02:00
{
}
Core::ZonePosition::ZonePosition( uint32_t id, uint32_t targetZoneId, const Common::FFXIVARR_POSITION3& targetPosition,
uint32_t radius, float rotation )
2017-08-08 13:53:47 +02:00
{
m_id = id;
m_targetZoneId = targetZoneId;
m_targetPos = targetPosition;
m_radius = radius;
m_rotation = rotation;
2017-08-08 13:53:47 +02:00
}
Core::ZonePosition::~ZonePosition()
{
}
uint32_t Core::ZonePosition::getId() const
{
return m_id;
2017-08-08 13:53:47 +02:00
}
uint32_t Core::ZonePosition::getTargetZoneId() const
{
return m_targetZoneId;
2017-08-08 13:53:47 +02:00
}
const Core::Common::FFXIVARR_POSITION3& Core::ZonePosition::getTargetPosition() const
2017-08-08 13:53:47 +02:00
{
return m_targetPos;
2017-08-08 13:53:47 +02:00
}
float Core::ZonePosition::getTargetRotation() const
{
return m_rotation;
2017-08-08 13:53:47 +02:00
}