Add new particles flag for vlj
This commit is contained in:
@@ -55,8 +55,9 @@ ParticleKind::ParticleKind(const std::string file) : m_min_start_color(255,255,2
|
||||
m_has_scale_affector = NULL;
|
||||
m_scale_affector_factor_x = 0.0f;
|
||||
m_scale_affector_factor_y = 0.0f;
|
||||
m_wind_speed = 0;
|
||||
m_flips = false;
|
||||
m_wind_speed = 0;
|
||||
m_flips = false;
|
||||
m_vertical_particles = false;
|
||||
|
||||
|
||||
// ----- Read XML file
|
||||
@@ -237,6 +238,12 @@ ParticleKind::ParticleKind(const std::string file) : m_min_start_color(255,255,2
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
const XMLNode* orientation = xml->getNode("orientation");
|
||||
if (orientation != NULL)
|
||||
{
|
||||
orientation->get("vertical", &m_vertical_particles);
|
||||
}
|
||||
|
||||
delete xml;
|
||||
}
|
||||
|
||||
|
||||
@@ -99,6 +99,10 @@ private:
|
||||
float m_scale_affector_factor_x;
|
||||
float m_scale_affector_factor_y;
|
||||
|
||||
/** The particle's billboards should face the
|
||||
player by rotating around the Y axis only */
|
||||
bool m_vertical_particles;
|
||||
|
||||
public:
|
||||
|
||||
/**
|
||||
@@ -161,6 +165,8 @@ public:
|
||||
|
||||
bool getFlips() const { return m_flips; }
|
||||
|
||||
bool isVerticalParticles() const { return m_vertical_particles; }
|
||||
|
||||
std::string getName() const { return m_name; }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user