(NDK) Added NodeComponent
Former-commit-id: 61b970c31a12a1b128e72c4754590528b6c1b4d6
This commit is contained in:
31
SDK/include/NDK/Components/NodeComponent.hpp
Normal file
31
SDK/include/NDK/Components/NodeComponent.hpp
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef NDK_COMPONENTS_NODECOMPONENT_HPP
|
||||
#define NDK_COMPONENTS_NODECOMPONENT_HPP
|
||||
|
||||
#include <Nazara/Utility/Node.hpp>
|
||||
#include <NDK/Component.hpp>
|
||||
|
||||
namespace Ndk
|
||||
{
|
||||
class Entity;
|
||||
|
||||
class NDK_API NodeComponent : public Component<NodeComponent>, public NzNode
|
||||
{
|
||||
public:
|
||||
NodeComponent() = default;
|
||||
~NodeComponent() = default;
|
||||
|
||||
void SetParent(Entity* entity, bool keepDerived = false);
|
||||
|
||||
static ComponentIndex componentIndex;
|
||||
};
|
||||
}
|
||||
|
||||
#include <NDK/Components/NodeComponent.inl>
|
||||
|
||||
#endif // NDK_COMPONENTS_NODECOMPONENT_HPP
|
||||
Reference in New Issue
Block a user