mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user