aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ScriptEngine/Shared/EventParams.cs
blob: 661086ec928ca818112eafa123fede55602e3a29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
using OpenSim.Region.ScriptEngine.Shared;

namespace OpenSim.ScriptEngine.Shared
{
    /// <summary>
    /// Holds all the data required to execute a scripting event.
    /// </summary>
    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);
        }


    }
}