aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs
diff options
context:
space:
mode:
authormingchen2007-06-03 16:02:08 +0000
committermingchen2007-06-03 16:02:08 +0000
commitf22e27498e5e7fa2c0eee1e45a89dd0e107e57f9 (patch)
tree96503cce2b80bc70d9f3fccfd8a0a4249fc486bb /OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs
parent* Fixing world map generation issues (thankyou LL for using different coordin... (diff)
downloadopensim-SC_OLD-f22e27498e5e7fa2c0eee1e45a89dd0e107e57f9.zip
opensim-SC_OLD-f22e27498e5e7fa2c0eee1e45a89dd0e107e57f9.tar.gz
opensim-SC_OLD-f22e27498e5e7fa2c0eee1e45a89dd0e107e57f9.tar.bz2
opensim-SC_OLD-f22e27498e5e7fa2c0eee1e45a89dd0e107e57f9.tar.xz
Added Basic Parcel Support
*Created Parcel class to handle each parcel *Created ParcelManager class to handle the Parcel Object *For now, by default it is assigned to a fake avatar key and set for sale to L$0
Diffstat (limited to 'OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs')
-rw-r--r--OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs24
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)