Adds style cop (#109)
This commit is contained in:
parent
3e715bcb60
commit
556a17aba8
1725 changed files with 33831 additions and 38046 deletions
|
|
@ -25,20 +25,18 @@ namespace Server.Items
|
|||
}
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public bool Protected{ get; set; }
|
||||
public bool Protected { get; set; }
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public Rectangle2D Bounds{ get; set; }
|
||||
public Rectangle2D Bounds { get; set; }
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public int Width{ get; set; }
|
||||
public int Width { get; set; }
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public int Height{ get; set; }
|
||||
public int Height { get; set; }
|
||||
|
||||
public List<Point2D> Pins{ get; } = new List<Point2D>();
|
||||
|
||||
#region ICraftable Members
|
||||
public List<Point2D> Pins { get; } = new List<Point2D>();
|
||||
|
||||
public int OnCraft(int quality, bool makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool,
|
||||
CraftItem craftItem, int resHue)
|
||||
|
|
@ -47,8 +45,6 @@ namespace Server.Items
|
|||
return 1;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public virtual void CraftInit(Mobile from)
|
||||
{
|
||||
}
|
||||
|
|
@ -249,20 +245,20 @@ namespace Server.Items
|
|||
switch (version)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
Bounds = reader.ReadRect2D();
|
||||
{
|
||||
Bounds = reader.ReadRect2D();
|
||||
|
||||
Width = reader.ReadInt();
|
||||
Height = reader.ReadInt();
|
||||
Width = reader.ReadInt();
|
||||
Height = reader.ReadInt();
|
||||
|
||||
Protected = reader.ReadBool();
|
||||
Protected = reader.ReadBool();
|
||||
|
||||
int count = reader.ReadInt();
|
||||
for (int i = 0; i < count; i++)
|
||||
Pins.Add(reader.ReadPoint2D());
|
||||
int count = reader.ReadInt();
|
||||
for (int i = 0; i < count; i++)
|
||||
Pins.Add(reader.ReadPoint2D());
|
||||
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -311,14 +307,14 @@ namespace Server.Items
|
|||
{
|
||||
public MapDetails(MapItem map) : base(0x90, 19)
|
||||
{
|
||||
m_Stream.Write(map.Serial);
|
||||
m_Stream.Write((short)0x139D);
|
||||
m_Stream.Write((short)map.Bounds.Start.X);
|
||||
m_Stream.Write((short)map.Bounds.Start.Y);
|
||||
m_Stream.Write((short)map.Bounds.End.X);
|
||||
m_Stream.Write((short)map.Bounds.End.Y);
|
||||
m_Stream.Write((short)map.Width);
|
||||
m_Stream.Write((short)map.Height);
|
||||
Stream.Write(map.Serial);
|
||||
Stream.Write((short)0x139D);
|
||||
Stream.Write((short)map.Bounds.Start.X);
|
||||
Stream.Write((short)map.Bounds.Start.Y);
|
||||
Stream.Write((short)map.Bounds.End.X);
|
||||
Stream.Write((short)map.Bounds.End.Y);
|
||||
Stream.Write((short)map.Width);
|
||||
Stream.Write((short)map.Height);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -344,11 +340,11 @@ namespace Server.Items
|
|||
{
|
||||
public MapCommand(MapItem map, int command, int number, int x, int y) : base(0x56, 11)
|
||||
{
|
||||
m_Stream.Write(map.Serial);
|
||||
m_Stream.Write((byte)command);
|
||||
m_Stream.Write((byte)number);
|
||||
m_Stream.Write((short)x);
|
||||
m_Stream.Write((short)y);
|
||||
Stream.Write(map.Serial);
|
||||
Stream.Write((byte)command);
|
||||
Stream.Write((byte)number);
|
||||
Stream.Write((short)x);
|
||||
Stream.Write((short)y);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue