V-Gears 0
Free Final Fantasy VII engine.
ParticleSystemFactory.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 The V-Gears Team
3 *
4 * This file is part of V-Gears
5 *
6 * V-Gears is free software: you can redistribute it and/or modify it under
7 * terms of the GNU General Public License as published by the Free Software
8 * Foundation, version 3.0 (GPLv3) of the License.
9 *
10 * V-Gears is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#pragma once
17
18#include <OgreMovableObject.h>
19
23class ParticleSystemFactory : public Ogre::MovableObjectFactory{
24
25 public:
26
31
36
41
47 const Ogre::String& getType() const;
48
54 void DestroyInstance(Ogre::MovableObject* obj);
55
56 private:
57
64 Ogre::MovableObject* createInstanceImpl(
65 const Ogre::String& name, const Ogre::NameValuePairList* params
66 );
67};
68
A particle system factory.
Definition: ParticleSystemFactory.h:23
ParticleSystemFactory()
Constructor.
Definition: ParticleSystemFactory.h:30
static Ogre::String FACTORY_TYPE_NAME
Type of the particle systems.
Definition: ParticleSystemFactory.h:40
void DestroyInstance(Ogre::MovableObject *obj)
Destroys a particle system.
Definition: ParticleSystemFactory.cpp:27
~ParticleSystemFactory()
Destructor.
Definition: ParticleSystemFactory.h:35
const Ogre::String & getType() const
Retrieves the particle systems type.
Definition: ParticleSystemFactory.cpp:23
Ogre::MovableObject * createInstanceImpl(const Ogre::String &name, const Ogre::NameValuePairList *params)
Creates an instance from a template.
Definition: ParticleSystemFactory.cpp:31
Ogre::String String
Definition: TypeDefine.h:37