Merge branch 'master' of ssh://opensimulator.org/var/git/opensim

viewer-2-initial-appearance
Diva Canto 2010-12-11 17:07:08 -08:00
commit 4d16ecf889
3 changed files with 23 additions and 5 deletions

View File

@ -1310,7 +1310,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public void osParcelSetDetails(LSL_Vector pos, LSL_List rules) public void osParcelSetDetails(LSL_Vector pos, LSL_List rules)
{ {
CheckThreatLevel(ThreatLevel.High, "osParcelSetDetails"); const string functionName = "osParcelSetDetails";
CheckThreatLevel(ThreatLevel.High, functionName);
OSSLDeprecated(functionName, "osSetParcelDetails");
SetParcelDetails(pos, rules, functionName);
}
public void osSetParcelDetails(LSL_Vector pos, LSL_List rules)
{
const string functionName = "osSetParcelDetails";
CheckThreatLevel(ThreatLevel.High, functionName);
SetParcelDetails(pos, rules, functionName);
}
private void SetParcelDetails(LSL_Vector pos, LSL_List rules, string functionName)
{
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
// Get a reference to the land data and make sure the owner of the script // Get a reference to the land data and make sure the owner of the script
@ -1349,13 +1361,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
break; break;
case 2: case 2:
CheckThreatLevel(ThreatLevel.VeryHigh, "osParcelSetDetails"); CheckThreatLevel(ThreatLevel.VeryHigh, functionName);
if (UUID.TryParse(arg , out uuid)) if (UUID.TryParse(arg , out uuid))
newLand.OwnerID = uuid; newLand.OwnerID = uuid;
break; break;
case 3: case 3:
CheckThreatLevel(ThreatLevel.VeryHigh, "osParcelSetDetails"); CheckThreatLevel(ThreatLevel.VeryHigh, functionName);
if (UUID.TryParse(arg , out uuid)) if (UUID.TryParse(arg , out uuid))
newLand.GroupID = uuid; newLand.GroupID = uuid;
break; break;

View File

@ -135,7 +135,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
// Parcel commands // Parcel commands
void osParcelJoin(vector pos1, vector pos2); void osParcelJoin(vector pos1, vector pos2);
void osParcelSubdivide(vector pos1, vector pos2); void osParcelSubdivide(vector pos1, vector pos2);
void osParcelSetDetails(vector pos, LSL_List rules); void osSetParcelDetails(vector pos, LSL_List rules);
void osParcelSetDetails(vector pos, LSL_List rules); // Deprecated
string osGetScriptEngineName(); string osGetScriptEngineName();
string osGetSimulatorVersion(); string osGetSimulatorVersion();

View File

@ -127,6 +127,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
m_OSSL_Functions.osParcelSubdivide(pos1, pos2); m_OSSL_Functions.osParcelSubdivide(pos1, pos2);
} }
public void osSetParcelDetails(vector pos, LSL_List rules)
{
m_OSSL_Functions.osSetParcelDetails(pos, rules);
}
// Deprecated
public void osParcelSetDetails(vector pos, LSL_List rules) public void osParcelSetDetails(vector pos, LSL_List rules)
{ {
m_OSSL_Functions.osParcelSetDetails(pos,rules); m_OSSL_Functions.osParcelSetDetails(pos,rules);