You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Add Google Play support on Android - Add editor settings for Google Play - enabled/disabled, and the app id for the games service - Hack in Google Play leaderboards, including blueprint support, proper online subsystem implementation will come in the future - These leaderboards work in TappyChicken #codereview josh.adams, jj.hoesing, michael.noland [CL 2050175 by Ryan Gerleve in Main branch]
59 lines
1.9 KiB
C++
59 lines
1.9 KiB
C++
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "AndroidRuntimeSettings.generated.h"
|
|
|
|
UENUM()
|
|
namespace EAndroidScreenOrientation
|
|
{
|
|
enum Type
|
|
{
|
|
// Portrait orientation (the display is taller than it is wide)
|
|
Portrait UMETA(ManifestValue = "portrait"),
|
|
|
|
// Portrait orientation rotated 180 degrees
|
|
ReversePortrait UMETA(ManifestValue = "reversePortrait"),
|
|
|
|
// Use either portrait or reverse portrait orientation, based on the device orientation sensor
|
|
SensorPortrait UMETA(ManifestValue = "sensorPortrait"),
|
|
|
|
// Landscape orientation (the display is wider than it is tall)
|
|
Landscape UMETA(ManifestValue = "landscape"),
|
|
|
|
// Landscape orientation rotated 180 degrees
|
|
ReverseLandscape UMETA(ManifestValue = "reverseLandscape"),
|
|
|
|
// Use either landscape or reverse landscape orientation, based on the device orientation sensor
|
|
SensorLandscape UMETA(ManifestValue = "sensorLandscape"),
|
|
|
|
// Use any orientation the device normally supports, based on the device orientation sensor
|
|
Sensor UMETA(ManifestValue = "sensor"),
|
|
|
|
// Use any orientation (including ones the device wouldn't choose in Sensor mode), based on the device orientation sensor
|
|
FullSensor UMETA(ManifestValue = "fullSensor"),
|
|
};
|
|
}
|
|
|
|
/**
|
|
* Implements the settings for the Android runtime platform.
|
|
*/
|
|
UCLASS(config = Engine)
|
|
class ANDROIDRUNTIMESETTINGS_API UAndroidRuntimeSettings : public UObject
|
|
{
|
|
public:
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
// The permitted orientation or orientations of the application on the device
|
|
UPROPERTY(GlobalConfig, EditAnywhere, Category = AppManifest)
|
|
TEnumAsByte<EAndroidScreenOrientation::Type> Orientation;
|
|
|
|
// Should Google Play support be enabled?
|
|
UPROPERTY(GlobalConfig, EditAnywhere, Category = GooglePlayServices)
|
|
bool bEnableGooglePlaySupport;
|
|
|
|
// The app id obtained from the Google Play Developer Console
|
|
UPROPERTY(GlobalConfig, EditAnywhere, Category = GooglePlayServices)
|
|
FString GamesAppID;
|
|
};
|