Add "show script timers" command to show script timers. For debug purposes.

Also, "show sensors" changes to "show script sensors".
This commit is contained in:
Justin Clark-Casey (justincc)
2013-01-10 00:57:49 +00:00
parent 9ddddde42e
commit 2563553f80
4 changed files with 82 additions and 36 deletions

View File

@@ -61,19 +61,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
public SensorInfo Clone()
{
SensorInfo s = new SensorInfo();
s.localID = localID;
s.itemID = itemID;
s.interval = interval;
s.next = next;
s.name = name;
s.keyID = keyID;
s.type = type;
s.range = range;
s.arc = arc;
s.host = host;
return s;
return (SensorInfo)this.MemberwiseClone();
}
}
@@ -701,8 +689,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
lock (SenseRepeatListLock)
{
foreach (SensorInfo si in SenseRepeaters)
retList.Add(si.Clone());
foreach (SensorInfo i in SenseRepeaters)
retList.Add(i.Clone());
}
return retList;