From a70ef1c2cb90a5b40a2e19acb81cf7310c140663 Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 4 Apr 2007 11:06:39 +0000 Subject: Started to clean up/ rewrite Primitive class , currently the new version is called Primitive2 and not used, but once it is complete then it will replace the old version. --- OpenSim.Framework/AgentInventory.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'OpenSim.Framework') 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 public LLUUID CreatorID; public sbyte InvType; public sbyte Type; - public string Name; + public string Name =""; public string Description; public InventoryItem() { this.CreatorID = LLUUID.Zero; } + + public string ExportString() + { + string typ = "notecard"; + string result = ""; + result += "\tinv_object\t0\n\t{\n"; + result += "\t\tobj_id\t%s\n"; + result += "\t\tparent_id\t"+ ItemID.ToString() +"\n"; + result += "\t\ttype\t"+ typ +"\n"; + result += "\t\tname\t" + Name+"|\n"; + result += "\t}\n"; + return result; + } } public class AvatarWearable -- cgit v1.1