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,27 +13,27 @@ public partial class MapItem : Item, ICraftable
|
|||
private const int MaxUserPins = 50;
|
||||
|
||||
[SerializableField(0)]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private Rectangle2D _bounds;
|
||||
|
||||
[SerializableField(1)]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private int _width;
|
||||
|
||||
[SerializableField(2)]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private int _height;
|
||||
|
||||
[SerializableField(3)]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private bool _protected;
|
||||
|
||||
[SerializableField(4, setter: "private")]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private List<Point2D> _pins;
|
||||
|
||||
[SerializableField(5)]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private Map _facet;
|
||||
|
||||
[SerializableField(6)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue