* Applied Chillken patch #418 : newline-r2092.patch ; failed on assemblyinfo tho. Thanxs Chillken!
parent
77459edb70
commit
1294da6a93
|
@ -8,24 +8,24 @@ namespace OpenSim.Framework
|
||||||
{
|
{
|
||||||
public class Culture
|
public class Culture
|
||||||
{
|
{
|
||||||
private static readonly CultureInfo m_cultureInfo = new System.Globalization.CultureInfo("en-US", true);
|
private static readonly CultureInfo m_cultureInfo = new System.Globalization.CultureInfo("en-US", true);
|
||||||
|
|
||||||
public static NumberFormatInfo NumberFormatInfo
|
public static NumberFormatInfo NumberFormatInfo
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return m_cultureInfo.NumberFormat;
|
return m_cultureInfo.NumberFormat;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IFormatProvider FormatProvider
|
public static IFormatProvider FormatProvider
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return m_cultureInfo;
|
return m_cultureInfo;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void SetCurrentCulture()
|
public static void SetCurrentCulture()
|
||||||
{
|
{
|
||||||
Thread.CurrentThread.CurrentCulture = m_cultureInfo;
|
Thread.CurrentThread.CurrentCulture = m_cultureInfo;
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using OpenSim.Framework.Console;
|
using OpenSim.Framework.Console;
|
||||||
|
|
||||||
namespace OpenSim.Grid.ScriptServer
|
namespace OpenSim.Grid.ScriptServer
|
||||||
{
|
{
|
||||||
// Maintains connection and communication to a region
|
// Maintains connection and communication to a region
|
||||||
public class RegionConnectionManager: RegionBase
|
public class RegionConnectionManager: RegionBase
|
||||||
{
|
{
|
||||||
private LogBase m_log;
|
private LogBase m_log;
|
||||||
private ScriptServerMain m_ScriptServerMain;
|
private ScriptServerMain m_ScriptServerMain;
|
||||||
private object m_Connection;
|
private object m_Connection;
|
||||||
public RegionConnectionManager(ScriptServerMain scm, LogBase logger, object Connection)
|
public RegionConnectionManager(ScriptServerMain scm, LogBase logger, object Connection)
|
||||||
{
|
{
|
||||||
m_ScriptServerMain = scm;
|
m_ScriptServerMain = scm;
|
||||||
m_log = logger;
|
m_log = logger;
|
||||||
m_Connection = Connection;
|
m_Connection = Connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DataReceived(object objectID, object scriptID)
|
private void DataReceived(object objectID, object scriptID)
|
||||||
{
|
{
|
||||||
// TODO: HOW DO WE RECEIVE DATA? ASYNC?
|
// TODO: HOW DO WE RECEIVE DATA? ASYNC?
|
||||||
// ANYHOW WE END UP HERE?
|
// ANYHOW WE END UP HERE?
|
||||||
|
|
||||||
// NEW SCRIPT? ASK SCRIPTENGINE TO INITIALIZE IT
|
// NEW SCRIPT? ASK SCRIPTENGINE TO INITIALIZE IT
|
||||||
ScriptRez();
|
ScriptRez();
|
||||||
|
|
||||||
// EVENT? DELIVER EVENT DIRECTLY TO SCRIPTENGINE
|
// EVENT? DELIVER EVENT DIRECTLY TO SCRIPTENGINE
|
||||||
touch_start();
|
touch_start();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ namespace OpenSim.Grid.ScriptServer
|
||||||
{
|
{
|
||||||
private Thread listenThread;
|
private Thread listenThread;
|
||||||
|
|
||||||
private List<RegionConnectionManager> Regions = new List<RegionConnectionManager>();
|
private List<RegionConnectionManager> Regions = new List<RegionConnectionManager>();
|
||||||
|
|
||||||
private LogBase m_log;
|
private LogBase m_log;
|
||||||
private ScriptServerMain m_ScriptServerMain;
|
private ScriptServerMain m_ScriptServerMain;
|
||||||
|
@ -94,7 +94,7 @@ namespace OpenSim.Grid.ScriptServer
|
||||||
// - Add script to shared communication channel towards that region
|
// - Add script to shared communication channel towards that region
|
||||||
|
|
||||||
|
|
||||||
// TODO: FAKING A CONNECTION
|
// TODO: FAKING A CONNECTION
|
||||||
Regions.Add(new RegionConnectionManager(m_ScriptServerMain, m_log, null));
|
Regions.Add(new RegionConnectionManager(m_ScriptServerMain, m_log, null));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue