aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Framework/AgentInventory.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim.Framework/AgentInventory.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/OpenSim.Framework/AgentInventory.cs b/OpenSim.Framework/AgentInventory.cs
index e53d071..9919ec3 100644
--- a/OpenSim.Framework/AgentInventory.cs
+++ b/OpenSim.Framework/AgentInventory.cs
@@ -207,13 +207,26 @@ namespace OpenSim.Framework.Inventory
207 public LLUUID CreatorID; 207 public LLUUID CreatorID;
208 public sbyte InvType; 208 public sbyte InvType;
209 public sbyte Type; 209 public sbyte Type;
210 public string Name; 210 public string Name ="";
211 public string Description; 211 public string Description;
212 212
213 public InventoryItem() 213 public InventoryItem()
214 { 214 {
215 this.CreatorID = LLUUID.Zero; 215 this.CreatorID = LLUUID.Zero;
216 } 216 }
217
218 public string ExportString()
219 {
220 string typ = "notecard";
221 string result = "";
222 result += "\tinv_object\t0\n\t{\n";
223 result += "\t\tobj_id\t%s\n";
224 result += "\t\tparent_id\t"+ ItemID.ToString() +"\n";
225 result += "\t\ttype\t"+ typ +"\n";
226 result += "\t\tname\t" + Name+"|\n";
227 result += "\t}\n";
228 return result;
229 }
217 } 230 }
218 231
219 public class AvatarWearable 232 public class AvatarWearable