mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
More work on adding Packets handlers and tested the first handler.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user