mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
31 lines
601 B
C++
31 lines
601 B
C++
#include "stdafx.h"
|
|
|
|
#include "Util/Handle.h"
|
|
#include "Util/Utilities.h"
|
|
#include "RbxAssert.h"
|
|
#include <limits>
|
|
#include "boost/lexical_cast.hpp"
|
|
#include "reflection/Object.h"
|
|
|
|
namespace RBX {
|
|
|
|
InstanceHandle::InstanceHandle(Reflection::DescribedBase* target)
|
|
:target(shared_from(target))
|
|
{
|
|
}
|
|
|
|
bool InstanceHandle::operatorLess(const InstanceHandle& other) const
|
|
{
|
|
return target < other.target;
|
|
}
|
|
bool InstanceHandle::empty() const {
|
|
return !target;
|
|
}
|
|
|
|
void InstanceHandle::linkTo(shared_ptr<Reflection::DescribedBase> target) {
|
|
this->target = target;
|
|
}
|
|
|
|
|
|
|
|
} // end namespace RBX
|