aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/UserManager/UserManagerBase.cs
diff options
context:
space:
mode:
authorMW2007-07-25 18:19:38 +0000
committerMW2007-07-25 18:19:38 +0000
commit2b42ea0a429c722bd7c5c67d3815c2ddc8399e78 (patch)
tree0a6338ff52efbdaadaa9a307bee618867460cfb6 /OpenSim/Framework/UserManager/UserManagerBase.cs
parent* Terrain now uses the older slower method again until the fast version can b... (diff)
downloadopensim-SC_OLD-2b42ea0a429c722bd7c5c67d3815c2ddc8399e78.zip
opensim-SC_OLD-2b42ea0a429c722bd7c5c67d3815c2ddc8399e78.tar.gz
opensim-SC_OLD-2b42ea0a429c722bd7c5c67d3815c2ddc8399e78.tar.bz2
opensim-SC_OLD-2b42ea0a429c722bd7c5c67d3815c2ddc8399e78.tar.xz
Start of the OpenSim library , for now only contains a few textures.
Diffstat (limited to 'OpenSim/Framework/UserManager/UserManagerBase.cs')
-rw-r--r--OpenSim/Framework/UserManager/UserManagerBase.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/OpenSim/Framework/UserManager/UserManagerBase.cs b/OpenSim/Framework/UserManager/UserManagerBase.cs
index a103f25..1acafeb 100644
--- a/OpenSim/Framework/UserManager/UserManagerBase.cs
+++ b/OpenSim/Framework/UserManager/UserManagerBase.cs
@@ -347,6 +347,38 @@ namespace OpenSim.Framework.UserManagement
347 } 347 }
348 348
349 /// <summary> 349 /// <summary>
350 ///
351 /// </summary>
352 /// <returns></returns>
353 protected virtual ArrayList GetInventoryLibrary()
354 {
355 //return new ArrayList();
356 Hashtable TempHash = new Hashtable();
357 TempHash["name"] = "OpenSim Library";
358 TempHash["parent_id"] = LLUUID.Zero.ToStringHyphenated();
359 TempHash["version"] = "1";
360 TempHash["type_default"] = "-1";
361 TempHash["folder_id"] = "00000112-000f-0000-0000-000100bba000";
362 ArrayList temp = new ArrayList();
363 temp.Add(TempHash);
364 return temp;
365 }
366
367 /// <summary>
368 ///
369 /// </summary>
370 /// <returns></returns>
371 protected virtual ArrayList GetLibraryOwner()
372 {
373 //for now create random inventory library owner
374 Hashtable TempHash = new Hashtable();
375 TempHash["agent_id"] = "11111111-1111-0000-0000-000100bba000";
376 ArrayList inventoryLibOwner = new ArrayList();
377 inventoryLibOwner.Add(TempHash);
378 return inventoryLibOwner;
379 }
380
381 /// <summary>
350 /// Customises the login response and fills in missing values. 382 /// Customises the login response and fills in missing values.
351 /// </summary> 383 /// </summary>
352 /// <param name="response">The existing response</param> 384 /// <param name="response">The existing response</param>
@@ -446,6 +478,8 @@ namespace OpenSim.Framework.UserManagement
446 logResponse.SecureSessionID = userProfile.currentAgent.secureSessionID.ToStringHyphenated(); 478 logResponse.SecureSessionID = userProfile.currentAgent.secureSessionID.ToStringHyphenated();
447 logResponse.InventoryRoot = InventoryRoot; 479 logResponse.InventoryRoot = InventoryRoot;
448 logResponse.InventorySkeleton = AgentInventoryArray; 480 logResponse.InventorySkeleton = AgentInventoryArray;
481 logResponse.InventoryLibrary = this.GetInventoryLibrary();
482 logResponse.InventoryLibraryOwner = this.GetLibraryOwner();
449 logResponse.CircuitCode = (Int32)circode; 483 logResponse.CircuitCode = (Int32)circode;
450 //logResponse.RegionX = 0; //overwritten 484 //logResponse.RegionX = 0; //overwritten
451 //logResponse.RegionY = 0; //overwritten 485 //logResponse.RegionY = 0; //overwritten