diff options
author | Melanie Thielker | 2008-09-13 14:40:42 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-09-13 14:40:42 +0000 |
commit | fdb24c46ac02447e05662227180927c9bd270276 (patch) | |
tree | 7a56f38ab6bc761330e72d5c0b04a3c16a8dfbb1 /OpenSim/Region/ScriptEngine/XEngine | |
parent | Change all LSL functions to return LSL types instead of base types. (diff) | |
download | opensim-SC-fdb24c46ac02447e05662227180927c9bd270276.zip opensim-SC-fdb24c46ac02447e05662227180927c9bd270276.tar.gz opensim-SC-fdb24c46ac02447e05662227180927c9bd270276.tar.bz2 opensim-SC-fdb24c46ac02447e05662227180927c9bd270276.tar.xz |
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
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 8 |
1 files changed, 8 insertions, 0 deletions
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 | |||
869 | 869 | ||
870 | DoBackup(new Object[] {0}); | 870 | DoBackup(new Object[] {0}); |
871 | } | 871 | } |
872 | |||
873 | public IScriptApi GetApi(UUID itemID, string name) | ||
874 | { | ||
875 | IScriptInstance instance = GetInstance(itemID); | ||
876 | if (instance == null) | ||
877 | return null; | ||
878 | return instance.GetApi(name); | ||
879 | } | ||
872 | } | 880 | } |
873 | } | 881 | } |