示例#1
0
        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
        }
示例#2
0
 protected virtual void LoadBuildingParameters(BuildingsSettings buildingsSettings)
 {
     _maxConnectRadius = buildingsSettings.NetworkSettings.MaxConnectRadius;
     _cyclesPerSecond  = buildingsSettings.NetworkSettings.CyclesPerSecond;
 }