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
This commit is contained in:
Melanie Thielker
2008-09-13 14:40:42 +00:00
parent 9222c5154e
commit fdb24c46ac
4 changed files with 18 additions and 0 deletions

View File

@@ -714,5 +714,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
throw new Exception("Completed persistence save, but no file was created");
}
}
public IScriptApi GetApi(string name)
{
if (m_Apis.ContainsKey(name))
return m_Apis[name];
return null;
}
}
}