ModernUO/Projects/UOContent/Items/Champion Artifacts/Decorative/Futon.cs
Kamron Batman 54d728a322
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
2022-04-17 08:02:15 -07:00

26 lines
566 B
C#

using ModernUO.Serialization;
namespace Server.Items
{
[Flippable]
[SerializationGenerator(0, false)]
public partial class Futon : Item
{
[Constructible]
public Futon() : base(Utility.RandomDouble() > 0.5 ? 0x295C : 0x295E)
{
}
public void Flip()
{
ItemID = ItemID switch
{
0x295C => 0x295D,
0x295E => 0x295F,
0x295D => 0x295C,
0x295F => 0x295E,
_ => ItemID
};
}
}
}