mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user