-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathProgram.cs
More file actions
32 lines (31 loc) · 873 Bytes
/
Copy pathProgram.cs
File metadata and controls
32 lines (31 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using TheGame.Engine;
using TheGame.RTS;
namespace TheGame
{
static class Program
{
/// <summary>
/// 應用程式的主要進入點。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
List<Type> gameStateTypes = new List<Type>
{
typeof(GameStateInitial),
typeof(GameStateRun),
typeof(GameStateEnd),
};
GameWindow gameWindow = new GameWindow(gameStateTypes);
if (gameWindow.IsLoadFail)
MessageBox.Show("Game load fail!");
else
Application.Run(gameWindow);
}
}
}