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,17 +13,17 @@ public partial class Guildstone : Item, IAddon, IChoppable
|
|||
{
|
||||
[InvalidateProperties]
|
||||
[SerializableField(0)]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private string _guildName;
|
||||
|
||||
[InvalidateProperties]
|
||||
[SerializableField(1)]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private string _guildAbbrev;
|
||||
|
||||
[InvalidateProperties]
|
||||
[SerializableField(2, setter: "private")]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private Guild _guild;
|
||||
|
||||
public Guildstone(Guild g) : this(g, g.Name, g.Abbreviation)
|
||||
|
|
@ -209,17 +209,17 @@ public partial class GuildstoneDeed : Item
|
|||
{
|
||||
[InvalidateProperties]
|
||||
[SerializableField(0)]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private string _guildName;
|
||||
|
||||
[InvalidateProperties]
|
||||
[SerializableField(1)]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private string _guildAbbrev;
|
||||
|
||||
[InvalidateProperties]
|
||||
[SerializableField(2, setter: "private")]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private Guild _guild;
|
||||
|
||||
[Constructible]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue