MCPcopy Create free account
hub / github.com/SimHacker/micropolis / Main

Method Main

MicropolisCore/src/csMicropolis/Program.cs:15–47  ·  view source on GitHub ↗

The main entry point for the application.

()

Source from the content-addressed store, hash-verified

13 /// The main entry point for the application.
14 /// </summary>
15 [STAThread]
16 static void Main()
17 {
18 try
19 {
20 var engine = new MicropolisWinFormsEngine();
21
22 engine.cityTax = 10;
23 engine.setPasses(200);
24 // setTile = engine.setTile;
25
26 // add robots?
27
28 var x = 0;
29 var y = 0;
30
31 var w = 800;
32 var h = 600;
33
34 Application.EnableVisualStyles();
35 Application.SetCompatibleTextRenderingDefault(false);
36 var win1 = new MicropolisPannedWindow(engine);
37 win1.Width = w;
38 win1.Height = h;
39 win1.Top = y;
40 win1.Left = x;
41 Application.Run(win1);
42 }
43 catch (Exception e)
44 {
45 MessageBox.Show(e.ToString());
46 }
47 }
48 }
49}

Callers

nothing calls this directly

Calls 1

setPassesMethod · 0.80

Tested by

no test coverage detected