// 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 #include #include namespace Nz { inline AppEntitySystemComponent::AppEntitySystemComponent(ApplicationBase& app) : ApplicationComponent(app), m_systemGraph(m_registry) { } template T& AppEntitySystemComponent::AddSystem(Args&&... args) { return m_systemGraph.AddSystem(std::forward(args)...); } inline entt::handle AppEntitySystemComponent::CreateEntity() { return entt::handle(m_registry, m_registry.create()); } inline entt::registry& AppEntitySystemComponent::GetRegistry() { return m_registry; } inline const entt::registry& AppEntitySystemComponent::GetRegistry() const { return m_registry; } template T& AppEntitySystemComponent::GetSystem() const { return m_systemGraph.GetSystem(); } } #include