fix: Source generates map item serialization (#1166)
This commit is contained in:
parent
b5a06d0545
commit
b44c69bcee
21 changed files with 1517 additions and 1636 deletions
|
|
@ -1,33 +1,17 @@
|
|||
namespace Server.Items
|
||||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BlankMap : MapItem
|
||||
{
|
||||
public class BlankMap : MapItem
|
||||
[Constructible]
|
||||
public BlankMap()
|
||||
{
|
||||
[Constructible]
|
||||
public BlankMap()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public BlankMap(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
SendLocalizedMessageTo(from, 500208); // It appears to be blank.
|
||||
}
|
||||
|
||||
public override void Serialize(IGenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(IGenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
var version = reader.ReadInt();
|
||||
}
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
SendLocalizedMessageTo(from, 500208); // It appears to be blank.
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue