mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
Remove OpenSim.TestSuite
Hasn't been touched since 2009 and wasn't more than another copy of pCampBot
This commit is contained in:
@@ -165,18 +165,20 @@ namespace pCampBot
|
||||
/// </summary>
|
||||
/// <param name="callbot"></param>
|
||||
/// <param name="eventt"></param>
|
||||
public void handlebotEvent(PhysicsBot callbot, EventType eventt)
|
||||
private void handlebotEvent(PhysicsBot callbot, EventType eventt)
|
||||
{
|
||||
switch (eventt)
|
||||
{
|
||||
case EventType.CONNECTED:
|
||||
m_log.Info("[" + callbot.FirstName + " " + callbot.LastName + "]: Connected");
|
||||
numbots++;
|
||||
// m_log.InfoFormat("NUMBOTS {0}", numbots);
|
||||
break;
|
||||
case EventType.DISCONNECTED:
|
||||
m_log.Info("[" + callbot.FirstName + " " + callbot.LastName + "]: Disconnected");
|
||||
m_td[m_lBot.IndexOf(callbot)].Abort();
|
||||
numbots--;
|
||||
// m_log.InfoFormat("NUMBOTS {0}", numbots);
|
||||
if (numbots <= 0)
|
||||
Environment.Exit(0);
|
||||
break;
|
||||
|
||||
@@ -29,19 +29,23 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Threading;
|
||||
using System.Timers;
|
||||
using log4net;
|
||||
using OpenMetaverse;
|
||||
using OpenMetaverse.Assets;
|
||||
using Nini.Config;
|
||||
using OpenSim.Framework;
|
||||
using OpenSim.Framework.Console;
|
||||
using Timer=System.Timers.Timer;
|
||||
using Timer = System.Timers.Timer;
|
||||
|
||||
namespace pCampBot
|
||||
{
|
||||
public class PhysicsBot
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
public delegate void AnEvent(PhysicsBot callbot, EventType someevent); // event delegate for bot events
|
||||
public IConfig startupConfig; // bot config, passed from BotManager
|
||||
|
||||
@@ -384,6 +388,7 @@ namespace pCampBot
|
||||
|
||||
public void Network_OnDisconnected(object sender, DisconnectedEventArgs args)
|
||||
{
|
||||
// m_log.ErrorFormat("Fired Network_OnDisconnected");
|
||||
if (OnDisconnected != null)
|
||||
{
|
||||
OnDisconnected(this, EventType.DISCONNECTED);
|
||||
|
||||
Reference in New Issue
Block a user