NazaraEngine/SDK/include/NDK/BaseComponent.hpp

32 lines
612 B
C++

// 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_BASECOMPONENT_HPP
#define NDK_BASECOMPONENT_HPP
#include <NDK/Prerequesites.hpp>
namespace Ndk
{
class NDK_API BaseComponent
{
public:
BaseComponent(ComponentId componentId);
virtual ~BaseComponent();
virtual BaseComponent* Clone() const = 0;
ComponentId GetId() const;
protected:
ComponentId m_componentId;
};
}
#include <NDK/BaseComponent.inl>
#endif // NDK_BASECOMPONENT_HPP