aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs26
-rw-r--r--OpenSim/Region/Interfaces/IScriptModule.cs3
-rw-r--r--OpenSim/Region/ScriptEngine/Interfaces/IScriptEngine.cs3
3 files changed, 29 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
index d4346e4..2f08322 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
@@ -32,6 +32,7 @@ using OpenMetaverse;
32using log4net; 32using log4net;
33using OpenSim.Framework; 33using OpenSim.Framework;
34using OpenSim.Framework.Communications.Cache; 34using OpenSim.Framework.Communications.Cache;
35using OpenSim.Region.Interfaces;
35using OpenSim.Region.Environment.Interfaces; 36using OpenSim.Region.Environment.Interfaces;
36using OpenSim.Region.Environment.Scenes.Scripting; 37using OpenSim.Region.Environment.Scenes.Scripting;
37 38
@@ -763,5 +764,30 @@ namespace OpenSim.Region.Environment.Scenes
763 764
764 return ret; 765 return ret;
765 } 766 }
767
768 string[] GetScriptAssemblies()
769 {
770 IScriptModule[] engines = m_parentGroup.Scene.RequestModuleInterfaces<IScriptModule>();
771
772 List<string> ret = new List<string>();
773
774 foreach (TaskInventoryItem item in m_taskInventory.Values)
775 {
776 if (item.InvType == 10)
777 {
778 foreach (IScriptModule e in engines)
779 {
780 string n = e.GetAssemblyName(item.ItemID);
781 if (n != "")
782 {
783 if (!ret.Contains(n))
784 ret.Add(n);
785 break;
786 }
787 }
788 }
789 }
790 return ret.ToArray();
791 }
766 } 792 }
767} 793}
diff --git a/OpenSim/Region/Interfaces/IScriptModule.cs b/OpenSim/Region/Interfaces/IScriptModule.cs
index e01b472..9dca862 100644
--- a/OpenSim/Region/Interfaces/IScriptModule.cs
+++ b/OpenSim/Region/Interfaces/IScriptModule.cs
@@ -34,5 +34,8 @@ namespace OpenSim.Region.Interfaces
34 public interface IScriptModule 34 public interface IScriptModule
35 { 35 {
36 string ScriptEngineName { get; } 36 string ScriptEngineName { get; }
37
38 string GetAssemblyName(UUID itemID);
39 string GetXMLState(UUID itemID);
37 } 40 }
38} 41}
diff --git a/OpenSim/Region/ScriptEngine/Interfaces/IScriptEngine.cs b/OpenSim/Region/ScriptEngine/Interfaces/IScriptEngine.cs
index 29b83dc..db05d47 100644
--- a/OpenSim/Region/ScriptEngine/Interfaces/IScriptEngine.cs
+++ b/OpenSim/Region/ScriptEngine/Interfaces/IScriptEngine.cs
@@ -72,8 +72,5 @@ namespace OpenSim.Region.ScriptEngine.Interfaces
72 string ScriptEngineName { get; } 72 string ScriptEngineName { get; }
73 ILog Log { get; } 73 ILog Log { get; }
74 IScriptApi GetApi(UUID itemID, string name); 74 IScriptApi GetApi(UUID itemID, string name);
75
76 string GetAssemblyName(UUID itemID);
77 string GetXMLState(UUID itemID);
78 } 75 }
79} 76}