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 LargeBoat : BaseBoat
{
public override int NorthID{ get{ return 0x10; } }
public override int EastID{ get{ return 0x11; } }
public override int SouthID{ get{ return 0x12; } }
public override int WestID{ get{ return 0x13; } }
public override int NorthID => 0x10;
public override int EastID => 0x11;
public override int SouthID => 0x12;
public override int WestID => 0x13;
public override int HoldDistance{ get{ return 5; } }
public override int TillerManDistance{ get{ return -5; } }
public override int HoldDistance => 5;
public override int TillerManDistance => -5;
public override Point2D StarboardOffset{ get{ return new Point2D( 2, -1 ); } }
public override Point2D PortOffset{ get{ return new Point2D( -2, -1 ); } }
public override Point2D StarboardOffset => new Point2D( 2, -1 );
public override Point2D PortOffset => new Point2D( -2, -1 );
public override Point3D MarkOffset{ get{ return new Point3D( 0, 0, 3 ); } }
public override Point3D MarkOffset => new Point3D( 0, 0, 3 );
public override BaseDockedBoat DockedBoat{ get{ return new LargeDockedBoat( this ); } }
public override BaseDockedBoat DockedBoat => new LargeDockedBoat( this );
[Constructible]
public LargeBoat()
@ -47,8 +47,8 @@ namespace Server.Multis
public class LargeBoatDeed : BaseBoatDeed
{
public override int LabelNumber{ get{ return 1041209; } } // large ship deed
public override BaseBoat Boat{ get{ return new LargeBoat(); } }
public override int LabelNumber => 1041209; // large ship deed
public override BaseBoat Boat => new LargeBoat();
[Constructible]
public LargeBoatDeed() : base( 0x10, new Point3D( 0, -1, 0 ) )
@ -76,7 +76,7 @@ namespace Server.Multis
public class LargeDockedBoat : BaseDockedBoat
{
public override BaseBoat Boat{ get{ return new LargeBoat(); } }
public override BaseBoat Boat => new LargeBoat();
public LargeDockedBoat( BaseBoat boat ) : base( 0x10, new Point3D( 0, -1, 0 ), boat )
{
@ -100,4 +100,4 @@ namespace Server.Multis
writer.Write( (int)0 );
}
}
}
}

View file

@ -6,20 +6,20 @@ namespace Server.Multis
{
public class LargeDragonBoat : BaseBoat
{
public override int NorthID{ get{ return 0x14; } }
public override int EastID{ get{ return 0x15; } }
public override int SouthID{ get{ return 0x16; } }
public override int WestID{ get{ return 0x17; } }
public override int NorthID => 0x14;
public override int EastID => 0x15;
public override int SouthID => 0x16;
public override int WestID => 0x17;
public override int HoldDistance{ get{ return 5; } }
public override int TillerManDistance{ get{ return -5; } }
public override int HoldDistance => 5;
public override int TillerManDistance => -5;
public override Point2D StarboardOffset{ get{ return new Point2D( 2, -1 ); } }
public override Point2D PortOffset{ get{ return new Point2D( -2, -1 ); } }
public override Point2D StarboardOffset => new Point2D( 2, -1 );
public override Point2D PortOffset => new Point2D( -2, -1 );
public override Point3D MarkOffset{ get{ return new Point3D( 0, 0, 3 ); } }
public override Point3D MarkOffset => new Point3D( 0, 0, 3 );
public override BaseDockedBoat DockedBoat{ get{ return new LargeDockedDragonBoat( this ); } }
public override BaseDockedBoat DockedBoat => new LargeDockedDragonBoat( this );
[Constructible]
public LargeDragonBoat()
@ -47,8 +47,8 @@ namespace Server.Multis
public class LargeDragonBoatDeed : BaseBoatDeed
{
public override int LabelNumber{ get{ return 1041210; } }// large dragon ship deed
public override BaseBoat Boat{ get{ return new LargeDragonBoat(); } }
public override int LabelNumber => 1041210;// large dragon ship deed
public override BaseBoat Boat => new LargeDragonBoat();
[Constructible]
public LargeDragonBoatDeed() : base( 0x14, new Point3D( 0, -1, 0 ) )
@ -76,7 +76,7 @@ namespace Server.Multis
public class LargeDockedDragonBoat : BaseDockedBoat
{
public override BaseBoat Boat{ get{ return new LargeDragonBoat(); } }
public override BaseBoat Boat => new LargeDragonBoat();
public LargeDockedDragonBoat( BaseBoat boat ) : base( 0x14, new Point3D( 0, -1, 0 ), boat )
{
@ -100,4 +100,4 @@ namespace Server.Multis
writer.Write( (int)0 );
}
}
}
}

View file

@ -6,20 +6,20 @@ namespace Server.Multis
{
public class MediumBoat : BaseBoat
{
public override int NorthID{ get{ return 0x8; } }
public override int EastID{ get{ return 0x9; } }
public override int SouthID{ get{ return 0xA; } }
public override int WestID{ get{ return 0xB; } }
public override int NorthID => 0x8;
public override int EastID => 0x9;
public override int SouthID => 0xA;
public override int WestID => 0xB;
public override int HoldDistance{ get{ return 4; } }
public override int TillerManDistance{ get{ return -5; } }
public override int HoldDistance => 4;
public override int TillerManDistance => -5;
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 MediumDockedBoat( this ); } }
public override BaseDockedBoat DockedBoat => new MediumDockedBoat( this );
[Constructible]
public MediumBoat()
@ -47,8 +47,8 @@ namespace Server.Multis
public class MediumBoatDeed : BaseBoatDeed
{
public override int LabelNumber{ get{ return 1041207; } } // medium ship deed
public override BaseBoat Boat{ get{ return new MediumBoat(); } }
public override int LabelNumber => 1041207; // medium ship deed
public override BaseBoat Boat => new MediumBoat();
[Constructible]
public MediumBoatDeed() : base( 0x8, Point3D.Zero )
@ -76,7 +76,7 @@ namespace Server.Multis
public class MediumDockedBoat : BaseDockedBoat
{
public override BaseBoat Boat{ get{ return new MediumBoat(); } }
public override BaseBoat Boat => new MediumBoat();
public MediumDockedBoat( BaseBoat boat ) : base( 0x8, Point3D.Zero, boat )
{
@ -100,4 +100,4 @@ namespace Server.Multis
writer.Write( (int)0 );
}
}
}
}

View file

@ -6,20 +6,20 @@ namespace Server.Multis
{
public class MediumDragonBoat : BaseBoat
{
public override int NorthID{ get{ return 0xC; } }
public override int EastID{ get{ return 0xD; } }
public override int SouthID{ get{ return 0xE; } }
public override int WestID{ get{ return 0xF; } }
public override int NorthID => 0xC;
public override int EastID => 0xD;
public override int SouthID => 0xE;
public override int WestID => 0xF;
public override int HoldDistance{ get{ return 4; } }
public override int TillerManDistance{ get{ return -5; } }
public override int HoldDistance => 4;
public override int TillerManDistance => -5;
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 MediumDockedDragonBoat( this ); } }
public override BaseDockedBoat DockedBoat => new MediumDockedDragonBoat( this );
[Constructible]
public MediumDragonBoat()
@ -47,8 +47,8 @@ namespace Server.Multis
public class MediumDragonBoatDeed : BaseBoatDeed
{
public override int LabelNumber{ get{ return 1041208; } } // medium dragon ship deed
public override BaseBoat Boat{ get{ return new MediumDragonBoat(); } }
public override int LabelNumber => 1041208; // medium dragon ship deed
public override BaseBoat Boat => new MediumDragonBoat();
[Constructible]
public MediumDragonBoatDeed() : base( 0xC, Point3D.Zero )
@ -76,7 +76,7 @@ namespace Server.Multis
public class MediumDockedDragonBoat : BaseDockedBoat
{
public override BaseBoat Boat{ get{ return new MediumDragonBoat(); } }
public override BaseBoat Boat => new MediumDragonBoat();
public MediumDockedDragonBoat( BaseBoat boat ) : base( 0xC, Point3D.Zero, boat )
{
@ -100,4 +100,4 @@ namespace Server.Multis
writer.Write( (int)0 );
}
}
}
}

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 );
}
}
}
}

View file

@ -6,20 +6,20 @@ namespace Server.Multis
{
public class SmallDragonBoat : BaseBoat
{
public override int NorthID{ get{ return 0x4; } }
public override int EastID{ get{ return 0x5; } }
public override int SouthID{ get{ return 0x6; } }
public override int WestID{ get{ return 0x7; } }
public override int NorthID => 0x4;
public override int EastID => 0x5;
public override int SouthID => 0x6;
public override int WestID => 0x7;
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 SmallDockedDragonBoat( this ); } }
public override BaseDockedBoat DockedBoat => new SmallDockedDragonBoat( this );
[Constructible]
public SmallDragonBoat()
@ -47,8 +47,8 @@ namespace Server.Multis
public class SmallDragonBoatDeed : BaseBoatDeed
{
public override int LabelNumber{ get{ return 1041206; } } // small dragon ship deed
public override BaseBoat Boat{ get{ return new SmallDragonBoat(); } }
public override int LabelNumber => 1041206; // small dragon ship deed
public override BaseBoat Boat => new SmallDragonBoat();
[Constructible]
public SmallDragonBoatDeed() : base( 0x4, Point3D.Zero )
@ -76,7 +76,7 @@ namespace Server.Multis
public class SmallDockedDragonBoat : BaseDockedBoat
{
public override BaseBoat Boat{ get{ return new SmallDragonBoat(); } }
public override BaseBoat Boat => new SmallDragonBoat();
public SmallDockedDragonBoat( BaseBoat boat ) : base( 0x4, Point3D.Zero, boat )
{
@ -100,4 +100,4 @@ namespace Server.Multis
writer.Write( (int)0 );
}
}
}
}