Rename AppComponent classes (AppEntitySystemComponent => EntitySystemAppComponent)
This commit is contained in:
16
include/Nazara/Core/EntitySystemAppComponent.inl
Normal file
16
include/Nazara/Core/EntitySystemAppComponent.inl
Normal file
@@ -0,0 +1,16 @@
|
||||
// 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
|
||||
{
|
||||
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)...)));
|
||||
}
|
||||
}
|
||||
|
||||
#include <Nazara/Core/DebugOff.hpp>
|
||||
Reference in New Issue
Block a user