Ejemplo n.º 1
0
        public int AfterPlayerSat(PlayerInfo p)
        {
            var seat = p.NoSeat == -1 ? null : Table.Seats[p.NoSeat];

            if (seat != null && !seat.IsEmpty)
            {
                if (State > GameStateEnum.WaitForPlayers)
                {
                    Table.NewArrivals.Add(p);
                }

                Observer.RaiseSeatUpdated(seat.Clone());

                m_CurrentModule?.OnSitIn();
                return(p.NoSeat);
            }
            return(-1);
        }