Add PS5 platform defines and types

This commit is contained in:
Wojtek Figat
2021-10-08 16:24:59 +02:00
parent aef024f572
commit 48a867ef16
56 changed files with 216 additions and 46 deletions

View File

@@ -40,6 +40,8 @@ namespace FlaxEditor.Content.Create
XboxScarlettPlatformSettings,
AndroidPlatformSettings,
SwitchPlatformSettings,
[EditorDisplay(null, "PS5 Platform Settings")]
PS5PlatformSettings,
}
private static readonly Type[] _types =
@@ -63,6 +65,7 @@ namespace FlaxEditor.Content.Create
TypeUtils.GetManagedType(GameSettings.XboxScarlettPlatformSettingsTypename),
typeof(AndroidPlatformSettings),
TypeUtils.GetManagedType(GameSettings.SwitchPlatformSettingsTypename),
TypeUtils.GetManagedType(GameSettings.PS5PlatformSettingsTypename),
};
internal class Options
@@ -228,6 +231,11 @@ namespace FlaxEditor.Content.Create
return false;
instance.SwitchPlatform = asset;
break;
case SettingsTypes.PS5PlatformSettings:
if (instance.PS5Platform != null)
return false;
instance.PS5Platform = asset;
break;
}
return true;
}