2008-04-17 12:16:19 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) Contributors, http://opensimulator.org/
|
|
|
|
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions are met:
|
|
|
|
* * Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* * Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
2009-06-01 06:37:14 +00:00
|
|
|
* * Neither the name of the OpenSimulator Project nor the
|
2008-04-17 12:16:19 +00:00
|
|
|
* names of its contributors may be used to endorse or promote products
|
|
|
|
* derived from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
|
|
|
|
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
|
|
|
|
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
|
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
|
|
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
2008-03-22 23:39:07 +00:00
|
|
|
using System.Collections.Generic;
|
2008-09-06 07:52:41 +00:00
|
|
|
using OpenMetaverse;
|
2008-03-22 23:39:07 +00:00
|
|
|
using OpenSim.Framework;
|
|
|
|
|
2009-02-06 16:55:34 +00:00
|
|
|
namespace OpenSim.Region.Framework.Interfaces
|
2008-03-22 23:39:07 +00:00
|
|
|
{
|
|
|
|
public interface ILandChannel
|
|
|
|
{
|
2009-11-25 17:49:38 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Get all parcels
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
2008-09-13 17:50:02 +00:00
|
|
|
List<ILandObject> AllParcels();
|
2017-01-05 19:07:37 +00:00
|
|
|
|
2009-03-05 20:32:35 +00:00
|
|
|
/// <summary>
|
2009-11-25 17:49:38 +00:00
|
|
|
/// Get the parcel at the specified point
|
2009-03-05 20:32:35 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <param name="x">Value between 0 - 256 on the x axis of the point</param>
|
|
|
|
/// <param name="y">Value between 0 - 256 on the y axis of the point</param>
|
2009-09-30 16:00:09 +00:00
|
|
|
/// <returns>Land object at the point supplied</returns>
|
2008-05-06 04:56:48 +00:00
|
|
|
ILandObject GetLandObject(int x, int y);
|
2009-04-06 07:17:23 +00:00
|
|
|
|
2009-03-05 20:32:35 +00:00
|
|
|
/// <summary>
|
2009-11-25 17:49:38 +00:00
|
|
|
/// Get the parcel at the specified point
|
2009-03-05 20:32:35 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <param name="x">Value between 0 - 256 on the x axis of the point</param>
|
|
|
|
/// <param name="y">Value between 0 - 256 on the y axis of the point</param>
|
2009-09-30 16:00:09 +00:00
|
|
|
/// <returns>Land object at the point supplied</returns>
|
2008-05-06 04:56:48 +00:00
|
|
|
ILandObject GetLandObject(float x, float y);
|
2009-11-25 17:49:38 +00:00
|
|
|
|
2013-03-14 22:56:26 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Get the parcel at the specified point
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="position">Vector where x and y components are between 0 and 256. z component is ignored.</param>
|
|
|
|
/// <returns>Land object at the point supplied</returns>
|
|
|
|
ILandObject GetLandObject(Vector3 position);
|
|
|
|
|
2009-11-25 17:49:38 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Get the parcels near the specified point
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="position"></param>
|
|
|
|
/// <returns></returns>
|
2010-01-03 21:10:45 +00:00
|
|
|
List<ILandObject> ParcelsNearPoint(Vector3 position);
|
2009-11-25 17:49:38 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get the parcel given the land's local id.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="localID"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
ILandObject GetLandObject(int localID);
|
2017-01-05 19:07:37 +00:00
|
|
|
|
2017-05-13 19:21:56 +00:00
|
|
|
ILandObject GetLandObject(UUID GlobalID);
|
|
|
|
|
2011-01-27 18:48:48 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Clear the land channel of all parcels.
|
|
|
|
/// </summary>
|
2011-01-27 20:29:06 +00:00
|
|
|
/// <param name="setupDefaultParcel">
|
|
|
|
/// If true, set up a default parcel covering the whole region owned by the estate owner.
|
|
|
|
/// </param>
|
|
|
|
void Clear(bool setupDefaultParcel);
|
2017-01-05 19:07:37 +00:00
|
|
|
|
2008-05-23 15:12:15 +00:00
|
|
|
bool IsForcefulBansAllowed();
|
|
|
|
void UpdateLandObject(int localID, LandData data);
|
2017-07-12 06:27:21 +00:00
|
|
|
void SendParcelsOverlay(IClientAPI client);
|
2008-09-06 07:52:41 +00:00
|
|
|
void ReturnObjectsInParcel(int localID, uint returnType, UUID[] agentIDs, UUID[] taskIDs, IClientAPI remoteClient);
|
2008-06-11 17:31:43 +00:00
|
|
|
void setParcelObjectMaxOverride(overrideParcelMaxPrimCountDelegate overrideDel);
|
|
|
|
void setSimulatorObjectMaxOverride(overrideSimulatorMaxPrimCountDelegate overrideDel);
|
2008-10-18 05:51:36 +00:00
|
|
|
void SetParcelOtherCleanTime(IClientAPI remoteClient, int localID, int otherCleanTime);
|
2010-04-29 18:57:30 +00:00
|
|
|
|
|
|
|
void Join(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id);
|
|
|
|
void Subdivide(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id);
|
2014-07-31 02:10:50 +00:00
|
|
|
void sendClientInitialLandInfo(IClientAPI remoteClient);
|
|
|
|
|
2008-03-22 23:39:07 +00:00
|
|
|
}
|
2008-05-01 18:04:42 +00:00
|
|
|
}
|