Refactor GDK platform settings and tools, expose more options MicrosoftGame.config

This commit is contained in:
Wojtek Figat
2021-08-30 16:14:52 +02:00
parent 5d321c8c0c
commit 98776a709e
8 changed files with 480 additions and 5 deletions

View File

@@ -31,9 +31,12 @@ namespace FlaxEditor.Content.Create
InputSettings,
StreamingSettings,
WindowsPlatformSettings,
[EditorDisplay(null, "UWP Platform Settings")]
UWPPlatformSettings,
LinuxPlatformSettings,
[EditorDisplay(null, "PS4 Platform Settings")]
PS4PlatformSettings,
XboxOnePlatformSettings,
XboxScarlettPlatformSettings,
AndroidPlatformSettings,
SwitchPlatformSettings,
@@ -56,6 +59,7 @@ namespace FlaxEditor.Content.Create
typeof(UWPPlatformSettings),
typeof(LinuxPlatformSettings),
TypeUtils.GetManagedType(GameSettings.PS4PlatformSettingsTypename),
TypeUtils.GetManagedType(GameSettings.XboxOnePlatformSettingsTypename),
TypeUtils.GetManagedType(GameSettings.XboxScarlettPlatformSettingsTypename),
typeof(AndroidPlatformSettings),
TypeUtils.GetManagedType(GameSettings.SwitchPlatformSettingsTypename),
@@ -204,6 +208,11 @@ namespace FlaxEditor.Content.Create
return false;
instance.PS4Platform = asset;
break;
case SettingsTypes.XboxOnePlatformSettings:
if (instance.XboxOnePlatform != null)
return false;
instance.XboxOnePlatform = asset;
break;
case SettingsTypes.XboxScarlettPlatformSettings:
if (instance.XboxScarlettPlatform != null)
return false;