public bool CreateNewFolder(LLUUID folderID, ushort type)
        {
            InventoryFolder Folder = new InventoryFolder();

            Folder.FolderID    = folderID;
            Folder.OwnerID     = this.AgentID;
            Folder.DefaultType = type;
            this.InventoryFolders.Add(Folder.FolderID, Folder);
            return(true);
        }
        public bool CreateNewFolder(LLUUID folderID, ushort type, string folderName, LLUUID parent)
        {
            Console.WriteLine("creating new folder called " + folderName + " in agents inventory");
            InventoryFolder Folder = new InventoryFolder();

            Folder.FolderID    = folderID;
            Folder.OwnerID     = this.AgentID;
            Folder.DefaultType = type;
            Folder.FolderName  = folderName;
            Folder.ParentID    = parent;
            this.InventoryFolders.Add(Folder.FolderID, Folder);

            return(true);
        }
 public void CreateRootFolder(LLUUID newAgentID, bool createTextures)
 {
     this.AgentID              = newAgentID;
     InventoryRoot             = new InventoryFolder();
     InventoryRoot.FolderID    = LLUUID.Random();
     InventoryRoot.ParentID    = new LLUUID();
     InventoryRoot.Version     = 1;
     InventoryRoot.DefaultType = 8;
     InventoryRoot.OwnerID     = this.AgentID;
     InventoryRoot.FolderName  = "My Inventory-";
     InventoryFolders.Add(InventoryRoot.FolderID, InventoryRoot);
     InventoryRoot.OwnerID = this.AgentID;
     if (createTextures)
     {
         this.CreateNewFolder(LLUUID.Random(), 0, "Textures", InventoryRoot.FolderID);
     }
 }