internal override void Create(string name) { DisplayName = "Made in GameMaker Studio 2"; AppId = "com.company.game"; Version = new BuildVersion(1, 0, 0, 0); OutputDirectory = @"~/GameMakerStudio2/Mac"; TeamId = ""; SigningIdentity = "Developer ID Application:"; Copyright = $"(c) {DateTime.UtcNow.Year} CompanyName"; SplashPng = @"${base_options_dir}/mac/splash/splash.png"; // TODO Copy in default IconPng = @"${base_options_dir}/mac/icons/1024.png"; // TODO Copy in default MenuDock = false; DisplayCursor = true; StartFullscreen = false; AllowFullscreenSwitching = false; InterpolatePixels = false; Vsync = false; ResizeWindow = false; Scale = Scale.KeepAspectRatio; TexturePage = new TexturePageSize(2048, 2048); AppStore = false; AllowIncomingNetwork = false; AllowOutgoingNetwork = false; AppCategory = ""; EnableSteam = false; DisableSandbox = false; }
internal override void Deserialize(ModelBase model) { var macOptionsModel = (GMMacOptionsModel)model; Id = macOptionsModel.id; Name = macOptionsModel.name; DisplayName = macOptionsModel.option_mac_display_name; AppId = macOptionsModel.option_mac_app_id; Version = macOptionsModel.option_mac_version; OutputDirectory = macOptionsModel.option_mac_output_dir; TeamId = macOptionsModel.option_mac_team_id; SigningIdentity = macOptionsModel.option_mac_signing_identity; Copyright = macOptionsModel.option_mac_copyright; SplashPng = macOptionsModel.option_mac_splash_png; IconPng = macOptionsModel.option_mac_icon_png; DisplayCursor = macOptionsModel.option_mac_display_cursor; StartFullscreen = macOptionsModel.option_mac_start_fullscreen; AllowFullscreenSwitching = macOptionsModel.option_mac_allow_fullscreen; InterpolatePixels = macOptionsModel.option_mac_interpolate_pixels; Vsync = macOptionsModel.option_mac_vsync; ResizeWindow = macOptionsModel.option_mac_resize_window; Scale = macOptionsModel.option_mac_scale; TexturePage = new TexturePageSize(macOptionsModel.option_mac_texture_page); AppStore = macOptionsModel.option_mac_build_app_store; AllowIncomingNetwork = macOptionsModel.option_mac_allow_incoming_network; AllowOutgoingNetwork = macOptionsModel.option_mac_allow_outgoing_network; AppCategory = macOptionsModel.option_mac_app_category; EnableSteam = macOptionsModel.option_mac_enable_steam; DisableSandbox = macOptionsModel.option_mac_disable_sandbox; }
internal override void Create(string name) { AllowFullscreen = true; BrowserTitle = "Made in GameMaker Studio 2"; CentreGame = false; DisplayCursor = true; FacebookAppDisplayName = string.Empty; FacebookId = string.Empty; FlurryEnable = false; FlurryId = string.Empty; FolderName = "html5game"; GoogleAnalyticsEnable = false; GoogleTrackingId = string.Empty; Icon = @"${base_options_dir}/html5/fav.ico"; Index = string.Empty; InterpolatePixels = false; JsPrepend = string.Empty; LoadingBar = string.Empty; LocalRunAlert = true; OutDebugToConsole = true; OutputName = "index.html"; ScaleMode = Scale.KeepAspectRatio; SplashPng = @"${base_options_dir}/html5/splash.png"; TexturePage = new TexturePageSize(2048, 2048); UseFacebook = false; UseBuiltinFont = true; UseBuiltinParticles = true; UseSplash = false; Version = new BuildVersion(1, 0, 0, 0); WebGl = WebGLSetting.AutoDetect; }
internal override void Deserialize(ModelBase model) { var linuxOptionsModel = (GMLinuxOptionsModel)model; Id = linuxOptionsModel.id; Name = linuxOptionsModel.name; DisplayName = linuxOptionsModel.option_linux_display_name; Version = linuxOptionsModel.option_linux_version; MaintainerEmail = linuxOptionsModel.option_linux_maintainer_email; Homepage = linuxOptionsModel.option_linux_homepage; ShortDescription = linuxOptionsModel.option_linux_short_desc; LongDescription = linuxOptionsModel.option_linux_long_desc; SplashScreen = linuxOptionsModel.option_linux_splash_screen; DisplaySplash = linuxOptionsModel.option_linux_display_splash; Icon = linuxOptionsModel.option_linux_icon; StartFullscreen = linuxOptionsModel.option_linux_start_fullscreen; AllowFullscreen = linuxOptionsModel.option_linux_allow_fullscreen; InterpolatePixels = linuxOptionsModel.option_linux_interpolate_pixels; DisplayCursor = linuxOptionsModel.option_linux_display_cursor; Vsync = linuxOptionsModel.option_linux_sync; ResizeWindow = linuxOptionsModel.option_linux_resize_window; ScaleMode = linuxOptionsModel.option_linux_scale; TexturePage = new TexturePageSize(linuxOptionsModel.option_linux_texture_page); EnableSteam = linuxOptionsModel.option_linux_enable_steam; DisableSandbox = linuxOptionsModel.option_linux_disable_sandbox; }
internal override void Deserialize(ModelBase model) { var Html5OptionsModel = (GMHtml5OptionsModel)model; Id = Html5OptionsModel.id; Name = Html5OptionsModel.name; AllowFullscreen = Html5OptionsModel.option_html5_allow_fullscreen; BrowserTitle = Html5OptionsModel.option_html5_browser_title; CentreGame = Html5OptionsModel.option_html5_centregame; DisplayCursor = Html5OptionsModel.option_html5_display_cursor; FacebookAppDisplayName = Html5OptionsModel.option_html5_facebook_app_display_name; FacebookId = Html5OptionsModel.option_html5_facebook_id; FlurryEnable = Html5OptionsModel.option_html5_flurry_enable; FlurryId = Html5OptionsModel.option_html5_flurry_id; FolderName = Html5OptionsModel.option_html5_foldername; GoogleAnalyticsEnable = Html5OptionsModel.option_html5_google_analytics_enable; GoogleTrackingId = Html5OptionsModel.option_html5_google_tracking_id; Icon = Html5OptionsModel.option_html5_icon; Index = Html5OptionsModel.option_html5_index; InterpolatePixels = Html5OptionsModel.option_html5_interpolate_pixels; JsPrepend = Html5OptionsModel.option_html5_jsprepend; LoadingBar = Html5OptionsModel.option_html5_loadingbar; LocalRunAlert = Html5OptionsModel.option_html5_localrunalert; OutDebugToConsole = Html5OptionsModel.option_html5_outputdebugtoconsole; OutputName = Html5OptionsModel.option_html5_outputname; ScaleMode = Html5OptionsModel.option_html5_scale; SplashPng = Html5OptionsModel.option_html5_splash_png; TexturePage = new TexturePageSize(Html5OptionsModel.option_html5_texture_page); UseBuiltinFont = Html5OptionsModel.option_html5_usebuiltinfont; UseBuiltinParticles = Html5OptionsModel.option_html5_usebuiltinparticles; UseSplash = Html5OptionsModel.option_html5_usesplash; UseFacebook = Html5OptionsModel.option_html5_use_facebook; Version = Html5OptionsModel.option_html5_version; WebGl = Html5OptionsModel.option_html5_webgl; }
internal override void Deserialize(ModelBase model) { var windowOptionsModel = (GMWindowsOptionsModel)model; Id = windowOptionsModel.id; Name = windowOptionsModel.name; DisplayName = windowOptionsModel.option_windows_display_name; ExecutableName = windowOptionsModel.option_windows_executable_name; Version = windowOptionsModel.option_windows_version; CompanyInfo = windowOptionsModel.option_windows_company_info; ProductInfo = windowOptionsModel.option_windows_product_info; CopyrightInfo = windowOptionsModel.option_windows_copyright_info; DescriptionInfo = windowOptionsModel.option_windows_description_info; DisplayCursor = windowOptionsModel.option_windows_display_cursor; Icon = windowOptionsModel.option_windows_icon; SaveLocation = windowOptionsModel.option_windows_save_location; SplashScreen = windowOptionsModel.option_windows_splash_screen; UseSplash = windowOptionsModel.option_windows_use_splash; StartFullscreen = windowOptionsModel.option_windows_start_fullscreen; AllowFullscreenSwitching = windowOptionsModel.option_windows_allow_fullscreen_switching; InterpolatePixels = windowOptionsModel.option_windows_interpolate_pixels; Vsync = windowOptionsModel.option_windows_vsync; ResizeWindow = windowOptionsModel.option_windows_resize_window; Borderless = windowOptionsModel.option_windows_borderless; Scale = windowOptionsModel.option_windows_scale; SleepMargin = windowOptionsModel.option_windows_sleep_margin; TexturePage = new TexturePageSize(windowOptionsModel.option_windows_texture_page); InstallerFinished = windowOptionsModel.option_windows_installer_finished; InstallerHeader = windowOptionsModel.option_windows_installer_header; License = windowOptionsModel.option_windows_license; NsisFile = windowOptionsModel.option_windows_nsis_file; EnableSteam = windowOptionsModel.option_windows_enable_steam; DisableSandbox = windowOptionsModel.option_windows_disable_sandbox; }
internal override void Create(string name) { DisplayName = "Made in GameMaker Studio 2"; ExecutableName = "${project_name}"; Version = new BuildVersion(1, 0, 0, 0); CompanyInfo = "YoYo Games Ltd"; ProductInfo = "Made in GameMaker Studio 2"; CopyrightInfo = $"(c) {DateTime.UtcNow.Year} CompanyName"; DescriptionInfo = "A GameMaker Studio 2 Game"; DisplayCursor = true; Icon = @"${base_options_dir}\windows\icons\icon.ico"; // TODO Copy in default SaveLocation = SaveLocation.LocalAppData; SplashScreen = @"${base_options_dir}\windows\splash\splash.png"; // TODO Copy in default UseSplash = false; StartFullscreen = false; AllowFullscreenSwitching = false; InterpolatePixels = false; Vsync = false; ResizeWindow = false; Borderless = false; Scale = Scale.KeepAspectRatio; SleepMargin = 10; TexturePage = new TexturePageSize(2048, 2048); InstallerFinished = @"${base_options_dir}\windows\installer\finished.bmp"; // TODO Copy in default InstallerHeader = @"${base_options_dir}\windows\installer\header.bmp"; // TODO Copy in default License = @"${base_options_dir}\windows\installer\license.txt"; // TODO Copy in default NsisFile = @"${base_options_dir}\windows\installer\nsis_script.nsi"; // TODO Copy in default EnableSteam = false; }
internal override void Deserialize(ModelBase model) { var tvOSOptionsModel = (GMtvOSOptionsModel)model; AppleSignIn = tvOSOptionsModel.option_tvos_apple_sign_in; BundleName = tvOSOptionsModel.option_tvos_bundle_name; DisplayCursor = tvOSOptionsModel.option_tvos_display_cursor; DisplayName = tvOSOptionsModel.option_tvos_display_name; Icon1280 = tvOSOptionsModel.option_tvos_icon_1280; Icon400 = tvOSOptionsModel.option_tvos_icon_400; Icon4002x = tvOSOptionsModel.option_tvos_icon_400_2x; InterpolatePixels = tvOSOptionsModel.option_tvos_interpolate_pixels; OutputDir = tvOSOptionsModel.option_tvos_output_dir; PushNotifications = tvOSOptionsModel.option_tvos_push_notifications; ScaleMode = tvOSOptionsModel.option_tvos_scale; SplashScreen = tvOSOptionsModel.option_tvos_splashscreen; SplashScreen2x = tvOSOptionsModel.option_tvos_splashscreen_2x; SplashTime = tvOSOptionsModel.option_tvos_splash_time; TeamId = tvOSOptionsModel.option_tvos_team_id; TexturePageSize = new TexturePageSize(tvOSOptionsModel.option_tvos_texture_page); TopShelf = tvOSOptionsModel.option_tvos_topshelf; TopShelf2x = tvOSOptionsModel.option_tvos_topshelf_2x; TopShelfWide = tvOSOptionsModel.option_tvos_topshelf_wide; TopShelfWide2x = tvOSOptionsModel.option_tvos_topshelf_wide_2x; BuildVer = tvOSOptionsModel.option_tvos_version; }
internal override ModelBase Serialize() { return(new GMtvOSOptionsModel { id = Id, name = "tvOS", option_tvos_apple_sign_in = AppleSignIn, option_tvos_bundle_name = BundleName, option_tvos_display_cursor = DisplayCursor, option_tvos_display_name = DisplayName, option_tvos_icon_1280 = Icon1280, option_tvos_icon_400 = Icon400, option_tvos_icon_400_2x = Icon4002x, option_tvos_interpolate_pixels = InterpolatePixels, option_tvos_output_dir = OutputDir, option_tvos_push_notifications = PushNotifications, option_tvos_scale = ScaleMode, option_tvos_splashscreen = SplashScreen, option_tvos_splashscreen_2x = SplashScreen2x, option_tvos_splash_time = SplashTime, option_tvos_team_id = TeamId, option_tvos_texture_page = TexturePageSize.ToString(), option_tvos_topshelf = TopShelf, option_tvos_topshelf_2x = TopShelf2x, option_tvos_topshelf_wide = TopShelfWide, option_tvos_topshelf_wide_2x = TopShelfWide2x, option_tvos_version = BuildVer }); }
internal override void Create(string name) { CheckNSPPublishErrors = true; EnableFileAccessChecking = true; EnableNEXLibraries = false; InterpolatePixels = true; Scale = Scale.KeepAspectRatio; TexturePage = new TexturePageSize(2048, 2048); ProjectNmeta = @"${options_dir}/switch/application.nmeta"; // I don't bundle the default nmeta as it's 100% under NDA. }
internal override void Deserialize(ModelBase model) { var switchOptionsModel = (GMSwitchOptionsModel)model; Id = switchOptionsModel.id; Name = switchOptionsModel.name; CheckNSPPublishErrors = switchOptionsModel.option_switch_check_nsp_publish_errors; EnableFileAccessChecking = switchOptionsModel.option_switch_enable_fileaccess_checking; EnableNEXLibraries = switchOptionsModel.option_switch_enable_nex_libraries; InterpolatePixels = switchOptionsModel.option_switch_interpolate_pixels; ProjectNmeta = switchOptionsModel.option_switch_project_nmeta; Scale = switchOptionsModel.option_switch_scale; TexturePage = new TexturePageSize(switchOptionsModel.option_switch_texture_page); }
internal override void Create(string name) { DisplayName = "Made in GameMaker Studio 2"; Version = new BuildVersion(1, 0, 0, 0); MaintainerEmail = ""; Homepage = "http://www.yoyogames.com"; ShortDescription = ""; LongDescription = ""; SplashScreen = @"${base_options_dir}/linux/splash/splash.png"; // TODO Copy in default DisplaySplash = false; Icon = @"${base_options_dir}/linux/icons/64.png"; // TODO Copy in default StartFullscreen = false; AllowFullscreen = false; InterpolatePixels = false; DisplayCursor = true; Vsync = false; ResizeWindow = false; ScaleMode = Scale.KeepAspectRatio; TexturePage = new TexturePageSize(2048, 2048); EnableSteam = false; DisableSandbox = false; }
internal override void Create(string name) { AppleSignIn = false; BundleName = "com.company.game"; DisplayCursor = false; DisplayName = "Made in GameMaker Studio 2"; Icon1280 = @"${base_options_dir}\tvos\icons\1280.png"; Icon400 = @"${base_options_dir}\tvos\icons\400.png"; Icon4002x = @"${base_options_dir}\tvos\icons\400_2x.png"; InterpolatePixels = true; OutputDir = @"~/GameMakerStudio2/tvOS"; PushNotifications = false; ScaleMode = Scale.KeepAspectRatio; SplashTime = 10; SplashScreen = @"${base_options_dir}\tvos\splash\splash.png"; SplashScreen2x = @"${base_options_dir}\tvos\splash\splash_2x.png"; TeamId = string.Empty; TexturePageSize = new TexturePageSize(2048, 2048); TopShelf = @"${base_options_dir}\tvos\topshelf\topshelf.png"; TopShelf2x = @"${base_options_dir}\tvos\topshelf\topshelf_2x.png"; TopShelfWide = @"${base_options_dir}\tvos\topshelf\topshelf_wide.png"; TopShelfWide2x = @"${base_options_dir}\tvos\topshelf\topshelf_wide_2x.png"; BuildVer = new BuildVersion(1, 0, 0, 0); }