Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/particleejectorscript.cc')
-rw-r--r--src/render/particleejectorscript.cc55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/render/particleejectorscript.cc b/src/render/particleejectorscript.cc
new file mode 100644
index 0000000..4c9b6c9
--- /dev/null
+++ b/src/render/particleejectorscript.cc
@@ -0,0 +1,55 @@
+/*
+ render/particleejectorscript.cc
+ This file is part of the Osirion project and is distributed under
+ the terms of the GNU General Public License version 2
+*/
+
+#include "render/particleejectorscript.h"
+#include "model/model.h"
+
+namespace render
+{
+
+ParticleEjectorScript::ParticleEjectorScript()
+{
+ script_type = Spray;
+ script_interval = 100;
+ script_cone = 0.0f;
+ script_offset = 0.5f;
+ script_lifespan = 1000;
+ script_speed = 0;
+ script_entity = false;
+ script_entity_second = false;
+ script_engine = false;
+ script_thrust = false;
+ script_cull = model::CullNone;
+ script_spawn_radius = 0.0f;
+}
+
+ParticleEjectorScript::ParticleEjectorScript(const ParticleEjectorScript &other)
+{
+ script_type = other.type();
+ script_interval = other.interval();
+ script_cone = other.cone();
+ script_offset = other.offset();
+ script_lifespan = other.lifespan();
+ script_speed = other.speed();
+ script_entity = other.entity();
+ script_entity_second = other.entity_second();
+ script_engine = other.engine();
+ script_thrust = other.thrust();
+ script_cull = other.cull();
+ script_spawn_radius = other.spawn_radius();
+
+ script_texture.assign(other.texture());
+ script_axis.assign(other.axis());
+ script_radius_vec.assign(other.radius_vec());
+ script_alpha_vec.assign(other.alpha_vec());
+ script_color.assign(other.color());
+}
+
+ParticleEjectorScript::~ParticleEjectorScript()
+{
+}
+
+} \ No newline at end of file