mirror of
https://github.com/opensim/opensim.git
synced 2026-05-25 19:25:41 +08:00
30 lines
659 B
C#
30 lines
659 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
using OpenSim.Region.Scripting;
|
|
using OpenSim.Region.Scripting.EmbeddedJVM;
|
|
|
|
namespace OpenSim.Region.Scripting
|
|
{
|
|
public class JavaEngine : IScriptCompiler
|
|
{
|
|
public string FileExt()
|
|
{
|
|
return ".java";
|
|
}
|
|
|
|
public Dictionary<string, IScript> compile(string filename)
|
|
{
|
|
JVMScript script = new JVMScript();
|
|
Dictionary<string, IScript> returns = new Dictionary<string, IScript>();
|
|
|
|
script.LoadScript(filename);
|
|
|
|
returns.Add(filename, script);
|
|
|
|
return returns;
|
|
}
|
|
}
|
|
}
|