Add pCampbot "show bot" console command to show more detailed information on a particular bot (e.g. what sims they are connected to)

This commit is contained in:
Justin Clark-Casey (justincc)
2013-08-20 18:41:09 +01:00
parent 43940f6562
commit a3e1b278a1
2 changed files with 58 additions and 2 deletions

View File

@@ -97,11 +97,20 @@ namespace pCampBot
/// </summary>
public ConnectionState ConnectionState { get; private set; }
public List<Simulator> Simulators
{
get
{
lock (Client.Network.Simulators)
return new List<Simulator>(Client.Network.Simulators);
}
}
/// <summary>
/// The number of connections that this bot has to different simulators.
/// </summary>
/// <value>Includes both root and child connections.</value>
public int ConnectionsCount
public int SimulatorsCount
{
get
{