aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/LLLoginService/LLLoginResponse.cs
diff options
context:
space:
mode:
authorMelanie2010-07-04 11:02:21 +0100
committerMelanie2010-07-04 11:02:21 +0100
commit8a45191aa9834623cb69f17a3855a730648e89c2 (patch)
treefcc5815839a9b67d915528f6e4510f3af2fa2faa /OpenSim/Services/LLLoginService/LLLoginResponse.cs
parentMerge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/ca... (diff)
parentFixes the obvious problem in mantis #4841. Melanie needs to look at other pot... (diff)
downloadopensim-SC_OLD-8a45191aa9834623cb69f17a3855a730648e89c2.zip
opensim-SC_OLD-8a45191aa9834623cb69f17a3855a730648e89c2.tar.gz
opensim-SC_OLD-8a45191aa9834623cb69f17a3855a730648e89c2.tar.bz2
opensim-SC_OLD-8a45191aa9834623cb69f17a3855a730648e89c2.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Services/LLLoginService/LLLoginResponse.cs')
-rw-r--r--OpenSim/Services/LLLoginService/LLLoginResponse.cs21
1 files changed, 19 insertions, 2 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs
index 6a2cbeb..240f5b1 100644
--- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs
+++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs
@@ -175,6 +175,9 @@ namespace OpenSim.Services.LLLoginService
175 private string firstname; 175 private string firstname;
176 private string lastname; 176 private string lastname;
177 177
178 // Web map
179 private string mapTileURL;
180
178 // Error Flags 181 // Error Flags
179 private string errorReason; 182 private string errorReason;
180 private string errorMessage; 183 private string errorMessage;
@@ -223,7 +226,7 @@ namespace OpenSim.Services.LLLoginService
223 public LLLoginResponse(UserAccount account, AgentCircuitData aCircuit, GridUserInfo pinfo, 226 public LLLoginResponse(UserAccount account, AgentCircuitData aCircuit, GridUserInfo pinfo,
224 GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService, 227 GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService,
225 string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message, 228 string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message,
226 GridRegion home, IPEndPoint clientIP) 229 GridRegion home, IPEndPoint clientIP, string mapTileURL)
227 : this() 230 : this()
228 { 231 {
229 FillOutInventoryData(invSkel, libService); 232 FillOutInventoryData(invSkel, libService);
@@ -239,6 +242,7 @@ namespace OpenSim.Services.LLLoginService
239 Message = message; 242 Message = message;
240 BuddList = ConvertFriendListItem(friendsList); 243 BuddList = ConvertFriendListItem(friendsList);
241 StartLocation = where; 244 StartLocation = where;
245 MapTileURL = mapTileURL;
242 246
243 FillOutHomeData(pinfo, home); 247 FillOutHomeData(pinfo, home);
244 LookAt = String.Format("[r{0},r{1},r{2}]", lookAt.X, lookAt.Y, lookAt.Z); 248 LookAt = String.Format("[r{0},r{1},r{2}]", lookAt.X, lookAt.Y, lookAt.Z);
@@ -411,6 +415,7 @@ namespace OpenSim.Services.LLLoginService
411 InitialOutfitHash["folder_name"] = "Nightclub Female"; 415 InitialOutfitHash["folder_name"] = "Nightclub Female";
412 InitialOutfitHash["gender"] = "female"; 416 InitialOutfitHash["gender"] = "female";
413 initialOutfit.Add(InitialOutfitHash); 417 initialOutfit.Add(InitialOutfitHash);
418 mapTileURL = String.Empty;
414 } 419 }
415 420
416 421
@@ -474,6 +479,9 @@ namespace OpenSim.Services.LLLoginService
474 responseData["region_x"] = (Int32)(RegionX); 479 responseData["region_x"] = (Int32)(RegionX);
475 responseData["region_y"] = (Int32)(RegionY); 480 responseData["region_y"] = (Int32)(RegionY);
476 481
482 if (mapTileURL != String.Empty)
483 responseData["map-server-url"] = mapTileURL;
484
477 if (m_buddyList != null) 485 if (m_buddyList != null)
478 { 486 {
479 responseData["buddy-list"] = m_buddyList.ToArray(); 487 responseData["buddy-list"] = m_buddyList.ToArray();
@@ -570,6 +578,9 @@ namespace OpenSim.Services.LLLoginService
570 map["region_x"] = OSD.FromInteger(RegionX); 578 map["region_x"] = OSD.FromInteger(RegionX);
571 map["region_y"] = OSD.FromInteger(RegionY); 579 map["region_y"] = OSD.FromInteger(RegionY);
572 580
581 if (mapTileURL != String.Empty)
582 map["map-server-url"] = OSD.FromString(mapTileURL);
583
573 if (m_buddyList != null) 584 if (m_buddyList != null)
574 { 585 {
575 map["buddy-list"] = ArrayListToOSDArray(m_buddyList.ToArray()); 586 map["buddy-list"] = ArrayListToOSDArray(m_buddyList.ToArray());
@@ -653,7 +664,7 @@ namespace OpenSim.Services.LLLoginService
653 Hashtable TempHash; 664 Hashtable TempHash;
654 foreach (InventoryFolderBase InvFolder in folders) 665 foreach (InventoryFolderBase InvFolder in folders)
655 { 666 {
656 if (InvFolder.ParentID == UUID.Zero) 667 if (InvFolder.ParentID == UUID.Zero && InvFolder.Name == "My Inventory")
657 { 668 {
658 rootID = InvFolder.ID; 669 rootID = InvFolder.ID;
659 } 670 }
@@ -921,6 +932,12 @@ namespace OpenSim.Services.LLLoginService
921 set { home = value; } 932 set { home = value; }
922 } 933 }
923 934
935 public string MapTileURL
936 {
937 get { return mapTileURL; }
938 set { mapTileURL = value; }
939 }
940
924 public string Message 941 public string Message
925 { 942 {
926 get { return welcomeMessage; } 943 get { return welcomeMessage; }