mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user