123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- using System;
- using System.Reflection;
- using System.Collections.Generic;
- using OpenMetaverse;
- namespace OpenSim.Region.Framework.Interfaces
- {
- public delegate void ScriptCommand(UUID script, string id, string module, string command, string k);
-
-
-
-
-
-
- public interface IScriptModuleComms
- {
-
-
-
- event ScriptCommand OnScriptCommand;
-
-
-
-
-
- void RegisterScriptInvocation(object target, string method);
-
-
-
-
-
- void RegisterScriptInvocation(object target, MethodInfo method);
-
-
-
-
-
- void RegisterScriptInvocation(object target, string[] methods);
-
-
-
-
-
- void RegisterScriptInvocation(Type target, string[] methods);
-
-
-
-
-
-
- void RegisterScriptInvocations(IRegionModuleBase target);
-
-
-
-
- Delegate[] GetScriptInvocationList();
- Delegate LookupScriptInvocation(string fname);
- string LookupModInvocation(string fname);
- Type[] LookupTypeSignature(string fname);
- Type LookupReturnType(string fname);
- object InvokeOperation(UUID hostId, UUID scriptId, string fname, params object[] parms);
-
-
-
-
-
-
-
- void DispatchReply(UUID scriptId, int code, string text, string key);
-
-
-
-
-
-
-
-
-
-
-
-
- void RegisterConstant(string cname, object value);
-
-
-
-
-
- void RegisterConstants(IRegionModuleBase target);
-
-
-
-
-
- object LookupModConstant(string cname);
- Dictionary<string, object> GetConstants();
-
- void RaiseEvent(UUID script, string id, string module, string command, string key);
- }
- [AttributeUsage(AttributeTargets.Method)]
- public class ScriptInvocationAttribute : Attribute
- { }
- [AttributeUsage(AttributeTargets.Field)]
- public class ScriptConstantAttribute : Attribute
- { }
- }
|