aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/ClientView.PacketHandlers.cs
diff options
context:
space:
mode:
authorlbsa712007-09-18 09:59:33 +0000
committerlbsa712007-09-18 09:59:33 +0000
commita963b3057bdc80fc403e2b8402d0666c3d3f5c97 (patch)
treee2395d69fd3a7ef9fd4002498d9ebad914235645 /OpenSim/Region/ClientStack/ClientView.PacketHandlers.cs
parent* Merged ClientViewBase into ClientView for great justice (diff)
downloadopensim-SC-a963b3057bdc80fc403e2b8402d0666c3d3f5c97.zip
opensim-SC-a963b3057bdc80fc403e2b8402d0666c3d3f5c97.tar.gz
opensim-SC-a963b3057bdc80fc403e2b8402d0666c3d3f5c97.tar.bz2
opensim-SC-a963b3057bdc80fc403e2b8402d0666c3d3f5c97.tar.xz
* Replaced usage of ClientView with IClientAPI
* Some propertification and hideousness of fields.
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.PacketHandlers.cs')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.PacketHandlers.cs19
1 files changed, 10 insertions, 9 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.PacketHandlers.cs b/OpenSim/Region/ClientStack/ClientView.PacketHandlers.cs
index fdde027..71fea0d 100644
--- a/OpenSim/Region/ClientStack/ClientView.PacketHandlers.cs
+++ b/OpenSim/Region/ClientStack/ClientView.PacketHandlers.cs
@@ -28,6 +28,7 @@
28using libsecondlife; 28using libsecondlife;
29using libsecondlife.Packets; 29using libsecondlife.Packets;
30using OpenSim.Framework.Console; 30using OpenSim.Framework.Console;
31using OpenSim.Framework.Interfaces;
31 32
32namespace OpenSim.Region.ClientStack 33namespace OpenSim.Region.ClientStack
33{ 34{
@@ -40,13 +41,13 @@ namespace OpenSim.Region.ClientStack
40 this.AddLocalPacketHandler(PacketType.MultipleObjectUpdate, this.MultipleObjUpdate); 41 this.AddLocalPacketHandler(PacketType.MultipleObjectUpdate, this.MultipleObjUpdate);
41 } 42 }
42 43
43 protected virtual bool Logout(ClientView simClient, Packet packet) 44 protected virtual bool Logout(IClientAPI simClient, Packet packet)
44 { 45 {
45 MainLog.Instance.Verbose( "OpenSimClient.cs:ProcessInPacket() - Got a logout request"); 46 MainLog.Instance.Verbose( "OpenSimClient.cs:ProcessInPacket() - Got a logout request");
46 //send reply to let the client logout 47 //send reply to let the client logout
47 LogoutReplyPacket logReply = new LogoutReplyPacket(); 48 LogoutReplyPacket logReply = new LogoutReplyPacket();
48 logReply.AgentData.AgentID = this.AgentID; 49 logReply.AgentData.AgentID = this.AgentId;
49 logReply.AgentData.SessionID = this.SessionID; 50 logReply.AgentData.SessionID = this.m_sessionId;
50 logReply.InventoryData = new LogoutReplyPacket.InventoryDataBlock[1]; 51 logReply.InventoryData = new LogoutReplyPacket.InventoryDataBlock[1];
51 logReply.InventoryData[0] = new LogoutReplyPacket.InventoryDataBlock(); 52 logReply.InventoryData[0] = new LogoutReplyPacket.InventoryDataBlock();
52 logReply.InventoryData[0].ItemID = LLUUID.Zero; 53 logReply.InventoryData[0].ItemID = LLUUID.Zero;
@@ -56,13 +57,13 @@ namespace OpenSim.Region.ClientStack
56 return true; 57 return true;
57 } 58 }
58 59
59 protected bool AgentTextureCached(ClientView simclient, Packet packet) 60 protected bool AgentTextureCached(IClientAPI simclient, Packet packet)
60 { 61 {
61 //System.Console.WriteLine("texture cached: " + packet.ToString()); 62 //System.Console.WriteLine("texture cached: " + packet.ToString());
62 AgentCachedTexturePacket chechedtex = (AgentCachedTexturePacket)packet; 63 AgentCachedTexturePacket chechedtex = (AgentCachedTexturePacket)packet;
63 AgentCachedTextureResponsePacket cachedresp = new AgentCachedTextureResponsePacket(); 64 AgentCachedTextureResponsePacket cachedresp = new AgentCachedTextureResponsePacket();
64 cachedresp.AgentData.AgentID = this.AgentID; 65 cachedresp.AgentData.AgentID = this.AgentId;
65 cachedresp.AgentData.SessionID = this.SessionID; 66 cachedresp.AgentData.SessionID = this.m_sessionId;
66 cachedresp.AgentData.SerialNum = this.cachedtextureserial; 67 cachedresp.AgentData.SerialNum = this.cachedtextureserial;
67 this.cachedtextureserial++; 68 this.cachedtextureserial++;
68 cachedresp.WearableData = new AgentCachedTextureResponsePacket.WearableDataBlock[chechedtex.WearableData.Length]; 69 cachedresp.WearableData = new AgentCachedTextureResponsePacket.WearableDataBlock[chechedtex.WearableData.Length];
@@ -77,7 +78,7 @@ namespace OpenSim.Region.ClientStack
77 return true; 78 return true;
78 } 79 }
79 80
80 protected bool MultipleObjUpdate(ClientView simClient, Packet packet) 81 protected bool MultipleObjUpdate(IClientAPI simClient, Packet packet)
81 { 82 {
82 MultipleObjectUpdatePacket multipleupdate = (MultipleObjectUpdatePacket)packet; 83 MultipleObjectUpdatePacket multipleupdate = (MultipleObjectUpdatePacket)packet;
83 // System.Console.WriteLine("new multi update packet " + multipleupdate.ToString()); 84 // System.Console.WriteLine("new multi update packet " + multipleupdate.ToString());
@@ -197,7 +198,7 @@ namespace OpenSim.Region.ClientStack
197 //should be getting the map layer from the grid server 198 //should be getting the map layer from the grid server
198 //send a layer covering the 800,800 - 1200,1200 area (should be covering the requested area) 199 //send a layer covering the 800,800 - 1200,1200 area (should be covering the requested area)
199 MapLayerReplyPacket mapReply = new MapLayerReplyPacket(); 200 MapLayerReplyPacket mapReply = new MapLayerReplyPacket();
200 mapReply.AgentData.AgentID = this.AgentID; 201 mapReply.AgentData.AgentID = this.AgentId;
201 mapReply.AgentData.Flags = 0; 202 mapReply.AgentData.Flags = 0;
202 mapReply.LayerData = new MapLayerReplyPacket.LayerDataBlock[1]; 203 mapReply.LayerData = new MapLayerReplyPacket.LayerDataBlock[1];
203 mapReply.LayerData[0] = new MapLayerReplyPacket.LayerDataBlock(); 204 mapReply.LayerData[0] = new MapLayerReplyPacket.LayerDataBlock();
@@ -214,7 +215,7 @@ namespace OpenSim.Region.ClientStack
214 /* 215 /*
215 IList simMapProfiles = m_gridServer.RequestMapBlocks(minX, minY, maxX, maxY); 216 IList simMapProfiles = m_gridServer.RequestMapBlocks(minX, minY, maxX, maxY);
216 MapBlockReplyPacket mbReply = new MapBlockReplyPacket(); 217 MapBlockReplyPacket mbReply = new MapBlockReplyPacket();
217 mbReply.AgentData.AgentID = this.AgentID; 218 mbReply.AgentData.AgentId = this.AgentId;
218 int len; 219 int len;
219 if (simMapProfiles == null) 220 if (simMapProfiles == null)
220 len = 0; 221 len = 0;