From def7335b6c0b88ee2b7b15194ec7fae30bd476da Mon Sep 17 00:00:00 2001 From: MW Date: Sun, 1 Apr 2007 10:19:21 +0000 Subject: More work on adding Packets handlers and tested the first handler. --- OpenSim.RegionServer/OpenSimMain.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim.RegionServer/OpenSimMain.cs') 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 AssetCache.LoadDefaultTextureSet(); } + RegisterClientPacketHandlers(); + m_console.WriteLine("Main.cs:Startup() - Initialising HTTP server"); // HttpServer = new SimCAPSHTTPServer(GridServers.GridServer, Cfg.IPListenPort); HttpServer = new BaseHttpServer(Cfg.IPListenPort); @@ -348,6 +350,11 @@ namespace OpenSim LocalWorld.Update(); } + protected virtual void RegisterClientPacketHandlers() + { + SimClient.AddPacketHandler(PacketType.ModifyLand, LocalWorld.ModifyTerrain); + } + public void RunCmd(string command, string[] cmdparams) { switch (command) -- cgit v1.1