Unreal access to the PixoVR Platform
Loading...
Searching...
No Matches
PPlatformCoreSettings.h
Go to the documentation of this file.
1// Copyright 2023 PixoVR Corp. All Rights Reserved.
2
3#pragma once
4
5#include "Engine/Texture2D.h"
6#include "PPlatformCoreSettings.generated.h"
7
10
11UCLASS(config = Game, defaultconfig)
12class PIXOPLATFORMCORE_API UPPlatformCoreSettings : public UObject
13{
14 GENERATED_UCLASS_BODY()
16public:
18 UPROPERTY(BlueprintAssignable, Category = "Apex|Event")
19 FOnPlatformSettingsChanged OnSettingsChanged;
20
21 FOnStaticPlatformSettingsChanged OnStaticSettingsChanged;
22
23 // Add an array, then make ConfigSection an int that has an ArrayClamp pointing to the array
24 UPROPERTY(VisibleAnywhere, Category = "PixoVR Platform")
25 TArray<FString> SelectableSections;
26
28 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform")
29 FString ConfigURL;
30
31 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform", meta = (Tooltip = "The settings configuration that is loaded at the start. Leaving this empty will load the default section."))
32 FString ConfigSection;
33
35 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Configuration")
36 FString ProtocolVersion;
37
38 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Configuration", meta = (DisplayName = "Platform Name"))
39 FString PlatformName;
40
41 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Configuration", meta = (DisplayName = "Region Icon URL"))
42 FString IconURL;
43
44 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Configuration")
45 FString Region;
46
47 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Configuration", meta = (DisplayName = "Dev Mode"))
48 bool bDevMode;
50 // Base Platform Information
51
53 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Core Platform")
54 FString PlatformURL;
55
57 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Core Platform", meta = (DisplayName = "Module ID", Tooltip = "Module ID is set manually."))
58 int ModuleId;
59
60 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Core Platform", meta = (DisplayName = "Module Version", Tooltip = "Module Version is set manually."))
61 FString ModuleVersion;
62
64 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Core Platform", meta = (DisplayName = "Sync Module Version", Tooltip = "If sync is enabled, this will make the Android and Project version match the Module version."))
65 bool bSyncVersion;
66
67 // Extended Platform Data
68
70 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Extended Platform")
71 FString ModuleListURLFormat;
72
73 // Multiplayer Settings
74
76 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Multiplayer", meta = (DisplayName = "Is Multiplayer Enabled"))
77 bool bIsMultiplayerEnabled;
80 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Multiplayer", meta = (InlineEditConditionToggle))
81 bool bServerVersionMatchModule;
82
83 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Multiplayer", meta = (DisplayName = "Server Match Version", EditCondition = "!bServerVersionMatchModule"))
84 FString ServerMatchVersion;
86 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Multiplayer")
87 FString MatchmakingURL;
88
89 // Voice Chat Settings
90
92 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Voice Chat")
93 bool bIsVoiceChatEnabled;
94
95 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Voice Chat")
96 FString VoiceServerURL;
97
98 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Voice Chat")
99 FString VoiceAccessKey;
100
101 UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Voice Chat")
102 FString VoiceTokenAudience;
104public:
105#if WITH_EDITORONLY_DATA
106 virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
107
108 virtual void UpdateVersion(const TArray<FString>& VersionParts);
109#endif
111 bool CheckVersionString(FString VersionString) const;
112
113private:
114 bool GetModuleVersionArray(FString Version, TArray<FString>& ModuleVersionArray) const;
115};
DECLARE_MULTICAST_DELEGATE_OneParam(FOnStaticPlatformSettingsChanged, UPPlatformCoreSettings *)
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnPlatformSettingsChanged, UPPlatformCoreSettings *, Settings)
UCLASS(config = Game, defaultconfig)
FString VoiceTokenAudience
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Voice Chat")
FString VoiceServerURL
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Voice Chat")
int ModuleId
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Core Platform", meta = (DisplayName = "Mo...
bool bDevMode
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Configuration", meta = (DisplayName = "De...
FString VoiceAccessKey
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Voice Chat")
FString ConfigURL
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform")
FOnPlatformSettingsChanged OnSettingsChanged
UPROPERTY(BlueprintAssignable, Category = "Apex|Event")
bool bSyncVersion
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Core Platform", meta = (DisplayName = "Sy...
FOnStaticPlatformSettingsChanged OnStaticSettingsChanged
FString ServerMatchVersion
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Multiplayer", meta = (DisplayName = "Serv...
FString IconURL
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Configuration", meta = (DisplayName = "Re...
FString ProtocolVersion
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Configuration")
FString PlatformName
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Configuration", meta = (DisplayName = "Pl...
FString PlatformURL
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Core Platform")
FString ModuleVersion
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Core Platform", meta = (DisplayName = "Mo...
bool bIsVoiceChatEnabled
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Voice Chat")
TArray< FString > SelectableSections
UPROPERTY(VisibleAnywhere, Category = "PixoVR Platform")
bool bIsMultiplayerEnabled
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Multiplayer", meta = (DisplayName = "Is M...
FString Region
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Configuration")
FString ConfigSection
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform", meta = (Tooltip = "The settings configu...
bool bServerVersionMatchModule
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Multiplayer", meta = (InlineEditCondition...
FString ModuleListURLFormat
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Extended Platform")
FString MatchmakingURL
UPROPERTY(Config, EditAnywhere, Category = "PixoVR Platform|Multiplayer")