feat: Adds SerializedCommandProperty (#1249)
## Breaking Change
* Removes `SerializableFieldAttrAttribute` in favor of `SerializedPropertyAttr`.
## Important Change
* Adds `SerializedCommandProperty`
Example:
```cs
[InvalidateProperties]
[SerializableField(0)]
[SerializedCommandProperty(AccessLevel.GameMaster)]
private Mobile _completedBy;
```
This commit is contained in:
parent
5660f4636e
commit
936000ecf7
79 changed files with 272 additions and 231 deletions
|
|
@ -13,7 +13,7 @@ public interface ICommodity /* added IsDeedable prop so expansion-based deedable
|
|||
public partial class CommodityDeed : Item
|
||||
{
|
||||
[SerializableField(0, setter: "private")]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
public Item _commodity;
|
||||
|
||||
[Constructible]
|
||||
|
|
|
|||
|
|
@ -12,12 +12,12 @@ public partial class DragonBardingDeed : Item, ICraftable
|
|||
{
|
||||
[InvalidateProperties]
|
||||
[SerializableField(0)]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private string _craftedBy;
|
||||
|
||||
[InvalidateProperties]
|
||||
[SerializableField(1)]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private bool _exceptional;
|
||||
|
||||
public DragonBardingDeed() : base(0x14F0) => Weight = 1.0;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ namespace Server.Items;
|
|||
public partial class NewPlayerTicket : Item
|
||||
{
|
||||
[SerializableField(0)]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.Owner)]")]
|
||||
[SerializedCommandProperty(AccessLevel.Owner)]
|
||||
private Mobile _owner;
|
||||
|
||||
[Constructible]
|
||||
|
|
|
|||
|
|
@ -21,11 +21,11 @@ public partial class VendorRentalContract : Item
|
|||
private Timer _offerExpireTimer;
|
||||
|
||||
[SerializableField(1)]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private int _price;
|
||||
|
||||
[SerializableField(2)]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private bool _landlordRenew;
|
||||
|
||||
[Constructible]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue