7 #include "TitleManagerDatabase.h"
8 #include "ExperienceCategoryValue.h"
9 #include <Components/ActorComponent.h>
10 #include "TitleManagerComponent.generated.h"
16 USTRUCT(BlueprintType)
22 TMap<FString, FExperienceCategoryValue> ExperienceCategoryValue;
29 UCLASS(Blueprintable, BlueprintType, ClassGroup =
TitleManager, meta = (BlueprintSpawnableComponent))
43 UFUNCTION(BlueprintCallable, Category =
"TitleManager")
51 UFUNCTION(BlueprintCallable, Category =
"TitleManager")
60 UFUNCTION(BlueprintCallable, Category =
"TitleManager|Experience")
61 int32 GetExperience(
const FString& categoryName);
70 UFUNCTION(BlueprintCallable, Category =
"TitleManager|Experience")
71 int32 SetExperience(
const FString& categoryName, int32 experience);
80 UFUNCTION(BlueprintCallable, Category =
"TitleManager|Experience")
81 int32 AddExperience(
const FString& categoryName,
const int32 experience = 1);
89 UFUNCTION(BlueprintCallable, Category =
"TitleManager|Experience")
90 float GetExperienceRatio(
const FString& categoryName);
99 UFUNCTION(BlueprintCallable, Category =
"TitleManager|Proficiency")
100 int32 GetProficiency(
const FString& categoryName,
const FString& itemName);
110 UFUNCTION(BlueprintCallable, Category =
"TitleManager|Proficiency")
111 int32 SetProficiency(
const FString& categoryName,
const FString& itemName, int32 proficiency);
121 UFUNCTION(BlueprintCallable, Category =
"TitleManager|Proficiency")
122 int32 AddProficiency(
const FString& categoryName,
const FString& itemName,
const int32 proficiency = 1);
131 UFUNCTION(BlueprintCallable, Category =
"TitleManager|Proficiency")
132 float GetProficiencyRatio(
const FString& categoryName,
const FString& itemName);
141 UFUNCTION(BlueprintCallable, Category =
"TitleManager|Quantity")
142 uint8 GetQuantity(
const FString& categoryName,
const FString& itemName);
151 UFUNCTION(BlueprintCallable, Category =
"TitleManager|Quantity")
152 void SetQuantity(
const FString& categoryName,
const FString& itemName,
const uint8 quantity);
162 UFUNCTION(BlueprintCallable, Category =
"TitleManager|Quantity")
163 uint8 AddQuantity(
const FString& categoryName,
const FString& itemName,
const int32 quantity = 1);
170 UFUNCTION(BlueprintCallable, Category =
"TitleManager")
171 FString FindMaxExperienceTitle()
const;
179 UFUNCTION(BlueprintCallable, Category =
"TitleManager")
180 FString FindCategoryTitle(
const FString& categoryName)
const;
203 const TMap<FString, FExperienceCategoryValue>& GetExperienceCategoryValue()
const noexcept;
206 virtual void InitializeComponent()
override;
209 bool InitializeExperienceCategoryValue();
216 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category =
"TitleManager")
223 UPROPERTY(VisibleInstanceOnly, BlueprintReadOnly, Category = "
TitleManager")
Definition: TitleManager.Build.cs:9
Definition: TitleManagerComponent.h:31
Definition: TitleManagerDatabase.h:16
Definition: ExperienceCategoryData.h:17
Definition: ExperienceCategoryValue.h:17
Definition: TitleManagerComponent.h:18