More work on adding Packets handlers and tested the first handler.

This commit is contained in:
MW
2007-04-01 10:19:21 +00:00
parent 548b125b7c
commit def7335b6c
3 changed files with 116 additions and 79 deletions

View File

@@ -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)