aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.World/WorldBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/OpenSim.World/WorldBase.cs')
-rw-r--r--OpenSim/OpenSim.World/WorldBase.cs45
1 files changed, 18 insertions, 27 deletions
diff --git a/OpenSim/OpenSim.World/WorldBase.cs b/OpenSim/OpenSim.World/WorldBase.cs
index 8fe98d3..33952bf 100644
--- a/OpenSim/OpenSim.World/WorldBase.cs
+++ b/OpenSim/OpenSim.World/WorldBase.cs
@@ -9,28 +9,27 @@ using System.Threading;
9using OpenSim.Physics.Manager; 9using OpenSim.Physics.Manager;
10using OpenSim.Framework.Interfaces; 10using OpenSim.Framework.Interfaces;
11using OpenSim.Framework.Types; 11using OpenSim.Framework.Types;
12using OpenSim.Framework.Terrain;
13using OpenSim.Framework.Inventory; 12using OpenSim.Framework.Inventory;
14using OpenSim.Assets;
15using OpenSim.RegionServer.world.scripting; 13using OpenSim.RegionServer.world.scripting;
16using OpenSim.Terrain; 14using OpenSim.Terrain;
17 15
18namespace OpenSim.world 16namespace OpenSim.world
19{ 17{
20 public class WorldBase 18 public class WorldBase : IWorld
21 { 19 {
22 public Dictionary<libsecondlife.LLUUID, Entity> Entities; 20 public Dictionary<libsecondlife.LLUUID, Entity> Entities;
23 protected Dictionary<uint, IClientAPI> m_clientThreads; 21 protected Dictionary<uint, IClientAPI> m_clientThreads;
24 protected ulong m_regionHandle; 22 protected ulong m_regionHandle;
25 protected string m_regionName; 23 protected string m_regionName;
26 protected InventoryCache _inventoryCache; 24 // protected InventoryCache _inventoryCache;
27 protected AssetCache _assetCache; 25 // protected AssetCache _assetCache;
28 protected RegionInfo m_regInfo; 26 protected RegionInfo m_regInfo;
29 27
30 public TerrainEngine Terrain; //TODO: Replace TerrainManager with this. 28 public TerrainEngine Terrain; //TODO: Replace TerrainManager with this.
31 protected libsecondlife.TerrainManager TerrainManager; // To be referenced via TerrainEngine 29 protected libsecondlife.TerrainManager TerrainManager; // To be referenced via TerrainEngine
32 30
33 #region Properties 31 #region Properties
32 /*
34 public InventoryCache InventoryCache 33 public InventoryCache InventoryCache
35 { 34 {
36 set 35 set
@@ -46,6 +45,7 @@ namespace OpenSim.world
46 this._assetCache = value; 45 this._assetCache = value;
47 } 46 }
48 } 47 }
48 */
49 #endregion 49 #endregion
50 50
51 #region Constructors 51 #region Constructors
@@ -56,14 +56,7 @@ namespace OpenSim.world
56 #endregion 56 #endregion
57 57
58 #region Setup Methods 58 #region Setup Methods
59 /// <summary> 59
60 /// Register Packet handler Methods with the packet server (which will register them with the SimClient)
61 /// </summary>
62 /// <param name="packetServer"></param>
63 public virtual void RegisterPacketHandlers(PacketServer packetServer)
64 {
65
66 }
67 #endregion 60 #endregion
68 61
69 #region Update Methods 62 #region Update Methods
@@ -90,7 +83,7 @@ namespace OpenSim.world
90 /// Send the region heightmap to the client 83 /// Send the region heightmap to the client
91 /// </summary> 84 /// </summary>
92 /// <param name="RemoteClient">Client to send to</param> 85 /// <param name="RemoteClient">Client to send to</param>
93 public virtual void SendLayerData(ClientView RemoteClient) 86 public virtual void SendLayerData(IClientAPI RemoteClient)
94 { 87 {
95 try 88 try
96 { 89 {
@@ -122,7 +115,7 @@ namespace OpenSim.world
122 /// <param name="px">Patch coordinate (x) 0..16</param> 115 /// <param name="px">Patch coordinate (x) 0..16</param>
123 /// <param name="py">Patch coordinate (y) 0..16</param> 116 /// <param name="py">Patch coordinate (y) 0..16</param>
124 /// <param name="RemoteClient">The client to send to</param> 117 /// <param name="RemoteClient">The client to send to</param>
125 public void SendLayerData(int px, int py, ClientView RemoteClient) 118 public void SendLayerData(int px, int py, IClientAPI RemoteClient)
126 { 119 {
127 try 120 try
128 { 121 {
@@ -144,25 +137,23 @@ namespace OpenSim.world
144 #endregion 137 #endregion
145 138
146 #region Add/Remove Agent/Avatar 139 #region Add/Remove Agent/Avatar
147 /// <summary> 140 public virtual bool AddNewAvatar(IClientAPI remoteClient, bool child)
148 /// Add a new Agent's avatar
149 /// </summary>
150 /// <param name="agentClient"></param>
151 public virtual Avatar AddViewerAgent(ClientView agentClient)
152 { 141 {
153 return null; 142 return false;
154 } 143 }
155 144
156 /// <summary> 145 public virtual bool RemoveAvatar(LLUUID agentID)
157 /// Remove a Agent's avatar
158 /// </summary>
159 /// <param name="agentClient"></param>
160 public virtual void RemoveViewerAgent(ClientView agentClient)
161 { 146 {
162 147 return false;
163 } 148 }
149
164 #endregion 150 #endregion
165 151
152 public virtual RegionInfo GetRegionInfo()
153 {
154 return null;
155 }
156
166 #region Shutdown 157 #region Shutdown
167 /// <summary> 158 /// <summary>
168 /// Tidy before shutdown 159 /// Tidy before shutdown