aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Framework
diff options
context:
space:
mode:
authorMW2007-04-04 11:06:39 +0000
committerMW2007-04-04 11:06:39 +0000
commita70ef1c2cb90a5b40a2e19acb81cf7310c140663 (patch)
treec7b9cdf97a243bace8711e70eed49e811af7f12d /OpenSim.Framework
parentFinished initial sim<>Grid login (kinda) (diff)
downloadopensim-SC_OLD-a70ef1c2cb90a5b40a2e19acb81cf7310c140663.zip
opensim-SC_OLD-a70ef1c2cb90a5b40a2e19acb81cf7310c140663.tar.gz
opensim-SC_OLD-a70ef1c2cb90a5b40a2e19acb81cf7310c140663.tar.bz2
opensim-SC_OLD-a70ef1c2cb90a5b40a2e19acb81cf7310c140663.tar.xz
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.
Diffstat (limited to 'OpenSim.Framework')
-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