public MainWindow() { BuildingsSettings.Load("../../Game/Settings/BuildingsSettings.xml"); ResourceSettings.Load("../../Game/Settings/ResourceSettings.xml"); MaterialSettings.Load("../../Game/Settings/MaterialSettings.xml"); InitializeComponent(); initComboBuild(); initMaterialList(); this.KeyDown += Arrows; this.MouseWheel += Zoom; if (System.IO.File.Exists("../../Mapa.xml")) { loadMap("../../Mapa.xml"); } // Canv.Key // Canv.key }
protected virtual void LoadBuildingParameters(BuildingsSettings buildingsSettings) { _maxConnectRadius = buildingsSettings.NetworkSettings.MaxConnectRadius; _cyclesPerSecond = buildingsSettings.NetworkSettings.CyclesPerSecond; }