public bool ReadFromCSV( CSVReader reader ) { ArrayList items = new ArrayList(); // Skip first row reader.SkipRow(); for ( ; ; ) { Religion item = new Religion(); if ( !item.ReadFromCSV( reader ) ) break; items.Add( item ); } list = new Religion[items.Count]; items.CopyTo( list ); return true; }
public void ReadFrom( CSVReader reader ) { name = reader.ReadString(); reader.SkipRow(); reader.SkipRow(); for ( int i=0; i<4; ++i ) { data[i].ReadFrom( reader ); } }
public bool ReadFromCSV( CSVReader reader ) { string tmp = reader.ReadString(); if ( tmp.ToUpper() == "END" ) return false; name = tmp; techSpeed = reader.ReadInt(); stabBonus = reader.ReadInt(); productionEfficiency = reader.ReadInt(); tradeEfficiency = reader.ReadInt(); taxIncome = reader.ReadInt(); morale = reader.ReadInt(); annualColonistRatio = reader.ReadInt(); annualDiplomatRatio = reader.ReadInt(); annualMissionaryRatio = reader.ReadInt(); reader.SkipRow(); return true; }