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)]
|
||||
[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]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BlackDyeTub : DyeTub
|
||||
{
|
||||
[Constructible]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BlazeDyeTub : DyeTub
|
||||
{
|
||||
[Constructible]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using ModernUO.Serialization;
|
||||
using Server.ContextMenus;
|
||||
using Server.Gumps;
|
||||
using Server.Multis;
|
||||
|
|
@ -11,7 +12,7 @@ namespace Server.Items
|
|||
bool Dye(Mobile from, DyeTub sender);
|
||||
}
|
||||
|
||||
[Serializable(2, false)]
|
||||
[SerializationGenerator(2, false)]
|
||||
public partial class DyeTub : Item, ISecurable
|
||||
{
|
||||
[SerializableField(0)]
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Engines.VeteranRewards;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Serializable(1, false)]
|
||||
[SerializationGenerator(1, false)]
|
||||
public partial class FurnitureDyeTub : DyeTub, IRewardItem
|
||||
{
|
||||
[SerializableField(0)]
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Engines.VeteranRewards;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Serializable(1, false)]
|
||||
[SerializationGenerator(1, false)]
|
||||
public partial class LeatherDyeTub : DyeTub, IRewardItem
|
||||
{
|
||||
[SerializableField(0)]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class MetallicClothDyetub : DyeTub
|
||||
{
|
||||
[Constructible]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class MetallicLeatherDyeTub : LeatherDyeTub
|
||||
{
|
||||
[Constructible]
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Engines.VeteranRewards;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Serializable(1, false)]
|
||||
[SerializationGenerator(1, false)]
|
||||
public partial class RewardBlackDyeTub : DyeTub, IRewardItem
|
||||
{
|
||||
[SerializableField(0)]
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Engines.VeteranRewards;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Serializable(1, false)]
|
||||
[SerializationGenerator(1, false)]
|
||||
public partial class RunebookDyeTub : DyeTub, IRewardItem
|
||||
{
|
||||
[SerializableField(0)]
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Engines.VeteranRewards;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Serializable(1, false)]
|
||||
[SerializationGenerator(1, false)]
|
||||
public partial class SpecialDyeTub : DyeTub, IRewardItem
|
||||
{
|
||||
[SerializableField(0)]
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Engines.VeteranRewards;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Serializable(1, false)]
|
||||
[SerializationGenerator(1, false)]
|
||||
public partial class StatuetteDyeTub : DyeTub, IRewardItem
|
||||
{
|
||||
[SerializableField(0)]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items /* High seas, loot from merchant ship's hold, also a "uncommon" loot item */
|
||||
{
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class WhiteClothDyeTub : DyeTub
|
||||
{
|
||||
[Constructible]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class WhiteLeatherDyeTub : LeatherDyeTub /* OSI UO 13th anniv gift, from redeemable gift tickets */
|
||||
{
|
||||
[Constructible]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Engines.Craft;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Flippable(0x1EB8, 0x1EB9)]
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class TinkerTools : BaseTool
|
||||
{
|
||||
[Constructible]
|
||||
|
|
@ -15,7 +16,7 @@ namespace Server.Items
|
|||
public override CraftSystem CraftSystem => DefTinkering.CraftSystem;
|
||||
}
|
||||
|
||||
[Serializable(0, false)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class TinkersTools : BaseTool
|
||||
{
|
||||
[Constructible]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue