fix: Updates serialization to use v2.0 (#998)

- [X] Deletes serialization annotations
- [X] Updates to ModernUO.Serialization.Annotations nuget
- [X] Updates serializer to v2.0
- [X] Changes all `Serializable()` to `SerializationGenerator()`
- [X] Updates to schema generator v2.0
This commit is contained in:
Kamron Batman 2022-04-17 08:02:15 -07:00 • committed by GitHub
parent 5d972caa9c
commit 54d728a322
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
740 changed files with 2552 additions and 1743 deletions

View file

@ -1,6 +1,8 @@
using ModernUO.Serialization;
namespace Server.Items
{
[Serializable(2, false)]
[SerializationGenerator(2, false)]
[Flippable(0x1bdd, 0x1be0)]
public partial class Log : Item, ICommodity, IAxe
{
@ -86,7 +88,7 @@ namespace Server.Items
}
}
[Serializable(0, false)]
[SerializationGenerator(0, false)]
public partial class HeartwoodLog : Log
{
[Constructible]
@ -97,7 +99,7 @@ namespace Server.Items
public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 100, new HeartwoodBoard());
}
[Serializable(0, false)]
[SerializationGenerator(0, false)]
public partial class BloodwoodLog : Log
{
[Constructible]
@ -108,7 +110,7 @@ namespace Server.Items
public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 100, new BloodwoodBoard());
}
[Serializable(0, false)]
[SerializationGenerator(0, false)]
public partial class FrostwoodLog : Log
{
[Constructible]
@ -119,7 +121,7 @@ namespace Server.Items
public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 100, new FrostwoodBoard());
}
[Serializable(0, false)]
[SerializationGenerator(0, false)]
public partial class OakLog : Log
{
[Constructible]
@ -130,7 +132,7 @@ namespace Server.Items
public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 65, new OakBoard());
}
[Serializable(0, false)]
[SerializationGenerator(0, false)]
public partial class AshLog : Log
{
[Constructible]
@ -141,7 +143,7 @@ namespace Server.Items
public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 80, new AshBoard());
}
[Serializable(0, false)]
[SerializationGenerator(0, false)]
public partial class YewLog : Log
{
[Constructible]