Fixes body expression style.
This commit is contained in:
parent
3f0a72a62f
commit
33f5e77a24
957 changed files with 7424 additions and 15973 deletions
|
|
@ -14,8 +14,8 @@ namespace Server.Items
|
|||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public SecureLevel Level
|
||||
{
|
||||
get{ return m_Level; }
|
||||
set{ m_Level = value; }
|
||||
get => m_Level;
|
||||
set => m_Level = value;
|
||||
}
|
||||
|
||||
public BaseBoard( int itemID ) : base( itemID )
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ namespace Server.Items
|
|||
|
||||
public BaseBoard Board
|
||||
{
|
||||
get { return m_Board; }
|
||||
set { m_Board = value; }
|
||||
get => m_Board;
|
||||
set => m_Board = value;
|
||||
}
|
||||
|
||||
public override bool IsVirtualItem => true;
|
||||
|
|
|
|||
|
|
@ -2,10 +2,7 @@ namespace Server.Items
|
|||
{
|
||||
public class PieceWhiteChecker : BasePiece
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get { return "white checker"; }
|
||||
}
|
||||
public override string DefaultName => "white checker";
|
||||
|
||||
public PieceWhiteChecker( BaseBoard board ) : base( 0x3584, board )
|
||||
{
|
||||
|
|
@ -30,10 +27,7 @@ namespace Server.Items
|
|||
|
||||
public class PieceBlackChecker : BasePiece
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get { return "black checker"; }
|
||||
}
|
||||
public override string DefaultName => "black checker";
|
||||
|
||||
public PieceBlackChecker( BaseBoard board ) : base( 0x358B, board )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,10 +2,7 @@ namespace Server.Items
|
|||
{
|
||||
public class PieceWhiteKing : BasePiece
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get { return "white king"; }
|
||||
}
|
||||
public override string DefaultName => "white king";
|
||||
|
||||
public PieceWhiteKing( BaseBoard board ) : base( 0x3587, board )
|
||||
{
|
||||
|
|
@ -30,10 +27,7 @@ namespace Server.Items
|
|||
|
||||
public class PieceBlackKing : BasePiece
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get { return "black king"; }
|
||||
}
|
||||
public override string DefaultName => "black king";
|
||||
|
||||
public PieceBlackKing( BaseBoard board ) : base( 0x358E, board )
|
||||
{
|
||||
|
|
@ -58,10 +52,7 @@ namespace Server.Items
|
|||
|
||||
public class PieceWhiteQueen : BasePiece
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get { return "white queen"; }
|
||||
}
|
||||
public override string DefaultName => "white queen";
|
||||
|
||||
public PieceWhiteQueen( BaseBoard board ) : base( 0x358A, board )
|
||||
{
|
||||
|
|
@ -86,10 +77,7 @@ namespace Server.Items
|
|||
|
||||
public class PieceBlackQueen : BasePiece
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get { return "black queen"; }
|
||||
}
|
||||
public override string DefaultName => "black queen";
|
||||
|
||||
public PieceBlackQueen( BaseBoard board ) : base( 0x3591, board )
|
||||
{
|
||||
|
|
@ -114,10 +102,7 @@ namespace Server.Items
|
|||
|
||||
public class PieceWhiteRook : BasePiece
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get { return "white rook"; }
|
||||
}
|
||||
public override string DefaultName => "white rook";
|
||||
|
||||
public PieceWhiteRook( BaseBoard board ) : base( 0x3586, board )
|
||||
{
|
||||
|
|
@ -142,10 +127,7 @@ namespace Server.Items
|
|||
|
||||
public class PieceBlackRook : BasePiece
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get { return "black rook"; }
|
||||
}
|
||||
public override string DefaultName => "black rook";
|
||||
|
||||
public PieceBlackRook( BaseBoard board ) : base( 0x358D, board )
|
||||
{
|
||||
|
|
@ -170,10 +152,7 @@ namespace Server.Items
|
|||
|
||||
public class PieceWhiteBishop : BasePiece
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get { return "white bishop"; }
|
||||
}
|
||||
public override string DefaultName => "white bishop";
|
||||
|
||||
public PieceWhiteBishop( BaseBoard board ) : base( 0x3585, board )
|
||||
{
|
||||
|
|
@ -198,10 +177,7 @@ namespace Server.Items
|
|||
|
||||
public class PieceBlackBishop : BasePiece
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get { return "black bishop"; }
|
||||
}
|
||||
public override string DefaultName => "black bishop";
|
||||
|
||||
public PieceBlackBishop( BaseBoard board ) : base( 0x358C, board )
|
||||
{
|
||||
|
|
@ -226,10 +202,7 @@ namespace Server.Items
|
|||
|
||||
public class PieceWhiteKnight : BasePiece
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get { return "white knight"; }
|
||||
}
|
||||
public override string DefaultName => "white knight";
|
||||
|
||||
public PieceWhiteKnight( BaseBoard board ) : base( 0x3588, board )
|
||||
{
|
||||
|
|
@ -254,10 +227,7 @@ namespace Server.Items
|
|||
|
||||
public class PieceBlackKnight : BasePiece
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get { return "black knight"; }
|
||||
}
|
||||
public override string DefaultName => "black knight";
|
||||
|
||||
public PieceBlackKnight( BaseBoard board ) : base( 0x358F, board )
|
||||
{
|
||||
|
|
@ -282,10 +252,7 @@ namespace Server.Items
|
|||
|
||||
public class PieceWhitePawn : BasePiece
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get { return "white pawn"; }
|
||||
}
|
||||
public override string DefaultName => "white pawn";
|
||||
|
||||
public PieceWhitePawn( BaseBoard board ) : base( 0x3589, board )
|
||||
{
|
||||
|
|
@ -310,10 +277,7 @@ namespace Server.Items
|
|||
|
||||
public class PieceBlackPawn : BasePiece
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get { return "black pawn"; }
|
||||
}
|
||||
public override string DefaultName => "black pawn";
|
||||
|
||||
public PieceBlackPawn( BaseBoard board ) : base( 0x3590, board )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -28,10 +28,7 @@ namespace Server.Engines.Mahjong
|
|||
m_Wind = wind;
|
||||
}
|
||||
|
||||
public MahjongPieceDim Dimensions
|
||||
{
|
||||
get { return GetDimensions( m_Position, m_Direction ); }
|
||||
}
|
||||
public MahjongPieceDim Dimensions => GetDimensions( m_Position, m_Direction );
|
||||
|
||||
public void Move( Point2D position, MahjongPieceDirection direction, MahjongWind wind )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,14 +31,14 @@ namespace Server.Engines.Mahjong
|
|||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public SecureLevel Level
|
||||
{
|
||||
get{ return m_Level; }
|
||||
set{ m_Level = value; }
|
||||
get => m_Level;
|
||||
set => m_Level = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public bool ShowScores
|
||||
{
|
||||
get { return m_ShowScores; }
|
||||
get => m_ShowScores;
|
||||
set
|
||||
{
|
||||
if ( m_ShowScores == value )
|
||||
|
|
@ -58,7 +58,7 @@ namespace Server.Engines.Mahjong
|
|||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public bool SpectatorVision
|
||||
{
|
||||
get { return m_SpectatorVision; }
|
||||
get => m_SpectatorVision;
|
||||
set
|
||||
{
|
||||
if ( m_SpectatorVision == value )
|
||||
|
|
|
|||
|
|
@ -37,15 +37,9 @@ namespace Server.Engines.Mahjong
|
|||
m_Flipped = flipped;
|
||||
}
|
||||
|
||||
public MahjongPieceDim Dimensions
|
||||
{
|
||||
get { return GetDimensions( m_Position, m_Direction ); }
|
||||
}
|
||||
public MahjongPieceDim Dimensions => GetDimensions( m_Position, m_Direction );
|
||||
|
||||
public bool IsMovable
|
||||
{
|
||||
get { return m_Game.GetStackLevel( Dimensions ) <= m_StackLevel; }
|
||||
}
|
||||
public bool IsMovable => m_Game.GetStackLevel( Dimensions ) <= m_StackLevel;
|
||||
|
||||
public void Move( Point2D position, MahjongPieceDirection direction, bool flip, int validHandArea )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,10 +19,7 @@ namespace Server.Engines.Mahjong
|
|||
m_Position = position;
|
||||
}
|
||||
|
||||
public MahjongPieceDim Dimensions
|
||||
{
|
||||
get { return GetDimensions( m_Position ); }
|
||||
}
|
||||
public MahjongPieceDim Dimensions => GetDimensions( m_Position );
|
||||
|
||||
public void Move( Point2D position )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue