public Structure(uint structureId, IStructureStats stats, uint x, uint y, string theme, ITechnologyManager technologyManager, StructureProperties structureProperties, IDbManager dbManager) : base(structureId, x, y) { Theme = theme; this.stats = stats; this.dbManager = dbManager; techmanager = technologyManager; properties = structureProperties; }
public IStructure CreateStructure(uint cityId, uint structureId, ushort type, byte level, uint x, uint y, string theme) { var baseStats = structureCsvFactory.GetBaseStats(type, level); var technologyManager = technologyManagerFactory.CreateTechnologyManager(EffectLocation.Object, cityId, structureId); var structureProperties = new StructureProperties(cityId, structureId); var structure = new Structure(structureId, new StructureStats(baseStats), x, y, theme, technologyManager, structureProperties, dbManager); return(structure); }