aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorDalien Talbot2007-11-18 04:00:04 +0000
committerDalien Talbot2007-11-18 04:00:04 +0000
commit793813a6a69854c26ec5c64c6625db98c756a1cd (patch)
tree77a41de30350ba91225c6b19fa4737e8e68e6848 /OpenSim/Region
parentimproved avatar logic -- walk up low steps now, sorta (diff)
downloadopensim-SC_OLD-793813a6a69854c26ec5c64c6625db98c756a1cd.zip
opensim-SC_OLD-793813a6a69854c26ec5c64c6625db98c756a1cd.tar.gz
opensim-SC_OLD-793813a6a69854c26ec5c64c6625db98c756a1cd.tar.bz2
opensim-SC_OLD-793813a6a69854c26ec5c64c6625db98c756a1cd.tar.xz
Added handler for MapNameRequest - OnMapNameRequest
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.API.cs1
-rw-r--r--OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs9
-rw-r--r--OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs1
3 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs
index 6f15c44..65d57ad 100644
--- a/OpenSim/Region/ClientStack/ClientView.API.cs
+++ b/OpenSim/Region/ClientStack/ClientView.API.cs
@@ -84,6 +84,7 @@ namespace OpenSim.Region.ClientStack
84 public event GenericCall2 OnStopMovement; 84 public event GenericCall2 OnStopMovement;
85 public event Action<LLUUID> OnRemoveAvatar; 85 public event Action<LLUUID> OnRemoveAvatar;
86 public event RequestMapBlocks OnRequestMapBlocks; 86 public event RequestMapBlocks OnRequestMapBlocks;
87 public event RequestMapName OnMapNameRequest;
87 public event TeleportLocationRequest OnTeleportLocationRequest; 88 public event TeleportLocationRequest OnTeleportLocationRequest;
88 public event DisconnectUser OnDisconnectUser; 89 public event DisconnectUser OnDisconnectUser;
89 public event RequestAvatarProperties OnRequestAvatarProperties; 90 public event RequestAvatarProperties OnRequestAvatarProperties;
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
diff --git a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
index d107aab..e084266 100644
--- a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
+++ b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
@@ -59,6 +59,7 @@ namespace SimpleApp
59 public event LinkObjects OnLinkObjects; 59 public event LinkObjects OnLinkObjects;
60 public event DelinkObjects OnDelinkObjects; 60 public event DelinkObjects OnDelinkObjects;
61 public event RequestMapBlocks OnRequestMapBlocks; 61 public event RequestMapBlocks OnRequestMapBlocks;
62 public event RequestMapName OnMapNameRequest;
62 public event TeleportLocationRequest OnTeleportLocationRequest; 63 public event TeleportLocationRequest OnTeleportLocationRequest;
63 public event DisconnectUser OnDisconnectUser; 64 public event DisconnectUser OnDisconnectUser;
64 public event RequestAvatarProperties OnRequestAvatarProperties; 65 public event RequestAvatarProperties OnRequestAvatarProperties;