V-Gears 0
Free Final Fantasy VII engine.
ParticleEntityAdditionalData.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 "../ParticleAdditionalData.h"
19
24
30 ParticleEntityAdditionalData(Ogre::SceneNode* scene_node)
31 : node(scene_node)
32 {};
33
40 void SetVisible(bool visible){
41 if (node != NULL) node->setVisible(visible);
42 }
43
47 Ogre::SceneNode* node;
48};
Additional data for a particle.
Definition: ParticleAdditionalData.h:21
Additional data for a particle entity.
Definition: ParticleEntityAdditionalData.h:23
Ogre::SceneNode * node
The node that is the particle entity.
Definition: ParticleEntityAdditionalData.h:47
void SetVisible(bool visible)
Toggles the particle entity visibility.
Definition: ParticleEntityAdditionalData.h:40
ParticleEntityAdditionalData(Ogre::SceneNode *scene_node)
Constructor.
Definition: ParticleEntityAdditionalData.h:30