diff options
author | Dalien Talbot | 2007-11-18 04:00:04 +0000 |
---|---|---|
committer | Dalien Talbot | 2007-11-18 04:00:04 +0000 |
commit | 793813a6a69854c26ec5c64c6625db98c756a1cd (patch) | |
tree | 77a41de30350ba91225c6b19fa4737e8e68e6848 /OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | |
parent | improved avatar logic -- walk up low steps now, sorta (diff) | |
download | opensim-SC-793813a6a69854c26ec5c64c6625db98c756a1cd.zip opensim-SC-793813a6a69854c26ec5c64c6625db98c756a1cd.tar.gz opensim-SC-793813a6a69854c26ec5c64c6625db98c756a1cd.tar.bz2 opensim-SC-793813a6a69854c26ec5c64c6625db98c756a1cd.tar.xz |
Added handler for MapNameRequest - OnMapNameRequest
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs index 0161928..4336eb4 100644 --- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs +++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | |||
@@ -611,6 +611,15 @@ namespace OpenSim.Region.ClientStack | |||
611 | MapRequest.PositionData.MaxX, MapRequest.PositionData.MaxY); | 611 | MapRequest.PositionData.MaxX, MapRequest.PositionData.MaxY); |
612 | } | 612 | } |
613 | break; | 613 | break; |
614 | case PacketType.MapNameRequest: | ||
615 | MapNameRequestPacket map = (MapNameRequestPacket) Pack; | ||
616 | string mapName = UTF8Encoding.UTF8.GetString(map.NameData.Name, 0, | ||
617 | map.NameData.Name.Length - 1); | ||
618 | if (OnMapNameRequest != null) | ||
619 | { | ||
620 | OnMapNameRequest(this, mapName); | ||
621 | } | ||
622 | break; | ||
614 | case PacketType.TeleportLandmarkRequest: | 623 | case PacketType.TeleportLandmarkRequest: |
615 | TeleportLandmarkRequestPacket tpReq = (TeleportLandmarkRequestPacket) Pack; | 624 | TeleportLandmarkRequestPacket tpReq = (TeleportLandmarkRequestPacket) Pack; |
616 | 625 | ||