示例#1
0
        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);
        }
示例#2
0
 public QOLCityProject(QOLCityProjectDef def)
 {
     this.def = def;
 }