mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
* Optimised using statements and namespace references across entire project (this took a while to run).
This commit is contained in:
@@ -26,16 +26,14 @@
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using libsecondlife;
|
||||
using libsecondlife.Packets;
|
||||
using Nini.Config;
|
||||
using System.Threading;
|
||||
using System.Timers;
|
||||
using libsecondlife;
|
||||
using Nini.Config;
|
||||
using OpenSim.Framework;
|
||||
using OpenSim.Framework.Console;
|
||||
using Timer = System.Timers.Timer;
|
||||
using Timer=System.Timers.Timer;
|
||||
|
||||
namespace pCampBot
|
||||
{
|
||||
@@ -54,7 +52,7 @@ namespace pCampBot
|
||||
|
||||
protected Timer m_action; // Action Timer
|
||||
|
||||
protected Random somthing = new Random(System.Environment.TickCount);// We do stuff randomly here
|
||||
protected Random somthing = new Random(Environment.TickCount);// We do stuff randomly here
|
||||
|
||||
//New instance of a SecondLife client
|
||||
public SecondLife client = new SecondLife();
|
||||
@@ -74,7 +72,7 @@ namespace pCampBot
|
||||
//We do our actions here. This is where one would
|
||||
//add additional steps and/or things the bot should do
|
||||
|
||||
void m_action_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
|
||||
void m_action_Elapsed(object sender, ElapsedEventArgs e)
|
||||
{
|
||||
//client.Throttle.Task = 500000f;
|
||||
//client.Throttle.Set();
|
||||
@@ -145,7 +143,7 @@ namespace pCampBot
|
||||
if (OnConnected != null)
|
||||
{
|
||||
m_action = new Timer(somthing.Next(1000, 10000));
|
||||
m_action.Elapsed += new System.Timers.ElapsedEventHandler(m_action_Elapsed);
|
||||
m_action.Elapsed += new ElapsedEventHandler(m_action_Elapsed);
|
||||
m_action.Start();
|
||||
OnConnected(this, EventType.CONNECTED);
|
||||
client.Self.Jump();
|
||||
|
||||
Reference in New Issue
Block a user