Add Application base classes (WIP)
This commit is contained in:
committed by
Jérôme Leclercq
parent
67320e02e9
commit
04bfa97579
33
include/Nazara/Core/ApplicationComponent.hpp
Normal file
33
include/Nazara/Core/ApplicationComponent.hpp
Normal file
@@ -0,0 +1,33 @@
|
||||
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
|
||||
// This file is part of the "Nazara Engine - Core module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef NAZARA_CORE_APPLICATIONCOMPONENT_HPP
|
||||
#define NAZARA_CORE_APPLICATIONCOMPONENT_HPP
|
||||
|
||||
#include <Nazara/Prerequisites.hpp>
|
||||
#include <Nazara/Core/Config.hpp>
|
||||
#include <Nazara/Core/Time.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
class NAZARA_CORE_API ApplicationComponent
|
||||
{
|
||||
public:
|
||||
ApplicationComponent() = default;
|
||||
ApplicationComponent(const ApplicationComponent&) = delete;
|
||||
ApplicationComponent(ApplicationComponent&&) = delete;
|
||||
virtual ~ApplicationComponent();
|
||||
|
||||
virtual void Update(Time elapsedTime);
|
||||
|
||||
ApplicationComponent& operator=(const ApplicationComponent&) = delete;
|
||||
ApplicationComponent& operator=(ApplicationComponent&&) = delete;
|
||||
};
|
||||
}
|
||||
|
||||
#include <Nazara/Core/ApplicationComponent.inl>
|
||||
|
||||
#endif // NAZARA_CORE_APPLICATIONCOMPONENT_HPP
|
||||
Reference in New Issue
Block a user