Upgrades code style - First batch (#22)

This commit is contained in:
Kamron Batman 2018-08-14 06:16:50 +08:00 committed by GitHub
parent 8ee42c8ea2
commit 632e8b4757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1834 changed files with 10245 additions and 10437 deletions

View file

@ -6,20 +6,20 @@ namespace Server.Multis
{
public class SmallBoat : BaseBoat
{
public override int NorthID{ get{ return 0x0; } }
public override int EastID{ get{ return 0x1; } }
public override int SouthID{ get{ return 0x2; } }
public override int WestID{ get{ return 0x3; } }
public override int NorthID => 0x0;
public override int EastID => 0x1;
public override int SouthID => 0x2;
public override int WestID => 0x3;
public override int HoldDistance{ get{ return 4; } }
public override int TillerManDistance{ get{ return -4; } }
public override int HoldDistance => 4;
public override int TillerManDistance => -4;
public override Point2D StarboardOffset{ get{ return new Point2D( 2, 0 ); } }
public override Point2D PortOffset{ get{ return new Point2D( -2, 0 ); } }
public override Point2D StarboardOffset => new Point2D( 2, 0 );
public override Point2D PortOffset => new Point2D( -2, 0 );
public override Point3D MarkOffset{ get{ return new Point3D( 0, 1, 3 ); } }
public override Point3D MarkOffset => new Point3D( 0, 1, 3 );
public override BaseDockedBoat DockedBoat{ get{ return new SmallDockedBoat( this ); } }
public override BaseDockedBoat DockedBoat => new SmallDockedBoat( this );
[Constructible]
public SmallBoat()
@ -47,8 +47,8 @@ namespace Server.Multis
public class SmallBoatDeed : BaseBoatDeed
{
public override int LabelNumber{ get{ return 1041205; } } // small ship deed
public override BaseBoat Boat{ get{ return new SmallBoat(); } }
public override int LabelNumber => 1041205; // small ship deed
public override BaseBoat Boat => new SmallBoat();
[Constructible]
public SmallBoatDeed() : base( 0x0, Point3D.Zero )
@ -76,7 +76,7 @@ namespace Server.Multis
public class SmallDockedBoat : BaseDockedBoat
{
public override BaseBoat Boat{ get{ return new SmallBoat(); } }
public override BaseBoat Boat => new SmallBoat();
public SmallDockedBoat( BaseBoat boat ) : base( 0x0, Point3D.Zero, boat )
{
@ -100,4 +100,4 @@ namespace Server.Multis
writer.Write( (int)0 );
}
}
}
}