From 9511a8c76370f21e839114007dcd2b25c69b009a Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Sat, 8 Nov 2008 17:35:48 +0000 Subject: 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. --- OpenSim/ScriptEngine/Shared/EventParams.cs | 47 ++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 OpenSim/ScriptEngine/Shared/EventParams.cs (limited to 'OpenSim/ScriptEngine/Shared/EventParams.cs') 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 @@ +using System; +using System.Collections.Generic; +using System.Text; +using OpenMetaverse; +using OpenSim.Region.ScriptEngine.Shared; + +namespace OpenSim.ScriptEngine.Shared +{ + /// + /// Holds all the data required to execute a scripting event. + /// + public class EventParams + { + public string EventName; + public Object[] Params; + public Region.ScriptEngine.Shared.DetectParams[] DetectParams; + public uint LocalID; + public UUID ItemID; + + public EventParams(uint localID, UUID itemID, string eventName, Object[] eventParams, DetectParams[] detectParams) + { + LocalID = localID; + ItemID = itemID; + EventName = eventName; + Params = eventParams; + DetectParams = detectParams; + } + public EventParams(uint localID, string eventName, Object[] eventParams, DetectParams[] detectParams) + { + LocalID = localID; + EventName = eventName; + Params = eventParams; + DetectParams = detectParams; + } + public void test(params object[] args) + { + string functionName = "test"; + test2(functionName, args); + } + public void test2(string functionName, params object[] args) + { + System.Console.WriteLine(functionName, args); + } + + + } +} \ No newline at end of file -- cgit v1.1