From fdb24c46ac02447e05662227180927c9bd270276 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 13 Sep 2008 14:40:42 +0000 Subject: Provide a GetApi method on the IScriptEngine to get a named API reference This allows cross-api method calls on the implementation and also allows "Meta APIs" that only provide common functionality to other APIs --- OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/XEngine/XEngine.cs') diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 6582686..0dc1ade 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs @@ -869,5 +869,13 @@ namespace OpenSim.Region.ScriptEngine.XEngine DoBackup(new Object[] {0}); } + + public IScriptApi GetApi(UUID itemID, string name) + { + IScriptInstance instance = GetInstance(itemID); + if (instance == null) + return null; + return instance.GetApi(name); + } } } -- cgit v1.1