51 lines
1.5 KiB
C++
51 lines
1.5 KiB
C++
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
|
|
|
|
#pragma once
|
|
|
|
#if PLATFORM_IOS || USE_EDITOR
|
|
|
|
#include "Engine/Core/Config/PlatformSettingsBase.h"
|
|
#include "Engine/Core/Types/String.h"
|
|
#include "Engine/Scripting/SoftObjectReference.h"
|
|
|
|
class Texture;
|
|
|
|
/// <summary>
|
|
/// iOS platform settings.
|
|
/// </summary>
|
|
API_CLASS(sealed, Namespace="FlaxEditor.Content.Settings") class FLAXENGINE_API iOSPlatformSettings : public SettingsBase
|
|
{
|
|
DECLARE_SCRIPTING_TYPE_MINIMAL(iOSPlatformSettings);
|
|
|
|
/// <summary>
|
|
/// The app identifier (reversed DNS, eg. com.company.product). Custom tokens: ${PROJECT_NAME}, ${COMPANY_NAME}.
|
|
/// </summary>
|
|
API_FIELD(Attributes="EditorOrder(0), EditorDisplay(\"General\")")
|
|
String AppIdentifier = TEXT("com.${COMPANY_NAME}.${PROJECT_NAME}");
|
|
|
|
/// <summary>
|
|
/// Custom icon texture to use for the application (overrides the default one).
|
|
/// </summary>
|
|
API_FIELD(Attributes="EditorOrder(1000), EditorDisplay(\"Other\")")
|
|
SoftObjectReference<Texture> OverrideIcon;
|
|
|
|
public:
|
|
/// <summary>
|
|
/// Gets the instance of the settings asset (default value if missing). Object returned by this method is always loaded with valid data to use.
|
|
/// </summary>
|
|
static iOSPlatformSettings* Get();
|
|
|
|
// [SettingsBase]
|
|
void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) final override
|
|
{
|
|
DESERIALIZE(AppIdentifier);
|
|
DESERIALIZE(OverrideIcon);
|
|
}
|
|
};
|
|
|
|
#if PLATFORM_IOS
|
|
typedef iOSPlatformSettings PlatformSettings;
|
|
#endif
|
|
|
|
#endif
|