PageRenderTime 44ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/Samples/AdvancedGameExample/Program.cs

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