コード例 #1
0
ファイル: Room.cs プロジェクト: notadog-game/notadog-api
        public void replay(User user)
        {
            if (RootId != user.Id)
            {
                throw new Exception("");
            }
            if (_roomState.getStateCode() != nameof(EndState))
            {
                throw new Exception("");
            }

            lock (MakedMovePlayerIds)
            {
                MakedMovePlayerIds.Clear();
            }

            changeState(new WaitingPlayersState(this));
        }