Former-commit-id: be8510f6af37e42823ecd91bafb13811237eeb16 [formerly 88c87c25016860ad54af6190724092c3a8f6d68d] [formerly 0ebbf96f2c776d5c81d9f5aca0f38c26a52d6e71 [formerly b25f03bb3a25c92a26973fe1a561e8f2201e8637]] Former-commit-id: 41557956be4f10df7424a8f68e27d14a376b2c0f [formerly 77ffff76911d233219a13ac5d2d922949b1142cf] Former-commit-id: 3f2e9c12541a9c38578a192752c179c7db175c1e
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
|