Added Components
Former-commit-id: 02f9e9892b58a725697b83e7b75127db5b3a27f4
This commit is contained in:
34
SDK/include/NDK/BaseComponent.hpp
Normal file
34
SDK/include/NDK/BaseComponent.hpp
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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(nzUInt32 componentId);
|
||||
virtual ~BaseComponent();
|
||||
|
||||
nzUInt32 GetComponentId() const;
|
||||
|
||||
static nzUInt32 GetNextId();
|
||||
|
||||
protected:
|
||||
nzUInt32 m_componentId;
|
||||
|
||||
private:
|
||||
static nzUInt32 s_nextId;
|
||||
};
|
||||
}
|
||||
|
||||
#include <NDK/BaseComponent.inl>
|
||||
|
||||
#endif // NDK_BASECOMPONENT_HPP
|
||||
Reference in New Issue
Block a user