From f22e27498e5e7fa2c0eee1e45a89dd0e107e57f9 Mon Sep 17 00:00:00 2001 From: mingchen Date: Sun, 3 Jun 2007 16:02:08 +0000 Subject: 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 --- OpenSim/OpenSim.RegionServer/world/World.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim/OpenSim.RegionServer/world/World.cs') diff --git a/OpenSim/OpenSim.RegionServer/world/World.cs b/OpenSim/OpenSim.RegionServer/world/World.cs index ad1ce30..d2a13ca 100644 --- a/OpenSim/OpenSim.RegionServer/world/World.cs +++ b/OpenSim/OpenSim.RegionServer/world/World.cs @@ -35,6 +35,7 @@ namespace OpenSim.world private Dictionary m_scripts; private Mutex updateLock; public string m_datastore; + public ParcelManager parcelManager; #region Properties public PhysicsScene PhysScene @@ -85,6 +86,8 @@ namespace OpenSim.world Avatar.LoadAnims(); this.SetDefaultScripts(); this.LoadScriptEngines(); + parcelManager = new ParcelManager(this); + } catch (Exception e) { @@ -564,6 +567,7 @@ namespace OpenSim.world agentClient.OnLinkObjects += new LinkObjects(this.LinkObjects); agentClient.OnAddPrim += new ClientView.GenericCall4(this.AddNewPrim); agentClient.OnUpdatePrimShape += new ClientView.UpdateShape(this.UpdatePrimShape); + agentClient.OnObjectSelect += new ClientView.ObjectSelect(this.SelectPrim); agentClient.OnUpdatePrimFlags += new ClientView.UpdatePrimFlags(this.UpdatePrimFlags); agentClient.OnUpdatePrimTexture += new ClientView.UpdatePrimTexture(this.UpdatePrimTexture); @@ -571,6 +575,8 @@ namespace OpenSim.world agentClient.OnUpdatePrimRotation += new ClientView.UpdatePrimRotation(this.UpdatePrimRotation); agentClient.OnUpdatePrimScale += new ClientView.UpdatePrimVector(this.UpdatePrimScale); agentClient.OnDeRezObject += new ClientView.GenericCall4(this.DeRezObject); + + agentClient.OnParcelPropertiesRequest += new ParcelPropertiesRequest(ParcelPropertiesRequest); Avatar newAvatar = null; try { @@ -618,6 +624,8 @@ namespace OpenSim.world return newAvatar; } + + public override void RemoveViewerAgent(ClientView agentClient) { try -- cgit v1.1