private static void AddOptions() { UserOptions.AddOption( new SimpleOptionRecord( UserOptions.Builtins.Fullscreen, GameConstants.DefaultFullscreen, new BoolStringSerializer())); UserOptions.AddOption( new SimpleOptionRecord( UserOptions.Builtins.MouseVisible, GameConstants.DefaultMouseVisibility, new BoolStringSerializer())); UserOptions.AddOption( new SimpleOptionRecord( UserOptions.Builtins.Borderless, GameConstants.DefaultBorderless, new BoolStringSerializer())); UserOptions.AddOption( new SimpleOptionRecord( UserOptions.Builtins.Resolution, GameConstants.DefaultResolution, new ResolutionStringSerializer())); UserOptions.AddOption( new SimpleOptionRecord( UserOptions.Builtins.VSync, GameConstants.DefaultVSync, new BoolStringSerializer())); UserOptions.AddOption( new SimpleOptionRecord( UserOptions.Builtins.FrameRate, GameConstants.DefaultFrameRate, new Int32StringSerializer())); UserOptions.AddOptionChangedEventHandler(UserOptions.Builtins.FrameRate, (s, e) => { Instance.gameKernel.FrameRate = UserOptions.Get <int>(UserOptions.Builtins.FrameRate); }); }