Exemple #1
0
        public bool ReadFromCSV( CSVReader reader )
        {
            name = reader.ReadString();
            baseResourceValue = reader.ReadInt();
            mine = reader.ReadBoolean();
            tradePost = reader.ReadBoolean();
            numOfSlaves = reader.ReadInt();

            return true;
        }
Exemple #2
0
 public void ReadFrom( CSVReader reader )
 {
     name = reader.ReadString();
     reader.SkipRow();
     reader.SkipRow();
     for ( int i=0; i<4; ++i ) {
         data[i].ReadFrom( reader );
     }
 }
Exemple #3
0
        public bool ReadFromCSV( CSVReader reader )
        {
            id = reader.ReadInt();
            name = reader.ReadString();
            movement = reader.ReadFloat();

            return true;
        }
Exemple #4
0
        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;
        }