Rework EnTT integration
- Update EnTT to 3.11.1 - Moved EnTT wrapper to EnTTWorld, inheriting EntityWorld - AppEntitySystemComponent can now handles multiple EntityWorld - Headers relying on EnTT are now automatically included if NAZARA_ENTT is defined - Renamed SystemGraph to EnttSystemGraph (as it depends on it for now)
This commit is contained in:
committed by
Jérôme Leclercq
parent
d5f281a768
commit
97fa4d98be
33
include/Nazara/Core/EntityWorld.hpp
Normal file
33
include/Nazara/Core/EntityWorld.hpp
Normal file
@@ -0,0 +1,33 @@
|
||||
// Copyright (C) 2023 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_ENTITYWORLD_HPP
|
||||
#define NAZARA_CORE_ENTITYWORLD_HPP
|
||||
|
||||
#include <Nazara/Prerequisites.hpp>
|
||||
#include <Nazara/Core/Config.hpp>
|
||||
#include <Nazara/Core/Time.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
class NAZARA_CORE_API EntityWorld
|
||||
{
|
||||
public:
|
||||
EntityWorld() = default;
|
||||
EntityWorld(const EntityWorld&) = default;
|
||||
EntityWorld(EntityWorld&&) = default;
|
||||
virtual ~EntityWorld();
|
||||
|
||||
virtual void Update(Time elapsedTime) = 0;
|
||||
|
||||
EntityWorld& operator=(const EntityWorld&) = default;
|
||||
EntityWorld& operator=(EntityWorld&&) = default;
|
||||
};
|
||||
}
|
||||
|
||||
#include <Nazara/Core/EntityWorld.inl>
|
||||
|
||||
#endif // NAZARA_CORE_ENTITYWORLD_HPP
|
||||
Reference in New Issue
Block a user