Formatting cleanup.

0.6.0-stable
Jeff Ames 2008-03-18 15:30:38 +00:00
parent aad69b9018
commit e5b9144282
13 changed files with 331 additions and 322 deletions

View File

@ -723,13 +723,19 @@ namespace OpenSim
break;
case "scene-debug":
if (cmdparams.Length == 3) {
if (m_sceneManager.CurrentScene == null) {
if (cmdparams.Length == 3)
{
if (m_sceneManager.CurrentScene == null)
{
m_console.Error("CONSOLE", "Please use 'change-region <regioname>' first");
} else {
}
else
{
m_sceneManager.CurrentScene.SetSceneCoreDebug(!System.Convert.ToBoolean(cmdparams[0]), !System.Convert.ToBoolean(cmdparams[1]), !System.Convert.ToBoolean(cmdparams[2]));
}
} else {
}
else
{
m_console.Error("scene-debug <scripting> <collisions> <physics> (where inside <> is true/false)");
}
break;
@ -772,15 +778,15 @@ namespace OpenSim
break;
case "threads":
//m_console.Notice("THREAD", Process.GetCurrentProcess().Threads.Count + " threads running:");
//int _tc = 0;
// m_console.Notice("THREAD", Process.GetCurrentProcess().Threads.Count + " threads running:");
// int _tc = 0;
//foreach (ProcessThread pt in Process.GetCurrentProcess().Threads)
//{
// _tc++;
// m_console.Notice("THREAD", _tc + ": ID: " + pt.Id + ", Started: " + pt.StartTime.ToString() + ", CPU time: " + pt.TotalProcessorTime + ", Pri: " + pt.BasePriority.ToString() + ", State: " + pt.ThreadState.ToString());
// foreach (ProcessThread pt in Process.GetCurrentProcess().Threads)
// {
// _tc++;
// m_console.Notice("THREAD", _tc + ": ID: " + pt.Id + ", Started: " + pt.StartTime.ToString() + ", CPU time: " + pt.TotalProcessorTime + ", Pri: " + pt.BasePriority.ToString() + ", State: " + pt.ThreadState.ToString());
// }
//}
List<Thread> threads = OpenSim.Framework.ThreadTracker.GetThreads();
if (threads == null)
{
@ -797,7 +803,6 @@ namespace OpenSim
}
}
break;
case "save-xml":
if (cmdparams.Length > 0)
@ -1191,6 +1196,7 @@ namespace OpenSim
}
#endregion
// TODO: remove me!! (almost same as XmlRpcCommand)
public object ProxyCommand(string url, string methodName, params object[] args)
{
@ -1257,7 +1263,6 @@ namespace OpenSim
accounter++;
});
regionnum = accounter;
}
}
}

View File

@ -633,10 +633,10 @@ namespace OpenSim.Region.Communications.OGS1
m_log.Warn("[OGS1 GRID SERVICES]: remoting object not found");
}
remObject = null;
//m_log.Info("[INTER]: " +
//gdebugRegionName +
//": OGS1 tried to Update Child Agent data on outside region and got " +
//retValue.ToString());
// m_log.Info("[INTER]: " +
// gdebugRegionName +
// ": OGS1 tried to Update Child Agent data on outside region and got " +
// retValue.ToString());
return retValue;
}

View File

@ -91,7 +91,8 @@ namespace OpenSim.Region.Environment.Modules
// setup IRC Relay
if (m_irc == null) { m_irc = new IRCChatModule(config); }
if (m_irc_connector == null) {
if (m_irc_connector == null)
{
m_irc_connector = new Thread(IRCConnectRun);
m_irc_connector.Name = "IRCConnectorThread";
m_irc_connector.IsBackground = true;
@ -106,12 +107,14 @@ namespace OpenSim.Region.Environment.Modules
try
{
//m_irc.Connect(m_scenes);
if (m_irc_connector == null) {
if (m_irc_connector == null)
{
m_irc_connector = new Thread(IRCConnectRun);
m_irc_connector.Name = "IRCConnectorThread";
m_irc_connector.IsBackground = true;
}
if (!m_irc_connector.IsAlive) {
if (!m_irc_connector.IsAlive)
{
m_irc_connector.Start();
OpenSim.Framework.ThreadTracker.Add(m_irc_connector);
}
@ -255,11 +258,14 @@ namespace OpenSim.Region.Environment.Modules
// In a non-blocking way. Eventually the connector will get it started
try
{
if (m_irc_connector == null) { m_irc_connector = new Thread(IRCConnectRun);
if (m_irc_connector == null)
{
m_irc_connector = new Thread(IRCConnectRun);
m_irc_connector.Name = "IRCConnectorThread";
m_irc_connector.IsBackground = true;
}
if (!m_irc_connector.IsAlive) {
if (!m_irc_connector.IsAlive)
{
m_irc_connector.Start();
OpenSim.Framework.ThreadTracker.Add(m_irc_connector);
}
@ -298,7 +304,6 @@ namespace OpenSim.Region.Environment.Modules
if ((m_irc.Enabled)&&(!m_irc.Connected))
{
m_irc.Connect(m_scenes);
}
Thread.Sleep(15000);
}

View File

@ -126,7 +126,8 @@ namespace OpenSim.Region.Environment.Modules
}
/* private void CairoDraw(string data, System.Drawing.Graphics graph)
/*
private void CairoDraw(string data, System.Drawing.Graphics graph)
{
using (Win32Surface draw = new Win32Surface(graph.GetHdc()))
{
@ -160,7 +161,8 @@ namespace OpenSim.Region.Environment.Modules
}
}
graph.ReleaseHdc();
}*/
}
*/
private void GDIDraw(string data, System.Drawing.Graphics graph)
{
@ -173,7 +175,6 @@ namespace OpenSim.Region.Environment.Modules
char[] partsDelimiter = { ',' };
string[] lines = data.Split(lineDelimiter);
foreach (string line in lines)
{
string nextLine = line.Trim();

View File

@ -227,6 +227,7 @@ namespace OpenSim.Region.Environment.Scenes
get { return m_innerScene.RestorePresences; }
set { m_innerScene.RestorePresences = value; }
}
#endregion
#region Constructors
@ -1048,7 +1049,6 @@ namespace OpenSim.Region.Environment.Scenes
m_log.Info("[SCENE]: Loaded " + PrimsFromDB.Count.ToString() + " SceneObject(s)");
}
/// <summary>
/// Returns a new unallocated primitive ID
/// </summary>
@ -1269,12 +1269,14 @@ namespace OpenSim.Region.Environment.Scenes
}
}
}
public void IncomingInterRegionPrimGroup(ulong regionHandle, LLUUID primID, string objXMLData)
{
m_log.Warn("{[INTERREGION]: A new prim arrived from a neighbor");
m_sceneXmlLoader.LoadGroupFromXml2String(objXMLData);
}
#endregion
#region Add/Remove Avatar Methods
@ -1903,8 +1905,6 @@ namespace OpenSim.Region.Environment.Scenes
}
}
#endregion
#region Other Methods

View File

@ -115,12 +115,11 @@ namespace OpenSim.Region.Environment.Scenes
protected AvatarAppearance m_appearance;
private readonly List<ulong> m_knownChildRegions = new List<ulong>();
//neighbouring regions we have enabled a child agent in
private readonly List<ulong> m_knownChildRegions = new List<ulong>();
private SignificantClientMovement handlerSignificantClientMovement = null; //OnSignificantClientMovement;
/// <summary>
/// Implemented Control Flags
/// </summary>
@ -1792,7 +1791,6 @@ namespace OpenSim.Region.Environment.Scenes
info.AddValue("FullID", FullID.UUID);
info.AddValue("LastFullUpdateTime", LastFullUpdateTime);
info.AddValue("LastTerseUpdateTime", LastTerseUpdateTime);
}
}