They are no longer attached to groups, groups attach emitters Former-commit-id: fa4c2eb69147c7a19e9d77f952fdeaec0fdafc24 [formerly 981a7cfe37867842b4fe275cae6b04ab9f8a33c9] [formerly bc3c128bdfdb36eaf09f8f8a650c07e00d7e877c [formerly 1dc92772e589d80f59e8dab5d315387c7c57f886]] Former-commit-id: 6420a724b368ab2e72e67154e76566c7eda9f7a5 [formerly b3912e18e589bff75f8f9a1870fbebffe208f653] Former-commit-id: 1598b8cfb892285daee6dac7cd3283ba8447a032
29 lines
631 B
C++
29 lines
631 B
C++
// Copyright (C) 2015 Jérôme Leclercq
|
|
// This file is part of the "Nazara Development Kit"
|
|
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
|
|
|
|
#include <NDK/Components/ParticleEmitterComponent.hpp>
|
|
|
|
namespace Ndk
|
|
{
|
|
inline ParticleEmitterComponent::ParticleEmitterComponent() :
|
|
m_isActive(true)
|
|
{
|
|
}
|
|
|
|
inline void Ndk::ParticleEmitterComponent::Enable(bool active)
|
|
{
|
|
m_isActive = active;
|
|
}
|
|
|
|
inline bool ParticleEmitterComponent::IsActive() const
|
|
{
|
|
return m_isActive;
|
|
}
|
|
|
|
inline void Ndk::ParticleEmitterComponent::SetSetupFunc(SetupFunc func)
|
|
{
|
|
m_setupFunc = std::move(func);
|
|
}
|
|
}
|