24 UFUNCTION(BlueprintCallable, Category=
"Achievements")
25 void CreateAchievement(
const FString& APIName);
27 UFUNCTION(BlueprintCallable, Category=
"Achievements")
28 void SetAchievementProgress(
const int32 Value);
29 UFUNCTION(BlueprintCallable, Category=
"Achievements")
30 FString GetStatName()
const;
31 UFUNCTION(BlueprintCallable, Category=
"Achievements")
32 int32 GetStatMax()
const;
33 UFUNCTION(BlueprintCallable, Category=
"Achievements")
34 float GetAchievementProgress(
const int32 Value)
const;
37 virtual bool Initialize()
override;
39 UFUNCTION(BlueprintImplementableEvent, Category=
"Achievements")
40 void OnAchievementDataSet(const
bool bGetProgress);
42 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Achievements|
General")
43 FString AchievementAPIName = "";
44 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Achievements|
General")
45 FString AchievementName = "";
46 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Achievements|
General")
47 FString AchievementDescription = "";
48 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Achievements|
General")
50 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Achievements|
General")
51 bool bUnlocked = false;
52 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Achievements|
General")
53 FDateTime UnlockedTime;
54 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Achievements|
General")
55 FString ProgressKey = "PROGRESS_";
56 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Achievements|
General")
57 FString ValueKey = "_";
61 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Achievements|Widgets")
62 class UTextBlock* NameTextBlock =
nullptr;
63 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Achievements|Widgets")
64 class UTextBlock* DateTextBlock =
nullptr;
65 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Achievements|Widgets")
66 class UTextBlock* DescriptionTextBlock =
nullptr;
67 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Achievements|Widgets")
68 class UImage* AchievementImage =
nullptr;
69 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Achievements|Widgets")
70 class UTextBlock* PercentTextBlock =
nullptr;
71 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Achievements|Widgets")
72 class UTextBlock* GlobalPercentTextBlock =
nullptr;
73 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Achievements|Widgets")
74 UProgressBar* ProgressBar =
nullptr;