Formatting FIxes (#58)
This commit is contained in:
parent
57fb9fb525
commit
096d39609e
1318 changed files with 11633 additions and 22129 deletions
|
|
@ -280,10 +280,7 @@ namespace Server.Engines.Mahjong
|
|||
{
|
||||
private MahjongGame m_Game;
|
||||
|
||||
public ResetGameEntry(MahjongGame game) : base(6162)
|
||||
{
|
||||
m_Game = game;
|
||||
}
|
||||
public ResetGameEntry(MahjongGame game) : base(6162) => m_Game = game;
|
||||
|
||||
public override void OnClick()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,16 +15,11 @@ namespace Server.Engines.Mahjong
|
|||
Height = height;
|
||||
}
|
||||
|
||||
public bool IsValid()
|
||||
{
|
||||
return Position.X >= 0 && Position.Y >= 0 && Position.X + Width <= 670 && Position.Y + Height <= 670;
|
||||
}
|
||||
public bool IsValid() => Position.X >= 0 && Position.Y >= 0 && Position.X + Width <= 670 && Position.Y + Height <= 670;
|
||||
|
||||
public bool IsOverlapping(MahjongPieceDim dim)
|
||||
{
|
||||
return Position.X < dim.Position.X + dim.Width && Position.Y < dim.Position.Y + dim.Height &&
|
||||
Position.X + Width > dim.Position.X && Position.Y + Height > dim.Position.Y;
|
||||
}
|
||||
public bool IsOverlapping(MahjongPieceDim dim) =>
|
||||
Position.X < dim.Position.X + dim.Width && Position.Y < dim.Position.Y + dim.Height &&
|
||||
Position.X + Width > dim.Position.X && Position.Y + Height > dim.Position.Y;
|
||||
|
||||
public int GetHandArea()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -89,10 +89,7 @@ namespace Server.Engines.Mahjong
|
|||
return IsInGamePlayer(index);
|
||||
}
|
||||
|
||||
public bool IsSpectator(Mobile mobile)
|
||||
{
|
||||
return m_Spectators.Contains(mobile);
|
||||
}
|
||||
public bool IsSpectator(Mobile mobile) => m_Spectators.Contains(mobile);
|
||||
|
||||
public int GetScore(int index)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,10 +23,7 @@ namespace Server.Engines.Mahjong
|
|||
|
||||
public MahjongPieceDim Dimensions => GetDimensions(Position);
|
||||
|
||||
public static MahjongPieceDim GetDimensions(Point2D position)
|
||||
{
|
||||
return new MahjongPieceDim(position, 20, 20);
|
||||
}
|
||||
public static MahjongPieceDim GetDimensions(Point2D position) => new MahjongPieceDim(position, 20, 20);
|
||||
|
||||
public void Move(Point2D position)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue