mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
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.
This commit is contained in:
47
OpenSim/ScriptEngine/Shared/EventParams.cs
Normal file
47
OpenSim/ScriptEngine/Shared/EventParams.cs
Normal file
@@ -0,0 +1,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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user