Upgrades code style - First batch (#22)
This commit is contained in:
parent
8ee42c8ea2
commit
632e8b4757
1834 changed files with 10245 additions and 10437 deletions
|
|
@ -75,7 +75,7 @@ namespace Server.Items
|
|||
Weight = 5.0;
|
||||
}
|
||||
|
||||
public override TimeSpan DecayTime{ get{ return TimeSpan.FromDays( 1.0 ); } }
|
||||
public override TimeSpan DecayTime => TimeSpan.FromDays( 1.0 );
|
||||
|
||||
public override bool OnDragDrop( Mobile from, Item dropped )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Items
|
|||
{
|
||||
public class CheckerBoard : BaseBoard
|
||||
{
|
||||
public override int LabelNumber{ get{ return 1016449; } } // a checker board
|
||||
public override int LabelNumber => 1016449; // a checker board
|
||||
|
||||
[Constructible]
|
||||
public CheckerBoard() : base( 0xFA6 )
|
||||
|
|
@ -41,4 +41,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Items
|
|||
{
|
||||
public class Chessboard : BaseBoard
|
||||
{
|
||||
public override int LabelNumber{ get{ return 1016450; } } // a chessboard
|
||||
public override int LabelNumber => 1016450; // a chessboard
|
||||
|
||||
[Constructible]
|
||||
public Chessboard() : base( 0xFA6 )
|
||||
|
|
@ -33,14 +33,14 @@ namespace Server.Items
|
|||
|
||||
CreatePiece( new PieceWhiteKnight( this ), 216, 30 );
|
||||
CreatePiece( new PieceWhiteKnight( this ), 216, 155 );
|
||||
|
||||
|
||||
// Bishop
|
||||
CreatePiece( new PieceBlackBishop( this ), 42, 55 );
|
||||
CreatePiece( new PieceBlackBishop( this ), 42, 130 );
|
||||
|
||||
CreatePiece( new PieceWhiteBishop( this ), 216, 55 );
|
||||
CreatePiece( new PieceWhiteBishop( this ), 216, 130 );
|
||||
|
||||
|
||||
// Queen
|
||||
CreatePiece( new PieceBlackQueen( this ), 42, 105 );
|
||||
CreatePiece( new PieceWhiteQueen( this ), 216, 105 );
|
||||
|
|
@ -66,4 +66,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@ namespace Server.Engines.Mahjong
|
|||
private MahjongPieceDirection m_Direction;
|
||||
private MahjongWind m_Wind;
|
||||
|
||||
public MahjongGame Game { get { return m_Game; } }
|
||||
public Point2D Position { get { return m_Position; } }
|
||||
public MahjongPieceDirection Direction { get { return m_Direction; } }
|
||||
public MahjongWind Wind { get { return m_Wind; } }
|
||||
public MahjongGame Game => m_Game;
|
||||
public Point2D Position => m_Position;
|
||||
public MahjongPieceDirection Direction => m_Direction;
|
||||
public MahjongWind Wind => m_Wind;
|
||||
|
||||
public MahjongDealerIndicator( MahjongGame game, Point2D position, MahjongPieceDirection direction, MahjongWind wind )
|
||||
{
|
||||
|
|
@ -70,4 +70,4 @@ namespace Server.Engines.Mahjong
|
|||
m_Wind = (MahjongWind) reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ namespace Server.Engines.Mahjong
|
|||
private int m_First;
|
||||
private int m_Second;
|
||||
|
||||
public MahjongGame Game { get { return m_Game; } }
|
||||
public int First { get { return m_First; } }
|
||||
public int Second { get { return m_Second; } }
|
||||
public MahjongGame Game => m_Game;
|
||||
public int First => m_First;
|
||||
public int Second => m_Second;
|
||||
|
||||
public MahjongDices( MahjongGame game )
|
||||
{
|
||||
|
|
@ -49,4 +49,4 @@ namespace Server.Engines.Mahjong
|
|||
m_Second = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,11 +22,11 @@ namespace Server.Engines.Mahjong
|
|||
private bool m_SpectatorVision;
|
||||
private DateTime m_LastReset;
|
||||
|
||||
public MahjongTile[] Tiles { get { return m_Tiles; } }
|
||||
public MahjongDealerIndicator DealerIndicator { get { return m_DealerIndicator; } }
|
||||
public MahjongWallBreakIndicator WallBreakIndicator { get { return m_WallBreakIndicator; } }
|
||||
public MahjongDices Dices { get { return m_Dices; } }
|
||||
public MahjongPlayers Players { get { return m_Players; } }
|
||||
public MahjongTile[] Tiles => m_Tiles;
|
||||
public MahjongDealerIndicator DealerIndicator => m_DealerIndicator;
|
||||
public MahjongWallBreakIndicator WallBreakIndicator => m_WallBreakIndicator;
|
||||
public MahjongDices Dices => m_Dices;
|
||||
public MahjongPlayers Players => m_Players;
|
||||
|
||||
private SecureLevel m_Level;
|
||||
|
||||
|
|
@ -299,4 +299,4 @@ namespace Server.Engines.Mahjong
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ namespace Server.Engines.Mahjong
|
|||
private int m_Width;
|
||||
private int m_Height;
|
||||
|
||||
public Point2D Position { get { return m_Position; } }
|
||||
public int Width { get { return m_Width; } }
|
||||
public int Height { get { return m_Height; } }
|
||||
public Point2D Position => m_Position;
|
||||
public int Width => m_Width;
|
||||
public int Height => m_Height;
|
||||
|
||||
public MahjongPieceDim( Point2D position, int width, int height )
|
||||
{
|
||||
|
|
@ -47,4 +47,4 @@ namespace Server.Engines.Mahjong
|
|||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,10 +14,10 @@ namespace Server.Engines.Mahjong
|
|||
private int m_DealerPosition;
|
||||
private ArrayList m_Spectators;
|
||||
|
||||
public MahjongGame Game { get { return m_Game; } }
|
||||
public int Seats { get { return m_Players.Length; } }
|
||||
public Mobile Dealer { get { return m_Players[m_DealerPosition]; } }
|
||||
public int DealerPosition { get { return m_DealerPosition; } }
|
||||
public MahjongGame Game => m_Game;
|
||||
public int Seats => m_Players.Length;
|
||||
public Mobile Dealer => m_Players[m_DealerPosition];
|
||||
public int DealerPosition => m_DealerPosition;
|
||||
|
||||
public MahjongPlayers( MahjongGame game, int maxPlayers, int baseScore )
|
||||
{
|
||||
|
|
@ -549,4 +549,4 @@ namespace Server.Engines.Mahjong
|
|||
m_DealerPosition = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,13 +21,13 @@ namespace Server.Engines.Mahjong
|
|||
private MahjongPieceDirection m_Direction;
|
||||
private bool m_Flipped;
|
||||
|
||||
public MahjongGame Game { get { return m_Game; } }
|
||||
public int Number { get { return m_Number; } }
|
||||
public MahjongTileType Value { get { return m_Value; } }
|
||||
public Point2D Position { get { return m_Position; } }
|
||||
public int StackLevel { get { return m_StackLevel; } }
|
||||
public MahjongPieceDirection Direction { get { return m_Direction; } }
|
||||
public bool Flipped { get { return m_Flipped; } }
|
||||
public MahjongGame Game => m_Game;
|
||||
public int Number => m_Number;
|
||||
public MahjongTileType Value => m_Value;
|
||||
public Point2D Position => m_Position;
|
||||
public int StackLevel => m_StackLevel;
|
||||
public MahjongPieceDirection Direction => m_Direction;
|
||||
public bool Flipped => m_Flipped;
|
||||
|
||||
public MahjongTile( MahjongGame game, int number, MahjongTileType value, Point2D position, int stackLevel, MahjongPieceDirection direction, bool flipped )
|
||||
{
|
||||
|
|
@ -94,4 +94,4 @@ namespace Server.Engines.Mahjong
|
|||
m_Flipped = reader.ReadBool();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Server.Engines.Mahjong
|
|||
{
|
||||
private ArrayList m_LeftTileTypes;
|
||||
|
||||
public ArrayList LeftTileTypes { get { return m_LeftTileTypes; } }
|
||||
public ArrayList LeftTileTypes => m_LeftTileTypes;
|
||||
|
||||
public MahjongTileTypeGenerator( int count )
|
||||
{
|
||||
|
|
@ -32,4 +32,4 @@ namespace Server.Engines.Mahjong
|
|||
return next;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ namespace Server.Engines.Mahjong
|
|||
private MahjongGame m_Game;
|
||||
private Point2D m_Position;
|
||||
|
||||
public MahjongGame Game { get { return m_Game; } }
|
||||
public Point2D Position { get { return m_Position; } }
|
||||
public MahjongGame Game => m_Game;
|
||||
public Point2D Position => m_Position;
|
||||
|
||||
public MahjongWallBreakIndicator( MahjongGame game, Point2D position )
|
||||
{
|
||||
|
|
@ -55,4 +55,4 @@ namespace Server.Engines.Mahjong
|
|||
m_Position = reader.ReadPoint2D();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue