Files
FNGameProj/Source/FortniteGame/Public/FortGameInstance.h
2024-01-21 00:41:14 +01:00

263 lines
10 KiB
C++

#pragma once
#include "CoreMinimal.h"
#include "WebEnvUrl.h"
#include "UObject/NoExportTypes.h"
#include "UObject/NoExportTypes.h"
#include "Engine/GameInstance.h"
#include "WebJSFunction.h"
#include "AthenaDataTableSet.h"
#include "AudioDynamicSoundData.h"
#include "EFortGameFeature.h"
#include "EFortGameFeatureState.h"
#include "PlaylistFrontEndSettings.h"
#include "PlaylistOverrideData.h"
#include "FortGameInstance.generated.h"
class IFortUIManagerInterface;
class UFortUIManagerInterface;
class UFortAppActivationSoundMixManager;
class UFortChat;
class UFortInteractabilityTracker;
class UFortMatchAnalytics;
class UFortMatchmaking;
class UFortMatchmakingV2;
class UFortMaterialCacheManager;
class UFortMissionGenerator;
class UFortPlaylistManager;
class UFortPushNotificationManager;
class UFortRegisteredPlayerInfo;
class UFortRejoinCheck;
class UFortSeasonalEventManager;
class UFortSocialManager;
class UFortTooltipManager;
class UFortTournamentManager;
class UFortUpdateManager;
class UMcpProfileManager;
class UReplayVideoManager;
class USidecarSys;
UCLASS(Blueprintable, NonTransient, Config=Game)
class FORTNITEGAME_API UFortGameInstance : public UGameInstance {
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite, Config, EditAnywhere, meta=(AllowPrivateAccess=true))
TSet<FName> EventFlagsForcedOnByHotfix;
UPROPERTY(BlueprintReadWrite, Config, EditAnywhere, meta=(AllowPrivateAccess=true))
TSet<FName> EventFlagsForcedOffByHotfix;
UPROPERTY(BlueprintReadWrite, Config, EditAnywhere, meta=(AllowPrivateAccess=true))
TSet<FString> CosmeticsBlacklistedByHotfix;
UPROPERTY(BlueprintReadWrite, Config, EditAnywhere, meta=(AllowPrivateAccess=true))
bool bBattleRoyaleMatchmakingEnabled;
UPROPERTY(BlueprintReadWrite, Config, EditAnywhere, meta=(AllowPrivateAccess=true))
bool bCreativeModeProfileEnabled;
UPROPERTY(BlueprintReadWrite, Config, EditAnywhere, meta=(AllowPrivateAccess=true))
TArray<FPlaylistOverrideData> PlaylistOverrides;
UPROPERTY(BlueprintReadWrite, Config, EditAnywhere, meta=(AllowPrivateAccess=true))
TArray<FAudioDynamicSoundData> DynamicSoundData;
UPROPERTY(BlueprintReadWrite, Config, EditAnywhere, meta=(AllowPrivateAccess=true))
TArray<FPlaylistFrontEndSettings> FrontEndPlaylistData;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
FAthenaDataTableSet AthenaDataTables;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
bool bOverridingCurrentEmoteMusicFFT;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
float CurrentEmoteMusicFFT100hz;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
float CurrentEmoteMusicFFT2000hz;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
float EmoteMusicEnvelopeBeatCount;
private:
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
TScriptInterface<IFortUIManagerInterface> UIManagerInterface;
UPROPERTY(BlueprintReadWrite, Config, EditAnywhere, meta=(AllowPrivateAccess=true))
FSoftObjectPath UIManagerClassPath;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
UMcpProfileManager* ProfileManager;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UFortMatchmaking* Matchmaking;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UFortMatchmakingV2* MatchmakingV2;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UFortRejoinCheck* RejoinCheck;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UFortSocialManager* SocialManager;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UFortMatchAnalytics* MatchAnalytics;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
USidecarSys* SidecarSys;
UPROPERTY(BlueprintReadWrite, Config, EditAnywhere, meta=(AllowPrivateAccess=true))
bool bMcpSidecarEnabled;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
FGuid GlobalUnregistrationSaveGUID;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UFortTooltipManager* TooltipManager;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
TArray<UFortRegisteredPlayerInfo*> RegisteredPlayers;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UFortUpdateManager* UpdateManager;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UFortInteractabilityTracker* InteractabilityTracker;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, Transient, meta=(AllowPrivateAccess=true))
UFortChat* Chatroom;
UPROPERTY(EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
TArray<TWeakObjectPtr<UFortRegisteredPlayerInfo>> RegisteredPlayerInfosAwaitingRefresh;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
FString LastGameHighlightGroupId;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UFortSeasonalEventManager* SeasonalEventManager;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UFortTournamentManager* TournamentManager;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UFortPushNotificationManager* MobilePushNotificationManager;
UPROPERTY(BlueprintReadWrite, Config, EditAnywhere, meta=(AllowPrivateAccess=true))
float BroadcastFeatureStatusRate;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UFortMissionGenerator* CurrentMissionGenerator;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UFortAppActivationSoundMixManager* AppActivationSoundMixManager;
UPROPERTY(BlueprintReadWrite, Config, EditAnywhere, meta=(AllowPrivateAccess=true))
int32 KairosUIResX;
UPROPERTY(BlueprintReadWrite, Config, EditAnywhere, meta=(AllowPrivateAccess=true))
int32 KairosUIResY;
UPROPERTY(BlueprintReadWrite, Config, EditAnywhere, meta=(AllowPrivateAccess=true))
TArray<FWebEnvUrl> KairosWebUrls;
UPROPERTY(BlueprintReadWrite, Config, EditAnywhere, meta=(AllowPrivateAccess=true))
float KairosHotfixCheckTimer;
UPROPERTY(BlueprintReadWrite, Config, EditAnywhere, meta=(AllowPrivateAccess=true))
float KairosHotfixCheckVariance;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UFortPlaylistManager* PlaylistManager;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UFortMaterialCacheManager* MaterialCacheManager;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UReplayVideoManager* ReplayVideoManager;
public:
UFortGameInstance();
UFUNCTION(BlueprintCallable, Reliable, ServiceResponse = null)
bool UninstallFortniteBROnNextBoot(bool bRestartApp, bool bPromptForRestart);
UFUNCTION(BlueprintCallable, Reliable, ServiceResponse = null)
bool UninstallAllOptionalContentOnNextBoot(bool bRestartApp, bool bPromptForRestart);
UFUNCTION(Reliable, ServiceResponse=null)
void SetUserSetting(const FString& Key, const FString& Value, FWebJSResponse Response);
UFUNCTION(BlueprintCallable)
void SetOverrideCurrentMusicFFT(float FFT100hz, float FFT2000hz);
UFUNCTION(Reliable, ServiceResponse = null)
void SetNotificationCallback(FWebJSFunction Callback);
UFUNCTION(Reliable, ServiceResponse = null)
void SetMultipleUserSettings(const TMap<FString, FString>& Settings, FWebJSResponse Response);
UFUNCTION(Reliable, ServiceResponse = null)
void SetHotfixCompleteCallback(FWebJSFunction Callback);
UFUNCTION(Reliable, ServiceResponse = null)
void SetFeatureStatusCallback(FWebJSFunction Callback);
UFUNCTION(Reliable, ServiceResponse = null)
void SetErrorSimulationCommands(const FString& CommandLine);
UFUNCTION(Reliable, ServiceResponse = null)
void SetActiveGameFeature(EFortGameFeature Feature, FWebJSResponse Response);
UFUNCTION(Reliable, ServiceResponse = null)
void RequestGameFeatureState(EFortGameFeature Feature, EFortGameFeatureState State, FWebJSResponse Response);
UFUNCTION(BlueprintCallable, Reliable, ServiceResponse = null)
void RequestBroadcast();
UFUNCTION(BlueprintCallable, Reliable, ServiceResponse = null)
void PauseContentInstall();
UFUNCTION(BlueprintCallable, Reliable, ServiceResponse = null)
void OpenUpdateApp();
private:
UFUNCTION(BlueprintCallable)
void OnTournamentDataRefreshed();
public:
UFUNCTION(Reliable, ServiceResponse = null)
void IsContentUpToDate(EFortGameFeature Feature, FWebJSResponse Response);
UFUNCTION(Reliable, ServiceResponse = null)
void GetUserSetting(const FString& Key, FWebJSResponse Response);
UFUNCTION(Reliable, ServiceResponse = null)
void GetProjectVersion(FWebJSResponse Response);
UFUNCTION(Reliable, ServiceResponse = null)
void GetHotfixHasApplied(FWebJSResponse Response);
UFUNCTION(Reliable, ServiceResponse = null)
void GetDownloadSize(EFortGameFeature Feature, FWebJSResponse Response);
UFUNCTION(Reliable, ServiceResponse = null)
void GetContentState(EFortGameFeature Feature, FWebJSResponse Response);
UFUNCTION(BlueprintCallable, Exec)
void ContinueDelayedStartup();
UFUNCTION(BlueprintCallable)
void ClearOverrideCurrentMusicFFT();
UFUNCTION(Reliable, ServiceResponse = null)
void CheckLatestClient(FWebJSResponse Response);
UFUNCTION(BlueprintCallable, Exec)
void ChangeActiveGameFeature(const FString& FeatureString);
UFUNCTION(BlueprintCallable, Reliable, ServiceResponse = null)
void CancelContentInstall();
};