Core/ObjectHandle: Remade object handle system
This commit is contained in:
18
src/Nazara/Core/HandledObject.cpp
Normal file
18
src/Nazara/Core/HandledObject.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
// Copyright (C) 2017 Jérôme Leclercq
|
||||
// This file is part of the "Nazara Engine - Core module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Core/HandledObject.hpp>
|
||||
#include <Nazara/Core/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
namespace Detail
|
||||
{
|
||||
std::shared_ptr<HandleData> HandleData::GetEmptyObject()
|
||||
{
|
||||
static std::shared_ptr<HandleData> emptyHandleData = std::make_shared<HandleData>(HandleData{});
|
||||
return emptyHandleData;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user