public QOLCityProject StartBuildingProject(QOLCityProjectDef def) { if (def.requirements.Any(r => !r.IsValid(this))) { return(null); } QOLCityProject proj = new QOLCityProject(def); if (def.worldObject != null) { //search a free spot in the surroundings of the city and create a world object according to the def there and link it to the project. } return(proj); }
public QOLCityProject(QOLCityProjectDef def) { this.def = def; }