aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/XEngine.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/XEngine.cs17
1 files changed, 16 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
index a17a018..8a02590 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
@@ -53,6 +53,7 @@ using OpenSim.Region.ScriptEngine.Shared.Instance;
53using OpenSim.Region.ScriptEngine.Shared.Api; 53using OpenSim.Region.ScriptEngine.Shared.Api;
54using OpenSim.Region.ScriptEngine.Shared.Api.Plugins; 54using OpenSim.Region.ScriptEngine.Shared.Api.Plugins;
55using OpenSim.Region.ScriptEngine.Interfaces; 55using OpenSim.Region.ScriptEngine.Interfaces;
56using OpenSim.Region.ScriptEngine.XEngine.ScriptBase;
56using Timer = OpenSim.Region.ScriptEngine.Shared.Api.Plugins.Timer; 57using Timer = OpenSim.Region.ScriptEngine.Shared.Api.Plugins.Timer;
57 58
58using ScriptCompileQueue = OpenSim.Framework.LocklessQueue<object[]>; 59using ScriptCompileQueue = OpenSim.Framework.LocklessQueue<object[]>;
@@ -176,6 +177,12 @@ namespace OpenSim.Region.ScriptEngine.XEngine
176 get { return "XEngine"; } 177 get { return "XEngine"; }
177 } 178 }
178 179
180 public string ScriptBaseClassName { get; private set; }
181
182 public ParameterInfo[] ScriptBaseClassParameters { get; private set; }
183
184 public string[] ScriptReferencedAssemblies { get; private set; }
185
179 public Scene World 186 public Scene World
180 { 187 {
181 get { return m_Scene; } 188 get { return m_Scene; }
@@ -230,6 +237,12 @@ namespace OpenSim.Region.ScriptEngine.XEngine
230 237
231 m_ScriptConfig = configSource.Configs["XEngine"]; 238 m_ScriptConfig = configSource.Configs["XEngine"];
232 m_ConfigSource = configSource; 239 m_ConfigSource = configSource;
240
241 ScriptBaseClassName = typeof(XEngineScriptBase).FullName;
242 ScriptBaseClassParameters = typeof(XEngineScriptBase).GetConstructor(new Type[] { typeof(WaitHandle) }).GetParameters();
243 ScriptReferencedAssemblies = new string[] { Path.GetFileName(typeof(XEngineScriptBase).Assembly.Location) };
244
245 Console.WriteLine("ASSEMBLY NAME: {0}", ScriptReferencedAssemblies[0]);
233 } 246 }
234 247
235 public void AddRegion(Scene scene) 248 public void AddRegion(Scene scene)
@@ -1179,7 +1192,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
1179 } 1192 }
1180 catch (Exception e) 1193 catch (Exception e)
1181 { 1194 {
1182// m_log.ErrorFormat("[XEngine]: Exception when rezzing script {0}{1}", e.Message, e.StackTrace); 1195// m_log.ErrorFormat(
1196// "[XEngine]: Exception when rezzing script with item ID {0}, {1}{2}",
1197// itemID, e.Message, e.StackTrace);
1183 1198
1184 // try 1199 // try
1185 // { 1200 // {