Extractor_Serializer.NewParser.ReadReqs C# (CSharp) Method

ReadReqs() public method

The read reqs.
public ReadReqs ( int numreqs ) : List
numreqs int /// The numreqs. ///
return List
        public List<Requirement> ReadReqs(int numreqs)
        {
            int num4 = numreqs;
            bool flag = num4 > 0;
            if (flag)
            {
                List<rawreqs> list = new List<rawreqs>();
                int arg_86_0 = 0;
                int num5 = num4 - 1;
                int num6 = arg_86_0;
                while (true)
                {
                    int arg_F0_0 = num6;
                    if (arg_F0_0 > num5)
                    {
                        break;
                    }

                    int stat = this.br.ReadInt32();
                    int val = this.br.ReadInt32();
                    int ops = this.br.ReadInt32();
                    rawreqs r = new rawreqs();
                    r.ops = ops;
                    r.stat = stat;
                    r.val = val;
                    list.Add(r);

                    num6++;
                }

                return this.ParseReqs(list);
            }

            return new List<Requirement>();
        }