/// <summary> /// Output this item as XML /// </summary> /// <param name="outputAssets">Include an asset data as well, TRUE/FALSE</param> override public string toXML(bool outputAssets) { string output = "<item "; output += "name = '" + xmlSafe(Name) + "' "; output += "uuid = '" + ItemID + "' "; output += "invtype = '" + InvType + "' "; output += "type = '" + Type + "' "; output += "description = '" + xmlSafe(Description) + "' "; output += "crc = '" + CRC + "' "; output += "debug = '" + InventoryPacketHelper.InventoryUpdateCRC(this) + "' "; output += "ownerid = '" + OwnerID + "' "; output += "creatorid = '" + CreatorID + "' "; output += "assetid = '" + AssetID + "' "; output += "groupid = '" + GroupID + "' "; output += "groupowned = '" + GroupOwned + "' "; output += "creationdate = '" + CreationDate + "' "; output += "flags = '" + Flags + "' "; output += "saletype = '" + SaleType + "' "; output += "saleprice = '" + SalePrice + "' "; output += "basemask = '" + BaseMask + "' "; output += "everyonemask = '" + EveryoneMask + "' "; output += "nextownermask = '" + NextOwnerMask + "' "; output += "groupmask = '" + GroupMask + "' "; output += "ownermask = '" + OwnerMask + "' "; output += ">"; if (outputAssets) { if (AssetID != LLUUID.Zero) { output += xmlSafe(Helpers.FieldToUTF8String(Asset.AssetData)); } } output += "</item>"; return(output); }
private void UpdateCRC() { _CRC = InventoryPacketHelper.InventoryUpdateCRC(this); }