Optimizing gameinstance

This commit is contained in:
martinluckyrobots
2025-04-08 22:11:33 +08:00
parent 3e85af79ae
commit 4e94aaaf96
34 changed files with 142 additions and 11 deletions

View File

@ -40,11 +40,37 @@ public:
UDataTable* BathroomDataTable;
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config")
TArray<FString> AlphabetForRandomList;
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Resulation")
bool bIsFirstOpenGame;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WebSocket")
bool bIsStartConnect;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
ESaveDataType SelectSaveDataType;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bIsDebug;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bIsWidgetTestMode;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bIsShowPath;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
int32 WidgetTotalHit;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bInfiniteTime;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
float FastEndTaskTime = 180.0f;
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Capture")
bool bIsCapture;
@ -143,6 +169,17 @@ public:
UFUNCTION(BlueprintCallable)
void DoSetTempTaskValueChange(bool bIsClear);
UFUNCTION(BlueprintCallable, Category = "Resolution")
void DoResolutionChange(bool bIsFullscreen);
UFUNCTION(BlueprintCallable)
FString DoRandomString(FString StartString);
UFUNCTION(BlueprintCallable)
void UpdateQualitySettings();
UFUNCTION(BlueprintCallable)
void DoQualitySettings(int32 Quality, bool Auto);
public:
UFUNCTION(BlueprintCallable)
void SetCurrentFolderName(const FString& FolderName);
@ -241,6 +278,13 @@ public:
UFUNCTION(BlueprintPure)
int32 GetCurrentCaptureNumber() const;
public:
UFUNCTION(BlueprintCallable)
void SetWidgetTotalHit(int32 Value);
UFUNCTION(BlueprintPure)
int32 GetWidgetTotalHit() const;
public:
UFUNCTION(BlueprintImplementableEvent)
void DoGetDispatch(const FString& EventName, USIOJsonValue* EventData);

View File

@ -100,11 +100,11 @@ enum class EGoalType : uint8
UENUM(BlueprintType)
enum class ESaveDataType : uint8
{
file UMETA(DisplayName = "file"),
webserver UMETA(DisplayName = "webserver"),
http UMETA(DisplayName = "http"),
debug UMETA(DisplayName = "debug"),
none UMETA(DisplayName = "none")
None UMETA(DisplayName = "None"),
File UMETA(DisplayName = "File"),
Webserver UMETA(DisplayName = "Webserver"),
Http UMETA(DisplayName = "Http"),
Debug UMETA(DisplayName = "Debug")
};
UENUM(BlueprintType)