コード例 #1
0
        public IEnumerable <ProtocolRecord> GetReservePlayers(int teamId)
        {
            var reserveRecords = new List <ProtocolRecord>();

            reserveRecords.AddRange(records
                                    .Where(r => r.ProtocolRecord.teamId == teamId && r.IsStartReserve)
                                    .Select(r => r.ProtocolRecord));

            ProtocolRecord defaultStartReserve = ProtocolRecordInfo.CreateDefaultStartReserve(Game.Id, teamId);

            CompleteWithEmpty(reserveRecords, defaultStartReserve, PlayersReserveCount);

            return(reserveRecords);
        }
コード例 #2
0
        public IEnumerable <ProtocolRecord> GetMainPlayers(int teamId)
        {
            var mainRecords = new List <ProtocolRecord>();

            mainRecords.AddRange(records
                                 .Where(r => r.ProtocolRecord.teamId == teamId && r.IsStartMain)
                                 .Select(r => r.ProtocolRecord));

            ProtocolRecord defaultStartMain = ProtocolRecordInfo.CreateDefaultStartMain(Game.Id, teamId);

            CompleteWithEmpty(mainRecords, defaultStartMain, PlayersMainCount);

            return(mainRecords);
        }