aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XMREngine/MMRScriptEventCode.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XMREngine/MMRScriptEventCode.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/XMREngine/MMRScriptEventCode.cs95
1 files changed, 95 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XMREngine/MMRScriptEventCode.cs b/OpenSim/Region/ScriptEngine/XMREngine/MMRScriptEventCode.cs
new file mode 100644
index 0000000..8e8b755
--- /dev/null
+++ b/OpenSim/Region/ScriptEngine/XMREngine/MMRScriptEventCode.cs
@@ -0,0 +1,95 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28namespace OpenSim.Region.ScriptEngine.XMREngine {
29
30 /**
31 * @brief List of event codes that can be passed to StartEventHandler().
32 * Must have same name as corresponding event handler name, so
33 * the compiler will know what column in the seht to put the
34 * event handler entrypoint in.
35 *
36 * Also, ScriptConst.Init() builds symbols of name XMREVENTCODE_<name>
37 * and XMREVENTMASK<n>_<name> with the values and masks of all symbols
38 * in range 0..63 that begin with a lower-case letter for scripts to
39 * reference.
40 */
41 public enum ScriptEventCode : int {
42
43 // used by XMRInstance to indicate no event being processed
44 None = -1,
45
46 // must be bit numbers of equivalent values in ...
47 // OpenSim.Region.ScriptEngine.Shared.ScriptBase.scriptEvents
48 // ... so they can be passed to m_Part.SetScriptEvents().
49 attach = 0,
50 state_exit = 1,
51 timer = 2,
52 touch = 3,
53 collision = 4,
54 collision_end = 5,
55 collision_start = 6,
56 control = 7,
57 dataserver = 8,
58 email = 9,
59 http_response = 10,
60 land_collision = 11,
61 land_collision_end = 12,
62 land_collision_start = 13,
63 at_target = 14,
64 listen = 15,
65 money = 16,
66 moving_end = 17,
67 moving_start = 18,
68 not_at_rot_target = 19,
69 not_at_target = 20,
70 touch_start = 21,
71 object_rez = 22,
72 remote_data = 23,
73 at_rot_target = 24,
74 transaction_result = 25,
75 run_time_permissions = 28,
76 touch_end = 29,
77 state_entry = 30,
78
79 // events not passed to m_Part.SetScriptEvents().
80 changed = 33,
81 link_message = 34,
82 no_sensor = 35,
83 on_rez = 36,
84 sensor = 37,
85 http_request = 38,
86
87 path_update = 40,
88
89 // XMRE specific
90 region_cross = 63,
91
92 // marks highest numbered event, ie, number of columns in seht.
93 Size = 64
94 }
95}