LuckyRobotsUnreal/Source/Luckyrobots/Public/LuckyRobotsFunctionLibrary.h
martinluckyrobots 4b116bf9da Optimize CaptureSetting, GoalTask, etc.
2025-04-02 13:40:55 +08:00

38 lines
1.2 KiB
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "SharedDef.h"
#include "LuckyRobotsFunctionLibrary.generated.h"
class ULuckyRobotsGameInstance;
class USG_CaptureSetting;
/**
*
*/
UCLASS()
class LUCKYROBOTS_API ULuckyRobotsFunctionLibrary : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintPure, meta = (WorldContext = "WorldContextObject"))
static ULuckyRobotsGameInstance* GetLuckyRobotsGameInstance(const UObject* WorldContextObject);
UFUNCTION(BlueprintPure, meta = (WorldContext = "WorldContextObject"))
static TArray<FRobotData> GetActiveRobotDataList(const UObject* WorldContextObject);
UFUNCTION(BlueprintPure, meta = (WorldContext = "WorldContextObject"))
static TArray<FLevelData> GetActiveLevelDataList(const UObject* WorldContextObject);
UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"))
static void UpdateQualitySettings(const UObject* WorldContextObject);
UFUNCTION(BlueprintCallable)
static FCaptureSettingsData LoadCaptureSettings();
UFUNCTION(BlueprintCallable)
static void SaveCaptureSettings(FCaptureSettingsData CaptureSetting);
};