aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/YEngine/MMRScriptEventCode.cs
diff options
context:
space:
mode:
authorUbitUmarov2018-02-23 14:52:34 +0000
committerUbitUmarov2018-02-23 14:52:34 +0000
commit2129d941acbc5f83aca4dc4c30a62d3226888136 (patch)
treee12f2391978c923ef780f558ee5a32d857ee9124 /OpenSim/Region/ScriptEngine/YEngine/MMRScriptEventCode.cs
parentMerge branch 'master' into httptests (diff)
downloadopensim-SC-2129d941acbc5f83aca4dc4c30a62d3226888136.zip
opensim-SC-2129d941acbc5f83aca4dc4c30a62d3226888136.tar.gz
opensim-SC-2129d941acbc5f83aca4dc4c30a62d3226888136.tar.bz2
opensim-SC-2129d941acbc5f83aca4dc4c30a62d3226888136.tar.xz
rename XMREngine as Yengine (still not all done), big mess source formating changes, move state files to proper folder, fix a source file locking on errors, more changes for cross platform including from Mike,... yes yes i know a messy commit
Diffstat (limited to 'OpenSim/Region/ScriptEngine/YEngine/MMRScriptEventCode.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/YEngine/MMRScriptEventCode.cs97
1 files changed, 97 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/YEngine/MMRScriptEventCode.cs b/OpenSim/Region/ScriptEngine/YEngine/MMRScriptEventCode.cs
new file mode 100644
index 0000000..c00e8d4
--- /dev/null
+++ b/OpenSim/Region/ScriptEngine/YEngine/MMRScriptEventCode.cs
@@ -0,0 +1,97 @@
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.Yengine
29{
30
31 /**
32 * @brief List of event codes that can be passed to StartEventHandler().
33 * Must have same name as corresponding event handler name, so
34 * the compiler will know what column in the seht to put the
35 * event handler entrypoint in.
36 *
37 * Also, ScriptConst.Init() builds symbols of name XMREVENTCODE_<name>
38 * and XMREVENTMASK<n>_<name> with the values and masks of all symbols
39 * in range 0..63 that begin with a lower-case letter for scripts to
40 * reference.
41 */
42 public enum ScriptEventCode: int
43 {
44
45 // used by XMRInstance to indicate no event being processed
46 None = -1,
47
48 // must be bit numbers of equivalent values in ...
49 // OpenSim.Region.ScriptEngine.Shared.ScriptBase.scriptEvents
50 // ... so they can be passed to m_Part.SetScriptEvents().
51 attach = 0,
52 state_exit = 1,
53 timer = 2,
54 touch = 3,
55 collision = 4,
56 collision_end = 5,
57 collision_start = 6,
58 control = 7,
59 dataserver = 8,
60 email = 9,
61 http_response = 10,
62 land_collision = 11,
63 land_collision_end = 12,
64 land_collision_start = 13,
65 at_target = 14,
66 listen = 15,
67 money = 16,
68 moving_end = 17,
69 moving_start = 18,
70 not_at_rot_target = 19,
71 not_at_target = 20,
72 touch_start = 21,
73 object_rez = 22,
74 remote_data = 23,
75 at_rot_target = 24,
76 transaction_result = 25,
77 run_time_permissions = 28,
78 touch_end = 29,
79 state_entry = 30,
80
81 // events not passed to m_Part.SetScriptEvents().
82 changed = 33,
83 link_message = 34,
84 no_sensor = 35,
85 on_rez = 36,
86 sensor = 37,
87 http_request = 38,
88
89 path_update = 40,
90
91 // XMRE specific
92 region_cross = 63,
93
94 // marks highest numbered event, ie, number of columns in seht.
95 Size = 64
96 }
97}