fix: Changes on Vendors>NPC>Guildmasters to use code generation (#1307)
This commit is contained in:
parent
6eebf358da
commit
75d8a5147c
28 changed files with 126 additions and 248 deletions
|
|
@ -1,10 +1,12 @@
|
|||
using ModernUO.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using Server.ContextMenus;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class TinkerGuildmaster : BaseGuildmaster
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class TinkerGuildmaster : BaseGuildmaster
|
||||
{
|
||||
[Constructible]
|
||||
public TinkerGuildmaster() : base("tinker")
|
||||
|
|
@ -14,26 +16,8 @@ namespace Server.Mobiles
|
|||
SetSkill(SkillName.RemoveTrap, 85.0, 100.0);
|
||||
}
|
||||
|
||||
public TinkerGuildmaster(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override NpcGuild NpcGuild => NpcGuild.TinkersGuild;
|
||||
|
||||
public override void Serialize(IGenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize(IGenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
var version = reader.ReadInt();
|
||||
}
|
||||
|
||||
public override void AddCustomContextEntries(Mobile from, List<ContextMenuEntry> list)
|
||||
{
|
||||
if (Core.ML && from.Alive)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue