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:
parent
5d972caa9c
commit
54d728a322
740 changed files with 2552 additions and 1743 deletions
|
|
@ -1,6 +1,8 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Serializable(2, false)]
|
||||
[SerializationGenerator(2, false)]
|
||||
public abstract partial class BaseIngot : Item, ICommodity
|
||||
{
|
||||
[InvalidateProperties]
|
||||
|
|
@ -98,7 +100,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
[Flippable(0x1BF2, 0x1BEF)]
|
||||
public partial class IronIngot : BaseIngot
|
||||
{
|
||||
|
|
@ -108,7 +110,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
[Flippable(0x1BF2, 0x1BEF)]
|
||||
public partial class DullCopperIngot : BaseIngot
|
||||
{
|
||||
|
|
@ -118,7 +120,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
[Flippable(0x1BF2, 0x1BEF)]
|
||||
public partial class ShadowIronIngot : BaseIngot
|
||||
{
|
||||
|
|
@ -128,7 +130,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
[Flippable(0x1BF2, 0x1BEF)]
|
||||
public partial class CopperIngot : BaseIngot
|
||||
{
|
||||
|
|
@ -138,7 +140,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
[Flippable(0x1BF2, 0x1BEF)]
|
||||
public partial class BronzeIngot : BaseIngot
|
||||
{
|
||||
|
|
@ -148,7 +150,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
[Flippable(0x1BF2, 0x1BEF)]
|
||||
public partial class GoldIngot : BaseIngot
|
||||
{
|
||||
|
|
@ -158,7 +160,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
[Flippable(0x1BF2, 0x1BEF)]
|
||||
public partial class AgapiteIngot : BaseIngot
|
||||
{
|
||||
|
|
@ -168,7 +170,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
[Flippable(0x1BF2, 0x1BEF)]
|
||||
public partial class VeriteIngot : BaseIngot
|
||||
{
|
||||
|
|
@ -178,7 +180,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
[Flippable(0x1BF2, 0x1BEF)]
|
||||
public partial class ValoriteIngot : BaseIngot
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Engines.Craft;
|
||||
using Server.Mobiles;
|
||||
using Server.Targeting;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Serializable(2, false)]
|
||||
[SerializationGenerator(2, false)]
|
||||
public abstract partial class BaseOre : Item
|
||||
{
|
||||
public BaseOre(CraftResource resource, int amount = 1) : base(RandomSize())
|
||||
|
|
@ -363,7 +364,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class IronOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
|
|
@ -382,7 +383,7 @@ namespace Server.Items
|
|||
public override BaseIngot GetIngot() => new IronIngot();
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class DullCopperOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
|
|
@ -393,7 +394,7 @@ namespace Server.Items
|
|||
public override BaseIngot GetIngot() => new DullCopperIngot();
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class ShadowIronOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
|
|
@ -404,7 +405,7 @@ namespace Server.Items
|
|||
public override BaseIngot GetIngot() => new ShadowIronIngot();
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class CopperOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
|
|
@ -415,7 +416,7 @@ namespace Server.Items
|
|||
public override BaseIngot GetIngot() => new CopperIngot();
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BronzeOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
|
|
@ -426,7 +427,7 @@ namespace Server.Items
|
|||
public override BaseIngot GetIngot() => new BronzeIngot();
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class GoldOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
|
|
@ -437,7 +438,7 @@ namespace Server.Items
|
|||
public override BaseIngot GetIngot() => new GoldIngot();
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class AgapiteOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
|
|
@ -448,7 +449,7 @@ namespace Server.Items
|
|||
public override BaseIngot GetIngot() => new AgapiteIngot();
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class VeriteOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
|
|
@ -459,7 +460,7 @@ namespace Server.Items
|
|||
public override BaseIngot GetIngot() => new VeriteIngot();
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class ValoriteOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue