Former-commit-id: 5b9da942f722e5346392c5a68c9d6b8eee703446 [formerly 32a18bc118dc5bf61fc8b1bd3e1708c4aca732f3] [formerly 7af7c88829c78e89b3138da1121aa5d0e12f245e [formerly d655301ce12411b9a13b3bec703b4590370d1e1b]] Former-commit-id: 9db87b3fec6af71501e434fde3f840ad65f1089a [formerly 8fc0513356e655f376cb7cc72f00839c4008fbf4] Former-commit-id: ec3b527603d3c772539fa6e67d05331777d555a7
41 lines
1.3 KiB
C++
41 lines
1.3 KiB
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
|
|
|
|
#pragma once
|
|
|
|
#ifndef NDK_SERVER
|
|
#ifndef NDK_COMPONENTS_PARTICLEGROUPCOMPONENT_HPP
|
|
#define NDK_COMPONENTS_PARTICLEGROUPCOMPONENT_HPP
|
|
|
|
#include <Nazara/Graphics/ParticleGroup.hpp>
|
|
#include <NDK/Component.hpp>
|
|
|
|
namespace Ndk
|
|
{
|
|
class ParticleGroupComponent;
|
|
|
|
using ParticleGroupComponentHandle = Nz::ObjectHandle<ParticleGroupComponent>;
|
|
|
|
class NDK_API ParticleGroupComponent : public Component<ParticleGroupComponent>, public Nz::ParticleGroup, public Nz::HandledObject<ParticleGroupComponent>
|
|
{
|
|
public:
|
|
inline ParticleGroupComponent(unsigned int maxParticleCount, Nz::ParticleLayout layout);
|
|
inline ParticleGroupComponent(unsigned int maxParticleCount, Nz::ParticleDeclarationConstRef declaration);
|
|
ParticleGroupComponent(const ParticleGroupComponent&) = default;
|
|
~ParticleGroupComponent() = default;
|
|
|
|
void AddEmitter(Entity* emitter);
|
|
using ParticleGroup::AddEmitter;
|
|
|
|
void RemoveEmitter(Entity* emitter);
|
|
using ParticleGroup::RemoveEmitter;
|
|
|
|
static ComponentIndex componentIndex;
|
|
};
|
|
}
|
|
|
|
#include <NDK/Components/ParticleGroupComponent.inl>
|
|
|
|
#endif // NDK_COMPONENTS_PARTICLEGROUPCOMPONENT_HPP
|
|
#endif // NDK_SERVER
|