mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Changes to ScriptServer to (hopefully) make it compile on both .Net and Mono.
Some debug info for startup added to find bugs. ++
This commit is contained in:
@@ -2,26 +2,26 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using OpenSim.Region.Environment.Interfaces;
|
||||
using OpenSim.Region.ScriptEngine.DotNetEngine;
|
||||
using OpenSim.Region.ScriptEngine.Common;
|
||||
|
||||
namespace OpenSim.Grid.ScriptServer
|
||||
{
|
||||
public class RemotingObject : MarshalByRefObject
|
||||
public class RemotingObject : MarshalByRefObject, ScriptServerInterfaces.ServerRemotingObject
|
||||
{
|
||||
// This object will be exposed over remoting. It is a singleton, so it exists only in as one instance.
|
||||
|
||||
// Expose ScriptEngine directly for now ... this is not very secure :)
|
||||
// NOTE! CURRENTLY JUST HARDWIRED DOTNETENGINE!
|
||||
public OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine ScriptEngine = new OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine();
|
||||
//private OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine SE =
|
||||
// new OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine();
|
||||
//public OpenSim.Region.ScriptEngine.Common.ScriptServerInterfaces.RemoteEvents Events =
|
||||
// (OpenSim.Region.ScriptEngine.Common.ScriptServerInterfaces.RemoteEvents)SE.m_EventManager;
|
||||
|
||||
//private ScriptServerInterfaces.RemoteEvents _events = new abc;
|
||||
|
||||
/// <summary>
|
||||
/// Receives calls from remote grids.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine GetScriptEngine()
|
||||
ScriptServerInterfaces.RemoteEvents ScriptServerInterfaces.ServerRemotingObject.Events()
|
||||
{
|
||||
return ScriptEngine;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user