diff options
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Services')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginResponse.cs | 21 | ||||
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 4 |
2 files changed, 22 insertions, 3 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; } |
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index 5c12a54..d27c26d 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -73,6 +73,7 @@ namespace OpenSim.Services.LLLoginService | |||
73 | protected int m_MinLoginLevel; | 73 | protected int m_MinLoginLevel; |
74 | protected string m_GatekeeperURL; | 74 | protected string m_GatekeeperURL; |
75 | protected bool m_AllowRemoteSetLoginLevel; | 75 | protected bool m_AllowRemoteSetLoginLevel; |
76 | protected string m_MapTileURL; | ||
76 | 77 | ||
77 | IConfig m_LoginServerConfig; | 78 | IConfig m_LoginServerConfig; |
78 | 79 | ||
@@ -100,6 +101,7 @@ namespace OpenSim.Services.LLLoginService | |||
100 | m_AllowRemoteSetLoginLevel = m_LoginServerConfig.GetBoolean("AllowRemoteSetLoginLevel", false); | 101 | m_AllowRemoteSetLoginLevel = m_LoginServerConfig.GetBoolean("AllowRemoteSetLoginLevel", false); |
101 | m_MinLoginLevel = m_LoginServerConfig.GetInt("MinLoginLevel", 0); | 102 | m_MinLoginLevel = m_LoginServerConfig.GetInt("MinLoginLevel", 0); |
102 | m_GatekeeperURL = m_LoginServerConfig.GetString("GatekeeperURI", string.Empty); | 103 | m_GatekeeperURL = m_LoginServerConfig.GetString("GatekeeperURI", string.Empty); |
104 | m_MapTileURL = m_LoginServerConfig.GetString("MapTileURL", string.Empty); | ||
103 | 105 | ||
104 | // These are required; the others aren't | 106 | // These are required; the others aren't |
105 | if (accountService == string.Empty || authService == string.Empty) | 107 | if (accountService == string.Empty || authService == string.Empty) |
@@ -362,7 +364,7 @@ namespace OpenSim.Services.LLLoginService | |||
362 | // Finally, fill out the response and return it | 364 | // Finally, fill out the response and return it |
363 | // | 365 | // |
364 | LLLoginResponse response = new LLLoginResponse(account, aCircuit, guinfo, destination, inventorySkel, friendsList, m_LibraryService, | 366 | LLLoginResponse response = new LLLoginResponse(account, aCircuit, guinfo, destination, inventorySkel, friendsList, m_LibraryService, |
365 | where, startLocation, position, lookAt, gestures, m_WelcomeMessage, home, clientIP); | 367 | where, startLocation, position, lookAt, gestures, m_WelcomeMessage, home, clientIP, m_MapTileURL); |
366 | 368 | ||
367 | m_log.DebugFormat("[LLOGIN SERVICE]: All clear. Sending login response to client."); | 369 | m_log.DebugFormat("[LLOGIN SERVICE]: All clear. Sending login response to client."); |
368 | return response; | 370 | return response; |