Initial MSVC 2008 projects workspace
This commit is contained in:
27
l2packets/l2world/L2Object.cpp
Normal file
27
l2packets/l2world/L2Object.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#include "stdafx.h"
|
||||
#include "L2Object.h"
|
||||
|
||||
L2Object::~L2Object()
|
||||
{
|
||||
setUnused();
|
||||
}
|
||||
|
||||
L2Object::L2Object( const L2Object& other )
|
||||
{
|
||||
this->operator=( other );
|
||||
}
|
||||
|
||||
const L2Object& L2Object::operator=( const L2Object& other )
|
||||
{
|
||||
if( this == &other ) return (*this);
|
||||
this->x = other.x;
|
||||
this->y = other.y;
|
||||
this->z = other.z;
|
||||
this->objectID = other.objectID;
|
||||
return (*this);
|
||||
}
|
||||
|
||||
bool L2Object::operator==( const L2Object& other )
|
||||
{
|
||||
return this->objectID == other.objectID;
|
||||
}
|
Reference in New Issue
Block a user