diff options
author | Tedd Hansen | 2008-11-08 17:35:48 +0000 |
---|---|---|
committer | Tedd Hansen | 2008-11-08 17:35:48 +0000 |
commit | 9511a8c76370f21e839114007dcd2b25c69b009a (patch) | |
tree | b63323dfd96ecd1cc3cd560939bd66bb43ec9c1c /OpenSim/ScriptEngine/Shared/EventParams.cs | |
parent | * Added IClientIM to IClientCore interfaces (diff) | |
download | opensim-SC_OLD-9511a8c76370f21e839114007dcd2b25c69b009a.zip opensim-SC_OLD-9511a8c76370f21e839114007dcd2b25c69b009a.tar.gz opensim-SC_OLD-9511a8c76370f21e839114007dcd2b25c69b009a.tar.bz2 opensim-SC_OLD-9511a8c76370f21e839114007dcd2b25c69b009a.tar.xz |
Work in progress on SECS stuff. Have been holding it off until after 0.6 release. Still messy as hell and doesn't really work yet. Will undergo dramatic changes. AND MOST IMPORTANTLY: Will be conformed to work in coop with todays DNE and XEngine, hopefully one day providing a common interface for all components.
Diffstat (limited to 'OpenSim/ScriptEngine/Shared/EventParams.cs')
-rw-r--r-- | OpenSim/ScriptEngine/Shared/EventParams.cs | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/OpenSim/ScriptEngine/Shared/EventParams.cs b/OpenSim/ScriptEngine/Shared/EventParams.cs new file mode 100644 index 0000000..661086e --- /dev/null +++ b/OpenSim/ScriptEngine/Shared/EventParams.cs | |||
@@ -0,0 +1,47 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using OpenMetaverse; | ||
5 | using OpenSim.Region.ScriptEngine.Shared; | ||
6 | |||
7 | namespace OpenSim.ScriptEngine.Shared | ||
8 | { | ||
9 | /// <summary> | ||
10 | /// Holds all the data required to execute a scripting event. | ||
11 | /// </summary> | ||
12 | public class EventParams | ||
13 | { | ||
14 | public string EventName; | ||
15 | public Object[] Params; | ||
16 | public Region.ScriptEngine.Shared.DetectParams[] DetectParams; | ||
17 | public uint LocalID; | ||
18 | public UUID ItemID; | ||
19 | |||
20 | public EventParams(uint localID, UUID itemID, string eventName, Object[] eventParams, DetectParams[] detectParams) | ||
21 | { | ||
22 | LocalID = localID; | ||
23 | ItemID = itemID; | ||
24 | EventName = eventName; | ||
25 | Params = eventParams; | ||
26 | DetectParams = detectParams; | ||
27 | } | ||
28 | public EventParams(uint localID, string eventName, Object[] eventParams, DetectParams[] detectParams) | ||
29 | { | ||
30 | LocalID = localID; | ||
31 | EventName = eventName; | ||
32 | Params = eventParams; | ||
33 | DetectParams = detectParams; | ||
34 | } | ||
35 | public void test(params object[] args) | ||
36 | { | ||
37 | string functionName = "test"; | ||
38 | test2(functionName, args); | ||
39 | } | ||
40 | public void test2(string functionName, params object[] args) | ||
41 | { | ||
42 | System.Console.WriteLine(functionName, args); | ||
43 | } | ||
44 | |||
45 | |||
46 | } | ||
47 | } \ No newline at end of file | ||