feat: Updates to Serialization Generator v2.2 (#1157)
* Adds `SerializationProperty` - This will generate the private variable for serialization. Also provides an option `useField` to specify your own. Example: ```cs [SerializationProperty(0, useField: nameof(_resource)] ```
This commit is contained in:
parent
d82028a071
commit
89815ad4d3
50 changed files with 242 additions and 361 deletions
|
|
@ -23,8 +23,6 @@ namespace Server.Items
|
|||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
private bool _redyable;
|
||||
|
||||
private int _dyedHue;
|
||||
|
||||
[Constructible]
|
||||
public DyeTub() : base(0xFAB)
|
||||
{
|
||||
|
|
@ -44,7 +42,7 @@ namespace Server.Items
|
|||
|
||||
public virtual bool AllowDyables => true;
|
||||
|
||||
[SerializableField(2)]
|
||||
[SerializableProperty(2)]
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public int DyedHue
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue