diff options
author | onefang | 2021-08-26 06:21:19 +1000 |
---|---|---|
committer | onefang | 2021-08-26 06:21:19 +1000 |
commit | cdfbb899f1112dab44d5490838765e9bd73bc60e (patch) | |
tree | 52cddd0b76e7ad8544a0ada533f91bb5fc402025 /OpenSim/Framework/InventoryItemBase.cs | |
parent | Still failing to reconnect for dbCount(), just set the fucking timeout to a y... (diff) | |
parent | Don't strip (OWNER) out of script error report. (diff) | |
download | opensim-SC-cdfbb899f1112dab44d5490838765e9bd73bc60e.zip opensim-SC-cdfbb899f1112dab44d5490838765e9bd73bc60e.tar.gz opensim-SC-cdfbb899f1112dab44d5490838765e9bd73bc60e.tar.bz2 opensim-SC-cdfbb899f1112dab44d5490838765e9bd73bc60e.tar.xz |
Merge branch 'switch' into Domme.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/InventoryItemBase.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs index c359a0c..dcf078c 100644 --- a/OpenSim/Framework/InventoryItemBase.cs +++ b/OpenSim/Framework/InventoryItemBase.cs | |||
@@ -26,6 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Text; | ||
29 | using OpenMetaverse; | 30 | using OpenMetaverse; |
30 | 31 | ||
31 | namespace OpenSim.Framework | 32 | namespace OpenSim.Framework |
@@ -415,5 +416,40 @@ namespace OpenSim.Framework | |||
415 | { | 416 | { |
416 | return MemberwiseClone(); | 417 | return MemberwiseClone(); |
417 | } | 418 | } |
419 | |||
420 | public void ToLLSDxml(StringBuilder lsl, uint flagsMask = 0xffffffff) | ||
421 | { | ||
422 | LLSDxmlEncode.AddMap(lsl); | ||
423 | LLSDxmlEncode.AddElem("parent_id", Folder, lsl); | ||
424 | LLSDxmlEncode.AddElem("asset_id", AssetID, lsl); | ||
425 | LLSDxmlEncode.AddElem("item_id", ID, lsl); | ||
426 | |||
427 | LLSDxmlEncode.AddMap("permissions",lsl); | ||
428 | LLSDxmlEncode.AddElem("creator_id", CreatorIdAsUuid, lsl); | ||
429 | LLSDxmlEncode.AddElem("owner_id", Owner, lsl); | ||
430 | LLSDxmlEncode.AddElem("group_id", GroupID, lsl); | ||
431 | LLSDxmlEncode.AddElem("base_mask", (int)CurrentPermissions, lsl); | ||
432 | LLSDxmlEncode.AddElem("owner_mask", (int)CurrentPermissions, lsl); | ||
433 | LLSDxmlEncode.AddElem("group_mask", (int)GroupPermissions, lsl); | ||
434 | LLSDxmlEncode.AddElem("everyone_mask", (int)EveryOnePermissions, lsl); | ||
435 | LLSDxmlEncode.AddElem("next_owner_mask", (int)NextPermissions, lsl); | ||
436 | LLSDxmlEncode.AddElem("is_owner_group", GroupOwned, lsl); | ||
437 | LLSDxmlEncode.AddEndMap(lsl); | ||
438 | |||
439 | LLSDxmlEncode.AddElem("type", AssetType, lsl); | ||
440 | LLSDxmlEncode.AddElem("inv_type", InvType, lsl); | ||
441 | LLSDxmlEncode.AddElem("flags", (int)(Flags & flagsMask), lsl); | ||
442 | |||
443 | LLSDxmlEncode.AddMap("sale_info",lsl); | ||
444 | LLSDxmlEncode.AddElem("sale_price", SalePrice, lsl); | ||
445 | LLSDxmlEncode.AddElem("sale_type", SaleType, lsl); | ||
446 | LLSDxmlEncode.AddEndMap(lsl); | ||
447 | |||
448 | LLSDxmlEncode.AddElem("name", Name, lsl); | ||
449 | LLSDxmlEncode.AddElem("desc", Description, lsl); | ||
450 | LLSDxmlEncode.AddElem("created_at", CreationDate, lsl); | ||
451 | |||
452 | LLSDxmlEncode.AddEndMap(lsl); | ||
453 | } | ||
418 | } | 454 | } |
419 | } | 455 | } |