diff options
author | MW | 2007-04-01 15:30:27 +0000 |
---|---|---|
committer | MW | 2007-04-01 15:30:27 +0000 |
commit | 86f6a33bc8cc88c2e883d6741e6c02810d655960 (patch) | |
tree | 5065223a9cef27225000867dce50e033fe22adbe /OpenSim.RegionServer/OpenSimMain.cs | |
parent | Moved more packet types to handlers (diff) | |
download | opensim-SC_OLD-86f6a33bc8cc88c2e883d6741e6c02810d655960.zip opensim-SC_OLD-86f6a33bc8cc88c2e883d6741e6c02810d655960.tar.gz opensim-SC_OLD-86f6a33bc8cc88c2e883d6741e6c02810d655960.tar.bz2 opensim-SC_OLD-86f6a33bc8cc88c2e883d6741e6c02810d655960.tar.xz |
More cleaning up of SimClient and packet handling
Diffstat (limited to 'OpenSim.RegionServer/OpenSimMain.cs')
-rw-r--r-- | OpenSim.RegionServer/OpenSimMain.cs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/OpenSim.RegionServer/OpenSimMain.cs b/OpenSim.RegionServer/OpenSimMain.cs index ed957af..f004f91 100644 --- a/OpenSim.RegionServer/OpenSimMain.cs +++ b/OpenSim.RegionServer/OpenSimMain.cs | |||
@@ -350,13 +350,6 @@ namespace OpenSim | |||
350 | LocalWorld.Update(); | 350 | LocalWorld.Update(); |
351 | } | 351 | } |
352 | 352 | ||
353 | protected virtual void RegisterClientPacketHandlers() | ||
354 | { | ||
355 | SimClient.AddPacketHandler(PacketType.ModifyLand, LocalWorld.ModifyTerrain); | ||
356 | SimClient.AddPacketHandler(PacketType.ChatFromViewer, LocalWorld.SimChat); | ||
357 | SimClient.AddPacketHandler(PacketType.UUIDNameRequest, this.RequestUUIDName); | ||
358 | } | ||
359 | |||
360 | public void RunCmd(string command, string[] cmdparams) | 353 | public void RunCmd(string command, string[] cmdparams) |
361 | { | 354 | { |
362 | switch (command) | 355 | switch (command) |
@@ -404,6 +397,15 @@ namespace OpenSim | |||
404 | } | 397 | } |
405 | } | 398 | } |
406 | 399 | ||
400 | protected virtual void RegisterClientPacketHandlers() | ||
401 | { | ||
402 | SimClient.AddPacketHandler(PacketType.ModifyLand, LocalWorld.ModifyTerrain); | ||
403 | SimClient.AddPacketHandler(PacketType.ChatFromViewer, LocalWorld.SimChat); | ||
404 | SimClient.AddPacketHandler(PacketType.RezObject, LocalWorld.RezObject); | ||
405 | SimClient.AddPacketHandler(PacketType.DeRezObject, LocalWorld.DeRezObject); | ||
406 | SimClient.AddPacketHandler(PacketType.UUIDNameRequest, this.RequestUUIDName); | ||
407 | } | ||
408 | |||
407 | #region Client Packet Handlers | 409 | #region Client Packet Handlers |
408 | 410 | ||
409 | public bool RequestUUIDName(SimClient simClient, Packet packet) | 411 | public bool RequestUUIDName(SimClient simClient, Packet packet) |