29 using System.Collections.Generic;
30 using System.Reflection;
33 using OpenSim.Framework;
34 using OpenSim.Region.Framework.Interfaces;
35 using OpenSim.Region.CoreModules.World.Land;
37 namespace OpenSim.
Region.RegionCombinerModule
47 #region ILandChannel Members
50 List<RegionData> regionConnections)
53 RootRegionLandChannel = rootRegionLandChannel;
60 return RootRegionLandChannel.ParcelsNearPoint(position - RegData.Offset);
65 return RootRegionLandChannel.AllParcels();
68 public void Clear(
bool setupDefaultParcel)
70 RootRegionLandChannel.Clear(setupDefaultParcel);
75 return GetLandObject(position.X, position.Y);
80 return GetLandObject((
float)x, (
float)y);
119 return RootRegionLandChannel.GetLandObject(localID);
128 return RootRegionLandChannel.GetLandObject(x, y);
132 int offsetX = (int)(x/(
int) Constants.RegionSize);
133 int offsetY = (int)(y/(
int) Constants.RegionSize);
135 offsetY *= (
int) Constants.RegionSize;
139 if (regionData.
Offset.X == offsetX && regionData.
Offset.Y == offsetY)
145 return regionData.RegionScene.LandChannel.GetLandObject(x - offsetX, y - offsetY);
161 return RootRegionLandChannel.IsForcefulBansAllowed();
166 RootRegionLandChannel.UpdateLandObject(localID, data);
169 public void Join(
int start_x,
int start_y,
int end_x,
int end_y, UUID attempting_user_id)
171 RootRegionLandChannel.Join(start_x, start_y, end_x, end_y, attempting_user_id);
174 public void Subdivide(
int start_x,
int start_y,
int end_x,
int end_y, UUID attempting_user_id)
176 RootRegionLandChannel.Subdivide(start_x, start_y, end_x, end_y, attempting_user_id);
181 RootRegionLandChannel.ReturnObjectsInParcel(localID, returnType, agentIDs, taskIDs, remoteClient);
186 RootRegionLandChannel.setParcelObjectMaxOverride(overrideDel);
191 RootRegionLandChannel.setSimulatorObjectMaxOverride(overrideDel);
196 RootRegionLandChannel.SetParcelOtherCleanTime(remoteClient, localID, otherCleanTime);
void ReturnObjectsInParcel(int localID, uint returnType, UUID[] agentIDs, UUID[] taskIDs, IClientAPI remoteClient)
RegionCombinerLargeLandChannel(RegionData regData, ILandChannel rootRegionLandChannel, List< RegionData > regionConnections)
List< ILandObject > AllParcels()
Get all parcels
ILandObject GetLandObject(int x, int y)
Get the parcel at the specified point
ILandObject GetLandObject(int localID)
Get the parcel given the land's local id.
void sendClientInitialLandInfo(IClientAPI remoteClient)
ILandObject GetLandObject(float x, float y)
Get the parcel at the specified point
void setSimulatorObjectMaxOverride(overrideSimulatorMaxPrimCountDelegate overrideDel)
void setParcelObjectMaxOverride(overrideParcelMaxPrimCountDelegate overrideDel)
void Subdivide(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id)
void Join(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id)
ILandObject GetLandObject(Vector3 position)
Get the parcel at the specified point
void SetParcelOtherCleanTime(IClientAPI remoteClient, int localID, int otherCleanTime)
bool IsForcefulBansAllowed()
void UpdateLandObject(int localID, LandData data)
Details of a Parcel of land
delegate int overrideParcelMaxPrimCountDelegate(ILandObject obj)
delegate int overrideSimulatorMaxPrimCountDelegate(ILandObject obj)
List< ILandObject > ParcelsNearPoint(Vector3 position)
Get the parcels near the specified point
void Clear(bool setupDefaultParcel)
Clear the land channel of all parcels.