fix: Codegens spellbooks (#1349)

This commit is contained in:
Kamron Batman 2023-02-24 19:04:21 -08:00 • committed by GitHub
parent 8e49fb4da4
commit 10b26741c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 1386 additions and 1509 deletions

View file

@ -1,35 +1,19 @@
namespace Server.Items
using ModernUO.Serialization;
namespace Server.Items;
[SerializationGenerator(0)]
public partial class SpellweavingBook : Spellbook
{
public class SpellweavingBook : Spellbook
[Constructible]
public SpellweavingBook(ulong content = 0) : base(content, 0x2D50)
{
[Constructible]
public SpellweavingBook(ulong content = 0) : base(content, 0x2D50)
{
Hue = 0x8A2;
Layer = Layer.OneHanded;
}
public SpellweavingBook(Serial serial) : base(serial)
{
}
public override SpellbookType SpellbookType => SpellbookType.Arcanist;
public override int BookOffset => 600;
public override int BookCount => 16;
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.WriteEncodedInt(0); // version
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadEncodedInt();
}
Hue = 0x8A2;
Layer = Layer.OneHanded;
}
public override SpellbookType SpellbookType => SpellbookType.Arcanist;
public override int BookOffset => 600;
public override int BookCount => 16;
}