mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-21 09:35:27 -04:00
9934457b39
Only show in developer changelog
56 lines
2.1 KiB
C++
56 lines
2.1 KiB
C++
/**
|
|
|
|
GDevelop - Particle System Extension
|
|
Copyright (c) 2010-2016 Florian Rival (Florian.Rival@gmail.com)
|
|
This project is released under the MIT License.
|
|
*/
|
|
|
|
#include "Extension.h"
|
|
|
|
#include "ExtensionSubDeclaration1.h"
|
|
#include "ExtensionSubDeclaration2.h"
|
|
#include "ExtensionSubDeclaration3.h"
|
|
#include "GDCore/Extensions/PlatformExtension.h"
|
|
#include "GDCore/Project/BehaviorsSharedData.h"
|
|
#include "GDCore/Tools/Localization.h"
|
|
#include "ParticleEmitterObject.h"
|
|
|
|
void DeclareParticleSystemExtension(gd::PlatformExtension& extension) {
|
|
extension
|
|
.SetExtensionInformation(
|
|
"ParticleSystem",
|
|
_("Particle system"),
|
|
"A 2D particle emitter allows to create various effects by showing a "
|
|
"lot of tiny images called particles. It's ideal for fires, smoke, "
|
|
"explosions, magical effects, etc... in 2D games. For 3D games, use "
|
|
"the 3D particle emitter instead.",
|
|
"Florian Rival",
|
|
"Open source (MIT License)")
|
|
.SetShortDescription("2D particle emitter for fire, smoke, explosions, magic effects. Configurable color, size, speed, lifetime.")
|
|
.SetDimension("2D")
|
|
.SetCategory("Visual effect")
|
|
.SetExtensionHelpPath("/objects/particles_emitter");
|
|
extension.AddInstructionOrExpressionGroupMetadata(_("Particle system"))
|
|
.SetIcon("CppPlatform/Extensions/particleSystemicon.png");
|
|
|
|
// Declaration of all objects available
|
|
{
|
|
gd::ObjectMetadata& obj =
|
|
extension
|
|
.AddObject<ParticleEmitterObject>(
|
|
"ParticleEmitter",
|
|
_("2D particles emitter"),
|
|
_("2D effects like smoke, fire or sparks."),
|
|
"CppPlatform/Extensions/particleSystemicon.png")
|
|
.SetCategory("Visual effect")
|
|
.SetAssetStoreTag("particles emitter")
|
|
.AddDefaultBehavior("EffectCapability::EffectBehavior");
|
|
|
|
// Declaration is too big to be compiled by GCC in one file, unless you have
|
|
// 4GB+ ram. :/
|
|
ExtensionSubDeclaration1(obj);
|
|
ExtensionSubDeclaration2(obj);
|
|
ExtensionSubDeclaration3(obj);
|
|
}
|
|
}
|