Exemplo n.º 1
0
        private void ParserTableStr(string content)
        {
            StringReader rdr = new StringReader(content);

            using (var reader = new CsvReader(rdr))
            {
                HeaderRecord header = reader.ReadHeaderRecord();
                while (reader.HasMoreRecords)
                {
                    DataRecord data = reader.ReadDataRecord();
                    if (data[0].StartsWith("#"))
                    {
                        continue;
                    }

                    FightCapterRecord record = new FightCapterRecord(data);
                    Records.Add(record.Id, record);
                }
            }
        }
Exemplo n.º 2
0
        private void InitNormalCapter()
        {
            if (_NormalCapter != null)
            {
                return;
            }

            _NormalCapter = new List <FightCapterRecord>();
            foreach (var record in Records.Values)
            {
                if (!record.Name.Contains("SP"))
                {
                    _NormalCapter.Add(record);
                }
                else
                {
                    _EliteCapter = record;
                }
            }
        }