|
| | UTitleManagerComponent (const FObjectInitializer &objectInitializer) |
| |
| bool | Load (const FTitleManagerSerializeData &titleManagerSerializeData) |
| |
| FTitleManagerSerializeData | Save () const |
| |
| int32 | GetExperience (const FString &categoryName) |
| |
| int32 | SetExperience (const FString &categoryName, int32 experience) |
| |
| int32 | AddExperience (const FString &categoryName, const int32 experience=1) |
| |
| float | GetExperienceRatio (const FString &categoryName) |
| |
| int32 | GetProficiency (const FString &categoryName, const FString &itemName) |
| |
| int32 | SetProficiency (const FString &categoryName, const FString &itemName, int32 proficiency) |
| |
| int32 | AddProficiency (const FString &categoryName, const FString &itemName, const int32 proficiency=1) |
| |
| float | GetProficiencyRatio (const FString &categoryName, const FString &itemName) |
| |
| uint8 | GetQuantity (const FString &categoryName, const FString &itemName) |
| |
| void | SetQuantity (const FString &categoryName, const FString &itemName, const uint8 quantity) |
| |
| uint8 | AddQuantity (const FString &categoryName, const FString &itemName, const int32 quantity=1) |
| |
| FString | FindMaxExperienceTitle () const |
| |
| FString | FindCategoryTitle (const FString &categoryName) const |
| |
| const FExperienceCategoryData * | FindExperienceCategoryData (const FString &categoryName) const |
| |
| const UTitleManagerDatabase * | GetTitleManagerDatabase () const noexcept |
| |
| const TMap< FString, FExperienceCategoryValue > & | GetExperienceCategoryValue () const noexcept |
| |
|
virtual void | InitializeComponent () override |
| |
◆ UTitleManagerComponent()
| UTitleManagerComponent::UTitleManagerComponent |
( |
const FObjectInitializer & |
objectInitializer | ) |
|
|
explicit |
- Author
- Shun Moriya
- Copyright
- 2024 Shun Moriya All Rights Reserved.
◆ AddExperience()
| int32 UTitleManagerComponent::AddExperience |
( |
const FString & |
categoryName, |
|
|
const int32 |
experience = 1 |
|
) |
| |
Add to the experience points. The value is clamped within the ExperienceRange of the ExperienceCategory. 経験値に加算します。値はExperienceCategoryのExperienceRange範囲内に切り詰めます。
- Parameters
-
| categoryName | カテゴリ名 |
| experience | 増減経験値 |
- Returns
- 加算後の結果
◆ AddProficiency()
| int32 UTitleManagerComponent::AddProficiency |
( |
const FString & |
categoryName, |
|
|
const FString & |
itemName, |
|
|
const int32 |
proficiency = 1 |
|
) |
| |
Add to the item's proficiency level. The value is clamped within the ProficiencyRange of the ExperienceCategory. アイテムの熟練度に加算します。値はExperienceCategoryのProficiencyRange範囲内に切り詰めます。
- Parameters
-
| categoryName | カテゴリ名 |
| itemName | アイテム名 |
| proficiency | 増減経験値 |
- Returns
- 加算後の結果
◆ AddQuantity()
| uint8 UTitleManagerComponent::AddQuantity |
( |
const FString & |
categoryName, |
|
|
const FString & |
itemName, |
|
|
const int32 |
quantity = 1 |
|
) |
| |
Add to the quantity owned. 所有数を加算します
- Parameters
-
| categoryName | カテゴリ名 |
| itemName | アイテム名 |
| quantity | 加算する所有数 |
- Returns
- 所有数
◆ FindCategoryTitle()
| FString UTitleManagerComponent::FindCategoryTitle |
( |
const FString & |
categoryName | ) |
const |
Search for the titles in the category. カテゴリの称号を検索します
- Parameters
-
- Returns
- 称号名
◆ FindExperienceCategoryData()
| const FExperienceCategoryData * UTitleManagerComponent::FindExperienceCategoryData |
( |
const FString & |
categoryName | ) |
const |
Search for the experience points category. 経験値カテゴリを検索します
- Parameters
-
- Returns
- nullptrなら検索失敗
◆ FindMaxExperienceTitle()
| FString UTitleManagerComponent::FindMaxExperienceTitle |
( |
| ) |
const |
Search for the highest experience points title. 最も経験値の高い称号を検索します
- Returns
- 称号名
◆ GetExperience()
| int32 UTitleManagerComponent::GetExperience |
( |
const FString & |
categoryName | ) |
|
Get experience. 経験値を取得します。
- Parameters
-
- Returns
- 経験値
◆ GetExperienceCategoryValue()
Gain experience and proficiency 経験値や熟練度を取得します
- Returns
- TMap<FString, FExperienceCategoryValue>
◆ GetExperienceRatio()
| float UTitleManagerComponent::GetExperienceRatio |
( |
const FString & |
categoryName | ) |
|
Get the experience points ratio. 経験値の比率を取得します。
- Parameters
-
- Returns
- 0.0 ~ 1.0
◆ GetProficiency()
| int32 UTitleManagerComponent::GetProficiency |
( |
const FString & |
categoryName, |
|
|
const FString & |
itemName |
|
) |
| |
Get the item's proficiency level. アイテムの熟練度を取得します。
- Parameters
-
| categoryName | カテゴリ名 |
| itemName | アイテム名 |
- Returns
- 経験値
◆ GetProficiencyRatio()
| float UTitleManagerComponent::GetProficiencyRatio |
( |
const FString & |
categoryName, |
|
|
const FString & |
itemName |
|
) |
| |
Get the item's proficiency ratio. アイテムの熟練度の比率を取得します。
- Parameters
-
| categoryName | カテゴリ名 |
| itemName | アイテム名 |
- Returns
- 0.0 ~ 1.0
◆ GetQuantity()
| uint8 UTitleManagerComponent::GetQuantity |
( |
const FString & |
categoryName, |
|
|
const FString & |
itemName |
|
) |
| |
Get the quantity owned. 所有数を取得します
- Parameters
-
| categoryName | カテゴリ名 |
| itemName | アイテム名 |
- Returns
- 所有数
◆ GetTitleManagerDatabase()
◆ Load()
Load ロード
- Parameters
-
| titleManagerSerializeData | ロードするデータ |
◆ Save()
◆ SetExperience()
| int32 UTitleManagerComponent::SetExperience |
( |
const FString & |
categoryName, |
|
|
int32 |
experience |
|
) |
| |
Set the experience points. The value is clamped within the ExperienceRange of the ExperienceCategory. 経験値を設定します。値はExperienceCategoryのExperienceRange範囲内に切り詰めます。
- Parameters
-
| categoryName | カテゴリ名 |
| experience | 経験値 |
- Returns
- 設定の結果
◆ SetProficiency()
| int32 UTitleManagerComponent::SetProficiency |
( |
const FString & |
categoryName, |
|
|
const FString & |
itemName, |
|
|
int32 |
proficiency |
|
) |
| |
Set the item's proficiency level. The value is clamped within the ProficiencyRange of the ExperienceCategory. アイテムの熟練度を設定します。値はExperienceCategoryのProficiencyRange範囲内に切り詰めます。
- Parameters
-
| categoryName | カテゴリ名 |
| itemName | アイテム名 |
| proficiency | 経験値 |
- Returns
- 経験値
◆ SetQuantity()
| void UTitleManagerComponent::SetQuantity |
( |
const FString & |
categoryName, |
|
|
const FString & |
itemName, |
|
|
const uint8 |
quantity |
|
) |
| |
Set the quantity owned. 所有数を設定します
- Parameters
-
| categoryName | カテゴリ名 |
| itemName | アイテム名 |
| quantity | 所有数 |
◆ ExperienceCategoryValue
Experience points and proficiency level. 経験値と熟練度
◆ TitleManagerDatabase
Please specify the title database. 称号データベースを指定してください。
The documentation for this class was generated from the following files: