15 lines
429 B
C++
15 lines
429 B
C++
// 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 Export.hpp
|
|
|
|
|
|
namespace Nz
|
|
{
|
|
template<typename T, typename... Args>
|
|
T& EntitySystemAppComponent::AddWorld(Args&&... args)
|
|
{
|
|
return static_cast<T&>(*m_worlds.emplace_back(std::make_unique<T>(std::forward<Args>(args)...)));
|
|
}
|
|
}
|
|
|