summaryrefslogtreecommitdiff
path: root/script-editor/Pointer.cs
diff options
context:
space:
mode:
authorJes <jes>2010-01-06 23:39:02 +0100
committerJes <jes>2010-01-06 23:39:02 +0100
commit49b3d926ea33f486468f0bc855585968eacca124 (patch)
treed4df4025819927a586714b3d077b7395c0c66e11 /script-editor/Pointer.cs
parent6b898f4d57431cacd6cec6e9425c441cf80d302f (diff)
Ajout des sources de l'éditeur de script
Diffstat (limited to 'script-editor/Pointer.cs')
-rw-r--r--script-editor/Pointer.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/script-editor/Pointer.cs b/script-editor/Pointer.cs
new file mode 100644
index 0000000..73a050c
--- /dev/null
+++ b/script-editor/Pointer.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace VPScriptEditor
+{
+ public enum WindowType { Normal, Fixed, None };
+
+ public class Pointer
+ {
+ public string rooms, x, y, width, height, content;
+ public WindowType type;
+
+ public Pointer(Pointer p) : this(p.rooms, p.type, p.x, p.y, p.width, p.height, p.content) { }
+
+ public Pointer(string rooms, WindowType type, string x, string y, string width, string height, string content)
+ {
+ this.rooms = rooms;
+ this.type = type;
+
+ if (type == WindowType.Normal)
+ {
+ this.x = x;
+ this.y = y;
+ this.width = width;
+ this.height = height;
+ }
+ else
+ this.x = this.y = this.width = this.height = null;
+
+ this.content = content;
+ }
+ }
+}