mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 22:05:36 +08:00
Allows to use the new script engine feature. Begin your script with
//XEngine: or //DotNetEnine: , optionally followed by a language like //XEngine:lsl, and it will be run on the chosen engine.
This commit is contained in:
@@ -194,6 +194,15 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
|
||||
|
||||
public void OnRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine)
|
||||
{
|
||||
if (script.Length > 15)
|
||||
{
|
||||
if (script.Substring(0, 15) == "//DotNetEngine:")
|
||||
{
|
||||
script = "//" + script.Substring(15);
|
||||
engine = "DotNetEngine";
|
||||
}
|
||||
}
|
||||
|
||||
if (engine != "DotNetEngine")
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user