diff --git a/NazaraModuleTemplate/include/Nazara/ModuleName/ClassName.hpp b/NazaraModuleTemplate/include/Nazara/ModuleName/ClassName.hpp new file mode 100644 index 000000000..5f7d10f41 --- /dev/null +++ b/NazaraModuleTemplate/include/Nazara/ModuleName/ClassName.hpp @@ -0,0 +1,25 @@ +// Copyright (C) 2012 AUTHORS +// This file is part of the "Nazara Engine". +// For conditions of distribution and use, see copyright notice in Config.hpp + +#pragma once + +#ifndef NAZARA_CLASSNAME_HPP +#define NAZARA_CLASSNAME_HPP + +#include + +class NAZARA_API NzClassName +{ + public: + NzClassName(); + + int GetAttribute() const; + + void SetAttribute(int attribute); + + private: + int m_attribute; +}; + +#endif // NAZARA_CLASSNAME_HPP diff --git a/NazaraModuleTemplate/src/Nazara/ModuleName/ClassName.cpp b/NazaraModuleTemplate/src/Nazara/ModuleName/ClassName.cpp new file mode 100644 index 000000000..f57baac14 --- /dev/null +++ b/NazaraModuleTemplate/src/Nazara/ModuleName/ClassName.cpp @@ -0,0 +1,21 @@ +// Copyright (C) 2012 AUTHORS +// This file is part of the "Nazara Engine". +// For conditions of distribution and use, see copyright notice in Config.hpp + +#include +#include + +NzClassName::NzClassName() : +m_attribute(42) +{ +} + +int NzClassName::GetAttribute() const +{ + return m_attribute; +} + +void NzClassName::SetAttribute(int attribute) +{ + m_attribute = attribute; +}