diff options
author | Melanie | 2012-03-26 03:20:40 +0100 |
---|---|---|
committer | Melanie | 2012-03-26 03:20:40 +0100 |
commit | c9c01d52265dde85aa8b8813fb00af8375240ebd (patch) | |
tree | 66c7b2644e387f200dffd07fb8a5ca566d3a7ebf /OpenSim/Region/OptionalModules | |
parent | Dynamically create the delegate type to reduce complexity in the caller (diff) | |
download | opensim-SC_OLD-c9c01d52265dde85aa8b8813fb00af8375240ebd.zip opensim-SC_OLD-c9c01d52265dde85aa8b8813fb00af8375240ebd.tar.gz opensim-SC_OLD-c9c01d52265dde85aa8b8813fb00af8375240ebd.tar.bz2 opensim-SC_OLD-c9c01d52265dde85aa8b8813fb00af8375240ebd.tar.xz |
Further simplify ScriptComms
Diffstat (limited to 'OpenSim/Region/OptionalModules')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs b/OpenSim/Region/OptionalModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs index e0683a0..7fc8759 100644 --- a/OpenSim/Region/OptionalModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs +++ b/OpenSim/Region/OptionalModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs | |||
@@ -128,8 +128,10 @@ namespace OpenSim.Region.CoreModules.Scripting.ScriptModuleComms | |||
128 | m_scriptModule.PostScriptEvent(script, "link_message", args); | 128 | m_scriptModule.PostScriptEvent(script, "link_message", args); |
129 | } | 129 | } |
130 | 130 | ||
131 | public void RegisterScriptInvocation(object target, MethodInfo mi) | 131 | public void RegisterScriptInvocation(object target, string meth) |
132 | { | 132 | { |
133 | MethodInfo mi = target.GetType()..GetMethod(meth, | ||
134 | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance); | ||
133 | Type delegateType; | 135 | Type delegateType; |
134 | 136 | ||
135 | var typeArgs = mi.GetParameters() | 137 | var typeArgs = mi.GetParameters() |