public AskalhornGame() { Graphics = new GraphicsDeviceManager(this); Configuration.OnOptionsChange += ConfigurationOptionsChanged; ScreenManager = new ScreenManager(); Components.Add(ScreenManager); Instance = this; }
static void Main() { Log.Logger = new LoggerConfiguration() .MinimumLevel.Verbose() .WriteTo.GameLog("{Message:lj}") #if DEBUG .WriteTo.DevelopConsole() #endif .CreateLogger(); Configuration.Load(); MlemPlatform.Current = new MlemPlatform.DesktopGl <TextInputEventArgs>((w, c) => w.TextInput += c); using (var game = new AskalhornGame()) game.Run(); }