PageRenderTime 101ms CodeModel.GetById 60ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/Samples/AdvancedGameExample/Program.cs

#
C# | 24 lines | 14 code | 2 blank | 8 comment | 0 complexity | e078fad7237ed15bcf9fb628eab0e61a MD5 | raw file
 1using Delta.Engine;
 2using Delta.Utilities;
 3
 4namespace AdvancedGameExample
 5{
 6	/// <summary>
 7	/// Program class, just provides a Main entry point.
 8	/// </summary>
 9	static class Program
10	{
11		/// <summary>
12		/// The entry point for the application, will just start the Game class!
13		/// </summary>
14		static void Main()
15		{
16			// If we don't have Settings yet (it is a bug), force using physics!
17			Assert.False(string.IsNullOrEmpty(Settings.Modules.PhysicsModule),
18				"We need a PhysicsModule setup in Settings to launch this example!");
19
20			// Starting a game is as easy as this :)
21			Application.Start(new Game());
22		}
23	}
24}