Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
blob: b2c84bcbc5938aefdb749e2e8593b1d16551377c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
   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 = Sprite;
	script_interval = 100;
	script_cone = 0.0f;
	script_offset = 0.5f;
	script_lifespan = 1000;
	script_timeout = 0;
	script_acceleration = 0.0f;
	script_entity = false;
	script_entity_second = false;
	script_engine = false;
	script_impulse = false;
	script_thrust = false;
	script_cull = model::CullNone;
	script_spawn_radius = 0.0f;
	script_attached = false;
	script_scaled = false;
}

ParticleEjectorScript::ParticleEjectorScript(const ParticleEjectorScript &other)
{
	script_type = other.type();
	script_interval = other.interval();
	script_cone = other.cone();
	script_spawn_radius = other.spawn_radius();
	script_offset = other.offset();
	script_lifespan = other.lifespan();
	script_timeout = other.timeout();
	script_acceleration = other.acceleration();
	script_entity = other.entity();
	script_entity_second = other.entity_second();
	script_engine = other.engine();
	script_impulse = other.impulse();
	script_thrust = other.thrust();
	script_cull = other.cull();
	script_attached = other.attached();
	script_scaled = other.scaled();
	
	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_speed_vec.assign(other.speed_vec());
	script_tailspeed_vec.assign(other.tailspeed_vec());
	script_color.assign(other.color());
}

ParticleEjectorScript::~ParticleEjectorScript()
{
}

}