Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 • committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -4,11 +4,11 @@ namespace Server.Engines.Mahjong
{
public class MahjongPlayers
{
private bool[] m_InGame;
private Mobile[] m_Players;
private bool[] m_PublicHand;
private int[] m_Scores;
private List<Mobile> m_Spectators;
private readonly bool[] m_InGame;
private readonly Mobile[] m_Players;
private readonly bool[] m_PublicHand;
private readonly int[] m_Scores;
private readonly List<Mobile> m_Spectators;
public MahjongPlayers(MahjongGame game, int maxPlayers, int baseScore)
{
@ -47,11 +47,11 @@ namespace Server.Engines.Mahjong
DealerPosition = reader.ReadInt();
}
public MahjongGame Game{ get; }
public MahjongGame Game { get; }
public int Seats => m_Players.Length;
public Mobile Dealer => m_Players[DealerPosition];
public int DealerPosition{ get; private set; }
public int DealerPosition { get; private set; }
public Mobile GetPlayer(int index)
{