aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/OpenSimMain.cs
diff options
context:
space:
mode:
authorMW2007-04-01 10:19:21 +0000
committerMW2007-04-01 10:19:21 +0000
commitdef7335b6c0b88ee2b7b15194ec7fae30bd476da (patch)
tree50a86e6ece21bde1577cb5c8983941e64ee07d0e /OpenSim.RegionServer/OpenSimMain.cs
parentAdded Packet handlers to SimClient (diff)
downloadopensim-SC-def7335b6c0b88ee2b7b15194ec7fae30bd476da.zip
opensim-SC-def7335b6c0b88ee2b7b15194ec7fae30bd476da.tar.gz
opensim-SC-def7335b6c0b88ee2b7b15194ec7fae30bd476da.tar.bz2
opensim-SC-def7335b6c0b88ee2b7b15194ec7fae30bd476da.tar.xz
More work on adding Packets handlers and tested the first handler.
Diffstat (limited to 'OpenSim.RegionServer/OpenSimMain.cs')
-rw-r--r--OpenSim.RegionServer/OpenSimMain.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim.RegionServer/OpenSimMain.cs b/OpenSim.RegionServer/OpenSimMain.cs
index 9d0e6ae..21f4878 100644
--- a/OpenSim.RegionServer/OpenSimMain.cs
+++ b/OpenSim.RegionServer/OpenSimMain.cs
@@ -152,6 +152,8 @@ namespace OpenSim
152 AssetCache.LoadDefaultTextureSet(); 152 AssetCache.LoadDefaultTextureSet();
153 } 153 }
154 154
155 RegisterClientPacketHandlers();
156
155 m_console.WriteLine("Main.cs:Startup() - Initialising HTTP server"); 157 m_console.WriteLine("Main.cs:Startup() - Initialising HTTP server");
156 // HttpServer = new SimCAPSHTTPServer(GridServers.GridServer, Cfg.IPListenPort); 158 // HttpServer = new SimCAPSHTTPServer(GridServers.GridServer, Cfg.IPListenPort);
157 HttpServer = new BaseHttpServer(Cfg.IPListenPort); 159 HttpServer = new BaseHttpServer(Cfg.IPListenPort);
@@ -348,6 +350,11 @@ namespace OpenSim
348 LocalWorld.Update(); 350 LocalWorld.Update();
349 } 351 }
350 352
353 protected virtual void RegisterClientPacketHandlers()
354 {
355 SimClient.AddPacketHandler(PacketType.ModifyLand, LocalWorld.ModifyTerrain);
356 }
357
351 public void RunCmd(string command, string[] cmdparams) 358 public void RunCmd(string command, string[] cmdparams)
352 { 359 {
353 switch (command) 360 switch (command)