-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLightingThing.cs
50 lines (37 loc) · 1.16 KB
/
LightingThing.cs
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
#region ================== Namespaces
using System;
using System.Windows.Forms;
using CodeImp.DoomBuilder.Geometry;
#endregion
namespace CodeImp.DoomBuilder.LightingMode
{
public class LightingThing
{
#region ================== Variables
private Vector3D pos;
private Vector3D oldpos;
private bool enabled;
private int maxradius;
private int brightness;
private bool selected;
#endregion
#region ================== Properties
public Vector3D Position { get { return pos; } set { pos = value; } }
public Vector3D OldPosition { get { return oldpos; } set { oldpos = value; } }
public bool Enabled { get { return enabled; } set { enabled = value; } }
public int MaxRadius { get { return maxradius; } set { maxradius = value; } }
public int Brightness { get { return brightness; } set { brightness = value; } }
public bool Selected { get { return selected; } set { selected = value; } }
#endregion
#region ================== Constructor / Disposer
internal LightingThing(Vector3D p)
{
//MessageBox.Show("Inserted light at " + p.ToString());
pos = p;
enabled = true;
maxradius = 1024;
brightness = 16;
}
#endregion
}
}