Houston, we have an inventory folder
parent
b914bf0ab1
commit
8a2bda947a
|
@ -136,25 +136,64 @@ namespace OpenGridServices
|
||||||
uiconfig["allow_first_life"]="Y";
|
uiconfig["allow_first_life"]="Y";
|
||||||
ArrayList ui_config=new ArrayList();
|
ArrayList ui_config=new ArrayList();
|
||||||
ui_config.Add(uiconfig);
|
ui_config.Add(uiconfig);
|
||||||
|
|
||||||
|
Hashtable ClassifiedCategoriesHash = new Hashtable();
|
||||||
|
ClassifiedCategoriesHash["category_name"]="bla bla";
|
||||||
|
ClassifiedCategoriesHash["category_id"]=(Int32)1;
|
||||||
|
ArrayList ClassifiedCategories = new ArrayList();
|
||||||
|
ClassifiedCategories.Add(ClassifiedCategoriesHash);
|
||||||
|
|
||||||
|
ArrayList AgentInventory = new ArrayList();
|
||||||
|
foreach(InventoryFolder InvFolder in TheUser.InventoryFolders.Values) {
|
||||||
|
Hashtable TempHash = new Hashtable();
|
||||||
|
TempHash["name"]=InvFolder.FolderName;
|
||||||
|
TempHash["parent_id"]=InvFolder.ParentID.ToStringHyphenated();
|
||||||
|
TempHash["version"]=(Int32)InvFolder.Version;
|
||||||
|
TempHash["type_default"]=(Int32)InvFolder.DefaultType;
|
||||||
|
TempHash["folder_id"]=InvFolder.FolderID.ToStringHyphenated();
|
||||||
|
AgentInventory.Add(TempHash);
|
||||||
|
}
|
||||||
|
|
||||||
LoginGoodData["message"]=OpenUser_Main.userserver.DefaultStartupMsg;
|
Hashtable InventoryRootHash = new Hashtable();
|
||||||
LoginGoodData["session_id"]=TheUser.CurrentSessionID.ToString();
|
InventoryRootHash["folder_id"]=TheUser.InventoryRoot.FolderID.ToStringHyphenated();
|
||||||
LoginGoodData["secure_sessionid"]=TheUser.CurrentSecureSessionID.ToString();
|
ArrayList InventoryRoot = new ArrayList();
|
||||||
LoginGoodData["agent_access"]="M";
|
InventoryRoot.Add(InventoryRootHash);
|
||||||
LoginGoodData["start_location"]=requestData["start"];
|
|
||||||
LoginGoodData["look_at"]="[r" + TheUser.homelookat.X.ToString() + ", r" + TheUser.homelookat.Y.ToString() + ", r" + TheUser.homelookat.Z.ToString() + "]";
|
Hashtable InitialOutfitHash = new Hashtable();
|
||||||
LoginGoodData["global_textures"]=GlobalTextures;
|
InitialOutfitHash["folder_name"]="Nightclub Female";
|
||||||
LoginGoodData["seconds_since_epoch"]=(Int32)(DateTime.UtcNow - new DateTime(1970,1,1)).TotalSeconds;
|
InitialOutfitHash["gender"]="female";
|
||||||
LoginGoodData["firstname"]=firstname;
|
ArrayList InitialOutfit = new ArrayList();
|
||||||
LoginGoodData["circuit_code"]=(new Random()).Next().ToString();
|
InitialOutfit.Add(InitialOutfitHash);
|
||||||
LoginGoodData["login_flags"]=LoginFlags;
|
|
||||||
LoginGoodData["seed_capability"]=SimInfo.caps_url;
|
LoginGoodData["last_name"]="\"" + TheUser.firstname + "\"";
|
||||||
LoginGoodData["home"]="{'region_handle':[r" + (SimInfo.RegionLocX*256).ToString() + "," + (SimInfo.RegionLocY*256).ToString() + "], 'position':[r" + TheUser.homepos.X.ToString() + "," + TheUser.homepos.Y.ToString() + "," + TheUser.homepos.Z.ToString() + "], 'look_at':[r" + TheUser.homelookat.X.ToString() + "," + TheUser.homelookat.Y.ToString() + "," + TheUser.homelookat.Z.ToString() + "]}";
|
LoginGoodData["ui-config"]=ui_config;
|
||||||
LoginGoodData["sim_ip"]=SimInfo.sim_ip.ToString();
|
LoginGoodData["sim_ip"]=SimInfo.sim_ip.ToString();
|
||||||
LoginGoodData["sim_port"]=SimInfo.sim_port;
|
LoginGoodData["login-flags"]=LoginFlags;
|
||||||
LoginGoodData["region_x"]=SimInfo.RegionLocX;
|
LoginGoodData["global-textures"]=GlobalTextures;
|
||||||
LoginGoodData["region_y"]=SimInfo.RegionLocY;
|
LoginGoodData["classified_categories"]=ClassifiedCategories;
|
||||||
LoginGoodData["ui_config"] = ui_config;
|
LoginGoodData["event_categories"]=new ArrayList();
|
||||||
|
LoginGoodData["inventory-skeleton"]=AgentInventory;
|
||||||
|
LoginGoodData["inventory-skel-lib"]=new ArrayList();
|
||||||
|
LoginGoodData["inventory-root"]=InventoryRoot;
|
||||||
|
LoginGoodData["event_notifications"]=new ArrayList();
|
||||||
|
LoginGoodData["gestures"]=new ArrayList();
|
||||||
|
LoginGoodData["inventory-lib-owner"]=new ArrayList();
|
||||||
|
LoginGoodData["initial-outfit"]=InitialOutfit;
|
||||||
|
LoginGoodData["seconds_since_epoch"]=(Int32)(DateTime.UtcNow - new DateTime(1970,1,1)).TotalSeconds;
|
||||||
|
LoginGoodData["start_location"]="last";
|
||||||
|
LoginGoodData["home"]="{'region_handle':[r" + (SimInfo.RegionLocX*256).ToString() + ",r" + (SimInfo.RegionLocY*256).ToString() + "], 'position':[r" + TheUser.homepos.X.ToString() + ",r" + TheUser.homepos.Y.ToString() + ",r" + TheUser.homepos.Z.ToString() + "], 'look_at':[r" + TheUser.homelookat.X.ToString() + ",r" + TheUser.homelookat.Y.ToString() + ",r" + TheUser.homelookat.Z.ToString() + "]}";
|
||||||
|
LoginGoodData["message"]=OpenUser_Main.userserver.DefaultStartupMsg;
|
||||||
|
LoginGoodData["first_name"]="\"" + firstname + "\"";
|
||||||
|
LoginGoodData["circuit_code"]=(Int32)(new Random()).Next();
|
||||||
|
LoginGoodData["sim_port"]=(Int32)SimInfo.sim_port;
|
||||||
|
LoginGoodData["secure_session_id"]=TheUser.CurrentSecureSessionID.ToStringHyphenated();
|
||||||
|
LoginGoodData["look_at"]="\n[r" + TheUser.homelookat.X.ToString() + ",r" + TheUser.homelookat.Y.ToString() + ",r" + TheUser.homelookat.Z.ToString() + "]\n";
|
||||||
|
LoginGoodData["agent_id"]=AgentID.ToStringHyphenated();
|
||||||
|
LoginGoodData["region_y"]=(Int32)SimInfo.RegionLocY*256;
|
||||||
|
LoginGoodData["region_x"]=(Int32)SimInfo.RegionLocX*256;
|
||||||
|
LoginGoodData["seed_capability"]=null;
|
||||||
|
LoginGoodData["agent_access"]="M";
|
||||||
|
LoginGoodData["session_id"]=TheUser.CurrentSessionID.ToStringHyphenated();
|
||||||
LoginGoodData["login"]="true";
|
LoginGoodData["login"]="true";
|
||||||
|
|
||||||
LoginGoodResp.Value=LoginGoodData;
|
LoginGoodResp.Value=LoginGoodData;
|
||||||
|
|
|
@ -106,6 +106,8 @@ namespace OpenGridServices
|
||||||
public LLUUID CurrentSecureSessionID;
|
public LLUUID CurrentSecureSessionID;
|
||||||
public LLUUID UUID;
|
public LLUUID UUID;
|
||||||
public Dictionary<LLUUID, uint> Circuits = new Dictionary<LLUUID, uint>(); // tracks circuit codes
|
public Dictionary<LLUUID, uint> Circuits = new Dictionary<LLUUID, uint>(); // tracks circuit codes
|
||||||
|
|
||||||
|
public InventoryFolder InventoryRoot;
|
||||||
public Dictionary<LLUUID, InventoryFolder> InventoryFolders;
|
public Dictionary<LLUUID, InventoryFolder> InventoryFolders;
|
||||||
public Dictionary<LLUUID, InventoryItem> InventoryItems;
|
public Dictionary<LLUUID, InventoryItem> InventoryItems;
|
||||||
|
|
||||||
|
@ -113,6 +115,13 @@ namespace OpenGridServices
|
||||||
Circuits = new Dictionary<LLUUID, uint>();
|
Circuits = new Dictionary<LLUUID, uint>();
|
||||||
InventoryFolders = new Dictionary<LLUUID, InventoryFolder>();
|
InventoryFolders = new Dictionary<LLUUID, InventoryFolder>();
|
||||||
InventoryItems = new Dictionary<LLUUID, InventoryItem>();
|
InventoryItems = new Dictionary<LLUUID, InventoryItem>();
|
||||||
|
InventoryRoot=new InventoryFolder();
|
||||||
|
InventoryRoot.FolderID = LLUUID.Random();
|
||||||
|
InventoryRoot.ParentID=new LLUUID();
|
||||||
|
InventoryRoot.Version=1;
|
||||||
|
InventoryRoot.DefaultType=8;
|
||||||
|
InventoryRoot.FolderName="My Inventory";
|
||||||
|
InventoryFolders.Add(InventoryRoot.FolderID, InventoryRoot);
|
||||||
homeregionhandle=Util.UIntsToLong((997*256), (996*256));;
|
homeregionhandle=Util.UIntsToLong((997*256), (996*256));;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue