Exemple #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            MainForm main = new MainForm();

            //Application.Idle += delegate { main.MapView.mapViewRender1.Invalidate(); };

            Application.Run(main);
        }
        public static void Init(MainForm main_form)
        {
            IndieCivEditorApp.mainForm = main_form;
            IndieCivCore.IndieCivCoreApp.Init(EExecutionEnvironment.EExecutionEnvironment_Editor);

            IndieCivEditorApp.SelectedTerrain = ResourceInterface.TerrainData[3];
            IndieCivEditorApp.SelectedResource = null;
            IndieCivEditorApp.SelectedRelief = ResourceInterface.ReliefData[0];

            //IndieCivCore.Map.MapCiv3 worldMap = new IndieCivCore.Map.MapCiv3();
            //worldMap.Init(100, 100);
            //worldMap.RegisterTerrainArt(Art);
            //IndieCivCore.MapManager.Add(worldMap);
        }