Exemplo n.º 1
0
 private void addMapLocation(CMapLocInfo cml)
 {
     map_.setMapLocation(cml.loc_.x, cml.loc_.y, cml.terrain_);
     if (cml.road_ != map_.hasRoad(cml.loc_))
     {
         map_.addRoad(cml.loc_, cml.road_);
     }
     if (cml.resources_ != map_.resourceValue(cml.loc_))
     {
         map_.setResource(cml.loc_, (int)cml.resources_);
     }
     if (cml.mine_ != map_.isMine(cml.loc_))
     {
         map_.setMine(cml.loc_, cml.mine_);
     }
     if (cml.wasteland_ != map_.isWasteland(cml.loc_))
     {
         map_.setWasteland(cml.loc_, cml.wasteland_);
     }
 }