private GameConstants()
{
kernelConstantReaders.Add(XmlElements.CONTENT_FOLDER, s => { contentFolder = s; });
kernelConstantReaders.Add(XmlElements.FIXED_TIME_STEP, s => { fixedTimeStep = ReadBool(s, fixedTimeStep); });
kernelConstantReaders.Add(XmlElements.WINDOW_TITLE, s => { windowTitle = s; });
displayConstantReaders.Add(XmlElements.FULLSCREEN_TOGGLABLE, s => { fullscreenTogglable = ReadBool(s, fullscreenTogglable); });
displayConstantReaders.Add(XmlElements.MOUSE_VISIBILITY_TOGGLABLE, s => { mouseVisibilityTogglable = ReadBool(s, mouseVisibilityTogglable); });
displayConstantReaders.Add(XmlElements.BORDER_TOGGLABLE, s => { borderTogglable = ReadBool(s, borderTogglable); });
displayConstantReaders.Add(XmlElements.STATIC_RESOLUTION, s => { staticResolution = ReadBool(s, staticResolution); });
displayConstantReaders.Add(XmlElements.STATIC_ASPECT_RATIO, s => { staticAspectRatio = ReadBool(s, staticAspectRatio); });
displayConstantReaders.Add(XmlElements.ONLY_LANDSCAPE_RESOLUTIONS, s => { onlyLandscapeResolutions = ReadBool(s, onlyLandscapeResolutions); });
displayConstantReaders.Add(XmlElements.ONLY_PORTRAIT_RESOLUTIONS, s => { onlyPortraitResolutions = ReadBool(s, onlyPortraitResolutions); });
displayConstantReaders.Add(XmlElements.BASE_RESOLUTION, s => { baseResolution = ReadResolution(s, baseResolution); });
displayConstantReaders.Add(XmlElements.BACKGROUND_COLOUR, s => { bgColour = ReadColour(s, bgColour); });
optionDefaultsConstantReaders.Add(XmlElements.DEFAULT_FULLSCREEN, s => { defaultFullscreen = ReadBool(s, defaultFullscreen); });
optionDefaultsConstantReaders.Add(XmlElements.DEFAULT_MOUSE_VISIBILITY, s => { defaultMouseVisibility = ReadBool(s, defaultMouseVisibility); });
optionDefaultsConstantReaders.Add(XmlElements.DEFAULT_BORDERLESS, s => { defaultBorderless = ReadBool(s, defaultBorderless); });
optionDefaultsConstantReaders.Add(XmlElements.DEFAULT_VSYNC, s => { defaultVSync = ReadBool(s, defaultVSync); });
optionDefaultsConstantReaders.Add(XmlElements.DEFAULT_RESOLUTION, s => { defaultResolution = ReadResolution(s, defaultResolution); });
optionDefaultsConstantReaders.Add(XmlElements.DEFAULT_FRAME_RATE, s => { defaultFrameRate = ReadInt(s, defaultFrameRate); });
physicsConstantReaders.Add(XmlElements.PIXELS_PER_SIM_UNIT, s => { pixelsPerSimUnit = ReadFloat(s, pixelsPerSimUnit); });
debugConstantReaders.Add(XmlElements.DISABLE_USER_OPTIONS_WRITE_ON_CLOSE, s => { disableUserOptionsWriteOnClose = ReadBool(s, disableUserOptionsWriteOnClose); });
}