29 using System.Collections;
30 using System.Collections.Generic;
31 using System.Reflection;
33 using OpenSim.Region.ScriptEngine.Interfaces;
35 namespace OpenSim.Region.ScriptEngine.Shared.Api
41 private Dictionary<string,Type> m_Apis =
new Dictionary<string,Type>();
45 if (m_Apis.Count <= 0)
47 Assembly a = Assembly.GetExecutingAssembly();
49 Type[] types = a.GetExportedTypes();
51 foreach (Type t
in types)
53 string name = t.ToString();
54 int idx = name.LastIndexOf(
'.');
56 name = name.Substring(idx+1);
58 if (name.EndsWith(
"_Api"))
60 name = name.Substring(0, name.Length - 4);
68 return new List<string>(m_Apis.Keys).ToArray();
73 if (!m_Apis.ContainsKey(api))
IScriptApi CreateApi(string api)
Interactive OpenSim region server