Formatting cleanup.

0.6.0-stable
Jeff Ames 2008-05-12 01:23:03 +00:00
parent 71f074839c
commit 2382342c65
6 changed files with 66 additions and 91 deletions

View File

@ -532,8 +532,6 @@ namespace OpenSim.Region.ScriptEngine.Common
LLUUID.TryParse(id, out keyID); LLUUID.TryParse(id, out keyID);
m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.SenseOnce(m_localID, m_itemID, name, keyID, type, range, arc, m_host); m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.SenseOnce(m_localID, m_itemID, name, keyID, type, range, arc, m_host);
return;
} }
public void llSensorRepeat(string name, string id, int type, double range, double arc, double rate) public void llSensorRepeat(string name, string id, int type, double range, double arc, double rate)
@ -543,14 +541,12 @@ namespace OpenSim.Region.ScriptEngine.Common
LLUUID.TryParse(id, out keyID); LLUUID.TryParse(id, out keyID);
m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.SetSenseRepeatEvent(m_localID, m_itemID, name, keyID, type, range, arc, rate, m_host); m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.SetSenseRepeatEvent(m_localID, m_itemID, name, keyID, type, range, arc, rate, m_host);
return;
} }
public void llSensorRemove() public void llSensorRemove()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.UnSetSenseRepeaterEvents(m_localID, m_itemID); m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.UnSetSenseRepeaterEvents(m_localID, m_itemID);
return;
} }
public string resolveName(LLUUID objecUUID) public string resolveName(LLUUID objecUUID)
@ -762,7 +758,6 @@ namespace OpenSim.Region.ScriptEngine.Common
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
World.DeleteSceneObjectGroup(m_host.ParentGroup); World.DeleteSceneObjectGroup(m_host.ParentGroup);
return;
} }
public double llGround(LSL_Types.Vector3 offset) public double llGround(LSL_Types.Vector3 offset)
@ -849,7 +844,6 @@ namespace OpenSim.Region.ScriptEngine.Common
m_host.SetAxisRotation(statusrotationaxis, value); m_host.SetAxisRotation(statusrotationaxis, value);
} }
return;
} }
public LSL_Types.LSLInteger llGetStatus(int status) public LSL_Types.LSLInteger llGetStatus(int status)
@ -921,7 +915,6 @@ namespace OpenSim.Region.ScriptEngine.Common
tmp.Z = (float)scale.z; tmp.Z = (float)scale.z;
part.Scale = tmp; part.Scale = tmp;
part.SendFullUpdateToAllClients(); part.SendFullUpdateToAllClients();
return;
} }
public LSL_Types.Vector3 llGetScale() public LSL_Types.Vector3 llGetScale()
@ -2547,7 +2540,6 @@ namespace OpenSim.Region.ScriptEngine.Common
public void llSetScriptState(string name, int run) public void llSetScriptState(string name, int run)
{ {
LLUUID item; LLUUID item;
ScriptManager sm; ScriptManager sm;
IScript script = null; IScript script = null;
@ -2576,11 +2568,8 @@ namespace OpenSim.Region.ScriptEngine.Common
if (script == null) if (script == null)
ShoutError("llSetScriptState: script "+name+" not found"); ShoutError("llSetScriptState: script "+name+" not found");
// If we didn;t find it, then it's safe to // If we didn't find it, then it's safe to
// assume it is not running. // assume it is not running.
return;
} }
public double llGetEnergy() public double llGetEnergy()
@ -4363,7 +4352,6 @@ namespace OpenSim.Region.ScriptEngine.Common
public void llResetOtherScript(string name) public void llResetOtherScript(string name)
{ {
LLUUID item; LLUUID item;
ScriptManager sm; ScriptManager sm;
IScript script = null; IScript script = null;
@ -4382,16 +4370,12 @@ namespace OpenSim.Region.ScriptEngine.Common
if (script == null) if (script == null)
ShoutError("llResetOtherScript: script "+name+" not found"); ShoutError("llResetOtherScript: script "+name+" not found");
// If we didn;t find it, then it's safe to // If we didn't find it, then it's safe to
// assume it is not running. // assume it is not running.
return;
} }
public LSL_Types.LSLInteger llGetScriptState(string name) public LSL_Types.LSLInteger llGetScriptState(string name)
{ {
LLUUID item; LLUUID item;
ScriptManager sm; ScriptManager sm;
IScript script = null; IScript script = null;
@ -4417,11 +4401,10 @@ namespace OpenSim.Region.ScriptEngine.Common
if (script == null) if (script == null)
ShoutError("llGetScriptState: script "+name+" not found"); ShoutError("llGetScriptState: script "+name+" not found");
// If we didn;t find it, then it's safe to // If we didn't find it, then it's safe to
// assume it is not running. // assume it is not running.
return 0; return 0;
} }
public void llRemoteLoadScript() public void llRemoteLoadScript()
@ -4516,7 +4499,6 @@ namespace OpenSim.Region.ScriptEngine.Common
if (part == null) if (part == null)
return; return;
int idx = 0; int idx = 0;
while (idx < rules.Length) while (idx < rules.Length)
@ -4586,7 +4568,6 @@ namespace OpenSim.Region.ScriptEngine.Common
SetScale(part, v); SetScale(part, v);
break; break;
} }
} }
} }
@ -5141,7 +5122,6 @@ namespace OpenSim.Region.ScriptEngine.Common
public string llIntegerToBase64(int number) public string llIntegerToBase64(int number)
{ {
// uninitialized string // uninitialized string
char[] imdt = new char[8]; char[] imdt = new char[8];
@ -5160,7 +5140,6 @@ namespace OpenSim.Region.ScriptEngine.Common
imdt[0] = i2ctable[number>>26 & 0x3F]; imdt[0] = i2ctable[number>>26 & 0x3F];
return new string(imdt); return new string(imdt);
} }
// <summary> // <summary>
@ -5206,7 +5185,6 @@ namespace OpenSim.Region.ScriptEngine.Common
public LSL_Types.LSLInteger llBase64ToInteger(string str) public LSL_Types.LSLInteger llBase64ToInteger(string str)
{ {
int number = 0; int number = 0;
int digit; int digit;
@ -5263,7 +5241,6 @@ namespace OpenSim.Region.ScriptEngine.Common
// ignore trailing padding // ignore trailing padding
return number; return number;
} }
public double llGetGMTclock() public double llGetGMTclock()
@ -5334,7 +5311,6 @@ namespace OpenSim.Region.ScriptEngine.Common
public LSL_Types.list llParseStringKeepNulls(string src, LSL_Types.list separators, LSL_Types.list spacers) public LSL_Types.list llParseStringKeepNulls(string src, LSL_Types.list separators, LSL_Types.list spacers)
{ {
int beginning = 0; int beginning = 0;
int srclen = src.Length; int srclen = src.Length;
int seplen = separators.Length; int seplen = separators.Length;
@ -5456,7 +5432,6 @@ namespace OpenSim.Region.ScriptEngine.Common
} }
return tokens; return tokens;
} }
public void llRezAtRoot(string inventory, LSL_Types.Vector3 position, LSL_Types.Vector3 velocity, public void llRezAtRoot(string inventory, LSL_Types.Vector3 position, LSL_Types.Vector3 velocity,