diff options
Diffstat (limited to 'OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionBase.cs')
-rw-r--r-- | OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionBase.cs | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionBase.cs b/OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionBase.cs new file mode 100644 index 0000000..8138728 --- /dev/null +++ b/OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionBase.cs | |||
@@ -0,0 +1,86 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | namespace OpenSim.Grid.ScriptServer | ||
6 | { | ||
7 | public abstract class RegionBase | ||
8 | { | ||
9 | // These are events that the region needs to have | ||
10 | |||
11 | // TEMP: Using System.Delegate -- needs replacing with a real delegate | ||
12 | public delegate void DefaultDelegate(); | ||
13 | |||
14 | public event DefaultDelegate onScriptRez; | ||
15 | public event DefaultDelegate onstate_entry; | ||
16 | public event DefaultDelegate onstate_exit; | ||
17 | public event DefaultDelegate ontouch_start; | ||
18 | public event DefaultDelegate ontouch; | ||
19 | public event DefaultDelegate ontouch_end; | ||
20 | public event DefaultDelegate oncollision_start; | ||
21 | public event DefaultDelegate oncollision; | ||
22 | public event DefaultDelegate oncollision_end; | ||
23 | public event DefaultDelegate onland_collision_start; | ||
24 | public event DefaultDelegate onland_collision; | ||
25 | public event DefaultDelegate onland_collision_end; | ||
26 | public event DefaultDelegate ontimer; | ||
27 | public event DefaultDelegate onlisten; | ||
28 | public event DefaultDelegate onon_rez; | ||
29 | public event DefaultDelegate onsensor; | ||
30 | public event DefaultDelegate onno_sensor; | ||
31 | public event DefaultDelegate oncontrol; | ||
32 | public event DefaultDelegate onmoney; | ||
33 | public event DefaultDelegate onemail; | ||
34 | public event DefaultDelegate onat_target; | ||
35 | public event DefaultDelegate onnot_at_target; | ||
36 | public event DefaultDelegate onat_rot_target; | ||
37 | public event DefaultDelegate onnot_at_rot_target; | ||
38 | public event DefaultDelegate onrun_time_permissions; | ||
39 | public event DefaultDelegate onchanged; | ||
40 | public event DefaultDelegate onattach; | ||
41 | public event DefaultDelegate ondataserver; | ||
42 | public event DefaultDelegate onlink_message; | ||
43 | public event DefaultDelegate onmoving_start; | ||
44 | public event DefaultDelegate onmoving_end; | ||
45 | public event DefaultDelegate onobject_rez; | ||
46 | public event DefaultDelegate onremote_data; | ||
47 | public event DefaultDelegate onhttp_response; | ||
48 | |||
49 | |||
50 | public void ScriptRez() { onScriptRez(); } | ||
51 | public void state_entry() { onstate_entry(); } | ||
52 | public void state_exit() { onstate_exit(); } | ||
53 | public void touch_start() { ontouch_start(); } | ||
54 | public void touch() { ontouch(); } | ||
55 | public void touch_end() { ontouch_end(); } | ||
56 | public void collision_start() { oncollision_start(); } | ||
57 | public void collision() { oncollision(); } | ||
58 | public void collision_end() { oncollision_end(); } | ||
59 | public void land_collision_start() { onland_collision_start(); } | ||
60 | public void land_collision() { onland_collision(); } | ||
61 | public void land_collision_end() { onland_collision_end(); } | ||
62 | public void timer() { ontimer(); } | ||
63 | public void listen() { onlisten(); } | ||
64 | public void on_rez() { onon_rez(); } | ||
65 | public void sensor() { onsensor(); } | ||
66 | public void no_sensor() { onno_sensor(); } | ||
67 | public void control() { oncontrol(); } | ||
68 | public void money() { onmoney(); } | ||
69 | public void email() { onemail(); } | ||
70 | public void at_target() { onat_target(); } | ||
71 | public void not_at_target() { onnot_at_target(); } | ||
72 | public void at_rot_target() { onat_rot_target(); } | ||
73 | public void not_at_rot_target() { onnot_at_rot_target(); } | ||
74 | public void run_time_permissions() { onrun_time_permissions(); } | ||
75 | public void changed() { onchanged(); } | ||
76 | public void attach() { onattach(); } | ||
77 | public void dataserver() { ondataserver(); } | ||
78 | public void link_message() { onlink_message(); } | ||
79 | public void moving_start() { onmoving_start(); } | ||
80 | public void moving_end() { onmoving_end(); } | ||
81 | public void object_rez() { onobject_rez(); } | ||
82 | public void remote_data() { onremote_data(); } | ||
83 | public void http_response() { onhttp_response(); } | ||
84 | |||
85 | } | ||
86 | } | ||