// Copyright (C) 2015 Jérôme Leclercq // This file is part of the "Nazara Development Kit" // For conditions of distribution and use, see copyright notice in Prerequesites.hpp #include #include namespace Ndk { inline void NodeComponent::SetParent(Entity* entity, bool keepDerived) { if (entity) { NazaraAssert(entity->HasComponent(), "Entity must have a NodeComponent"); NzNode::SetParent(entity->GetComponent(), keepDerived); } else NzNode::SetParent(nullptr, keepDerived); } }