Files
NazaraEngine/SDK/include/NDK/Components/ParticleGroupComponent.hpp
Lynix 06dd70d039 SDK/ParticleGroupComponent: Fix ParticleGroupComponent not being a handled object
Former-commit-id: 7dbe5f2288359a3cb9c90f1ffd3e010267cff137 [formerly 4279de72db6b2bf3df4465a193b8117291b1cec9] [formerly d1273d67b4befe12a886274b582689c59df1034b [formerly 1cbab93dc9494d2e9bb81637238cd3ee0683f294]]
Former-commit-id: 62415a394f4337dc0fcf01fa180aff8beff0bbe9 [formerly 8b4ae9d8ba4392ec4e6f14e471080fa1021b552d]
Former-commit-id: 278a94e669730dd8344d294de3039ecd870a0d18
2016-08-14 17:56:36 +02:00

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