1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-02 00:47:45 +00:00

moved vec3 pos into his own files

This commit is contained in:
AriAvery 2019-02-06 11:12:29 +01:00
parent dd9cb1aae3
commit 434b8d421e
4 changed files with 26 additions and 9 deletions

View file

@ -5,6 +5,7 @@
#include <vector>
#include "CommonGen.h"
#include "Vector3.h"
// +---------------------------------------------------------------------------
// The following enumerations are structures to require their type be included.
@ -20,15 +21,6 @@ namespace Sapphire::Common
const int32_t INVALID_GAME_OBJECT_ID = 0xE0000000;
const uint64_t INVALID_GAME_OBJECT_ID64 = 0xE0000000;
struct FFXIVARR_POSITION3
{
float x;
float y;
float z;
inline bool operator == ( const FFXIVARR_POSITION3& target ) const
{ return ( this->x == target.x && this->y == target.y && this->z == target.z ); }
};
struct FFXIVARR_POSITION3_U16
{
uint16_t x;

6
src/common/Vector3.cpp Normal file
View file

@ -0,0 +1,6 @@
#include "Vector3.h"
inline bool Sapphire::Common::FFXIVARR_POSITION3::operator == ( const FFXIVARR_POSITION3 & target ) const
{
return ( this->x == target.x && this->y == target.y && this->z == target.z );
}

18
src/common/Vector3.h Normal file
View file

@ -0,0 +1,18 @@
#ifndef _VECTOR3_H_
#define _VECTOR3_H_
namespace Sapphire
{
namespace Common
{
struct FFXIVARR_POSITION3
{
float x;
float y;
float z;
inline bool operator == ( const FFXIVARR_POSITION3& target ) const;
};
}
}
#endif

View file

@ -1,4 +1,5 @@
#include <Common.h>
#include <Vector3.cpp>
#include <Network/CommonNetwork.h>
#include <Network/GamePacketNew.h>
#include <Network/CommonActorControl.h>