Remove Utility module and move its content to Core and TextRenderer modules
This commit is contained in:
committed by
Jérôme Leclercq
parent
965a00182c
commit
e64c2b036e
42
include/Nazara/Core/Systems/SkeletonSystem.hpp
Normal file
42
include/Nazara/Core/Systems/SkeletonSystem.hpp
Normal file
@@ -0,0 +1,42 @@
|
||||
// Copyright (C) 2024 Jérôme "SirLynix" 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_SYSTEMS_SKELETONSYSTEM_HPP
|
||||
#define NAZARA_CORE_SYSTEMS_SKELETONSYSTEM_HPP
|
||||
|
||||
#include <NazaraUtils/Prerequisites.hpp>
|
||||
#include <Nazara/Core/Config.hpp>
|
||||
#include <Nazara/Core/Time.hpp>
|
||||
#include <entt/entt.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
class NAZARA_CORE_API SkeletonSystem
|
||||
{
|
||||
public:
|
||||
static constexpr bool AllowConcurrent = false;
|
||||
static constexpr Int64 ExecutionOrder = -1'000;
|
||||
|
||||
SkeletonSystem(entt::registry& registry);
|
||||
SkeletonSystem(const SkeletonSystem&) = delete;
|
||||
SkeletonSystem(SkeletonSystem&&) = delete;
|
||||
~SkeletonSystem();
|
||||
|
||||
void Update(Time elapsedTime);
|
||||
|
||||
SkeletonSystem& operator=(const SkeletonSystem&) = delete;
|
||||
SkeletonSystem& operator=(SkeletonSystem&&) = delete;
|
||||
|
||||
private:
|
||||
entt::registry& m_registry;
|
||||
entt::observer m_sharedSkeletonConstructObserver;
|
||||
entt::observer m_skeletonConstructObserver;
|
||||
};
|
||||
}
|
||||
|
||||
#include <Nazara/Core/Systems/SkeletonSystem.inl>
|
||||
|
||||
#endif // NAZARA_CORE_SYSTEMS_SKELETONSYSTEM_HPP
|
||||
11
include/Nazara/Core/Systems/SkeletonSystem.inl
Normal file
11
include/Nazara/Core/Systems/SkeletonSystem.inl
Normal file
@@ -0,0 +1,11 @@
|
||||
// Copyright (C) 2024 Jérôme "SirLynix" 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
|
||||
|
||||
#include <Nazara/Core/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
}
|
||||
|
||||
#include <Nazara/Core/DebugOff.hpp>
|
||||
40
include/Nazara/Core/Systems/VelocitySystem.hpp
Normal file
40
include/Nazara/Core/Systems/VelocitySystem.hpp
Normal file
@@ -0,0 +1,40 @@
|
||||
// Copyright (C) 2024 Jérôme "SirLynix" 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_SYSTEMS_VELOCITYSYSTEM_HPP
|
||||
#define NAZARA_CORE_SYSTEMS_VELOCITYSYSTEM_HPP
|
||||
|
||||
#include <NazaraUtils/Prerequisites.hpp>
|
||||
#include <Nazara/Core/Config.hpp>
|
||||
#include <Nazara/Core/Time.hpp>
|
||||
#include <NazaraUtils/TypeList.hpp>
|
||||
#include <entt/entt.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
class NAZARA_CORE_API VelocitySystem
|
||||
{
|
||||
public:
|
||||
using Components = TypeList<class NodeComponent, class VelocityComponent>;
|
||||
|
||||
inline VelocitySystem(entt::registry& registry);
|
||||
VelocitySystem(const VelocitySystem&) = delete;
|
||||
VelocitySystem(VelocitySystem&&) = delete;
|
||||
~VelocitySystem() = default;
|
||||
|
||||
void Update(Time elapsedTime);
|
||||
|
||||
VelocitySystem& operator=(const VelocitySystem&) = delete;
|
||||
VelocitySystem& operator=(VelocitySystem&&) = delete;
|
||||
|
||||
private:
|
||||
entt::registry& m_registry;
|
||||
};
|
||||
}
|
||||
|
||||
#include <Nazara/Core/Systems/VelocitySystem.inl>
|
||||
|
||||
#endif // NAZARA_CORE_SYSTEMS_VELOCITYSYSTEM_HPP
|
||||
15
include/Nazara/Core/Systems/VelocitySystem.inl
Normal file
15
include/Nazara/Core/Systems/VelocitySystem.inl
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright (C) 2024 Jérôme "SirLynix" 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
|
||||
|
||||
#include <Nazara/Core/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
inline VelocitySystem::VelocitySystem(entt::registry& registry) :
|
||||
m_registry(registry)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
#include <Nazara/Core/DebugOff.hpp>
|
||||
Reference in New Issue
Block a user