fix(codegen): Adds string intern, encoded int, enum and legacy version support (#613)
- [X] Adds Enum migration rule - [X] Adds legacy version (writing full int for version field) - [X] Adds encoded int attribute - [X] Adds intern string attribute - [X] Fixes missing base deserialize/serialize
This commit is contained in:
parent
7084c6c24f
commit
ca5a06e9a2
13 changed files with 182 additions and 43 deletions
|
|
@ -21,7 +21,8 @@ namespace Server
|
|||
public sealed class SerializableAttribute : Attribute
|
||||
{
|
||||
public int Version { get; }
|
||||
public bool EncodedVersion { get; }
|
||||
|
||||
public SerializableAttribute(int version) => Version = version;
|
||||
public SerializableAttribute(int version, bool encodedVersion = true) => Version = version;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue