// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved. #pragma once #if PLATFORM_MAC || USE_EDITOR #include "Engine/Core/Config/PlatformSettingsBase.h" #include "Engine/Core/Types/String.h" /// /// Mac platform settings. /// API_CLASS(sealed, Namespace="FlaxEditor.Content.Settings") class FLAXENGINE_API MacPlatformSettings : public SettingsBase { DECLARE_SCRIPTING_TYPE_MINIMAL(MacPlatformSettings); /// /// The app identifier (reversed DNS, eg. com.company.product). Custom tokens: ${PROJECT_NAME}, ${COMPANY_NAME}. /// API_FIELD(Attributes="EditorOrder(0), EditorDisplay(\"General\")") String AppIdentifier = TEXT("com.${COMPANY_NAME}.${PROJECT_NAME}"); public: /// /// Gets the instance of the settings asset (default value if missing). Object returned by this method is always loaded with valid data to use. /// static MacPlatformSettings* Get(); // [SettingsBase] void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) final override { DESERIALIZE(AppIdentifier); } }; #if PLATFORM_MAC typedef MacPlatformSettings PlatformSettings; #endif #endif