parent
8de67dad76
commit
0163af970f
|
@ -1600,6 +1600,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
return 0.0f;
|
||||
}
|
||||
|
||||
public int osGetParcelDwell(LSL_Vector pos)
|
||||
{
|
||||
LandData land = World.GetLandData(pos);
|
||||
if (land != null)
|
||||
{
|
||||
return (int)land.Dwell;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Routines for creating and managing parcels programmatically
|
||||
public void osParcelJoin(LSL_Vector pos1, LSL_Vector pos2)
|
||||
{
|
||||
|
|
|
@ -260,6 +260,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
|||
LSL_Float osGetWindParam(string plugin, string param);
|
||||
|
||||
// Parcel commands
|
||||
int osGetParcelDwell(vector pos);
|
||||
void osParcelJoin(vector pos1, vector pos2);
|
||||
void osParcelSubdivide(vector pos1, vector pos2);
|
||||
void osSetParcelDetails(vector pos, LSL_List rules);
|
||||
|
|
|
@ -116,6 +116,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
|||
return m_OSSL_Functions.osGetWindParam(plugin, param);
|
||||
}
|
||||
|
||||
public int osGetParcelDwell(vector pos)
|
||||
{
|
||||
return m_OSSL_Functions.osGetParcelDwell(pos);
|
||||
}
|
||||
|
||||
public void osParcelJoin(vector pos1, vector pos2)
|
||||
{
|
||||
m_OSSL_Functions.osParcelJoin(pos1,pos2);
|
||||
|
|
Loading…
Reference in New Issue