public void AddNewAgentsInventory(AgentInventory agentInventory)
 {
     if (!this._agentsInventory.ContainsKey(agentInventory.AgentID))
     {
         this._agentsInventory.Add(agentInventory.AgentID, agentInventory);
     }
 }
 public UserProfile()
 {
     Circuits = new Dictionary<LLUUID, uint>();
     Inventory = new AgentInventory();
     homeregionhandle = Helpers.UIntsToLong((997 * 256), (996 * 256));
     homepos = new LLVector3();
     homelookat = new LLVector3();
 }
Example #3
0
 private AgentInventory CreateInventory(LLUUID baseFolder)
 {
     AgentInventory inventory = null;
     if (this.m_userServer != null)
     {
         // a user server is set so request the inventory from it
         Console.WriteLine("getting inventory from user server");
         inventory = m_inventoryCache.FetchAgentsInventory(this.AgentID, m_userServer);
     }
     else
     {
         inventory = new AgentInventory();
         inventory.AgentID = this.AgentID;
         inventory.CreateRootFolder(this.AgentID, false);
         m_inventoryCache.AddNewAgentsInventory(inventory);
         m_inventoryCache.CreateNewInventoryFolder(this, baseFolder);
     }
     return inventory;
 }
 public bool UpdateAgentsInventory(LLUUID agentID, AgentInventory inventory)
 {
     return true;
 }