diff options
Diffstat (limited to 'OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs')
-rw-r--r-- | OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs b/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs index 4f32335..74b8e9d 100644 --- a/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs +++ b/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs | |||
@@ -292,6 +292,30 @@ namespace OpenSim.world | |||
292 | } | 292 | } |
293 | } | 293 | } |
294 | } | 294 | } |
295 | #region Parcel Packet Handlers | ||
296 | void ParcelPropertiesRequest(int start_x, int start_y, int end_x, int end_y, int sequence_id, bool snap_selection, ClientView remote_client) | ||
297 | { | ||
298 | //Get the parcels within the bounds | ||
299 | List<Parcel> temp = new List<Parcel>(); | ||
300 | int x, y; | ||
301 | int inc_x = end_x - start_x; | ||
302 | int inc_y = end_y - start_y; | ||
303 | for(x = 0; x < inc_x; x++) | ||
304 | { | ||
305 | for(y = 0; y < inc_y; y++) | ||
306 | { | ||
307 | Parcel currentParcel = parcelManager.getParcel(start_x + x,start_y + y); | ||
308 | if(!temp.Contains(currentParcel)) | ||
309 | { | ||
310 | temp.Add(currentParcel); | ||
311 | currentParcel.sendParcelProperties(sequence_id,snap_selection,remote_client); | ||
312 | } | ||
313 | } | ||
314 | } | ||
315 | |||
316 | parcelManager.sendParcelOverlay(remote_client); | ||
317 | } | ||
318 | #endregion | ||
295 | 319 | ||
296 | /* | 320 | /* |
297 | public void RequestMapBlock(ClientView simClient, int minX, int minY, int maxX, int maxY) | 321 | public void RequestMapBlock(ClientView simClient, int minX, int minY, int maxX, int maxY) |