Massive tab and trailing space cleanup

This commit is contained in:
Melanie Thielker
2017-01-05 19:07:37 +00:00
parent e88e2945e9
commit b16abc8166
959 changed files with 23646 additions and 23646 deletions

View File

@@ -38,7 +38,7 @@ namespace OpenSim.Tools.LSL.Compiler
class Program
{
// Commented out because generated warning since m_positionMap could never be anything other than null
// private static Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> m_positionMap;
// private static Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> m_positionMap;
private static CSharpCodeProvider CScodeProvider = new CSharpCodeProvider();
static void Main(string[] args)
@@ -154,7 +154,7 @@ namespace OpenSim.Tools.LSL.Compiler
lslPos.Key - 1, lslPos.Value - 1,
CompErr.ErrorNumber, text, severity);
}
disp = "Completed with errors";
if (!File.Exists(OutFile))

View File

@@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("OpenSim.Tools.lslc")]
@@ -14,8 +14,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -25,7 +25,7 @@ using System.Runtime.InteropServices;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//

View File

@@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("OpenSim.Tools.Configger")]
@@ -14,8 +14,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -25,7 +25,7 @@ using System.Runtime.InteropServices;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//

View File

@@ -58,7 +58,7 @@ namespace OpenSim.Tools.Configger
vol = vcomps[0];
}
}
string[] comps = path.Split(new char[] {Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar}, StringSplitOptions.RemoveEmptyEntries);
// Glob

View File

@@ -37,7 +37,7 @@ namespace pCampBot
public abstract class AbstractBehaviour : IBehaviour
{
/// <summary>
/// Abbreviated name of this behaviour.
/// Abbreviated name of this behaviour.
/// </summary>
public string AbbreviatedName { get; protected set; }
@@ -56,7 +56,7 @@ namespace pCampBot
Bot = bot;
}
public virtual void Close()
public virtual void Close()
{
Interrupt();
}

View File

@@ -47,10 +47,10 @@ namespace pCampBot
public const int m_regionCrossingTimeout = 1000 * 60;
public CrossBehaviour()
{
public CrossBehaviour()
{
AbbreviatedName = "c";
Name = "Cross";
Name = "Cross";
}
public override void Action()

View File

@@ -42,10 +42,10 @@ namespace pCampBot
/// </remarks>
public class GrabbingBehaviour : AbstractBehaviour
{
public GrabbingBehaviour()
{
public GrabbingBehaviour()
{
AbbreviatedName = "g";
Name = "Grabbing";
Name = "Grabbing";
}
public override void Action()

View File

@@ -45,8 +45,8 @@ namespace pCampBot
private Stopwatch m_StopWatch = new Stopwatch();
private List<UUID> m_processed = new List<UUID>();
public InventoryDownloadBehaviour()
{
public InventoryDownloadBehaviour()
{
AbbreviatedName = "inv";
Name = "Inventory";
}
@@ -113,7 +113,7 @@ namespace pCampBot
}
public override void Interrupt()
public override void Interrupt()
{
m_interruptEvent.Set();
}

View File

@@ -38,10 +38,10 @@ namespace pCampBot
/// </summary>
public class NoneBehaviour : AbstractBehaviour
{
public NoneBehaviour()
{
public NoneBehaviour()
{
AbbreviatedName = "n";
Name = "None";
Name = "None";
}
public override void Action()
@@ -52,7 +52,7 @@ namespace pCampBot
Bot.Client.Self.Movement.Stop = false;
}
public override void Interrupt()
public override void Interrupt()
{
m_interruptEvent.Set();
}

View File

@@ -45,10 +45,10 @@ namespace pCampBot
{
// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public PhysicsBehaviour2()
{
public PhysicsBehaviour2()
{
AbbreviatedName = "ph2";
Name = "Physics2";
Name = "Physics2";
}
private const int TIME_WALKING = 5 * 10; // 5 seconds

View File

@@ -43,10 +43,10 @@ namespace pCampBot
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public TeleportBehaviour()
public TeleportBehaviour()
{
AbbreviatedName = "t";
Name = "Teleport";
Name = "Teleport";
}
public override void Action()

View File

@@ -38,7 +38,7 @@ namespace pCampBot
/// <summary>
/// This behavior is for the systematic study of some performance improvements made
/// for OSCC'13.
/// Do nothing, but send AgentUpdate packets all the time that have only slightly
/// Do nothing, but send AgentUpdate packets all the time that have only slightly
/// different state. The delta of difference will be filtered by OpenSim early on
/// in the packet processing pipeline. These filters did not exist before OSCC'13.
/// </summary>
@@ -46,10 +46,10 @@ namespace pCampBot
{
// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public TwitchyBehaviour()
{
public TwitchyBehaviour()
{
AbbreviatedName = "tw";
Name = "Twitchy";
Name = "Twitchy";
}
private const float TWITCH = 0.0001f;

View File

@@ -57,10 +57,10 @@ namespace pCampBot
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public int PacketDebugLevel
{
public int PacketDebugLevel
{
get { return m_packetDebugLevel; }
set
set
{
if (value == m_packetDebugLevel)
return;
@@ -217,7 +217,7 @@ namespace pCampBot
Dictionary<string, IBehaviour> updatedBehaviours = new Dictionary<string, IBehaviour>(Behaviours);
if (!updatedBehaviours.ContainsKey(behaviour.AbbreviatedName))
{
{
behaviour.Initialize(this);
updatedBehaviours.Add(behaviour.AbbreviatedName, behaviour);
Behaviours = updatedBehaviours;
@@ -313,7 +313,7 @@ namespace pCampBot
foreach (IBehaviour behaviour in Behaviours.Values)
{
// Thread.Sleep(Random.Next(3000, 10000));
// m_log.DebugFormat("[pCAMPBOT]: For {0} performing action {1}", Name, b.GetType());
behaviour.Action();
}
@@ -329,7 +329,7 @@ namespace pCampBot
public void Disconnect()
{
ConnectionState = ConnectionState.Disconnecting;
foreach (IBehaviour behaviour in Behaviours.Values)
behaviour.Close();
@@ -337,7 +337,7 @@ namespace pCampBot
}
public void Connect()
{
{
Thread connectThread = new Thread(ConnectInternal);
connectThread.Name = Name;
connectThread.IsBackground = true;
@@ -508,7 +508,7 @@ namespace pCampBot
InventoryFolder clothfolder = FindClothingFolder();
UUID transid = UUID.Random();
List<InventoryBase> listwearables = new List<InventoryBase>();
for (int i = 0; i < clothing.Length; i++)
{
UUID assetID = UUID.Random();
@@ -707,7 +707,7 @@ namespace pCampBot
m_log.Warn(string.Format("Error requesting {0} {1}", texture ? "texture" : "mesh", assetID), e);
}
}
public void Asset_TextureCallback_Texture(TextureRequestState state, AssetTexture assetTexture)
{
if (state == TextureRequestState.Finished)
@@ -722,7 +722,7 @@ namespace pCampBot
lock (Manager.AssetsReceived)
Manager.AssetsReceived[assetMesh.AssetID] = success;
}
public void Asset_ReceivedCallback(AssetDownload transfer, Asset asset)
{
lock (Manager.AssetsReceived)
@@ -733,7 +733,7 @@ namespace pCampBot
// SaveAsset((AssetWearable) asset);
// }
}
private void PacketReceivedDebugHandler(object o, PacketReceivedEventArgs args)
{
Packet p = args.Packet;
@@ -741,7 +741,7 @@ namespace pCampBot
Simulator s = args.Simulator;
m_log.DebugFormat(
"[BOT]: Bot {0} received from {1} packet {2} #{3}, rel {4}, res {5}",
"[BOT]: Bot {0} received from {1} packet {2} #{3}, rel {4}, res {5}",
Name, s.Name, p.Type, h.Sequence, h.Reliable, h.Resent);
}
}

View File

@@ -219,14 +219,14 @@ namespace pCampBot
HandleDisconnect);
m_console.Commands.AddCommand(
"Bots", false, "add behaviour", "add behaviour <abbreviated-name> [<bot-number>]",
"Bots", false, "add behaviour", "add behaviour <abbreviated-name> [<bot-number>]",
"Add a behaviour to a bot",
"If no bot number is specified then behaviour is added to all bots.\n"
+ "Can be performed on connected or disconnected bots.",
HandleAddBehaviour);
m_console.Commands.AddCommand(
"Bots", false, "remove behaviour", "remove behaviour <abbreviated-name> [<bot-number>]",
"Bots", false, "remove behaviour", "remove behaviour <abbreviated-name> [<bot-number>]",
"Remove a behaviour from a bot",
"If no bot number is specified then behaviour is added to all bots.\n"
+ "Can be performed on connected or disconnected bots.",
@@ -250,14 +250,14 @@ namespace pCampBot
"Bots", false, "show bots", "show bots", "Shows the status of all bots.", HandleShowBotsStatus);
m_console.Commands.AddCommand(
"Bots", false, "show bot", "show bot <bot-number>",
"Bots", false, "show bot", "show bot <bot-number>",
"Shows the detailed status and settings of a particular bot.", HandleShowBotStatus);
m_console.Commands.AddCommand(
"Debug",
false,
"debug lludp packet",
"debug lludp packet <level> <avatar-first-name> <avatar-last-name>",
"Debug",
false,
"debug lludp packet",
"debug lludp packet <level> <avatar-first-name> <avatar-last-name>",
"Turn on received packet logging.",
"If level > 0 then all received packets that are not duplicates are logged.\n"
+ "If level <= 0 then no received packets are logged.",
@@ -317,7 +317,7 @@ namespace pCampBot
// We must give each bot its own list of instantiated behaviours since they store state.
List<IBehaviour> behaviours = new List<IBehaviour>();
// Hard-coded for now
// Hard-coded for now
foreach (string abName in abbreviatedNames)
{
IBehaviour newBehaviour = null;
@@ -534,7 +534,7 @@ namespace pCampBot
}
private void HandleConnect(string module, string[] cmd)
{
{
lock (m_bots)
{
int botsToConnect;
@@ -607,7 +607,7 @@ namespace pCampBot
}
MainConsole.Instance.OutputFormat(
"Added behaviours {0} to bot {1}",
"Added behaviours {0} to bot {1}",
string.Join(", ", behavioursAdded.ConvertAll<string>(b => b.Name).ToArray()), bot.Name);
}
}
@@ -665,7 +665,7 @@ namespace pCampBot
}
MainConsole.Instance.OutputFormat(
"Removed behaviours {0} from bot {1}",
"Removed behaviours {0} from bot {1}",
string.Join(", ", behavioursRemoved.ConvertAll<string>(b => b.Name).ToArray()), bot.Name);
}
}
@@ -779,7 +779,7 @@ namespace pCampBot
string rawValue = cmd[3];
if (key == "SEND_AGENT_UPDATES")
{
{
bool newSendAgentUpdatesSetting;
if (!ConsoleUtil.TryParseConsoleBool(MainConsole.Instance, rawValue, out newSendAgentUpdatesSetting))
@@ -873,10 +873,10 @@ namespace pCampBot
totals[bot.ConnectionState]++;
cdt.AddRow(
bot.Name,
currentSim != null ? currentSim.Name : "(none)",
bot.ConnectionState,
bot.SimulatorsCount,
bot.Name,
currentSim != null ? currentSim.Name : "(none)",
bot.ConnectionState,
bot.SimulatorsCount,
string.Join(",", bot.Behaviours.Keys.ToArray()));
}
}
@@ -930,7 +930,7 @@ namespace pCampBot
ConsoleDisplayList statusCdl = new ConsoleDisplayList();
statusCdl.AddRow(
"Behaviours",
"Behaviours",
string.Join(", ", bot.Behaviours.Values.ToList().ConvertAll<string>(b => b.Name).ToArray()));
GridClient botClient = bot.Client;

View File

@@ -32,7 +32,7 @@ namespace pCampBot.Interfaces
public interface IBehaviour
{
/// <summary>
/// Abbreviated name of this behaviour.
/// Abbreviated name of this behaviour.
/// </summary>
string AbbreviatedName { get; }

View File

@@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("pCampBot")]
@@ -14,8 +14,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -25,7 +25,7 @@ using System.Runtime.InteropServices;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//

View File

@@ -64,8 +64,8 @@ namespace pCampBot
Help();
}
else if (
commandLineConfig.Get("firstname") == null
|| commandLineConfig.Get("lastname") == null
commandLineConfig.Get("firstname") == null
|| commandLineConfig.Get("lastname") == null
|| commandLineConfig.Get("password") == null)
{
Console.WriteLine("ERROR: You must supply a firstname, lastname and password for the bots.");
@@ -93,7 +93,7 @@ namespace pCampBot
if (botConfig != null)
{
bm.InitBotSendAgentUpdates
bm.InitBotSendAgentUpdates
= botConfig.GetBoolean("SendAgentUpdates", bm.InitBotSendAgentUpdates);
bm.InitBotRequestObjectTextures
= botConfig.GetBoolean("RequestObjectTextures", bm.InitBotRequestObjectTextures);