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:
parent
dd9cb1aae3
commit
434b8d421e
4 changed files with 26 additions and 9 deletions
|
@ -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
6
src/common/Vector3.cpp
Normal 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
18
src/common/Vector3.h
Normal 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
|
|
@ -1,4 +1,5 @@
|
|||
#include <Common.h>
|
||||
#include <Vector3.cpp>
|
||||
#include <Network/CommonNetwork.h>
|
||||
#include <Network/GamePacketNew.h>
|
||||
#include <Network/CommonActorControl.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue