-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpp에서 태그추가, 조회
- Loading branch information
Showing
7 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
|
||
#include "AuraAssetManager.h" | ||
#include "AuraGameplayTags.h" | ||
|
||
UAuraAssetManager& UAuraAssetManager::Get() | ||
{ | ||
check(GEngine); | ||
UAuraAssetManager* AuraAssetManager = Cast<UAuraAssetManager>(GEngine->AssetManager); | ||
return *AuraAssetManager; | ||
} | ||
|
||
void UAuraAssetManager::StartInitialLoading() //게임 에셋들 초기세팅하는 함수 | ||
{ | ||
Super::StartInitialLoading(); | ||
//Tag들 추가 하기 최적의 장소! | ||
FAuraGameplayTags::InitializeNativeGameplayTags(); | ||
|
||
//할일 : AuraAssetManager를 AssetManager로 설정 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
|
||
#include "AuraGameplayTags.h" | ||
#include "GameplayTagsManager.h" | ||
|
||
FAuraGameplayTags FAuraGameplayTags::GameplayTags; //전역변수 | ||
|
||
void FAuraGameplayTags::InitializeNativeGameplayTags() | ||
{ | ||
//단순히 태그를 추가 | ||
GameplayTags.Attributes_Secondary_Armor = UGameplayTagsManager::Get().AddNativeGameplayTag(FName("Attributes.Secondary.Armor"),FString("Reduces damage taken, improves Block Chance")); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
#pragma once | ||
|
||
#include "CoreMinimal.h" | ||
#include "Engine/AssetManager.h" | ||
#include "AuraAssetManager.generated.h" | ||
|
||
/** | ||
* | ||
*/ | ||
UCLASS() | ||
class AURA_API UAuraAssetManager : public UAssetManager | ||
{ | ||
GENERATED_BODY() | ||
|
||
public: | ||
static UAuraAssetManager& Get(); | ||
|
||
protected: | ||
virtual void StartInitialLoading() override; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
#pragma once | ||
|
||
#include "CoreMinimal.h" | ||
#include "GameplayTagContainer.h" | ||
|
||
/** | ||
* AuraGameplayTags | ||
* | ||
* 싱글톤, 포함하는 native GETags | ||
*/ | ||
|
||
struct FAuraGameplayTags | ||
{ | ||
public: | ||
static const FAuraGameplayTags& Get(){ return GameplayTags; } | ||
static void InitializeNativeGameplayTags(); //@Setter | ||
|
||
FGameplayTag Attributes_Secondary_Armor; | ||
|
||
protected: | ||
|
||
private: | ||
static FAuraGameplayTags GameplayTags; | ||
}; |