aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs62
1 files changed, 52 insertions, 10 deletions
diff --git a/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs b/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs
index 18803c0..bcfce3f 100644
--- a/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs
+++ b/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs
@@ -9,6 +9,7 @@ namespace OpenSim.Framework.Communications.Caches
9 public class LibraryRootFolder : InventoryFolder 9 public class LibraryRootFolder : InventoryFolder
10 { 10 {
11 private LLUUID libOwner = new LLUUID("11111111-1111-0000-0000-000100bba000"); 11 private LLUUID libOwner = new LLUUID("11111111-1111-0000-0000-000100bba000");
12 private InventoryFolder m_textureFolder;
12 13
13 public LibraryRootFolder() 14 public LibraryRootFolder()
14 { 15 {
@@ -19,11 +20,22 @@ namespace OpenSim.Framework.Communications.Caches
19 this.type = (short)-1; 20 this.type = (short)-1;
20 this.version = (ushort) 1; 21 this.version = (ushort) 1;
21 22
23 InventoryFolder folderInfo = new InventoryFolder();
24 folderInfo.agentID = libOwner;
25 folderInfo.folderID = new LLUUID("00000112-000f-0000-0000-000100bba001");
26 folderInfo.name = "My Inventory";
27 folderInfo.parentID = this.folderID;
28 folderInfo.type = -1;
29 folderInfo.version = 1;
30 this.SubFolders.Add(folderInfo.folderID, folderInfo);
31 this.m_textureFolder = folderInfo;
32
22 this.CreateLibraryItems(); 33 this.CreateLibraryItems();
23 } 34 }
24 35
25 private void CreateLibraryItems() 36 private void CreateLibraryItems()
26 { 37 {
38
27 InventoryItemBase item = new InventoryItemBase(); 39 InventoryItemBase item = new InventoryItemBase();
28 item.avatarID = libOwner; 40 item.avatarID = libOwner;
29 item.creatorsID = libOwner; 41 item.creatorsID = libOwner;
@@ -32,12 +44,12 @@ namespace OpenSim.Framework.Communications.Caches
32 item.inventoryDescription = "Plywood texture"; 44 item.inventoryDescription = "Plywood texture";
33 item.inventoryName = "Plywood"; 45 item.inventoryName = "Plywood";
34 item.type = 0; 46 item.type = 0;
35 item.parentFolderID = this.folderID; 47 item.parentFolderID = m_textureFolder.folderID;
36 item.inventoryBasePermissions = 0x7FFFFFFF; 48 item.inventoryBasePermissions = 0x7FFFFFFF;
37 item.inventoryEveryOnePermissions = 0x7FFFFFFF; 49 item.inventoryEveryOnePermissions = 0x7FFFFFFF;
38 item.inventoryCurrentPermissions = 0x7FFFFFFF; 50 item.inventoryCurrentPermissions = 0x7FFFFFFF;
39 item.inventoryNextPermissions = 0x7FFFFFFF; 51 item.inventoryNextPermissions = 0x7FFFFFFF;
40 this.Items.Add(item.inventoryID, item); 52 this.m_textureFolder.Items.Add(item.inventoryID, item);
41 53
42 item = new InventoryItemBase(); 54 item = new InventoryItemBase();
43 item.avatarID = libOwner; 55 item.avatarID = libOwner;
@@ -47,12 +59,12 @@ namespace OpenSim.Framework.Communications.Caches
47 item.inventoryDescription = "Rocks texture"; 59 item.inventoryDescription = "Rocks texture";
48 item.inventoryName = "Rocks"; 60 item.inventoryName = "Rocks";
49 item.type = 0; 61 item.type = 0;
50 item.parentFolderID = this.folderID; 62 item.parentFolderID = m_textureFolder.folderID;
51 item.inventoryBasePermissions = 0x7FFFFFFF; 63 item.inventoryBasePermissions = 0x7FFFFFFF;
52 item.inventoryEveryOnePermissions = 0x7FFFFFFF; 64 item.inventoryEveryOnePermissions = 0x7FFFFFFF;
53 item.inventoryCurrentPermissions = 0x7FFFFFFF; 65 item.inventoryCurrentPermissions = 0x7FFFFFFF;
54 item.inventoryNextPermissions = 0x7FFFFFFF; 66 item.inventoryNextPermissions = 0x7FFFFFFF;
55 this.Items.Add(item.inventoryID, item); 67 this.m_textureFolder.Items.Add(item.inventoryID, item);
56 68
57 item = new InventoryItemBase(); 69 item = new InventoryItemBase();
58 item.avatarID = libOwner; 70 item.avatarID = libOwner;
@@ -62,12 +74,12 @@ namespace OpenSim.Framework.Communications.Caches
62 item.inventoryDescription = "Bricks texture"; 74 item.inventoryDescription = "Bricks texture";
63 item.inventoryName = "Bricks"; 75 item.inventoryName = "Bricks";
64 item.type = 0; 76 item.type = 0;
65 item.parentFolderID = this.folderID; 77 item.parentFolderID = m_textureFolder.folderID;
66 item.inventoryBasePermissions = 0x7FFFFFFF; 78 item.inventoryBasePermissions = 0x7FFFFFFF;
67 item.inventoryEveryOnePermissions = 0x7FFFFFFF; 79 item.inventoryEveryOnePermissions = 0x7FFFFFFF;
68 item.inventoryCurrentPermissions = 0x7FFFFFFF; 80 item.inventoryCurrentPermissions = 0x7FFFFFFF;
69 item.inventoryNextPermissions = 0x7FFFFFFF; 81 item.inventoryNextPermissions = 0x7FFFFFFF;
70 this.Items.Add(item.inventoryID, item); 82 this.m_textureFolder.Items.Add(item.inventoryID, item);
71 83
72 item = new InventoryItemBase(); 84 item = new InventoryItemBase();
73 item.avatarID = libOwner; 85 item.avatarID = libOwner;
@@ -77,12 +89,12 @@ namespace OpenSim.Framework.Communications.Caches
77 item.inventoryDescription = "Granite texture"; 89 item.inventoryDescription = "Granite texture";
78 item.inventoryName = "Granite"; 90 item.inventoryName = "Granite";
79 item.type = 0; 91 item.type = 0;
80 item.parentFolderID = this.folderID; 92 item.parentFolderID = m_textureFolder.folderID;
81 item.inventoryBasePermissions = 0x7FFFFFFF; 93 item.inventoryBasePermissions = 0x7FFFFFFF;
82 item.inventoryEveryOnePermissions = 0x7FFFFFFF; 94 item.inventoryEveryOnePermissions = 0x7FFFFFFF;
83 item.inventoryCurrentPermissions = 0x7FFFFFFF; 95 item.inventoryCurrentPermissions = 0x7FFFFFFF;
84 item.inventoryNextPermissions = 0x7FFFFFFF; 96 item.inventoryNextPermissions = 0x7FFFFFFF;
85 this.Items.Add(item.inventoryID, item); 97 this.m_textureFolder.Items.Add(item.inventoryID, item);
86 98
87 item = new InventoryItemBase(); 99 item = new InventoryItemBase();
88 item.avatarID = libOwner; 100 item.avatarID = libOwner;
@@ -92,12 +104,12 @@ namespace OpenSim.Framework.Communications.Caches
92 item.inventoryDescription = "Hardwood texture"; 104 item.inventoryDescription = "Hardwood texture";
93 item.inventoryName = "Hardwood"; 105 item.inventoryName = "Hardwood";
94 item.type = 0; 106 item.type = 0;
95 item.parentFolderID = this.folderID; 107 item.parentFolderID = m_textureFolder.folderID;
96 item.inventoryBasePermissions = 0x7FFFFFFF; 108 item.inventoryBasePermissions = 0x7FFFFFFF;
97 item.inventoryEveryOnePermissions = 0x7FFFFFFF; 109 item.inventoryEveryOnePermissions = 0x7FFFFFFF;
98 item.inventoryCurrentPermissions = 0x7FFFFFFF; 110 item.inventoryCurrentPermissions = 0x7FFFFFFF;
99 item.inventoryNextPermissions = 0x7FFFFFFF; 111 item.inventoryNextPermissions = 0x7FFFFFFF;
100 this.Items.Add(item.inventoryID, item); 112 this.m_textureFolder.Items.Add(item.inventoryID, item);
101 113
102 item = new InventoryItemBase(); 114 item = new InventoryItemBase();
103 item.avatarID = libOwner; 115 item.avatarID = libOwner;
@@ -111,6 +123,36 @@ namespace OpenSim.Framework.Communications.Caches
111 item.inventoryCurrentPermissions = 0; 123 item.inventoryCurrentPermissions = 0;
112 item.inventoryNextPermissions = 0; 124 item.inventoryNextPermissions = 0;
113 this.Items.Add(item.inventoryID, item); 125 this.Items.Add(item.inventoryID, item);
126
127 item = new InventoryItemBase();
128 item.avatarID = libOwner;
129 item.creatorsID = libOwner;
130 item.inventoryID = new LLUUID("77c41e39-38f9-f75a-024e-585989bfabc9");
131 item.assetID = new LLUUID("77c41e39-38f9-f75a-024e-585989bbabbb");
132 item.inventoryDescription = "Default Skin";
133 item.inventoryName = "Default Skin";
134 item.type = 13;
135 item.parentFolderID = this.folderID;
136 item.inventoryCurrentPermissions = 0;
137 item.inventoryNextPermissions = 0;
138 this.Items.Add(item.inventoryID, item);
139
140 item = new InventoryItemBase();
141 item.avatarID = libOwner;
142 item.creatorsID = libOwner;
143 item.inventoryID = new LLUUID("00000000-0000-2222-4444-000000000001");
144 item.assetID = new LLUUID("00000000-0000-2222-3333-000000000001");
145 item.inventoryDescription = "Welcome";
146 item.inventoryName = "Welcome";
147 item.type = 7;
148 item.parentFolderID = this.folderID;
149 item.inventoryCurrentPermissions = (1 << 15);
150 item.inventoryNextPermissions = (1 << 15);
151 item.inventoryEveryOnePermissions = (1 << 15);
152 item.inventoryBasePermissions = (1 << 15);
153 this.Items.Add(item.inventoryID, item);
154
155
114 } 156 }
115 157
116 } 158 }